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/75.d110ce09.async.js

1344 lines
2.9 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 G1=Object.defineProperty,H1=Object.defineProperties;var _1=Object.getOwnPropertyDescriptors;var m0=Object.getOwnPropertySymbols;var Jb=Object.prototype.hasOwnProperty,e1=Object.prototype.propertyIsEnumerable;var t1=Math.pow,Qb=(Ge,xe,ae)=>xe in Ge?G1(Ge,xe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Ge[xe]=ae,Ss=(Ge,xe)=>{for(var ae in xe||(xe={}))Jb.call(xe,ae)&&Qb(Ge,ae,xe[ae]);if(m0)for(var ae of m0(xe))e1.call(xe,ae)&&Qb(Ge,ae,xe[ae]);return Ge},rS=(Ge,xe)=>H1(Ge,_1(xe));var n1=(Ge,xe)=>{var ae={};for(var de in Ge)Jb.call(Ge,de)&&xe.indexOf(de)<0&&(ae[de]=Ge[de]);if(Ge!=null&&m0)for(var de of m0(Ge))xe.indexOf(de)<0&&e1.call(Ge,de)&&(ae[de]=Ge[de]);return ae};var i1=(Ge,xe,ae)=>new Promise((de,Te)=>{var Ee=Ze=>{try{je(ae.next(Ze))}catch(we){Te(we)}},Re=Ze=>{try{je(ae.throw(Ze))}catch(we){Te(we)}},je=Ze=>Ze.done?de(Ze.value):Promise.resolve(Ze.value).then(Ee,Re);je((ae=ae.apply(Ge,xe)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[75],{35323:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},19155:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},10402:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},72295:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},93343:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},24566:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},61441:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},30631:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},43971:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},58358:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},44757:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},16537:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},77042:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},5527:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},86902:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},53878:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},21970:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(Ye,st){return Te.createElement(je.Z,(0,de.Z)({},Ye,{ref:st,icon:Re}))},we=Te.forwardRef(Ze),it=we},79906:function(){"use strict"},93938:function(Ge,xe){"use strict";xe.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Ge(ze,ee,ne,fe){ne===void 0&&(ne=0),fe===void 0&&(fe=1/0),this._name=ze,this._defaultValue=ee,this._minimum=ne,this._maximum=fe}Object.defineProperty(Ge.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(Ge.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(Ge.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(Ge.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 Ge))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 fe=go.Shape._FigureParameters[ze];fe||(fe=[],go.Shape._FigureParameters[ze]=fe),fe[ee]=ne};var xe=[];function ae(ze,ee){var ne=xe.pop();return ne===void 0?new go.Point(ze,ee):(ne.x=ze,ne.y=ee,ne)}function de(){var ze=xe.pop();return ze===void 0?new go.Point:ze}function Te(ze){xe.push(ze)}function Ee(ze,ee,ne,fe,le,me,Se,ke,Be){Be||(Be=new go.Point);var Ne=ze-ne,Ke=le-Se,$e=NaN,at=NaN;if(Ne===0)if(Ke===0)ze===ne&&($e=ze,at=ee);else{var lt=(me-ke)/Ke,Tt=me-lt*le;$e=ze,at=lt*$e+Tt}else if(Ke===0){var nt=(ee-fe)/Ne,Ut=ee-nt*ze;$e=le,at=nt*$e+Ut}else{var nt=(ee-fe)/Ne,lt=(me-ke)/Ke,Ut=ee-nt*ze,Tt=me-lt*le;$e=(Tt-Ut)/(nt-lt),at=nt*$e+Ut}return Be.x=$e,Be.y=at,Be}function Re(ze,ee,ne,fe,le,me,Se,ke,Be,Ne,Ke,$e,at,lt){var Tt=1-Be,nt=Be,Ut=ze*Tt+ne*nt,kt=ee*Tt+fe*nt,dn=ne*Tt+le*nt,nn=fe*Tt+me*nt,qt=le*Tt+Se*nt,un=me*Tt+ke*nt,mn=Ut*Tt+dn*nt,Ct=kt*Tt+nn*nt,qe=dn*Tt+qt*nt,Bt=nn*Tt+un*nt,Cn=mn*Tt+qe*nt,Zn=Ct*Tt+Bt*nt;Ne.x=Ut,Ne.y=kt,Ke.x=mn,Ke.y=Ct,$e.x=Cn,$e.y=Zn,at.x=qe,at.y=Bt,lt.x=qt,lt.y=un}var je=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),we=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=5),fe=Math.min(fe,ee/3),fe=Math.min(fe,ne/3);var le=fe*we,me=new go.Geometry().add(new go.PathFigure(fe,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee-fe,0)).add(new go.PathSegment(go.PathSegment.Bezier,ee,fe,ee-le,0,ee,le)).add(new go.PathSegment(go.PathSegment.Line,ee,ne-fe)).add(new go.PathSegment(go.PathSegment.Bezier,ee-fe,ne,ee,ne-le,ee-le,ne)).add(new go.PathSegment(go.PathSegment.Line,fe,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,le,ne,0,ne-le)).add(new go.PathSegment(go.PathSegment.Line,0,fe)).add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,le,le,0).close()));return le>1&&(me.spot1=new go.Spot(0,0,le,le),me.spot2=new go.Spot(1,1,-le,-le)),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 fe=new go.Geometry(go.Geometry.Line);return fe.startX=0,fe.startY=ne/2,fe.endX=ee,fe.endY=ne/2,fe}),go.Shape.defineFigureGenerator("LineV",function(ze,ee,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=ee/2,fe.startY=0,fe.endX=ee/2,fe.endY=ne,fe}),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 fe=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(fe*ee,(1-fe)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Move,fe*ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*ee,(1-fe)*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 fe=ee/2,le=new go.Geometry().add(new go.PathFigure(ee,ee/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,fe,fe,fe,fe).close()));return le.spot1=je,le.spot2=Ze,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(ze,ee,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=0,fe.startY=0,fe.endX=ee,fe.endY=ne,fe}),go.Shape.defineFigureGenerator("Line2",function(ze,ee,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=ee,fe.startY=0,fe.endX=0,fe.endY=ne,fe}),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,we*ee,0,ee,(1-we)*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,we*ne,(1-we)*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,we*ne,we*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-we)*ee,0,0,(1-we)*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 Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)?fe=.1:fe<-1?fe=-1:fe>1&&(fe=1);var le=Math.abs(fe)*ee;if(fe===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 fe>0?me.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-le,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-le,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<ee/2&&me.setSpots(le/ee,0,(ee-le)/ee,1),me}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)?fe=10:fe<-ee?fe=-ee:fe>ee&&(fe=ee);var le=Math.abs(fe);if(fe===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 fe>0?me.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-le,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-le,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<ee/2&&me.setSpots(le/ee,0,(ee-le)/ee,1),me}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)?fe=.2:fe<.5?fe=-.5:fe>.5&&(fe=.5);var le=Math.abs(fe)*ee;if(fe===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 fe>0?me.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ee-le,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-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<ee/2&&me.setSpots(le/ee,0,(ee-le)/ee,1),me}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)?fe=20:fe<-ee?fe=-ee/2:fe>ee&&(fe=ee/2);var le=Math.abs(fe);if(fe===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 fe>0?me.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ee-le,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-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<ee/2&&me.setSpots(le/ee,0,(ee-le)/ee,1),me}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)?fe=10:fe<-ee?fe=-ee/2:fe>ee&&(fe=ee/2);var le=Math.abs(fe);if(fe===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 fe>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-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())):me.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ee-le,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),le<ee/2&&me.setSpots(le/ee,0,(ee-le)/ee,1),me}});var it=[];function Je(){var ze=it.pop();return ze===void 0?[]:ze}function Ye(ze){ze.length=0,it.push(ze)}function st(ze){for(var ee=Je(),ne=.5,fe=.5,le=Math.PI*1.5,me=0,Se=0;Se<ze;Se++)me=2*Math.PI/ze*Se+le,ee[Se]=new go.Point(fe+ne*Math.cos(me),fe+ne*Math.sin(me));return ee.push(ee[0]),ee}function ht(ze){var ee=Lt(ze),ne=Je();ne[0]=ee[0];for(var fe=1,le=1;fe<ee.length;fe+=2,le+=3)ne[le]=ee[fe],ne[le+1]=ee[fe],ne[le+2]=ee[fe+1];return Ye(ee),ne}function Lt(ze){for(var ee=st(ze),ne=Je(),fe=Math.floor(ee.length/2),le=ee.length-1,me=ze%2===0?2:1,Se=0;Se<le;Se++){var ke=ee[Se],Be=ee[Se+1],Ne=ee[(fe+Se-1)%le],Ke=ee[(fe+Se+me)%le];ne[Se*2]=ke,ne[Se*2+1]=Ee(ke.x,ke.y,Ne.x,Ne.y,Be.x,Be.y,Ke.x,Ke.y,new go.Point)}return ne[ne.length]=ne[0],Ye(ee),ne}go.Shape.defineFigureGenerator("Pentagon",function(ze,ee,ne){var fe=st(5),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<5;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.2,.22),le.spot2=new go.Spot(.8,.9),le}),go.Shape.defineFigureGenerator("Hexagon",function(ze,ee,ne){var fe=st(6),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<6;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.07,.25),le.spot2=new go.Spot(.93,.75),le}),go.Shape.defineFigureGenerator("Heptagon",function(ze,ee,ne){var fe=st(7),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<7;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.2,.15),le.spot2=new go.Spot(.8,.85),le}),go.Shape.defineFigureGenerator("Octagon",function(ze,ee,ne){var fe=st(8),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<8;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.15,.15),le.spot2=new go.Spot(.85,.85),le}),go.Shape.defineFigureGenerator("Nonagon",function(ze,ee,ne){var fe=st(9),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<9;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.17,.13),le.spot2=new go.Spot(.82,.82),le}),go.Shape.defineFigureGenerator("Decagon",function(ze,ee,ne){var fe=st(10),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<10;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("Dodecagon",function(ze,ee,ne){var fe=st(12),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<12;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("FivePointedStar",function(ze,ee,ne){var fe=Lt(5),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<10;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.266,.333),le.spot2=new go.Spot(.733,.733),le}),go.Shape.defineFigureGenerator("SixPointedStar",function(ze,ee,ne){var fe=Lt(6),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<12;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.17,.25),le.spot2=new go.Spot(.83,.75),le}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ze,ee,ne){var fe=Lt(7),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<14;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("EightPointedStar",function(ze,ee,ne){var fe=Lt(8),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<16;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.25,.25),le.spot2=new go.Spot(.75,.75),le}),go.Shape.defineFigureGenerator("NinePointedStar",function(ze,ee,ne){var fe=Lt(9),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<18;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("TenPointedStar",function(ze,ee,ne){var fe=Lt(10),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<20;Se++)me.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*ee,fe[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*ee,fe[0].y*ne).close()),Ye(fe),le.spot1=new go.Spot(.281,.261),le.spot2=new go.Spot(.723,.748),le}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ze,ee,ne){var fe=ht(5),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ze,ee,ne){var fe=ht(6),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.17,.222),le.spot2=new go.Spot(.833,.777),le}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ze,ee,ne){var fe=ht(7),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ze,ee,ne){var fe=ht(8),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ze,ee,ne){var fe=ht(9),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ze,ee,ne){var fe=ht(10),le=new go.Geometry,me=new go.PathFigure(fe[0].x*ee,fe[0].y*ne,!0);le.add(me);for(var Se=1;Se<fe.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*ee,fe[Se+2].y*ne,fe[Se].x*ee,fe[Se].y*ne,fe[Se+1].x*ee,fe[Se+1].y*ne));return me.segments.last().close(),Ye(fe),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN,le=ze?ze.parameter2:NaN;isNaN(fe)&&(fe=8),isNaN(le)&&(le=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()),fe<ee/2&&le<ne/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,fe,le)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-fe,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-fe,le).close())),me.setSpots(0,0,1,1,fe,le,-fe,-le),me}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=8);var le=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,le,le,le,le).close());var ke=Math.max(le-fe,0);return ke>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,ee/2+ke,ee/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,ke,ke).close())),me.spot1=je,me.spot2=Ze,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 fe=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(fe*ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,(1-fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,fe*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,fe*ne).close())).setSpots(fe/2,fe/2,1-fe/2,1-fe/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN,le=ze?ze.parameter2:NaN;isNaN(fe)&&(fe=0),isNaN(le)&&(le=315);var me=fe%360;me<0&&(me+=360);var Se=le%360,ke=Math.min(ee,ne)/2;return new go.Geometry().add(new go.PathFigure(ke,ke).add(new go.PathSegment(go.PathSegment.Arc,me,Se,ke,ke,ke,ke).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ze,ee,ne){var fe=we/Math.SQRT2*.5,le=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,le*ee,me*ne,ee,(1-fe)*ne,(le+fe)*ee,(me+fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=30);var le=Math.min(fe,ee)/2,me=ee/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(me-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,me+le,0)).add(new go.PathSegment(go.PathSegment.Line,me+le,Se-le)).add(new go.PathSegment(go.PathSegment.Line,ee,Se-le)).add(new go.PathSegment(go.PathSegment.Line,ee,Se+le)).add(new go.PathSegment(go.PathSegment.Line,me+le,Se+le)).add(new go.PathSegment(go.PathSegment.Line,me+le,ne)).add(new go.PathSegment(go.PathSegment.Line,me-le,ne)).add(new go.PathSegment(go.PathSegment.Line,me-le,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se-le)).add(new go.PathSegment(go.PathSegment.Line,me-le,Se-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=10);var le=Math.min(fe,ee)/2,me=ee/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(me-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,me+le,0)).add(new go.PathSegment(go.PathSegment.Line,me+le,Se-le)).add(new go.PathSegment(go.PathSegment.Line,ee,Se-le)).add(new go.PathSegment(go.PathSegment.Line,ee,Se+le)).add(new go.PathSegment(go.PathSegment.Line,me+le,Se+le)).add(new go.PathSegment(go.PathSegment.Line,me+le,ne)).add(new go.PathSegment(go.PathSegment.Line,me-le,ne)).add(new go.PathSegment(go.PathSegment.Line,me-le,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se-le)).add(new go.PathSegment(go.PathSegment.Line,me-le,Se-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;if((isNaN(fe)||fe<0)&&(fe=30),ee===0||ne===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=ee,le.endY=ne,le}else{var me=ee/2,Se=ne/2,ke=Math.atan2(ne,ee),Be=fe-Math.min(Math.cos(ke)*fe/2,me),Ne=fe-Math.min(Math.sin(ke)*fe/2,Se),le=new go.Geometry,Ke=new go.PathFigure(Be,0,!0);return le.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,me,.2*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,ee-Be,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,ee,Ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.8*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,ee,ne-Ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,ee-Be,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,me,.8*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,Be,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,ne-Ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,Ne).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=10);var le=new go.Geometry,me=new go.PathFigure(.1*ee,0,!0);return le.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()),le}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.2);var le=new go.Geometry,me=new go.PathFigure(0,0,!0);return le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,fe*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+fe/2)*ee,fe*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+fe/2)*ee,(1-fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,(1-fe)*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-fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5-fe/2)*ee,(1-fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5-fe/2)*ee,fe*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,fe*ne).close()),le}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.5);var le=new go.Geometry,me=new go.PathFigure(0,0,!0);return le.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-fe)*ee,.25*ne,Math.abs(1-fe)*ee,.75*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,0,fe*ee,.75*ne,fe*ee,.25*ne).close()),le}),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,we*ee,0,ee,(.5-we/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,ee,(.5+we/2)*ne,we*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 fe=new go.Geometry,le=new go.PathFigure(.4*ee,.6*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.15*ee,ne,.5*ee,.75*ne,.45*ee,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.6*ne,.55*ee,.95*ne,.5*ee,.75*ne));var me=.2,Se=.3,ke=0,Be=me*we;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5+me+ke)*ne,(.5-me+Se)*ee,(.5+Be+ke)*ne,(.5-Be+Se)*ee,(.5+me+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+me+Se)*ee,(.5+ke)*ne,(.5+Be+Se)*ee,(.5+me+ke)*ne,(.5+me+Se)*ee,(.5+Be+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+ke)*ne,(1-.5+me+Se)*ee,(.5-Be+ke)*ne,(.5+Be+Se)*ee,(.5-me+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*ee,.36771243*ne,(.5-Be+Se)*ee,(.5-me+ke)*ne,(.5-me+Se+.05)*ee,(.5-Be+ke-.02)*ne)),me=.2,Se=0,ke=-.3,Be=me*we,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+me+Se)*ee,(.5+ke)*ne,(.5+Be+Se)*ee,(.5+me+ke)*ne,(.5+me+Se)*ee,(.5+Be+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+ke)*ne,(1-.5+me+Se)*ee,(.5-Be+ke)*ne,(.5+Be+Se)*ee,(.5-me+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-me+Se)*ee,(.5+ke)*ne,(.5-Be+Se)*ee,(.5-me+ke)*ne,(.5-me+Se)*ee,(.5-Be+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Be+Se)*ee,(.5+me+ke)*ne,(.5-me+Se)*ee,(.5+Be+ke)*ne,(.5-Be+Se)*ee,(.5+me+ke)*ne)),me=.2,Se=-.3,ke=0,Be=me*we,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+ke)*ne,(1-.5+me+Se-.05)*ee,(.5-Be+ke-.02)*ne,(.5+Be+Se)*ee,(.5-me+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-me+Se)*ee,(.5+ke)*ne,(.5-Be+Se)*ee,(.5-me+ke)*ne,(.5-me+Se)*ee,(.5-Be+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5+me+ke)*ne,(.5-me+Se)*ee,(.5+Be+ke)*ne,(.5-Be+Se)*ee,(.5+me+ke)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.6*ne,(.5+Be+Se)*ee,(.5+me+ke)*ne,(.5+me+Se)*ee,(.5+Be+ke)*ne).close()),fe.setSpots(.06,.33,.93,.68),fe}),go.Shape.defineFigureGenerator("YinYang",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*.5,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*.5,ee*.5,ee*.5,ee*.5)),le.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ee*.5,ee*.75,ee*.25,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,ee*.5,ee*.25,ee*.25,ee*.25));var me=.1,Se=.5,ke=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(Se+me)*ee,ke*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ee*Se,ne*ke,me*ee,me*ee).close()),le=new go.PathFigure(ee*.5,0,!1),fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*.5,ee*.5,ee*.5,ee*.5)),ke=.75,le=new go.PathFigure((Se+me)*ee,ke*ne,!0),fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,ee*Se,ne*ke,me*ee,me*ee).close()),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Peace",function(ze,ee,ne){var fe=.8535533905932737,le=.5*ee,me=.5*ne;return new go.Geometry().add(new go.PathFigure(le,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,le,me,le,me)).add(new go.PathSegment(go.PathSegment.Line,le,ne)).add(new go.PathSegment(go.PathSegment.Move,le,me)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Move,le,me)).add(new go.PathSegment(go.PathSegment.Line,fe*ee,fe*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=.5,Se=.5,ke=.5,Be=new go.PathFigure(Se*ee,(ke-me)*ne);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),me=.4,le=we*.4;var Ne=de(),Ke=de(),$e=de(),at=de();Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.42,Ne,Ke,$e,at,at);var lt=de(),Tt=de(),nt=de();Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.58,at,at,nt,lt,Tt);var Ut=de(),kt=de(),dn=de();Re(Se,ke+me,Se-le,ke+me,Se-me,ke+le,Se-me,ke,.42,Ut,kt,dn,at,at);var nn=de(),qt=de(),un=de();return Re(Se,ke+me,Se-le,ke+me,Se-me,ke+le,Se-me,ke,.58,at,at,un,nn,qt),Be.add(new go.PathSegment(go.PathSegment.Move,un.x*ee,un.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,nn.x*ee,nn.y*ne,qt.x*ee,qt.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*ee,$e.y*ne,Ne.x*ee,Ne.y*ne,Ke.x*ee,Ke.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,un.x*ee,un.y*ne).close()),Be.add(new go.PathSegment(go.PathSegment.Move,dn.x*ee,dn.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,nt.x*ee,nt.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,lt.x*ee,lt.y*ne,Tt.x*ee,Tt.y*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,dn.x*ee,dn.y*ne,Ut.x*ee,Ut.y*ne,kt.x*ee,kt.y*ne).close()),Te(Ne),Te(Ke),Te($e),Te(at),Te(lt),Te(Tt),Te(nt),Te(Ut),Te(kt),Te(dn),Te(nn),Te(qt),Te(un),fe.defaultStretch=go.GraphObject.Uniform,fe}),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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=30),fe>ee&&(fe=ee);var le=(ee-fe)/2,me=le+fe;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,le,.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 fe=new go.Geometry,le=we*.4,me=.4,Se=.5,ke=.5,Be=de(),Ne=de(),Ke=de(),$e=de(),at=new go.PathFigure((Se-me)*ee,ke*ne,!1);fe.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne)),Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.44,Ke,$e,Ne,Be,Be),at.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*ee,Ne.y*ne,Ke.x*ee,Ke.y*ne,$e.x*ee,$e.y*ne));var lt=ae(Ne.x,Ne.y);Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.56,Be,Be,Ne,Ke,$e);var Tt=ae(Ne.x,Ne.y);at.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.95*.9)*ee,lt.y*.1*ne)),at.add(new go.PathSegment(go.PathSegment.Line,.85*ee,lt.y*.1*ne)),at.add(new go.PathSegment(go.PathSegment.Line,.85*ee,0)),at.add(new go.PathSegment(go.PathSegment.Line,ee,0)),at.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),at.add(new go.PathSegment(go.PathSegment.Line,(Tt.x*.1+.9)*ee,.15*ne)),at.add(new go.PathSegment(go.PathSegment.Line,(Tt.x*.1+.9)*ee,(Tt.y*.1+.05*.9)*ne)),at.add(new go.PathSegment(go.PathSegment.Line,Tt.x*ee,Tt.y*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,Ke.x*ee,Ke.y*ne,$e.x*ee,$e.y*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne)),me=.35,le=we*.35;var nt=new go.PathFigure(Se*ee,(ke-me)*ne,!1);fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne));var Ut=new go.PathFigure((Se-me)*ee,ke*ne,!1);return fe.add(Ut),Te(Be),Te(Ne),Te(Ke),Te($e),Te(lt),Te(Tt),fe.spot1=new go.Spot(.202,.257),fe.spot2=new go.Spot(.792,.739),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("GenderFemale",function(ze,ee,ne){var fe=new go.Geometry,le=.375,me=0,Se=-.125,ke=le*we,Be=new go.PathFigure((.525+me)*ee,(.5+le+Se)*ne,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+me)*ee,(.5+Se)*ne,(.5+ke+me)*ee,(.5+le+Se)*ne,(.5+le+me)*ee,(.5+ke+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5-le+Se)*ne,(1-.5+le+me)*ee,(.5-ke+Se)*ne,(.5+ke+me)*ee,(.5-le+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+me)*ee,(.5+Se)*ne,(.5-ke+me)*ee,(.5-le+Se)*ne,(.5-le+me)*ee,(.5-ke+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+me)*ee,(.5+le+Se)*ne,(.5-le+me)*ee,(.5+ke+Se)*ne,(.5-ke+me)*ee,(.5+le+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.85*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.85*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.9*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.9*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.9*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.9*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.85*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*ne).close()),le=.325,me=0,Se=-.125,ke=le*we;var Be=new go.PathFigure((1-.5+le+me)*ee,(.5+Se)*ne,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5+le+Se)*ne,(.5+le+me)*ee,(.5+ke+Se)*ne,(.5+ke+me)*ee,(.5+le+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+me)*ee,(.5+Se)*ne,(.5-ke+me)*ee,(.5+le+Se)*ne,(.5-le+me)*ee,(.5+ke+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5-le+Se)*ne,(.5-le+me)*ee,(.5-ke+Se)*ne,(.5-ke+me)*ee,(.5-le+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+me)*ee,(.5+Se)*ne,(.5+ke+me)*ee,(.5-le+Se)*ne,(1-.5+le+me)*ee,(.5-ke+Se)*ne));var Be=new go.PathFigure((.525+me)*ee,(.5+le+Se)*ne,!1);return fe.add(Be),fe.spot1=new go.Spot(.232,.136),fe.spot2=new go.Spot(.682,.611),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("LogicImplies",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;return isNaN(fe)&&(fe=.2),new go.Geometry().add(new go.PathFigure((1-fe)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*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 fe=ze?ze.parameter1:NaN;return isNaN(fe)&&(fe=.2),new go.Geometry().add(new go.PathFigure((1-fe)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*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,fe*ee,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,fe*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 fe=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 fe.defaultStretch=go.GraphObject.Uniform,fe}),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 fe=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,fe*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,fe*ee,fe*ne,fe*ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ze,ee,ne){var fe=.5;return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,fe*ee,fe*ne,fe*ee,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.3);var le=ze?ze.parameter2:NaN;isNaN(le)&&(le=.3);var me=(1-fe)*ee,Se=(.5-le/2)*ne,ke=(.5+le/2)*ne,Be=new go.Geometry,Ne=new go.PathFigure(0,Se,!0);Be.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,me,Se)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,ke)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ke).close()),Be.spot1=new go.Spot(0,Se/ne);var Ke=Ee(0,ke/ne,1,ke/ne,me/ee,1,1,.5,de());return Be.spot2=new go.Spot(Ke.x,Ke.y),Te(Ke),Be}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=30),fe>ee&&(fe=ee);var le=ze?ze.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,ne/2);var me=ee-fe,Se=(ne-le)/2,ke=Se+le,Be=new go.Geometry,Ne=new go.PathFigure(0,Se,!0);Be.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,me,Se)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,me,ke)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ke).close()),Be.spot1=new go.Spot(0,Se/ne);var Ke=Ee(0,ke/ne,1,ke/ne,me/ee,1,1,.5,de());return Be.spot2=new go.Spot(Ke.x,Ke.y),Te(Ke),Be}),go.Shape.defineFigureGenerator("Chevron",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("DoubleArrow",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.214*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,1*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.786*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),fe}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.3);var le=(.5-fe/2)*ne,me=(.5+fe/2)*ne,Se=new go.Geometry,ke=new go.PathFigure(ee,.5*ne,!0);Se.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close());var Be=Ee(0,.5,.3,0,0,le/ne,.1,le/ne,de());return Se.spot1=new go.Spot(Be.x,Be.y),Be=Ee(.7,1,1,.5,0,me/ne,1,me/ne,Be),Se.spot2=new go.Spot(Be.x,Be.y),Te(Be),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=40);var le=ze?ze.parameter2:NaN;isNaN(le)&&(le=100);var me=(ne-fe)/2,Se=me+fe,ke=(ne-le)/2,Be=ke+le;(fe>ne||le>ne)&&(le>fe?(fe=fe*ne/le,me=(ne-fe)/2,Se=me+fe,ke=0,Be=ne):(me=0,Se=ne,ke=0,Be=ne));var Ne=new go.Geometry,Ke=new go.PathFigure(ee,.5*ne,!0);Ne.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ke)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*ee,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ke).close());var $e=Ee(0,.5,.3,ke/ne,0,me/ne,1,me/ne,de());return Ne.spot1=new go.Spot($e.x,$e.y),$e=Ee(.7,Be/ne,1,.5,0,Se/ne,1,Se/ne,$e),Ne.spot2=new go.Spot($e.x,$e.y),Te($e),Ne}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.3);var le=(.5-fe/2)*ne,me=(.5+fe/2)*ne,Se=new go.Geometry,ke=new go.PathFigure(ee,.5*ne,!0);Se.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),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,.2*ee,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(0,le/ne);var Be=Ee(.7,1,1,.5,0,me/ne,1,me/ne,de());return Se.spot2=new go.Spot(Be.x,Be.y),Te(Be),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=40);var le=ze?ze.parameter2:NaN;isNaN(le)&&(le=100);var me=(ne-fe)/2,Se=me+fe,ke=(ne-le)/2,Be=ke+le;(fe>ne||le>ne)&&(le>fe?(fe=fe*ne/le,me=(ne-fe)/2,Se=me+fe,ke=0,Be=ne):(me=0,Se=ne,ke=0,Be=ne));var Ne=new go.Geometry,Ke=new go.PathFigure(ee,.5*ne,!0);Ne.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,ke)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ke)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ke).close()),Ne.spot1=new go.Spot(0,me/ne);var $e=Ee(.7,Be/ne,1,.5,0,Se/ne,1,Se/ne,de());return Ne.spot2=new go.Spot($e.x,$e.y),Te($e),Ne}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.1);var le=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,fe*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),le.spot1=new go.Spot(fe,.35);var Se=Ee(.2,.65,1,.65,0,1,1,.5,de());return le.spot2=new go.Spot(Se.x,Se.y),Te(Se),le}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.3);var le=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,0,fe*ee,.75*ne,fe*ee,.25*ne).close()),le.spot1=new go.Spot(fe,.35);var Se=Ee(0,.65,1,.65,0,1,1,.5,de());return le.spot2=new go.Spot(Se.x,Se.y),Te(Se),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.4);var le=(.5-fe/2)*ne,me=(.5+fe/2)*ne,Se=new go.Geometry,ke=new go.PathFigure(ee,.5*ne,!0);Se.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,0,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(.2,.3);var Be=Ee(.7,1,1,.5,0,me/ne,1,me/ne,de());return Se.spot2=new go.Spot(Be.x,Be.y),Te(Be),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=50);var le=(ne-fe)/2,me=le+fe;fe>ne&&(le=0,me=ne);var Se=new go.Geometry,ke=new go.PathFigure(ee,.5*ne,!0);Se.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),ke.add(new go.PathSegment(go.PathSegment.Line,0,me)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(.2,le/ne);var Be=Ee(.7,1,1,.5,0,me/ne,1,me/ne,de());return Se.spot2=new go.Spot(Be.x,Be.y),Te(Be),Se}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.7);var le=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);return le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,fe*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,fe*ee,0).close()),le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(fe,1),le}),go.Shape.defineFigureGenerator("Cone1",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=we*.1,Se=new go.PathFigure(0,.9*ne,!0);return fe.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+le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*ee,ne,0,(.9+me)*ne).close()),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.97),fe}),go.Shape.defineFigureGenerator("Cone2",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.9*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*ne,(1-.85/.9)*ee,ne,.85/.9*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var me=new go.PathFigure(0,.9*ne,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*ne,(1-.85/.9)*ee,.8*ne,.85/.9*ee,.8*ne)),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.82),fe}),go.Shape.defineFigureGenerator("Cube1",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var me=new go.PathFigure(.5*ee,ne,!1);return fe.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)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(.5,.85),fe}),go.Shape.defineFigureGenerator("Cube2",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.3*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0).close());var me=new go.PathFigure(0,.3*ne,!1);return fe.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)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(.7,1),fe}),go.Shape.defineFigureGenerator("Cylinder1",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ne/3);var le=new go.Geometry,me=we*.5,Se=new go.PathFigure(0,fe,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,we*fe,(.5-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*ee,fe,(.5+me)*ee,0,1*ee,we*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,1*ne,1*ee,ne-we*fe,(.5+me)*ee,1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,(.5-me)*ee,1*ne,0,ne-we*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,0,fe));var ke=new go.PathFigure(ee,fe,!1);return le.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,2*fe,1*ee,2*fe-we*fe,(.5+me)*ee,2*fe)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,fe,(.5-me)*ee,2*fe,0,2*fe-we*fe)),le.spot1=new go.Spot(0,0,0,2*fe),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ne/3);var le=new go.Geometry,me=we*.5,Se=new go.PathFigure(0,ne-fe,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,we*fe,(.5-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,fe,(.5+me)*ee,0,ee,we*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,ne-we*fe,(.5+me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,(.5-me)*ee,ne,0,ne-we*fe));var ke=new go.PathFigure(0,ne-fe,!1);return le.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne-2*fe,0,ne-fe-we*fe,(.5-me)*ee,ne-2*fe)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee,ne-fe,(.5+me)*ee,ne-2*fe,ee,ne-fe-we*fe)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*fe),le}),go.Shape.defineFigureGenerator("Cylinder3",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ee/3);var le=new go.Geometry,me=we*.5,Se=new go.PathFigure(fe,0,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee-fe,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,ee-we*fe,0,ee,(.5-me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-fe,ne,ee,(.5+me)*ne,ee-we*fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,we*fe,ne,0,(.5+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,(.5-me)*ne,we*fe,0));var ke=new go.PathFigure(fe,0,!1);return le.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,2*fe,.5*ne,fe+we*fe,0,2*fe,(.5-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,fe,ne,2*fe,(.5+me)*ne,fe+we*fe,ne)),le.spot1=new go.Spot(0,0,2*fe,0),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder4",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ee/3);var le=new go.Geometry,me=we*.5,Se=new go.PathFigure(ee-fe,0,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,ee-we*fe,0,ee,(.5-me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-fe,ne,ee,(.5+me)*ne,ee-we*fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,we*fe,ne,0,(.5+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,(.5-me)*ne,we*fe,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-fe,0));var ke=new go.PathFigure(ee-fe,0,!1);return le.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee-2*fe,.5*ne,ee-fe-we*fe,0,ee-2*fe,(.5-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee-fe,ne,ee-2*fe,(.5+me)*ne,ee-fe-we*fe,ne)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,-2*fe,0),le}),go.Shape.defineFigureGenerator("Prism1",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.25*ee,.25*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(.25*ee,.25*ne,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),fe.spot1=new go.Spot(.408,.172),fe.spot2=new go.Spot(.833,.662),fe}),go.Shape.defineFigureGenerator("Prism2",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.25*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,ne,!1);return fe.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)),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("Pyramid1",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var me=new go.PathFigure(.5*ee,0,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),fe.spot1=new go.Spot(.25,.367),fe.spot2=new go.Spot(.75,.875),fe}),go.Shape.defineFigureGenerator("Pyramid2",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var me=new go.PathFigure(.5*ee,0,!1);return fe.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)),fe.spot1=new go.Spot(.25,.367),fe.spot2=new go.Spot(.75,.875),fe}),go.Shape.defineFigureGenerator("Actor",function(ze,ee,ne){var fe=new go.Geometry,le=.2,me=.1,Se=we*le,ke=we*me,Be=.5,Ne=.1,Ke=new go.PathFigure(Be*ee,(Ne+me)*ne,!0);fe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Be-le)*ee,Ne*ne,(Be-Se)*ee,(Ne+me)*ne,(Be-le)*ee,(Ne+ke)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-me)*ne,(Be-le)*ee,(Ne-ke)*ne,(Be-Se)*ee,(Ne-me)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Be+le)*ee,Ne*ne,(Be+Se)*ee,(Ne-me)*ne,(Be+le)*ee,(Ne-ke)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne+me)*ne,(Be+le)*ee,(Ne+ke)*ne,(Be+Se)*ee,(Ne+me)*ne));var $e=.05,at=we*$e;Be=.05,Ne=.25;var lt=new go.PathFigure(.5*ee,.2*ne,!0);return fe.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.2*ne)),Be=.95,Ne=.25,lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+$e)*ee,Ne*ne,(Be+at)*ee,(Ne-$e)*ne,(Be+$e)*ee,(Ne-at)*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,ee,.6*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.35*ne)),$e=.025,at=we*$e,Be=.825,Ne=.35,lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-$e)*ne,(Be+$e)*ee,(Ne-at)*ne,(Be+at)*ee,(Ne-$e)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-$e)*ee,Ne*ne,(Be-at)*ee,(Ne-$e)*ne,(Be-$e)*ee,(Ne-at)*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*ee,ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*ne)),$e=.05,at=we*$e,Be=.5,Ne=.7,lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-$e)*ne,(Be+$e)*ee,(Ne-at)*ne,(Be+at)*ee,(Ne-$e)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-$e)*ee,Ne*ne,(Be-at)*ee,(Ne-$e)*ne,(Be-$e)*ee,(Ne-at)*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*ee,ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.35*ne)),$e=.025,at=we*$e,Be=.175,Ne=.35,lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-$e)*ne,(Be+$e)*ee,(Ne-at)*ne,(Be+at)*ee,(Ne-$e)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-$e)*ee,Ne*ne,(Be-at)*ee,(Ne-$e)*ne,(Be-$e)*ee,(Ne-at)*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),$e=.05,at=we*$e,Be=.05,Ne=.25,lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-$e)*ne,(Be-$e)*ee,(Ne-at)*ne,(Be-at)*ee,(Ne-$e)*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*ne)),fe.spot1=new go.Spot(.2,.2),fe.spot2=new go.Spot(.8,.65),fe}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;isNaN(fe)&&(fe=.2);var le=new go.Geometry,me=new go.PathFigure(ee,0,!0);return le.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,fe*ne)),me.add(new go.PathSegment(go.PathSegment.Line,fe*ee,0).close()),le.spot1=new go.Spot(0,fe),le.spot2=go.Spot.BottomRight,le}),go.Shape.defineFigureGenerator("Collate",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,.5*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne));var me=new go.PathFigure(.5*ee,.5*ne,!0);return fe.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)),fe.spot1=new go.Spot(.25,0),fe.spot2=new go.Spot(.75,.25),fe}),go.Shape.defineFigureGenerator("CreateRequest",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.1);var me=new go.PathFigure(0,0,!0);fe.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,le*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,(1-le)*ne)),fe}),go.Shape.defineFigureGenerator("Database",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=we*.1,Se=new go.PathFigure(ee,.1*ne,!0);fe.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+le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*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-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,(.5+le)*ee,0,ee,(.1-me)*ne));var ke=new go.PathFigure(ee,.1*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,ee,(.1+me)*ne,(.5+le)*ee,.2*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-le)*ee,.2*ne,0,(.1+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,ee,.2*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*ne,ee,(.2+me)*ne,(.5+le)*ee,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-le)*ee,.3*ne,0,(.2+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,ee,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.4*ne,ee,(.3+me)*ne,(.5+le)*ee,.4*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-le)*ee,.4*ne,0,(.3+me)*ne)),fe.spot1=new go.Spot(0,.4),fe.spot2=new go.Spot(1,.9),fe}),go.Shape.defineFigureGenerator("DataStorage",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,ne,ee,0,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.9*ne,.25*ee,.1*ne).close()),fe.spot1=new go.Spot(.226,0),fe.spot2=new go.Spot(.81,1),fe}),go.Shape.defineFigureGenerator("DiskStorage",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=we*.1,Se=new go.PathFigure(ee,.1*ne,!0);fe.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+le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*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-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,(.5+le)*ee,0,ee,(.1-me)*ne));var ke=new go.PathFigure(ee,.1*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,ee,(.1+me)*ne,(.5+le)*ee,.2*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-le)*ee,.2*ne,0,(.1+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,ee,.2*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*ne,ee,(.2+me)*ne,(.5+le)*ee,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-le)*ee,.3*ne,0,(.2+me)*ne)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(1,.9),fe}),go.Shape.defineFigureGenerator("Display",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.25*ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,ne,ee,0,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),fe.spot1=new go.Spot(.25,0),fe.spot2=new go.Spot(.75,1),fe}),go.Shape.defineFigureGenerator("DividedEvent",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var me=we*.2,Se=new go.PathFigure(0,.2*ne,!0);fe.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 ke=new go.PathFigure(0,le*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee,le*ne)),fe}),go.Shape.defineFigureGenerator("DividedProcess",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;(isNaN(le)||le<.1)&&(le=.1);var me=new go.PathFigure(0,0,!0);fe.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,le*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,le*ne)),fe}),go.Shape.defineFigureGenerator("Document",function(ze,ee,ne){var fe=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*ee,.4*ne,.5*ee,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(1,.6),fe}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;(isNaN(le)||le<.2)&&(le=.2);var me=new go.PathFigure(0,0,!0);fe.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(le*ee,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,ee,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,(1-le)*ne)),fe}),go.Shape.defineFigureGenerator("ExternalProcess",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var me=new go.PathFigure(.1*ee,.4*ne,!1);return fe.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)),fe.spot1=new go.Spot(.25,.25),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("File",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(.75*ee,0,!1);return fe.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)),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("Interrupt",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,.5*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne));var me=new go.PathFigure(ee,.5*ne,!1);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne));var Se=new go.PathFigure(ee,.5*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("InternalStorage",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(me)&&(me=.1);var Se=new go.PathFigure(0,0,!0);fe.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 ke=new go.PathFigure(le*ee,0,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,le*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Move,0,me*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,ee,me*ne)),fe}),go.Shape.defineFigureGenerator("Junction",function(ze,ee,ne){var fe=new go.Geometry,le=1/Math.SQRT2,me=(1-1/Math.SQRT2)/2,Se=we*.5,ke=.5,Be=new go.PathFigure(ee,ke*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,ne,ee,(ke+Se)*ne,(ke+Se)*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,ke*ne,(ke-Se)*ee,ne,0,(ke+Se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,0,0,(ke-Se)*ne,(ke-Se)*ee,0)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ee,ke*ne,(ke+Se)*ee,0,ee,(ke-Se)*ne));var Ne=new go.PathFigure((me+le)*ee,(me+le)*ne,!1);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,me*ee,me*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,me*ee,(me+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,(me+le)*ee,me*ne)),fe}),go.Shape.defineFigureGenerator("LinedDocument",function(ze,ee,ne){var fe=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),le.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 fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.75*ne)),fe.spot1=new go.Spot(.1,0),fe.spot2=new go.Spot(1,.6),fe}),go.Shape.defineFigureGenerator("LoopLimit",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("MagneticTape",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=.5,Se=new go.PathFigure(.5*ee,ne,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-le)*ee,ne,0,(me+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-le)*ne,(me-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+le)*ee,0,ee,(me-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me+.1)*ee,.9*ne,ee,(me+le)*ne,(me+le)*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)),fe.spot1=new go.Spot(.15,.15),fe.spot2=new go.Spot(.85,.8),fe}),go.Shape.defineFigureGenerator("ManualInput",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("MessageFromUser",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.7);var me=new go.PathFigure(0,0,!0);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,le*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.25);var me=new go.PathFigure(0,0,!0);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,le*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-le)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("MicroformRecording",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(1,.75),fe}),go.Shape.defineFigureGenerator("MultiDocument",function(ze,ee,ne){var fe=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.44*ne,.96*ee,.47*ne,.93*ee,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.54*ne,.86*ee,.57*ne,.83*ee,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*ee,.4*ne,.4*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0).close());var me=new go.PathFigure(.1*ee,.2*ne,!1);return fe.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)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.8,.77),fe}),go.Shape.defineFigureGenerator("MultiProcess",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.1*ee,.1*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*ne).close());var me=new go.PathFigure(.2*ee,.1*ne,!1);return fe.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)),fe.spot1=new go.Spot(0,.2),fe.spot2=new go.Spot(.8,1),fe}),go.Shape.defineFigureGenerator("OfflineStorage",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.1);var me=1-le,Se=new go.PathFigure(0,0,!0);fe.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 ke=new go.PathFigure(.5*le*ee,le*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(1-.5*le)*ee,le*ne)),fe}),go.Shape.defineFigureGenerator("OffPageConnector",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(.75,1),fe}),go.Shape.defineFigureGenerator("Or",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=.5,Se=new go.PathFigure(ee,me*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,ne,ee,(me+le)*ne,(me+le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-le)*ee,ne,0,(me+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-le)*ne,(me-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+le)*ee,0,ee,(me-le)*ne));var ke=new go.PathFigure(ee,.5*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,.5*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),fe}),go.Shape.defineFigureGenerator("PaperTape",function(ze,ee,ne){var fe=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*ne,.5*ee,.6*ne,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*ee,.4*ne,.5*ee,ne).close()),fe.spot1=new go.Spot(0,.49),fe.spot2=new go.Spot(1,.75),fe}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(me)&&(me=.3);var Se=new go.PathFigure(0,0,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(me)&&(me=.3);var Se=new go.PathFigure(0,0,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("Procedure",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.1);var me=new go.PathFigure(0,0,!0);fe.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-le)*ee,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,le*ee,ne)),fe}),go.Shape.defineFigureGenerator("Process",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.1);var me=new go.PathFigure(0,0,!0);fe.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(le*ee,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ee,ne)),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("Sort",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var me=new go.PathFigure(0,.5*ne,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),fe.spot1=new go.Spot(.25,.25),fe.spot2=new go.Spot(.75,.5),fe}),go.Shape.defineFigureGenerator("Start",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.25);var me=new go.PathFigure(le*ee,0,!0);fe.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(le*ee,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ee,ne)),fe.spot1=new go.Spot(le,0),fe.spot2=new go.Spot(1-le,1),fe}),go.Shape.defineFigureGenerator("Terminator",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.25*ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*ne,.25*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ee,.5*ne,.25*ee,.5*ne)),fe.spot1=new go.Spot(.23,0),fe.spot2=new go.Spot(.77,1),fe}),go.Shape.defineFigureGenerator("TransmittalTape",function(ze,ee,ne){var fe=new go.Geometry,le=ze?ze.parameter1:NaN;isNaN(le)&&(le=.1);var me=new go.PathFigure(0,0,!0);return fe.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-le)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,(1-le)*ne).close()),fe.spot1=go.Spot.TopLeft,fe}),go.Shape.defineFigureGenerator("AndGate",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=new go.PathFigure(0,0,!0);return fe.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+le)*ee,0,ee,(.5-le)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,(.5+le)*ne,(.5+le)*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(.55,1),fe}),go.Shape.defineFigureGenerator("Buffer",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("Clock",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=.5,Se=new go.PathFigure(ee,me*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,ne,ee,(me+le)*ne,(me+le)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-le)*ee,ne,0,(me+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-le)*ne,(me-le)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+le)*ee,0,ee,(me-le)*ne));var ke=new go.PathFigure(ee,me*ne,!1);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee,me*ne));var Be=new go.PathFigure(.8*ee,.75*ne,!1);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.75*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.75*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.75*ne)),fe}),go.Shape.defineFigureGenerator("Ground",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.3*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,ne)),fe}),go.Shape.defineFigureGenerator("Inverter",function(ze,ee,ne){var fe=new go.Geometry,le=we*.1,me=.1,Se=.9,ke=.5,Be=new go.PathFigure(.8*ee,.5*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,0,0)),Be.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*ne));var Ne=new go.PathFigure((Se+me)*ee,ke*ne,!0);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,(Se+le)*ee,(ke-me)*ne,(Se+me)*ee,(ke-le)*ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.4,.75),fe}),go.Shape.defineFigureGenerator("NandGate",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=we*.4,Se=we*.1,ke=.1,Be=.9,Ne=.5,Ke=new go.PathFigure(.8*ee,.5*ne,!0);fe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,ne,.8*ee,(.5+me)*ne,(.4+le)*ee,ne)),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,.4*ee,0)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(.4+le)*ee,0,.8*ee,(.5-me)*ne));var $e=new go.PathFigure((Be+ke)*ee,Ne*ne,!0);return fe.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne+ke)*ne,(Be+ke)*ee,(Ne+Se)*ne,(Be+Se)*ee,(Ne+ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke)*ee,Ne*ne,(Be-Se)*ee,(Ne+ke)*ne,(Be-ke)*ee,(Ne+Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-ke)*ne,(Be-ke)*ee,(Ne-Se)*ne,(Be-Se)*ee,(Ne-ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke)*ee,Ne*ne,(Be+Se)*ee,(Ne-ke)*ne,(Be+ke)*ee,(Ne-Se)*ne)),fe.spot1=new go.Spot(0,.05),fe.spot2=new go.Spot(.55,.95),fe}),go.Shape.defineFigureGenerator("NorGate",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*le,Se=0,ke=.5,Be=new go.PathFigure(.8*ee,.5*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*ne,.25*ee,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(Se+me)*ee,(ke-le)*ne,.7*ee,(ke-me)*ne)),le=.1,me=we*.1,Se=.9,ke=.5;var Ne=new go.PathFigure((Se-le)*ee,ke*ne,!0);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne)),fe.spot1=new go.Spot(.2,.25),fe.spot2=new go.Spot(.6,.75),fe}),go.Shape.defineFigureGenerator("OrGate",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*le,Se=0,ke=.5,Be=new go.PathFigure(0,0,!0);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,(Se+me+me)*ee,(ke-le)*ne,.8*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*ee,(ke+me)*ne,(Se+me+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*ne,.25*ee,.25*ne).close()),fe.spot1=new go.Spot(.2,.25),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("XnorGate",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*le,Se=.2,ke=.5,Be=new go.PathFigure(.1*ee,0,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,ne,.35*ee,.25*ne,.35*ee,.75*ne));var Ne=new go.PathFigure(.8*ee,.5*ne,!0);fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,ne,.7*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*ne,.45*ee,.25*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(Se+me)*ee,(ke-le)*ne,.7*ee,(ke-me)*ne)),le=.1,me=we*.1,Se=.9,ke=.5;var Ke=new go.PathFigure((Se-le)*ee,ke*ne,!0);return fe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne)),fe.spot1=new go.Spot(.4,.25),fe.spot2=new go.Spot(.65,.75),fe}),go.Shape.defineFigureGenerator("XorGate",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*le,Se=.2,ke=.5,Be=new go.PathFigure(.1*ee,0,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,ne,.35*ee,.25*ne,.35*ee,.75*ne));var Ne=new go.PathFigure(.2*ee,0,!0);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,(Se+me)*ee,(ke-le)*ne,.9*ee,(ke-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,ne,.9*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*ne,.45*ee,.25*ne).close()),fe.spot1=new go.Spot(.4,.25),fe.spot2=new go.Spot(.8,.75),fe}),go.Shape.defineFigureGenerator("Capacitor",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),fe}),go.Shape.defineFigureGenerator("Resistor",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.5*ne,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*ne)),fe}),go.Shape.defineFigureGenerator("Inductor",function(ze,ee,ne){var fe=new go.Geometry,le=we*.1,me=.1,Se=.1,ke=.5,Be=new go.PathFigure((Se-le*.5)*ee,ne,!1);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-le)*ee,ne,(Se-me)*ee,0)),Se=.3,Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+le)*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-le)*ee,ne,(Se-me)*ee,0)),Se=.5,Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+le)*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-le)*ee,ne,(Se-me)*ee,0)),Se=.7,Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+le)*ee,ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-le)*ee,ne,(Se-me)*ee,0)),Se=.9,Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le*.5)*ee,ne,(Se+me)*ee,0,(Se+le)*ee,ne)),fe}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ze,ee,ne){var fe=new go.Geometry,le=we*.5,me=.5,Se=.5,ke=.5,Be=new go.PathFigure((Se-me)*ee,ke*ne,!1);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,(Se+le)*ee,(ke-me)*ne,(Se+me)*ee,(ke-le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Move,(Se-me+.1)*ee,ke*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me-.1)*ee,ke*ne,Se*ee,(ke-me)*ne,Se*ee,(ke+me)*ne)),fe}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.75*ne,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Move,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),fe}),go.Shape.defineFigureGenerator("Diode",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("Wifi",function(ze,ee,ne){var fe=new go.Geometry,le=ee,me=ne;ee=ee*.38,ne=ne*.6;var Se=we*.8,ke=.8,Be=0,Ne=.5,Ke=(le-ee)/2,$e=(me-ne)/2,at=new go.PathFigure(Be*ee+Ke,(Ne+ke)*ne+$e,!0);fe.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke)*ee+Ke,Ne*ne+$e,(Be-Se)*ee+Ke,(Ne+ke)*ne+$e,(Be-ke)*ee+Ke,(Ne+Se)*ne+$e)),at.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne-ke)*ne+$e,(Be-ke)*ee+Ke,(Ne-Se)*ne+$e,(Be-Se)*ee+Ke,(Ne-ke)*ne+$e)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke+Se*.5)*ee+Ke,Ne*ne+$e,Be*ee+Ke,(Ne-ke)*ne+$e,(Be-ke+Se*.5)*ee+Ke,(Ne-Se)*ne+$e)),at.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne+ke)*ne+$e,(Be-ke+Se*.5)*ee+Ke,(Ne+Se)*ne+$e,Be*ee+Ke,(Ne+ke)*ne+$e).close()),Se=we*.4,ke=.4,Be=.2,Ne=.5;var lt=new go.PathFigure(Be*ee+Ke,(Ne+ke)*ne+$e,!0);fe.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke)*ee+Ke,Ne*ne+$e,(Be-Se)*ee+Ke,(Ne+ke)*ne+$e,(Be-ke)*ee+Ke,(Ne+Se)*ne+$e)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne-ke)*ne+$e,(Be-ke)*ee+Ke,(Ne-Se)*ne+$e,(Be-Se)*ee+Ke,(Ne-ke)*ne+$e)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke+Se*.5)*ee+Ke,Ne*ne+$e,Be*ee+Ke,(Ne-ke)*ne+$e,(Be-ke+Se*.5)*ee+Ke,(Ne-Se)*ne+$e)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne+ke)*ne+$e,(Be-ke+Se*.5)*ee+Ke,(Ne+Se)*ne+$e,Be*ee+Ke,(Ne+ke)*ne+$e).close()),Se=we*.2,ke=.2,Be=.5,Ne=.5;var Tt=new go.PathFigure((Be-ke)*ee+Ke,Ne*ne+$e,!0);fe.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne-ke)*ne+$e,(Be-ke)*ee+Ke,(Ne-Se)*ne+$e,(Be-Se)*ee+Ke,(Ne-ke)*ne+$e)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke)*ee+Ke,Ne*ne+$e,(Be+Se)*ee+Ke,(Ne-ke)*ne+$e,(Be+ke)*ee+Ke,(Ne-Se)*ne+$e)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne+ke)*ne+$e,(Be+ke)*ee+Ke,(Ne+Se)*ne+$e,(Be+Se)*ee+Ke,(Ne+ke)*ne+$e)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ke)*ee+Ke,Ne*ne+$e,(Be-Se)*ee+Ke,(Ne+ke)*ne+$e,(Be-ke)*ee+Ke,(Ne+Se)*ne+$e)),Se=we*.4,ke=.4,Be=.8,Ne=.5;var nt=new go.PathFigure(Be*ee+Ke,(Ne-ke)*ne+$e,!0);fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke)*ee+Ke,Ne*ne+$e,(Be+Se)*ee+Ke,(Ne-ke)*ne+$e,(Be+ke)*ee+Ke,(Ne-Se)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne+ke)*ne+$e,(Be+ke)*ee+Ke,(Ne+Se)*ne+$e,(Be+Se)*ee+Ke,(Ne+ke)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke-Se*.5)*ee+Ke,Ne*ne+$e,Be*ee+Ke,(Ne+ke)*ne+$e,(Be+ke-Se*.5)*ee+Ke,(Ne+Se)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne-ke)*ne+$e,(Be+ke-Se*.5)*ee+Ke,(Ne-Se)*ne+$e,Be*ee+Ke,(Ne-ke)*ne+$e).close()),Se=we*.8,ke=.8,Be=1,Ne=.5;var Ut=new go.PathFigure(Be*ee+Ke,(Ne-ke)*ne+$e,!0);return fe.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke)*ee+Ke,Ne*ne+$e,(Be+Se)*ee+Ke,(Ne-ke)*ne+$e,(Be+ke)*ee+Ke,(Ne-Se)*ne+$e)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne+ke)*ne+$e,(Be+ke)*ee+Ke,(Ne+Se)*ne+$e,(Be+Se)*ee+Ke,(Ne+ke)*ne+$e)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ke-Se*.5)*ee+Ke,Ne*ne+$e,Be*ee+Ke,(Ne+ke)*ne+$e,(Be+ke-Se*.5)*ee+Ke,(Ne+Se)*ne+$e)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee+Ke,(Ne-ke)*ne+$e,(Be+ke-Se*.5)*ee+Ke,(Ne-Se)*ne+$e,Be*ee+Ke,(Ne-ke)*ne+$e).close()),fe}),go.Shape.defineFigureGenerator("Email",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,0,!1);return fe.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)),fe}),go.Shape.defineFigureGenerator("Ethernet",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.35*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.65*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ee,0).close());var me=new go.PathFigure(.1*ee,ne,!0,!0);fe.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);fe.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 ke=new go.PathFigure(0,.5*ne,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,.75*ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.6*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.6*ne)),fe}),go.Shape.defineFigureGenerator("Power",function(ze,ee,ne){var fe=new go.Geometry,le=we*.4,me=.4,Se=.5,ke=.5,Be=de(),Ne=de(),Ke=de(),$e=de();Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.5,Be,Be,Ne,Ke,$e);var at=ae(Ne.x,Ne.y),lt=new go.PathFigure(Ne.x*ee,Ne.y*ne,!0);fe.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,Ke.x*ee,Ke.y*ne,$e.x*ee,$e.y*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,(Se-le)*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne)),Re(Se-me,ke,Se-me,ke-le,Se-le,ke-me,Se,ke-me,.5,Ke,$e,Ne,Be,Be),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*ee,Ne.y*ne,Ke.x*ee,Ke.y*ne,$e.x*ee,$e.y*ne)),le=we*.3,me=.3,Re(Se-me,ke,Se-me,ke-le,Se-le,ke-me,Se,ke-me,.5,Ke,$e,Ne,Be,Be),lt.add(new go.PathSegment(go.PathSegment.Line,Ne.x*ee,Ne.y*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,ke*ne,$e.x*ee,$e.y*ne,Ke.x*ee,Ke.y*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+me)*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,ke*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Re(Se,ke-me,Se+le,ke-me,Se+me,ke-le,Se+me,ke,.5,Be,Be,Ne,Ke,$e),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*ee,Ne.y*ne,$e.x*ee,$e.y*ne,Ke.x*ee,Ke.y*ne).close());var lt=new go.PathFigure(.45*ee,0,!0);return fe.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.5*ne)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*ee,0).close()),Te(Be),Te(Ne),Te(Ke),Te($e),Te(at),fe.spot1=new go.Spot(.25,.45),fe.spot2=new go.Spot(.75,.8),fe}),go.Shape.defineFigureGenerator("Fallout",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne/2,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,180,360,ee/2,ne/2,ee/2,ne/2));function me(Se,ke,Be){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+ke)*ee,(.8+Be)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+ke)*ee,(.5+Be)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+ke)*ee,(.5+Be)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+ke)*ee,(.8+Be)*ne).close())}return me(le,0,0),me(le,.4,0),me(le,.2,-.3),fe}),go.Shape.defineFigureGenerator("IrritationHazard",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.2*ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),fe.spot1=new go.Spot(.3,.3),fe.spot2=new go.Spot(.7,.7),fe}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.37*ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.11*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.04*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.49*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.37*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.86*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.91*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ee,.78*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.44*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.56*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),fe}),go.Shape.defineFigureGenerator("FireHazard",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.1*ee,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.29*ee,0,-.25*ee,.63*ne,.45*ee,.44*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.51*ee,.42*ne,.48*ee,.17*ne,.54*ee,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.59*ee,.18*ne,.59*ee,.29*ne,.58*ee,.28*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,.6*ne,.8*ee,.34*ne,.88*ee,.43*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.88*ee,.31*ne,.87*ee,.48*ne,.88*ee,.43*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,ne,1.17*ee,.76*ne,.82*ee,.8*ne).close()),fe.spot1=new go.Spot(.07,.445),fe.spot2=new go.Spot(.884,.958),fe}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=0,Se=0,ke=le*we,Be=.4*Math.SQRT2/2+.5,Ne=.5-.5*Math.SQRT2/2,Ke=1,$e=.5,at=.5,lt=0,Tt=new go.PathFigure(Be*ee,(1-Ne)*ne,!1);return fe.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ee,$e*ne,Ke*ee,.7*ne,Ke*ee,$e*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(at+me)*ee,(lt+me)*ne,(.5+le+me)*ee,(.5-ke+me)*ne,(.5+ke+me)*ee,(.5-le+me)*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+me)*ee,(.5+Se)*ne,(.5-ke+me)*ee,(.5-le+Se)*ne,(.5-le+me)*ee,(.5-ke+Se)*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+me)*ee,.9*ne,(.5-le+me)*ee,(.5+ke+Se)*ne,(.5-ke+me)*ee,.9*ne)),Tt.add(new go.PathSegment(go.PathSegment.Move,(.25+me)*ee,.8*ne)),Tt.add(new go.PathSegment(go.PathSegment.Line,(.35+me)*ee,.9*ne)),Tt.add(new go.PathSegment(go.PathSegment.Line,(.2+me)*ee,.95*ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Move,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);fe.add(le);var me=new go.PathFigure(ee,ne,!1);fe.add(me);var Se=new go.PathFigure(0,.5*ne,!1);return fe.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)),fe}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne).close()),fe}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.2*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var le=new go.PathFigure(0,.2*ne,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),fe}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.7*ee,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,0,.6*ee,.5*ne,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0)),le.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 fe.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)),fe}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);fe.add(le);var me=new go.PathFigure(.335*ee,(1-.555)*ne,!0);fe.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,ke=.5,Be=Se,Ne=Math.PI/4,Ke=4*(1-Math.cos(Ne))/(3*Math.sin(Ne)),$e=Ke*.5,at=Se,lt=Se,Tt=Ke*at,nt=Ke*lt;me.add(new go.PathSegment(go.PathSegment.Bezier,(ke-at)*ee,Be*ne,(ke-(Tt+at)/2)*ee,(Be+(lt+nt)/2)*ne,(ke-at)*ee,(Be+nt)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Be-lt)*ne,(ke-at)*ee,(Be-nt)*ne,(ke-Tt)*ee,(Be-lt)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ke+at)*ee,Be*ne,(ke+Tt)*ee,(Be-lt)*ne,(ke+at)*ee,(Be-nt)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ee,(1-.595)*ne,(ke+at)*ee,(Be+nt)*ne,(ke+(Tt+at)/2)*ee,(Be+(lt+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 Ut=new go.PathFigure(.2*ee,ne,!1);fe.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.8*ne));var kt=new go.PathFigure(.8*ee,ne,!1);return fe.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.8*ne)),fe}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.1*ee,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,ne).close());var me=new go.PathFigure(.2*ee,.2*ne,!1);return fe.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)),fe}),go.Shape.defineFigureGenerator("BpmnEventError",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);fe.add(le);var me=new go.PathFigure(ee,ne,!1);fe.add(me);var Se=new go.PathFigure(.1*ee,ne,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("Caution",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.05*ee,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.8*ne,0,ne,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.1*ne,.5*ee,0,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,ne,ee,ne,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ee,ne));var me=.05;return le.add(new go.PathSegment(go.PathSegment.Move,(.5-me)*ee,.875*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ee,.875*ne,me*ee,me*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.325*ne,.575*ee,.725*ne,.625*ee,.375*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.75*ne,.375*ee,.375*ne,.425*ee,.725*ne)),fe}),go.Shape.defineFigureGenerator("Recycle",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.45*ee,.95*ne,!1);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.185*ee,.85*ne,.17*ee,.95*ne,.15*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.235*ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.625*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.575*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ee,.95*ne,0,.675*ne,0,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.45*ee,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.775*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.22*ee,.775*ne));var me=new go.PathFigure(.475*ee,.2*ne,!1);fe.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 fe.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)),fe}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*.5,Se=new go.PathFigure(ee,le*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*ee,ne,ee,(le+me)*ne,(le+me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ne,(le-me)*ee,ne,0,(le+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*ee,0,0,(le-me)*ne,(le-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,le*ne,(le+me)*ee,0,ee,(le-me)*ne));var ke=new go.PathFigure(le*ee,0,!1);return fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,le*ee,.15*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,le*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,le*ee,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,0,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.15*ee,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,ee,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*ee,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,le*ee,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.58*ee,.1*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,le*ee,le*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.78*ee,.54*ne)),fe}),go.Shape.defineFigureGenerator("Package",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.15*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,.15*ne,!0);return fe.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()),fe.spot1=new go.Spot(0,.1),fe.spot2=new go.Spot(1,1),fe}),go.Shape.defineFigureGenerator("Class",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,.2*ne,!1);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne).close());var Se=new go.PathFigure(0,.5*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("Component",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close());var me=new go.PathFigure(0,.2*ne,!0);fe.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 fe.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()),fe}),go.Shape.defineFigureGenerator("Boat Shipment",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.15*ee,.6*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne));var me=new go.PathFigure(.15*ee,.6*ne,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),fe}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),fe}),go.Shape.defineFigureGenerator("Workcell",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("Supermarket",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Move,ee,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Move,ee,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),fe}),go.Shape.defineFigureGenerator("TruckShipment",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(ee,.8*ne,!0);fe.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,ke=we*.1,Be=.2,Ne=.9,Ke=new go.PathFigure((Be-Se)*ee,Ne*ne,!0);fe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-Se)*ne,(Be-Se)*ee,(Ne-ke)*ne,(Be-ke)*ee,(Ne-Se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Se)*ee,Ne*ne,(Be+ke)*ee,(Ne-Se)*ne,(Be+Se)*ee,(Ne-ke)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne+Se)*ne,(Be+Se)*ee,(Ne+ke)*ne,(Be+ke)*ee,(Ne+Se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Se)*ee,Ne*ne,(Be-ke)*ee,(Ne+Se)*ne,(Be-Se)*ee,(Ne+ke)*ne).close()),Se=.1,ke=we*.1,Be=.8,Ne=.9;var $e=new go.PathFigure((Be-Se)*ee,Ne*ne,!0);return fe.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne-Se)*ne,(Be-Se)*ee,(Ne-ke)*ne,(Be-ke)*ee,(Ne-Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Se)*ee,Ne*ne,(Be+ke)*ee,(Ne-Se)*ne,(Be+Se)*ee,(Ne-ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Be*ee,(Ne+Se)*ne,(Be+Se)*ee,(Ne+ke)*ne,(Be+ke)*ee,(Ne+Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Se)*ee,Ne*ne,(Be-ke)*ee,(Ne+Se)*ne,(Be-Se)*ee,(Ne+ke)*ne).close()),fe}),go.Shape.defineFigureGenerator("KanbanPost",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.2*ee,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),fe}),go.Shape.defineFigureGenerator("Forklift",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0));var me=new go.PathFigure(0,.5*ne,!0);fe.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);fe.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 ke=new go.PathFigure(.5*ee,.7*ne,!1);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne));var Be=.1,Ne=we*.1,Ke=.1,$e=.9,at=new go.PathFigure((Ke-Be)*ee,$e*ne,!0);fe.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ee,($e-Be)*ne,(Ke-Be)*ee,($e-Ne)*ne,(Ke-Ne)*ee,($e-Be)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Be)*ee,$e*ne,(Ke+Ne)*ee,($e-Be)*ne,(Ke+Be)*ee,($e-Ne)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ee,($e+Be)*ne,(Ke+Be)*ee,($e+Ne)*ne,(Ke+Ne)*ee,($e+Be)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Be)*ee,$e*ne,(Ke-Ne)*ee,($e+Be)*ne,(Ke-Be)*ee,($e+Ne)*ne)),Be=.1,Ne=we*.1,Ke=.4,$e=.9;var lt=new go.PathFigure((Ke-Be)*ee,$e*ne,!0);return fe.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ee,($e-Be)*ne,(Ke-Be)*ee,($e-Ne)*ne,(Ke-Ne)*ee,($e-Be)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Be)*ee,$e*ne,(Ke+Ne)*ee,($e-Be)*ne,(Ke+Be)*ee,($e-Ne)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ee,($e+Be)*ne,(Ke+Be)*ee,($e+Ne)*ne,(Ke+Ne)*ee,($e+Be)*ne)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Be)*ee,$e*ne,(Ke-Ne)*ee,($e+Be)*ne,(Ke-Be)*ee,($e+Ne)*ne)),fe}),go.Shape.defineFigureGenerator("RailShipment",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.1*ee,.4*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.4*ne).close());var me=new go.PathFigure(.45*ee,.7*ne,!1);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*ne));var Se=new go.PathFigure(.55*ee,.4*ne,!0);fe.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 Ke=.05,$e=we*.05,at=.175,lt=.95,ke=new go.PathFigure((at-Ke)*ee,lt*ne,!0);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt-Ke)*ne,(at-Ke)*ee,(lt-$e)*ne,(at-$e)*ee,(lt-Ke)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(at+Ke)*ee,lt*ne,(at+$e)*ee,(lt-Ke)*ne,(at+Ke)*ee,(lt-$e)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt+Ke)*ne,(at+Ke)*ee,(lt+$e)*ne,(at+$e)*ee,(lt+Ke)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(at-Ke)*ee,lt*ne,(at-$e)*ee,(lt+Ke)*ne,(at-Ke)*ee,(lt+$e)*ne));var Ke=.05,$e=we*.05,at=.375,lt=.95,Be=new go.PathFigure((at-Ke)*ee,lt*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt-Ke)*ne,(at-Ke)*ee,(lt-$e)*ne,(at-$e)*ee,(lt-Ke)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(at+Ke)*ee,lt*ne,(at+$e)*ee,(lt-Ke)*ne,(at+Ke)*ee,(lt-$e)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt+Ke)*ne,(at+Ke)*ee,(lt+$e)*ne,(at+$e)*ee,(lt+Ke)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(at-Ke)*ee,lt*ne,(at-$e)*ee,(lt+Ke)*ne,(at-Ke)*ee,(lt+$e)*ne));var Ke=.05,$e=we*.05,at=.625,lt=.95,Ne=new go.PathFigure((at-Ke)*ee,lt*ne,!0);fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt-Ke)*ne,(at-Ke)*ee,(lt-$e)*ne,(at-$e)*ee,(lt-Ke)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(at+Ke)*ee,lt*ne,(at+$e)*ee,(lt-Ke)*ne,(at+Ke)*ee,(lt-$e)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt+Ke)*ne,(at+Ke)*ee,(lt+$e)*ne,(at+$e)*ee,(lt+Ke)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(at-Ke)*ee,lt*ne,(at-$e)*ee,(lt+Ke)*ne,(at-Ke)*ee,(lt+$e)*ne));var Ke=.05,$e=we*.05,at=.825,lt=.95,Tt=new go.PathFigure((at-Ke)*ee,lt*ne,!0);fe.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt-Ke)*ne,(at-Ke)*ee,(lt-$e)*ne,(at-$e)*ee,(lt-Ke)*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(at+Ke)*ee,lt*ne,(at+$e)*ee,(lt-Ke)*ne,(at+Ke)*ee,(lt-$e)*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,at*ee,(lt+Ke)*ne,(at+Ke)*ee,(lt+$e)*ne,(at+$e)*ee,(lt+Ke)*ne)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(at-Ke)*ee,lt*ne,(at-$e)*ee,(lt+Ke)*ne,(at-Ke)*ee,(lt+$e)*ne).close());var nt=new go.PathFigure(0,ne,!1);return fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),fe}),go.Shape.defineFigureGenerator("Warehouse",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,.2*ne,!1);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne).close());var Se=new go.PathFigure(.15*ee,ne,!0);fe.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 ke=.05,Be=we*.05,Ne=.35,Ke=.775,$e=new go.PathFigure((Ne-ke)*ee,Ke*ne,!0);return fe.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Ke-ke)*ne,(Ne-ke)*ee,(Ke-Be)*ne,(Ne-Be)*ee,(Ke-ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+ke)*ee,Ke*ne,(Ne+Be)*ee,(Ke-ke)*ne,(Ne+ke)*ee,(Ke-Be)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Ke+ke)*ne,(Ne+ke)*ee,(Ke+Be)*ne,(Ne+Be)*ee,(Ke+ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-ke)*ee,Ke*ne,(Ne-Be)*ee,(Ke+ke)*ne,(Ne-ke)*ee,(Ke+Be)*ne).close()),fe}),go.Shape.defineFigureGenerator("ControlCenter",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne).close()),fe}),go.Shape.defineFigureGenerator("Bluetooth",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.75*ne,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),fe}),go.Shape.defineFigureGenerator("Bookmark",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*ne)),fe}),go.Shape.defineFigureGenerator("Bookmark",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*ne)),fe}),go.Shape.defineFigureGenerator("Globe",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,.75*ee,0,ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,.75*ne,.75*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*ee,ne,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,.25*ne,.25*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,.15*ee,.25*ne,.15*ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.85*ee,.75*ne,.85*ee,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.15*ne,.35*ee,.3*ne,.65*ee,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.85*ne,.35*ee,.7*ne,.65*ee,.7*ne)),fe}),go.Shape.defineFigureGenerator("Wave",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.25*ne,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.25*ne,.1*ee,0,.2*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.25*ne,.425*ee,.5*ne,.575*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.25*ne,.8*ee,0,.9*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.75*ne,.1*ee,.5*ne,.2*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.75*ne,.425*ee,ne,.575*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.75*ne,.8*ee,.5*ne,.9*ee,.5*ne)),fe}),go.Shape.defineFigureGenerator("Operator",function(ze,ee,ne){var fe=new go.Geometry,le=.3,me=we*.3,Se=.5,ke=.7,Be=new go.PathFigure((Se-le)*ee,ke*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne));var Ne=new go.PathFigure(0,.7*ne,!1);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee,.7*ne,0,0,ee,0)),fe}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.5*ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.65*ee,.3*ne,.65*ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.35*ee,.5*ne,.35*ee,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*ee,.6*ne,.1*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.2*ee,ne,.35*ee,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,ne,.7*ee,.6*ne,.9*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.8*ee,ne,.65*ee,.95*ne)),fe}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee,0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,ne,0,ne,.4*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.4*ne,.8*ee,ne,.85*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),fe}),go.Shape.defineFigureGenerator("Battery",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.1*ne));var me=new go.PathFigure(0,.6*ne,!1);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.4*ne)),fe}),go.Shape.defineFigureGenerator("Delete",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*.5,Se=.5,ke=.5,Be=new go.PathFigure((Se-le)*ee,ke*ne,!0);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne));var Ne=new go.PathFigure(.15*ee,.5*ne,!1);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.5*ne)),fe}),go.Shape.defineFigureGenerator("Flag",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.1*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.1*ne,.15*ee,0,.35*ee,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,.65*ee,.2*ne,.85*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*ne,.85*ee,.6*ne,.65*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*ee,.4*ne,.15*ee,.4*ne).close()),fe}),go.Shape.defineFigureGenerator("Help",function(ze,ee,ne){var fe=new go.Geometry,le=.5,me=we*.5,Se=.5,ke=.5,Be=new go.PathFigure((Se-le)*ee,ke*ne,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne).close()),le=.05,me=we*.05,Se=.5,ke=.8;var Ne=new go.PathFigure((Se-le)*ee,ke*ne,!1);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke-le)*ne,(Se-le)*ee,(ke-me)*ne,(Se-me)*ee,(ke-le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*ee,ke*ne,(Se+me)*ee,(ke-le)*ne,(Se+le)*ee,(ke-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(ke+le)*ne,(Se+le)*ee,(ke+me)*ne,(Se+me)*ee,(ke+le)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*ee,ke*ne,(Se-me)*ee,(ke+le)*ne,(Se-le)*ee,(ke+me)*ne).close()),Ne.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,.75*ee,.475*ne,.75*ee,.225*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.35*ne,.4*ee,.2*ne,.3*ee,.25*ne)),fe}),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 fe=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.2*ee,.5*ne,!1);return fe.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)),fe}),go.Shape.defineFigureGenerator("Unlocked",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.2*ee,.5*ne,!1);return fe.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)),fe}),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 fe=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.3*ne,0,.375*ne,.05*ee,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.075*ne,.3*ee,.225*ne,.4*ee,.175*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.525*ee,.075*ne,.46*ee,.05*ne,.525*ee,.05*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.4*ne,.525*ee,.275*ne,.475*ee,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.55*ne,ee,.4*ne,ee,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.7*ne,.675*ee,.55*ne,.675*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,.85*ne,.65*ee,.7*ne,.65*ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.535*ee,ne,.61*ee,.85*ne,.61*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*ee,ne,0,ne).close()),fe}),go.Shape.defineFigureGenerator("Map",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,.2*ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),le.add(new go.PathSegment(go.PathSegment.Move,.25*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.75*ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*ne)),fe}),go.Shape.defineFigureGenerator("Eject",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.7)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var me=new go.PathFigure(0,ne*.6,!0);return fe.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()),fe}),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 fe=new go.Geometry,le=new go.PathFigure(ee*1,ne*1,!1);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.85).close());var me=new go.PathFigure(.126*ee,.85*ne,!1);fe.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);fe.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 ke=new go.PathFigure(.678*ee,.85*ne,!1);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.678*ee,.45*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.45*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.85*ne).close());var Be=new go.PathFigure(.5*ee,.1*ne,!1);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ee,.3*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ee,.3*ne).close()),fe}),go.Shape.defineFigureGenerator("Staircase",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne*1,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.15,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.15,ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),fe}),go.Shape.defineFigureGenerator("5Bars",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,ne*1,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.184,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.184,ne*(1-.184)).close());var me=new go.PathFigure(ee*.204,ne,!0);fe.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);fe.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 ke=new go.PathFigure(ee*.612,ne,!0);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.612,ne*(1-.184*3))),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.796,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.796,ne*1).close());var Be=new go.PathFigure(ee*.816,ne,!0);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.816,ne*(1-.184*4))),Be.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-.184*5))),Be.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1).close()),fe}),go.Shape.defineFigureGenerator("PC",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,0).close());var me=new go.PathFigure(ee*.055,.07*ne,!0);fe.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);fe.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 ke=new go.PathFigure(ee*.055,.18*ne,!0);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.18)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.21)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.055,ne*.21).close());var Be=new go.PathFigure(ee*1,0,!0);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.4,0)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.65)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.65).close()),fe}),go.Shape.defineFigureGenerator("Plane",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(.55*ee,ne,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.475*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.35*ee,.525*ne,0,.4*ne,.225*ee,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.475*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.2*ne,.975*ee,0,ee,.08*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.55*ee,ne).close()),fe}),go.Shape.defineFigureGenerator("Key",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*1,ne*.5,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.6,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.65,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.7,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.85,.575*ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.6*ne).close()),le.add(new go.PathSegment(go.PathSegment.Move,.17*ee,.425*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ee,.5*ne,.075*ee,.075*ne).close()),fe}),go.Shape.defineFigureGenerator("FilmTape",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(0,0,!1);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*0,ee*.3,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.08,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.08,ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1));var me=new go.PathFigure(0,0,!1);fe.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);fe.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 ke=new go.PathFigure(ee*(.11+.24133333*1+.028*1),ne*.1,!1);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*1),ne*.8).close());var Be=new go.PathFigure(ee*(.11+.24133333*2+.028*2),ne*.1,!1);return fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),ne*.1)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),ne*.8)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*2),ne*.8).close()),fe}),go.Shape.defineFigureGenerator("FloppyDisk",function(ze,ee,ne){var fe=new go.Geometry,le=8,me=le*we,Se=new go.PathFigure(le,0,!1);fe.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-le)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-le,ne,ee,ne-me,ee-me,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,me,ne,0,ne-me)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le,0,0,me,me,0).close());var ke=new go.PathFigure(ee*.83,0,!1);fe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.83,ne*.3)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*.3)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*0).close());var Be=new go.PathFigure(ee*.83,ne*1,!1);fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.83,ne*.5)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*.5)),Be.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*1).close());var Ne=new go.PathFigure(ee*.78,ne*.05,!1);return fe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.05)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.25)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.78,ne*.25).close()),fe}),go.Shape.defineFigureGenerator("SpeechBubble",function(ze,ee,ne){var fe=ze?ze.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=15),fe=Math.min(fe,ee/3),fe=Math.min(fe,ne/3);var le=fe*we,me=ne*.8,Se=new go.Geometry,ke=new go.PathFigure(fe,0,!0);return Se.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee-fe,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee,fe,ee-le,0,ee,le)),ke.add(new go.PathSegment(go.PathSegment.Line,ee,me-fe)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee-fe,me,ee,me-le,ee-le,me)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.7,me)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.55,me)),ke.add(new go.PathSegment(go.PathSegment.Line,fe,me)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,me-fe,le,me,0,me-le)),ke.add(new go.PathSegment(go.PathSegment.Line,0,fe)),ke.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,le,le,0).close()),le>1?(Se.spot1=new go.Spot(0,0,le,le),Se.spot2=new go.Spot(1,.8,-le,-le)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*0,ne*.45,!0);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*.45).close());var me=new go.PathFigure(ee*1,ne*.55,!0);return fe.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()),fe}),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 fe=new go.Geometry,le=new go.PathFigure(ee*0,ne*.1,!1);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*.9).close());var me=new go.PathFigure(ee*.1,ne*.2,!0);fe.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 fe.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()),fe}),go.Shape.defineFigureGenerator("Beaker",function(ze,ee,ne){var fe=new go.Geometry,le=15,me=le*we,Se=new go.PathFigure(ee*.62,ne*.475,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-le,ne,ee,ne-me,ee-me,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,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?(fe.spot1=new go.Spot(0,0,me,me),fe.spot2=new go.Spot(1,1,-me,-me)):(fe.spot1=go.Spot.TopLeft,fe.spot2=go.Spot.BottomRight),fe}),go.Shape.defineFigureGenerator("Download",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*0,ne*1,!0);fe.add(le);var me=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close());var Se=new go.PathFigure(ee*.4,ne*0,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("Bin",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*0,ne*1,!0);fe.add(le);var me=.1/.3;return le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close()),fe}),go.Shape.defineFigureGenerator("Upload",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*0,ne*1,!0);fe.add(le);var me=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close());var Se=new go.PathFigure(ee*.5,ne*0,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("EmptyDrink",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*.15,ne*0,!1);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.85,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1).close()),fe}),go.Shape.defineFigureGenerator("Drink",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*.15,ne*0,!1);fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.85,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1).close());var me=new go.PathFigure(ee*.235,ne*.28,!0);return fe.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()),fe}),go.Shape.defineFigureGenerator("4Arrows",function(ze,ee,ne){var fe=new go.Geometry,le=new go.PathFigure(ee*.5,ne*0,!0);return fe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.25).close()),fe}),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 Ge={},xe="5.0",ae={},de=null,Te=!1,Ee=!1,Re=null,je=!1,Ze=null,we=null,it=0;it<arguments.length;it++){var Je=arguments[it];if(Je!==null)switch(typeof Je){case"number":xe=Je.toFixed(1);break;case"string":Je.match(new RegExp("^[0-9]\\.[0-9]+$"))?xe=Je:Re=Je;break;case"object":typeof Je.is3D!="undefined"?de=Je:ae=Je;break;case"boolean":Te=Je,Ee=!0;break}}de===null&&(de={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Ee&&(Te=!0)),Re!==null&&ae.id===void 0&&(ae.id=Re);var Ye="",st="",ht=!1,Lt=null,ze=null,ee=null,ne=!1,fe=null,le=null,me=null,Se=null,ke=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Be=function(zt){return parseFloat(zt)>4?parseFloat(zt):5};Ge.setHTML5Codebase=function(zt,sn){we=zt,Bt(zt,sn)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(zt,sn){var Mn=parseFloat(zt);if(Mn!==NaN&&Mn<5){console.log("The GeoGebra HTML5 codebase version "+Mn+" is deprecated. Using version latest instead.");return}Ze=zt,qe(zt,sn)},Ge.getHTML5CodebaseVersion=function(){return ze},Ge.getParameters=function(){return ae},Ge.setFontsCSSURL=function(zt){Se=zt},Ge.setGiacJSURL=function(zt){},Ge.setJNLPFile=function(zt){Ye=zt},Ge.setJNLPBaseDir=function(zt){},Ge.inject=function(){function zt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var sn="auto",Mn=ae.id,fi,Rn=!1,li=0;li<arguments.length;li++){var Ot=arguments[li];typeof Ot=="string"?(Ot=Ot.toLowerCase(),Ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?sn=Ot:Mn=arguments[li]):typeof Ot=="boolean"?Rn=Ot:Ot instanceof HTMLElement&&(fi=Ot)}kn();function kn(){if(!je){setTimeout(kn,200);return}sn=mn(sn);var $n=fi||document.getElementById(Mn);if(!$n){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet($n,!1),ae.width===void 0&&$n.clientWidth&&(ae.width=$n.clientWidth),ae.height===void 0&&$n.clientHeight&&(ae.height=$n.clientHeight),!(ae.width&&ae.height)&&sn==="html5"&&(delete ae.width,delete ae.height),Lt=sn,sn==="screenshot")kt($n,ae);else{var xi=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?xi=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(xi=(!Ne()||zt())&&Ke()),xi?(Lt="screenshot",nn($n,ae,Rn,sn)):Ut($n,ae,Rn)}}};function Ne(){try{return window.self!==window.top}catch(zt){return!0}}function Ke(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return de},Ge.isJavaInstalled=function(){return!1};var $e=function(zt){var sn=function(li){var Ot=JSON.parse(li),kn=function(xn){return xn.type=="G"||xn.type=="E"},$n=Ot.elements?Ot.elements.filter(kn)[0]:Ot;if(!$n||!$n.url){Mn();return}ae.fileName=$n.url,at($n.settings||{}),de.is3D=!0;var xi="https://www.geogebra.org/images/";Ge.setPreviewImage(fe||$n.previewUrl,xi+"GeoGebra_loading.png",xi+"applet_play.png"),zt()},Mn=function(){ae.onError&&ae.onError(),Cn("Error: Fetching material (id "+ae.material_id+") failed.",ae)},fi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Rn="/materials/"+ae.material_id+"?scope=basic";lt("https://"+fi+"/api/proxy.php?path="+encodeURIComponent(Rn),sn,Mn)};function at(zt){var sn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Mn){zt[Mn]=!!zt[Mn]}),sn.forEach(function(Mn){ae[Mn]===void 0&&zt[Mn]!==void 0&&(ae[Mn]=zt[Mn])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function lt(zt,sn,Mn){var fi=new XMLHttpRequest;fi.open("GET",zt),fi.onload=function(){sn(fi.responseText)},fi.onerror=Mn,fi.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Lt},Ge.setPreviewImage=function(zt,sn,Mn){fe=zt,le=sn,me=Mn},Ge.removeExistingApplet=function(zt,sn){var Mn;typeof zt=="string"&&(zt=document.getElementById(zt)),Lt=null;var fi=null;for(Mn=0;Mn<zt.childNodes.length;Mn++){var Rn=zt.childNodes[Mn],li=Rn.className;li==="applet_screenshot"?sn?(Rn.style.display="block",Lt="screenshot"):Rn.style.display="none":li!=="applet_scaler prerender"&&(zt.removeChild(Rn),fi=li&&li.indexOf("appletParameters")!=-1?Rn.id:null,Mn--)}var Ot=ae.id!==void 0?ae.id:fi,kn=window[Ot];kn&&typeof kn.getBase64=="function"&&(kn.remove(),window[Ot]=null)},Ge.refreshHitPoints=function(){if(Be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var zt=Ge.getAppletObject();return zt&&typeof zt.recalculateEnvironments=="function"?(zt.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var zt=Ge.getAppletObject();return zt&&typeof zt.startAnimation=="function"?(zt.startAnimation(),!0):!1},Ge.stopAnimation=function(){var zt=Ge.getAppletObject();return zt&&typeof zt.stopAnimation=="function"?(zt.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var zt=ae.id!==void 0?ae.id:"ggbApplet";return window[zt]},Ge.resize=function(){};var Tt=function(zt,sn,Mn){var fi=document.createElement("param");fi.setAttribute("name",sn),fi.setAttribute("value",Mn),zt.appendChild(fi)},nt=function(zt){return zt&&zt!=="false"},Ut=function(zt,sn,Mn){Be(ze)<=4.2&&(Mn=!0);var fi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ze||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(fi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Rn=document.createElement("div");Rn.classList.add("appletParameters","notranslate");var li=sn.width,Ot=sn.height;if(sn.disableAutoScale=sn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():sn.disableAutoScale,sn.width!==void 0)if(Be(ze)<=4.4)nt(sn.showToolBar)&&(sn.height-=7),nt(sn.showAlgebraInput)&&(sn.height-=37),sn.width<605&&nt(sn.showToolBar)&&(sn.width=605,li=605);else{var kn=100;(nt(sn.showToolBar)||nt(sn.showMenuBar))&&(sn.hasOwnProperty("customToolBar")&&(sn.customToolbar=sn.customToolBar),kn=nt(sn.showMenuBar)?245:155),li<kn&&(sn.width=kn,li=kn)}Rn.style.border="none",Rn.style.display="inline-block";for(var $n in sn)sn.hasOwnProperty($n)&&$n!=="appletOnLoad"&&Rn.setAttribute("data-param-"+$n,sn[$n]);Se&&Rn.setAttribute("data-param-fontscssurl",Se),Ge.resize=function(){GGBAppletUtils.responsiveResize(zt,sn)},window.addEventListener("resize",function(be){Ge.resize()});var xi=typeof sn.appletOnLoad=="function"?sn.appletOnLoad:function(){};if(!Mn&&sn.width!==void 0){sn.hasOwnProperty("showSplash")||Rn.setAttribute("data-param-showSplash","false");var xn=zt.querySelector(".applet_scaler.prerender"),Gt=xn!==null;if(Gt)var jt=xn.querySelector(".ggb_preview");else{var jt=un(li,Ot,sn.borderColor,!1);xn=document.createElement("div"),xn.className="applet_scaler",xn.style.position="relative",xn.style.display="block",xn.style.width=li+"px",xn.style.height=Ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xn,"66%"),Be(ze)>=5?(sn.appletOnLoad=function(be){var Ue=zt.querySelector(".ggb_preview");Ue&&Ue.parentNode.removeChild(Ue),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xn),window.GGBT_wsf_view&&$(window).trigger("resize"),xi(be)},Gt||xn.appendChild(jt)):Rn.appendChild(jt),xn.appendChild(Rn),Gt||zt.appendChild(xn),setTimeout(function(){Ge.resize()},1)}else{var It=document.createElement("div");It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.appendChild(Rn),zt.appendChild(It),sn.appletOnLoad=function(be){Ge.resize(),xi(be)}}function vt(be,Ue){Ue&&typeof Ue.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(be,Ue.appletOnLoad):renderGGBElement(be),Cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ue)}function Xt(be,Ue){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:be,params:Ue}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qe){vt(Qe.article,Qe.params)}),html5AppletsToProcess=null)},Be(ze)<5&&(be.className+=" geogebraweb")):vt(be,Ue)}if(fi){scriptLoadStarted=!0;for(var Zt=0;Zt<Rn.childNodes.length;Zt++){var yt=Rn.childNodes[Zt].tagName;yt==="TABLE"&&(Rn.removeChild(Rn.childNodes[Zt]),Zt--)}if(ggbHTML5LoadedScript!==null){var ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ft!=null&&ft.parentNode.removeChild(ft)}var _e=document.createElement("script"),Pe=function(){Xt(Rn,sn)};_e.src=st+ee,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=ze,ggbHTML5LoadedScript=_e.src,Cn("GeoGebra HTML5 codebase loaded: '"+st+"'.",sn),!we&&(!Ze||Ze=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Pe()):st.requirejs?__webpack_require__.e(7374).then(function(){var be=[__webpack_require__(97374)];Pe.apply(null,be)}.bind(this)).catch(__webpack_require__.oe):(_e.onload=Pe,zt.appendChild(_e))}else Xt(Rn,sn);sn.height=Ot,sn.width=li},kt=function(zt,sn,Mn){var fi=un(sn.width,sn.height,sn.borderColor,Mn),Rn=document.createElement("div");Rn.style.position="relative",Rn.style.display="block",Rn.style.width=sn.width+"px",Rn.style.height=sn.height+"px",Rn.className="applet_screenshot applet_scaler"+(Mn?" applet_screenshot_play":""),Rn.appendChild(fi);var li=GGBAppletUtils.getScale(sn,zt,Mn);Mn?(zt.appendChild(qt()),window.GGBT_wsf_view||(zt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Rn,"66%"),zt.appendChild(Rn),li!==1&&!isNaN(li)&&(GGBAppletUtils.scaleElement(Rn,li),Rn.style.width=sn.width+"px",Rn.style.height=sn.height+"px",Rn.parentNode.style.width=sn.width*li+"px",Rn.parentNode.style.height=sn.height*li+"px"),Ge.resize=function(){dn(zt,fi,Rn,Mn)},window.addEventListener("resize",function(Ot){Ge.resize()}),Ge.resize()};function dn(zt,sn,Mn,fi){if(zt.contains(sn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(zt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(zt)}var Rn=GGBAppletUtils.getScale(ae,zt,fi);Mn.parentNode!==null&&(!isNaN(Rn)&&Rn!==1?(GGBAppletUtils.scaleElement(Mn,Rn),Mn.parentNode.style.width=ae.width*Rn+"px",Mn.parentNode.style.height=ae.height*Rn+"px"):(GGBAppletUtils.scaleElement(Mn,1),Mn.parentNode.style.width=ae.width+"px",Mn.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(zt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(zt,sn){sn.appendChild(zt)};var nn=function(zt,sn,Mn,fi){kt(zt,sn,!0);for(var Rn=function(){var kn=[];for(Ot=0;Ot<zt.childNodes.length;Ot++)kn.push(zt.childNodes[Ot]);if(window.GGBT_wsf_view){var $n=window.GGBT_wsf_view.renderFullScreen(zt,sn.id),xi=document.getElementById("fullscreencontainer"),xn=jQuery(zt).find(".fullscreencontent");xn.length>0?($n.remove(),xn.attr("id","fullscreencontent").show(),jQuery(xi).append(xn),window.dispatchEvent(new Event("resize"))):Ut($n,sn,!1),window.GGBT_wsf_view.launchFullScreen(xi)}else Lt=fi,Ut(zt,sn,!1);if(!window.GGBT_wsf_view)for(Ot=0;Ot<kn.length;Ot++)zt.removeChild(kn[Ot])},li=zt.getElementsByClassName("ggb_preview_play"),Ot=0;Ot<li.length;Ot++)li[Ot].addEventListener("click",Rn,!1),li[Ot].addEventListener("ontouchstart",Rn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(zt),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qt=function(){var zt=document.createElement("div");if(zt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var sn='.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");}',Mn=document.createElement("style");Mn.styleSheet?Mn.styleSheet.cssText=sn:Mn.appendChild(document.createTextNode(sn)),document.getElementsByTagName("head")[0].appendChild(Mn)}return zt},un=function(zt,sn,Mn,fi){var Rn=document.createElement("div");Rn.className="ggb_preview",Rn.style.position="absolute",Rn.style.zIndex="90",Rn.style.width=zt-2+"px",Rn.style.height=sn-2+"px",Rn.style.top="0px",Rn.style.left="0px",Rn.style.overflow="hidden",Rn.style.backgroundColor="white";var li="lightgrey";Mn!==void 0&&(Mn==="none"?li="transparent":li=Mn),Rn.style.border="1px solid "+li;var Ot=document.createElement("img");if(Ot.style.position="relative",Ot.style.zIndex="1000",Ot.style.top="-1px",Ot.style.left="-1px",fe!==null&&Ot.setAttribute("src",fe),Ot.style.opacity=.7,le!==null){var kn,$n,xi;if(!fi){kn=document.createElement("img"),kn.style.position="absolute",kn.style.zIndex="1001",kn.style.opacity=1,Ot.style.opacity=.3,$n=360,$n>zt/4*3&&($n=zt/4*3),xi=$n/5.8,kn.setAttribute("src",le),kn.setAttribute("width",$n),kn.setAttribute("height",xi);var xn=(zt-$n)/2,Gt=(sn-xi)/2;kn.style.left=xn+"px",kn.style.top=Gt+"px",Rn.appendChild(kn)}}return Rn.appendChild(Ot),Rn},mn=function(zt){return zt=zt.toLowerCase(),zt==="html5"||zt==="screenshot"?zt:"html5"},Ct=["web","webSimple","web3d","tablet","tablet3d","phone"],qe=function(zt,sn){if(ze=zt,sn){Bt(ze,!0);return}var Mn=!Te;if(Mn){var fi=Be(ze);!isNaN(fi)&&fi<4.4&&(Mn=!1)}var Rn,li;window.location.protocol.substr(0,4)==="http"?Rn=window.location.protocol:Rn="http:";var Ot=ze.indexOf("//");Ot>0?li=ze:Ot===0?li=Rn+ze:li="https://www.geogebra.org/apps/5.2.814.0/";for(var kn in Ct)if(ze.slice(Ct[kn].length*-1)===Ct[kn]||ze.slice((Ct[kn].length+1)*-1)===Ct[kn]+"/"){Bt(li,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Mn&&!de.is3D&&!de.AV&&!de.SV&&!de.CV&&!de.EV2&&!de.CP&&!de.PC&&!de.DA&&!de.FI&&!de.PV&&!nt(ae.showToolBar)&&!nt(ae.showMenuBar)&&!nt(ae.showAlgebraInput)&&!nt(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?li+="webSimple/":li+="web3d/",Bt(li,!1)},Bt=function(zt,sn){if(zt.requirejs){st=zt;return}zt.slice(-1)!=="/"&&(zt+="/"),st=zt,sn===null&&(sn=zt.indexOf("http")===-1),ht=sn,ee="web.nocache.js",ne=!1;var Mn=st.split("/");Mn.length>1&&(!sn&&Mn[Mn.length-2]==="webSimple"?(ee="webSimple.nocache.js",ne=!0):Ct.indexOf(Mn[Mn.length-2])>=0&&(ee=Mn[Mn.length-2]+".nocache.js")),Mn=zt.split("/"),ze=Mn[Mn.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 fi=parseFloat(ze);fi!==NaN&&fi<5&&zt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fi+" is deprecated. Using version latest instead."),qe("5.0",sn))},Cn=function(zt,sn){window.console&&window.console.log&&(!sn||typeof sn.showLogging=="undefined"||sn.showLogging&&sn.showLogging!=="false")&&console.log(zt)};ae.material_id!==void 0?$e(Zn):Zn();function Zn(){var zt=xe;Ze!==null?zt=Ze:parseFloat(zt)<5&&(zt="5.0"),qe(zt,!1),we!==null&&Bt(we,ht),je=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function xe(je,Ze){Ze!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+Ze+","+Ze+")",je.style.webkitTransform="scale("+Ze+","+Ze+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function ae(je,Ze,we,it,Je,Ye){var st=null;if(Ye!=null&&Ye!="")for(var ht=je.parentNode;ht!=null;)if((" "+ht.className+" ").indexOf(" "+Ye+" ")>-1){st=ht;break}else ht=ht.parentNode;var Lt=0,ze=0,ee=0,ne=0,fe=0,le=0,me=0;if(st)Lt=st.offsetWidth,ze=Math.max(it?st.offsetWidth:0,st.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Lt=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),ee=Lt):(Lt=window.innerWidth,ze=window.innerHeight,ee=window.innerWidth),je){var Se=je.getBoundingClientRect();Se.left>0&&Se.left<=Lt&&(Je===void 0||!Je)&&(document.dir==="rtl"?(fe=Lt-Se.width-Se.left,le=ee<=480?10:30):(le=Se.left,fe=ee<=480?10:30),ne=le+fe)}if(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ke=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,me=40)}}return je&&((we===void 0||!we)&&Ze>0&&Ze+ne<Lt?Lt=Ze:Lt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(we===void 0||!we)&&(ze-=me)),{width:Lt,height:ze}}function de(je,Ze,we,it,Je){if(je.isScreenshoGenerator)return 1;var Ye=it!==void 0&&it,st=je.noScaleMargin!=null&&je.noScaleMargin,ht=function(ke){return ke&&ke!=="false"},Lt=ht(je.autoHeight),ze=ae(Ze,je.width,we,Lt,Ye&&window.GGBT_wsf_view||st,Je),ee=parseInt(ze.width),ne=je.width,fe=je.height;if(ne===void 0){var le=Ze.querySelector(".appletParameters");le&&(ne=le.offsetWidth,fe=le.offsetHeight)}var me=ee/ne,Se=Ye?1:ze.height/fe;return we!==void 0&&!we&&(me=Math.min(1,me),Se=Math.min(1,Se)),Math.min(me,Se)}function Te(je,Ze,we){var it=1,Je,Ye=!1;if(je.hasOwnProperty("allowUpscale")&&(Ye=je.allowUpscale),je.hasOwnProperty("scale")&&(it=parseFloat(je.scale),(isNaN(it)||it===null||it===0)&&(it=1),it>1&&(Ye=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ye=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Je=de(je,Ze,Ye,we,je.scaleContainerClass);else return it;return Ye&&(!je.hasOwnProperty("scale")||it===1)?Je:Math.min(it,Je)}function Ee(je){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),we=Math.min(window.innerHeight,document.documentElement.clientHeight),it=je.getBoundingClientRect(),Je=(Ze-it.width)/2,Ye=(we-it.height)/2;Ye<0&&(Ye=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je<40?je.style.left="40px":je.style.left=Je+"px",je.style.top=Ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ye<40?je.style.top="40px":je.style.top=Ye+"px",je.style.left=Je+"px")}function Re(je,Ze){var we=je.querySelector(".appletParameters");if(we){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==we.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(we.parentElement&&/fullscreen/.test(we.parentElement.className))return;var it=Te(Ze,je);Ge()&&we.setAttribute("data-param-scale",it);for(var Je=null,Ye=0;Ye<je.childNodes.length;Ye++)if(je.childNodes[Ye].className!==void 0&&je.childNodes[Ye].className.match(/^applet_scaler/)){Je=je.childNodes[Ye];break}if(Je!==null&&Je.querySelector(".noscale")!==null)return;var st=Ze.id!==void 0?Ze.id:"ggbApplet",ht=window[st];(ht==null||!ht.recalculateEnvironments)&&Je!==null&&!Je.className.match(/fullscreen/)&&(Je.parentNode.style.transform="",!isNaN(it)&&it!==1?(Je.parentNode.style.width=Ze.width*it+"px",Je.parentNode.style.height=Ze.height*it+"px",xe(Je,it)):(xe(Je,1),Je.parentNode.style.width=Ze.width+"px",Je.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ee(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(we).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:Ge,positionCenter:Ee,getScale:Te,scaleElement:xe}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,xe){}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(Ge){var xe=s[L].bindings;s[L].bindings=function(){for(var ae=xe?xe():{},de=Ge[webModule.__softPermutationId],Te=O;Te<de.length;Te++){var Ee=de[Te];ae[Ee[O]]=Ee[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var xe=document.compatMode==U?V:W;t.write(xe+X),t.close()}}}function w(Ge){function xe(de){function Te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ee=Te();if(Ee){de();return}function Re(){if(!Ee){if(!Te())return;Ee=!0,de(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var je=setInterval(function(){Re()},$)}function ae(de){var Te=u(),Ee=Te.body,Re=Te.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=de,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+de))}),Ee.appendChild(Re)}xe(function(){ae(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var xe=u(),ae=xe.body,de=xe.createElement(_);de.language=ab,de.text=Ge,ae.appendChild(de),ae.removeChild(de)};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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var xe=c[Ge];return xe==null?null:xe},r=d,webModule.__errFn=e}function B(){function Ge(je){var Ze=je.lastIndexOf(rb);Ze==-1&&(Ze=je.length);var we=je.indexOf(sb);we==-1&&(we=je.length);var it=je.lastIndexOf(tb,Math.min(we,Ze));return it>=O?je.substring(O,it+P):W}function xe(je){if(!je.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=je+vb,je=Ge(Ze.src)}return je}function ae(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function de(){for(var je=o.getElementsByTagName(_),Ze=O;Ze<je.length;++Ze)if(je[Ze].src.indexOf(xb)!=-1)return Ge(je[Ze].src);return W}function Te(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function Ee(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var Re=ae();return Re==W&&(Re=de()),Re==W&&(Re=Te()),Re==W&&Ee()&&(Re=Ge(o.location.href)),Re=xe(Re),Re}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],xe=O,ae=[],de=[];function Te(je){var Ze=de[je](),we=ae[je];if(Ze in we)return Ze;var it=[];for(var Je in we)it[we[Je]]=Je;throw r&&r(je,it,Ze),null}if(__gwt_isKnownPropertyValue=function(je,Ze){return Ze in ae[je]},webModule.__getPropMap=function(){var je={};for(var Ze in ae)ae.hasOwnProperty(Ze)&&(je[Ze]=Te(Ze));return je},webModule.__computePropValue=Te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ee;try{Ee=Cb;var Re=Ee.indexOf(Db);Re!=-1&&(xe=parseInt(Ee.substring(Re+P),$),Ee=Ee.substring(O,Re))}catch(je){}return webModule.__softPermutationId=xe,C(Ee+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(Ge,xe,ae){"use strict";ae.d(xe,{Ax:function(){return Re},Ds:function(){return je},KI:function(){return we},SI:function(){return Ee},f1:function(){return Te}});var de=ae(10148);function Te(it){let Je=!0;if(it.length>0){for(let Ye=0;Ye<it.length;Ye++)if(it[Ye].compile_success==0||!it[Ye].compile_success){Je=!1;break}}else Je=!1;return Je}function Ee(it,Je=""){let Ye=[];for(let st=0;st<it.length;st++){let ht=it[st],Lt=Je?`${Je}/${ht.name}`:`${ht.name}`;Ye.push({title:ht.name,type:ht.type,isLeaf:ht.type!=="tree",key:Lt})}return Ye}function Re(it,Je,Ye){for(let st=0;st<it.length;st++){let ht=it[st];if(ht.key===Je){ht.children=Ye;break}ht.children&&Re(ht.children,Je,Ye)}return it}function je(it,Je,Ye){let st;return function(){let ht=this,Lt=arguments,ze=function(){st=null,Ye||it.apply(ht,Lt)},ee=Ye&&!st;clearTimeout(st),st=setTimeout(ze,Je),ee&&it.apply(ht,Lt)}}const Ze=!0,we=de.Z.API_SERVER},29399:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return vg}});var de={};ae.r(de),ae.d(de,{boolean:function(){return mn},booleanish:function(){return Ct},commaOrSpaceSeparated:function(){return zt},commaSeparated:function(){return Zn},number:function(){return Bt},overloadedBoolean:function(){return qe},spaceSeparated:function(){return Cn}});var Te={};ae.r(Te),ae.d(Te,{attentionMarkers:function(){return yu},contentInitial:function(){return yl},disable:function(){return sl},document:function(){return El},flow:function(){return Go},flowInitial:function(){return Za},insideSpan:function(){return Ga},string:function(){return Ks},text:function(){return Jl}});var Ee=ae(59301),Re=ae(8591),je=ae(24645),Ze=ae(43418),we=ae(92832),it=ae(3113),Je=ae(6848),Ye=ae(43428),st=ae(95237),ht=ae(42203);function Lt(he){return he}function ze(){}function ee(){}function ne(){}function fe(he){const Ae=[],Ie=String(he||"");let He=Ie.indexOf(","),rt=0,ct=!1;for(;!ct;){He===-1&&(He=Ie.length,ct=!0);const St=Ie.slice(rt,He).trim();(St||!ct)&&Ae.push(St),rt=He+1,He=Ie.indexOf(",",rt)}return Ae}function le(he,Ae){const Ie=Ae||{};return(he[he.length-1]===""?[...he,""]:he).join((Ie.padRight?" ":"")+","+(Ie.padLeft===!1?"":" ")).trim()}const me=/[$_\p{ID_Start}]/u,Se=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,ke=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Be=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ke={};function $e(he){return he?me.test(String.fromCodePoint(he)):!1}function at(he,Ae){const He=(Ae||Ke).jsx?ke:Se;return he?He.test(String.fromCodePoint(he)):!1}function lt(he,Ae){return((Ae||Ke).jsx?Ne:Be).test(he)}const Tt=/[ \t\n\f\r]/g;function nt(he){return typeof he=="object"?he.type==="text"?Ut(he.value):!1:Ut(he)}function Ut(he){return he.replace(Tt,"")===""}class kt{constructor(Ae,Ie,He){this.property=Ae,this.normal=Ie,He&&(this.space=He)}}kt.prototype.property={},kt.prototype.normal={},kt.prototype.space=null;function dn(he,Ae){const Ie={},He={};let rt=-1;for(;++rt<he.length;)Object.assign(Ie,he[rt].property),Object.assign(He,he[rt].normal);return new kt(Ie,He,Ae)}function nn(he){return he.toLowerCase()}class qt{constructor(Ae,Ie){this.property=Ae,this.attribute=Ie}}qt.prototype.space=null,qt.prototype.boolean=!1,qt.prototype.booleanish=!1,qt.prototype.overloadedBoolean=!1,qt.prototype.number=!1,qt.prototype.commaSeparated=!1,qt.prototype.spaceSeparated=!1,qt.prototype.commaOrSpaceSeparated=!1,qt.prototype.mustUseProperty=!1,qt.prototype.defined=!1;let un=0;const mn=sn(),Ct=sn(),qe=sn(),Bt=sn(),Cn=sn(),Zn=sn(),zt=sn();function sn(){return t1(2,++un)}const Mn=Object.keys(de);class fi extends qt{constructor(Ae,Ie,He,rt){let ct=-1;if(super(Ae,Ie),Rn(this,"space",rt),typeof He=="number")for(;++ct<Mn.length;){const St=Mn[ct];Rn(this,Mn[ct],(He&de[St])===de[St])}}}fi.prototype.defined=!0;function Rn(he,Ae,Ie){Ie&&(he[Ae]=Ie)}const li={}.hasOwnProperty;function Ot(he){const Ae={},Ie={};let He;for(He in he.properties)if(li.call(he.properties,He)){const rt=he.properties[He],ct=new fi(He,he.transform(he.attributes||{},He),rt,he.space);he.mustUseProperty&&he.mustUseProperty.includes(He)&&(ct.mustUseProperty=!0),Ae[He]=ct,Ie[nn(He)]=He,Ie[nn(ct.attribute)]=He}return new kt(Ae,Ie,he.space)}const kn=Ot({space:"xlink",transform(he,Ae){return"xlink:"+Ae.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$n=Ot({space:"xml",transform(he,Ae){return"xml:"+Ae.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function xi(he,Ae){return Ae in he?he[Ae]:Ae}function xn(he,Ae){return xi(he,Ae.toLowerCase())}const Gt=Ot({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xn,properties:{xmlns:null,xmlnsXLink:null}}),jt=Ot({transform(he,Ae){return Ae==="role"?Ae:"aria-"+Ae.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:Bt,ariaColIndex:Bt,ariaColSpan:Bt,ariaControls:Cn,ariaCurrent:null,ariaDescribedBy:Cn,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:Cn,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:Cn,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cn,ariaLevel:Bt,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:Cn,ariaPlaceholder:null,ariaPosInSet:Bt,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:Cn,ariaRowCount:Bt,ariaRowIndex:Bt,ariaRowSpan:Bt,ariaSelected:Ct,ariaSetSize:Bt,ariaSort:null,ariaValueMax:Bt,ariaValueMin:Bt,ariaValueNow:Bt,ariaValueText:null,role:null}}),It=Ot({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zn,acceptCharset:Cn,accessKey:Cn,action:null,allow:null,allowFullScreen:mn,allowPaymentRequest:mn,allowUserMedia:mn,alt:null,as:null,async:mn,autoCapitalize:null,autoComplete:Cn,autoFocus:mn,autoPlay:mn,blocking:Cn,capture:null,charSet:null,checked:mn,cite:null,className:Cn,cols:Bt,colSpan:null,content:null,contentEditable:Ct,controls:mn,controlsList:Cn,coords:Bt|Zn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mn,defer:mn,dir:null,dirName:null,disabled:mn,download:qe,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mn,formTarget:null,headers:Cn,height:Bt,hidden:mn,high:Bt,href:null,hrefLang:null,htmlFor:Cn,httpEquiv:Cn,id:null,imageSizes:null,imageSrcSet:null,inert:mn,inputMode:null,integrity:null,is:null,isMap:mn,itemId:null,itemProp:Cn,itemRef:Cn,itemScope:mn,itemType:Cn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mn,low:Bt,manifest:null,max:null,maxLength:Bt,media:null,method:null,min:null,minLength:Bt,multiple:mn,muted:mn,name:null,nonce:null,noModule:mn,noValidate:mn,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:mn,optimum:Bt,pattern:null,ping:Cn,placeholder:null,playsInline:mn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mn,referrerPolicy:null,rel:Cn,required:mn,reversed:mn,rows:Bt,rowSpan:Bt,sandbox:Cn,scope:null,scoped:mn,seamless:mn,selected:mn,shadowRootClonable:mn,shadowRootDelegatesFocus:mn,shadowRootMode:null,shape:null,size:Bt,sizes:null,slot:null,span:Bt,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Bt,step:null,style:null,tabIndex:Bt,target:null,title:null,translate:null,type:null,typeMustMatch:mn,useMap:null,value:Ct,width:Bt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Cn,axis:null,background:null,bgColor:null,border:Bt,borderColor:null,bottomMargin:Bt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mn,declare:mn,event:null,face:null,frame:null,frameBorder:null,hSpace:Bt,leftMargin:Bt,link:null,longDesc:null,lowSrc:null,marginHeight:Bt,marginWidth:Bt,noResize:mn,noHref:mn,noShade:mn,noWrap:mn,object:null,profile:null,prompt:null,rev:null,rightMargin:Bt,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:Bt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Bt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mn,disableRemotePlayback:mn,prefix:null,property:null,results:Bt,security:null,unselectable:null}}),vt=Ot({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:xi,properties:{about:zt,accentHeight:Bt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Bt,amplitude:Bt,arabicForm:null,ascent:Bt,attributeName:null,attributeType:null,azimuth:Bt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Bt,by:null,calcMode:null,capHeight:Bt,className:Cn,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:Bt,diffuseConstant:Bt,direction:null,display:null,dur:null,divisor:Bt,dominantBaseline:null,download:mn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Bt,enableBackground:null,end:null,event:null,exponent:Bt,externalResourcesRequired:null,fill:null,fillOpacity:Bt,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:Zn,g2:Zn,glyphName:Zn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Bt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Bt,horizOriginX:Bt,horizOriginY:Bt,id:null,ideographic:Bt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Bt,k:Bt,k1:Bt,k2:Bt,k3:Bt,k4:Bt,kernelMatrix:zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Bt,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:Bt,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:Bt,overlineThickness:Bt,paintOrder:null,panose1:null,path:null,pathLength:Bt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Bt,pointsAtY:Bt,pointsAtZ:Bt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zt,rev:zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zt,requiredFeatures:zt,requiredFonts:zt,requiredFormats:zt,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:Bt,specularExponent:Bt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Bt,strikethroughThickness:Bt,string:null,stroke:null,strokeDashArray:zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Bt,strokeOpacity:Bt,strokeWidth:null,style:null,surfaceScale:Bt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zt,tabIndex:Bt,tableValues:null,target:null,targetX:Bt,targetY:Bt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Bt,underlineThickness:Bt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Bt,values:null,vAlphabetic:Bt,vMathematical:Bt,vectorEffect:null,vHanging:Bt,vIdeographic:Bt,version:null,vertAdvY:Bt,vertOriginX:Bt,vertOriginY:Bt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Bt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xt=dn([$n,kn,Gt,jt,It],"html"),Zt=dn([$n,kn,Gt,jt,vt],"svg"),yt=/^data[-\w.:]+$/i,ft=/-[a-z]/g,_e=/[A-Z]/g;function Pe(he,Ae){const Ie=nn(Ae);let He=Ae,rt=qt;if(Ie in he.normal)return he.property[he.normal[Ie]];if(Ie.length>4&&Ie.slice(0,4)==="data"&&yt.test(Ae)){if(Ae.charAt(4)==="-"){const ct=Ae.slice(5).replace(ft,Ue);He="data"+ct.charAt(0).toUpperCase()+ct.slice(1)}else{const ct=Ae.slice(4);if(!ft.test(ct)){let St=ct.replace(_e,be);St.charAt(0)!=="-"&&(St="-"+St),Ae="data"+St}}rt=fi}return new rt(He,Ae)}function be(he){return"-"+he.toLowerCase()}function Ue(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 Fe(he){const Ae=String(he||"").trim();return Ae?Ae.split(/[ \t\n\r\f]+/g):[]}function gt(he){return he.join(" ").trim()}var tn=ae(58970),yn=tn.default||tn;const bt=fn("end"),Wt=fn("start");function fn(he){return Ae;function Ae(Ie){const He=Ie&&Ie.position&&Ie.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 Ae=Wt(he),Ie=bt(he);if(Ae&&Ie)return{start:Ae,end:Ie}}function ni(he){return!he||typeof he!="object"?"":"position"in he||"type"in he?wi(he.position):"start"in he||"end"in he?wi(he):"line"in he||"column"in he?di(he):""}function di(he){return hi(he&&he.line)+":"+hi(he&&he.column)}function wi(he){return di(he&&he.start)+"-"+di(he&&he.end)}function hi(he){return he&&typeof he=="number"?he:1}class Li extends Error{constructor(Ae,Ie,He){super(),typeof Ie=="string"&&(He=Ie,Ie=void 0);let rt="",ct={},St=!1;if(Ie&&("line"in Ie&&"column"in Ie?ct={place:Ie}:"start"in Ie&&"end"in Ie?ct={place:Ie}:"type"in Ie?ct={ancestors:[Ie],place:Ie.position}:ct=Ss({},Ie)),typeof Ae=="string"?rt=Ae:!ct.cause&&Ae&&(St=!0,rt=Ae.message,ct.cause=Ae),!ct.ruleId&&!ct.source&&typeof He=="string"){const cn=He.indexOf(":");cn===-1?ct.ruleId=He:(ct.source=He.slice(0,cn),ct.ruleId=He.slice(cn+1))}if(!ct.place&&ct.ancestors&&ct.ancestors){const cn=ct.ancestors[ct.ancestors.length-1];cn&&(ct.place=cn.position)}const Dt=ct.place&&"start"in ct.place?ct.place.start:ct.place;this.ancestors=ct.ancestors||void 0,this.cause=ct.cause||void 0,this.column=Dt?Dt.column:void 0,this.fatal=void 0,this.file,this.message=rt,this.line=Dt?Dt.line:void 0,this.name=ni(ct.place)||"1:1",this.place=ct.place||void 0,this.reason=this.message,this.ruleId=ct.ruleId||void 0,this.source=ct.source||void 0,this.stack=St&&ct.cause&&typeof ct.cause.stack=="string"?ct.cause.stack:"",this.actual,this.expected,this.note,this.url}}Li.prototype.file="",Li.prototype.name="",Li.prototype.reason="",Li.prototype.message="",Li.prototype.stack="",Li.prototype.column=void 0,Li.prototype.line=void 0,Li.prototype.ancestors=void 0,Li.prototype.cause=void 0,Li.prototype.fatal=void 0,Li.prototype.place=void 0,Li.prototype.ruleId=void 0,Li.prototype.source=void 0;const Yi={}.hasOwnProperty,Ji=new Map,Xi=/[A-Z]/g,dr=/-([a-z])/g,Ir=new Set(["table","tbody","thead","tfoot","tr"]),Wi=new Set(["td","th"]),Dr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _i(he,Ae){if(!Ae||Ae.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Ie=Ae.filePath||void 0;let He;if(Ae.development){if(typeof Ae.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");He=on(Ie,Ae.jsxDEV)}else{if(typeof Ae.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Ae.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");He=Tn(Ie,Ae.jsx,Ae.jsxs)}const rt={Fragment:Ae.Fragment,ancestors:[],components:Ae.components||{},create:He,elementAttributeNameCase:Ae.elementAttributeNameCase||"react",evaluater:Ae.createEvaluater?Ae.createEvaluater():void 0,filePath:Ie,ignoreInvalidStyle:Ae.ignoreInvalidStyle||!1,passKeys:Ae.passKeys!==!1,passNode:Ae.passNode||!1,schema:Ae.space==="svg"?Zt:Xt,stylePropertyNameCase:Ae.stylePropertyNameCase||"dom",tableCellAlignToStyle:Ae.tableCellAlignToStyle!==!1},ct=De(rt,he,void 0);return ct&&typeof ct!="string"?ct:rt.create(he,rt.Fragment,{children:ct||void 0},void 0)}function De(he,Ae,Ie){if(Ae.type==="element")return jr(he,Ae,Ie);if(Ae.type==="mdxFlowExpression"||Ae.type==="mdxTextExpression")return hr(he,Ae);if(Ae.type==="mdxJsxFlowElement"||Ae.type==="mdxJsxTextElement")return Oo(he,Ae,Ie);if(Ae.type==="mdxjsEsm")return oo(he,Ae);if(Ae.type==="root")return Do(he,Ae,Ie);if(Ae.type==="text")return Co(he,Ae)}function jr(he,Ae,Ie){const He=he.schema;let rt=He;Ae.tagName.toLowerCase()==="svg"&&He.space==="html"&&(rt=Zt,he.schema=rt),he.ancestors.push(Ae);const ct=Ln(he,Ae.tagName,!1),St=At(he,Ae);let Dt=Qn(he,Ae);return Ir.has(Ae.tagName)&&(Dt=Dt.filter(function(cn){return typeof cn=="string"?!nt(cn):!0})),so(he,St,ct,Ae),En(St,Dt),he.ancestors.pop(),he.schema=He,he.create(Ae,ct,St,Ie)}function hr(he,Ae){if(Ae.data&&Ae.data.estree&&he.evaluater){const He=Ae.data.estree.body[0];return He.type,he.evaluater.evaluateExpression(He.expression)}Jn(he,Ae.position)}function oo(he,Ae){if(Ae.data&&Ae.data.estree&&he.evaluater)return he.evaluater.evaluateProgram(Ae.data.estree);Jn(he,Ae.position)}function Oo(he,Ae,Ie){const He=he.schema;let rt=He;Ae.name==="svg"&&He.space==="html"&&(rt=Zt,he.schema=rt),he.ancestors.push(Ae);const ct=Ae.name===null?he.Fragment:Ln(he,Ae.name,!0),St=Dn(he,Ae),Dt=Qn(he,Ae);return so(he,St,ct,Ae),En(St,Dt),he.ancestors.pop(),he.schema=He,he.create(Ae,ct,St,Ie)}function Do(he,Ae,Ie){const He={};return En(He,Qn(he,Ae)),he.create(Ae,he.Fragment,He,Ie)}function Co(he,Ae){return Ae.value}function so(he,Ae,Ie,He){typeof Ie!="string"&&Ie!==he.Fragment&&he.passNode&&(Ae.node=He)}function En(he,Ae){if(Ae.length>0){const Ie=Ae.length>1?Ae:Ae[0];Ie&&(he.children=Ie)}}function Tn(he,Ae,Ie){return He;function He(rt,ct,St,Dt){const On=Array.isArray(St.children)?Ie:Ae;return Dt?On(ct,St,Dt):On(ct,St)}}function on(he,Ae){return Ie;function Ie(He,rt,ct,St){const Dt=Array.isArray(ct.children),cn=Wt(He);return Ae(rt,ct,St,Dt,{columnNumber:cn?cn.column-1:void 0,fileName:he,lineNumber:cn?cn.line:void 0},void 0)}}function At(he,Ae){const Ie={};let He,rt;for(rt in Ae.properties)if(rt!=="children"&&Yi.call(Ae.properties,rt)){const ct=Kt(he,rt,Ae.properties[rt]);if(ct){const[St,Dt]=ct;he.tableCellAlignToStyle&&St==="align"&&typeof Dt=="string"&&Wi.has(Ae.tagName)?He=Dt:Ie[St]=Dt}}if(He){const ct=Ie.style||(Ie.style={});ct[he.stylePropertyNameCase==="css"?"text-align":"textAlign"]=He}return Ie}function Dn(he,Ae){const Ie={};for(const He of Ae.attributes)if(He.type==="mdxJsxExpressionAttribute")if(He.data&&He.data.estree&&he.evaluater){const ct=He.data.estree.body[0];ct.type;const St=ct.expression;St.type;const Dt=St.properties[0];Dt.type,Object.assign(Ie,he.evaluater.evaluateExpression(Dt.argument))}else Jn(he,Ae.position);else{const rt=He.name;let ct;if(He.value&&typeof He.value=="object")if(He.value.data&&He.value.data.estree&&he.evaluater){const Dt=He.value.data.estree.body[0];Dt.type,ct=he.evaluater.evaluateExpression(Dt.expression)}else Jn(he,Ae.position);else ct=He.value===null?!0:He.value;Ie[rt]=ct}return Ie}function Qn(he,Ae){const Ie=[];let He=-1;const rt=he.passKeys?new Map:Ji;for(;++He<Ae.children.length;){const ct=Ae.children[He];let St;if(he.passKeys){const cn=ct.type==="element"?ct.tagName:ct.type==="mdxJsxFlowElement"||ct.type==="mdxJsxTextElement"?ct.name:void 0;if(cn){const On=rt.get(cn)||0;St=cn+"-"+On,rt.set(cn,On+1)}}const Dt=De(he,ct,St);Dt!==void 0&&Ie.push(Dt)}return Ie}function Kt(he,Ae,Ie){const He=Pe(he.schema,Ae);if(!(Ie==null||typeof Ie=="number"&&Number.isNaN(Ie))){if(Array.isArray(Ie)&&(Ie=He.commaSeparated?le(Ie):gt(Ie)),He.property==="style"){let rt=typeof Ie=="object"?Ie:Et(he,String(Ie));return he.stylePropertyNameCase==="css"&&(rt=Ci(rt)),["style",rt]}return[he.elementAttributeNameCase==="react"&&He.space?Qe[He.property]||He.property:He.attribute,Ie]}}function Et(he,Ae){const Ie={};try{yn(Ae,He)}catch(rt){if(!he.ignoreInvalidStyle){const ct=rt,St=new Li("Cannot parse `style` attribute",{ancestors:he.ancestors,cause:ct,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw St.file=he.filePath||void 0,St.url=Dr+"#cannot-parse-style-attribute",St}}return Ie;function He(rt,ct){let St=rt;St.slice(0,2)!=="--"&&(St.slice(0,4)==="-ms-"&&(St="ms-"+St.slice(4)),St=St.replace(dr,Rt)),Ie[St]=ct}}function Ln(he,Ae,Ie){let He;if(!Ie)He={type:"Literal",value:Ae};else if(Ae.includes(".")){const rt=Ae.split(".");let ct=-1,St;for(;++ct<rt.length;){const Dt=lt(rt[ct])?{type:"Identifier",name:rt[ct]}:{type:"Literal",value:rt[ct]};St=St?{type:"MemberExpression",object:St,property:Dt,computed:!!(ct&&Dt.type==="Literal"),optional:!1}:Dt}He=St}else He=lt(Ae)&&!/^[a-z]/.test(Ae)?{type:"Identifier",name:Ae}:{type:"Literal",value:Ae};if(He.type==="Literal"){const rt=He.value;return Yi.call(he.components,rt)?he.components[rt]:rt}if(he.evaluater)return he.evaluater.evaluateExpression(He);Jn(he)}function Jn(he,Ae){const Ie=new Li("Cannot handle MDX estrees without `createEvaluater`",{ancestors:he.ancestors,place:Ae,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Ie.file=he.filePath||void 0,Ie.url=Dr+"#cannot-handle-mdx-estrees-without-createevaluater",Ie}function Ci(he){const Ae={};let Ie;for(Ie in he)Yi.call(he,Ie)&&(Ae[Pn(Ie)]=he[Ie]);return Ae}function Pn(he){let Ae=he.replace(Xi,Yn);return Ae.slice(0,3)==="ms-"&&(Ae="-"+Ae),Ae}function Rt(he,Ae){return Ae.toUpperCase()}function Yn(he){return"-"+he.toLowerCase()}const vi={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 Oi=ae(37712);const Yt={};function Fn(he,Ae){const Ie=Ae||Yt,He=typeof Ie.includeImageAlt=="boolean"?Ie.includeImageAlt:!0,rt=typeof Ie.includeHtml=="boolean"?Ie.includeHtml:!0;return $t(he,He,rt)}function $t(he,Ae,Ie){if(An(he)){if("value"in he)return he.type==="html"&&!Ie?"":he.value;if(Ae&&"alt"in he&&he.alt)return he.alt;if("children"in he)return pn(he.children,Ae,Ie)}return Array.isArray(he)?pn(he,Ae,Ie):""}function pn(he,Ae,Ie){const He=[];let rt=-1;for(;++rt<he.length;)He[rt]=$t(he[rt],Ae,Ie);return He.join("")}function An(he){return!!(he&&typeof he=="object")}function gn(he,Ae,Ie,He){const rt=he.length;let ct=0,St;if(Ae<0?Ae=-Ae>rt?0:rt+Ae:Ae=Ae>rt?rt:Ae,Ie=Ie>0?Ie:0,He.length<1e4)St=Array.from(He),St.unshift(Ae,Ie),he.splice(...St);else for(Ie&&he.splice(Ae,Ie);ct<He.length;)St=He.slice(ct,ct+1e4),St.unshift(Ae,0),he.splice(...St),ct+=1e4,Ae+=1e4}function In(he,Ae){return he.length>0?(gn(he,he.length,0,Ae),he):Ae}class Gn{constructor(Ae){this.left=Ae?[...Ae]:[],this.right=[]}get(Ae){if(Ae<0||Ae>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Ae+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Ae<this.left.length?this.left[Ae]:this.right[this.right.length-Ae+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Ae,Ie){const He=Ie==null?Number.POSITIVE_INFINITY:Ie;return He<this.left.length?this.left.slice(Ae,He):Ae>this.left.length?this.right.slice(this.right.length-He+this.left.length,this.right.length-Ae+this.left.length).reverse():this.left.slice(Ae).concat(this.right.slice(this.right.length-He+this.left.length).reverse())}splice(Ae,Ie,He){const rt=Ie||0;this.setCursor(Math.trunc(Ae));const ct=this.right.splice(this.right.length-rt,Number.POSITIVE_INFINITY);return He&&qn(this.left,He),ct.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Ae){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Ae)}pushMany(Ae){this.setCursor(Number.POSITIVE_INFINITY),qn(this.left,Ae)}unshift(Ae){this.setCursor(0),this.right.push(Ae)}unshiftMany(Ae){this.setCursor(0),qn(this.right,Ae.reverse())}setCursor(Ae){if(!(Ae===this.left.length||Ae>this.left.length&&this.right.length===0||Ae<0&&this.left.length===0))if(Ae<this.left.length){const Ie=this.left.splice(Ae,Number.POSITIVE_INFINITY);qn(this.right,Ie.reverse())}else{const Ie=this.right.splice(this.left.length+this.right.length-Ae,Number.POSITIVE_INFINITY);qn(this.left,Ie.reverse())}}}function qn(he,Ae){let Ie=0;if(Ae.length<1e4)he.push(...Ae);else for(;Ie<Ae.length;)he.push(...Ae.slice(Ie,Ie+1e4)),Ie+=1e4}function oi(he){const Ae={};let Ie=-1,He,rt,ct,St,Dt,cn,On;const an=new Gn(he);for(;++Ie<an.length;){for(;Ie in Ae;)Ie=Ae[Ie];if(He=an.get(Ie),Ie&&He[1].type==="chunkFlow"&&an.get(Ie-1)[1].type==="listItemPrefix"&&(cn=He[1]._tokenizer.events,ct=0,ct<cn.length&&cn[ct][1].type==="lineEndingBlank"&&(ct+=2),ct<cn.length&&cn[ct][1].type==="content"))for(;++ct<cn.length&&cn[ct][1].type!=="content";)cn[ct][1].type==="chunkText"&&(cn[ct][1]._isInFirstContentOfListItem=!0,ct++);if(He[0]==="enter")He[1].contentType&&(Object.assign(Ae,Hn(an,Ie)),Ie=Ae[Ie],On=!0);else if(He[1]._container){for(ct=Ie,rt=void 0;ct--&&(St=an.get(ct),St[1].type==="lineEnding"||St[1].type==="lineEndingBlank");)St[0]==="enter"&&(rt&&(an.get(rt)[1].type="lineEndingBlank"),St[1].type="lineEnding",rt=ct);rt&&(He[1].end=Ss({},an.get(rt)[1].start),Dt=an.slice(rt,Ie),Dt.unshift(He),an.splice(rt,Ie-rt+1,Dt))}}return gn(he,0,Number.POSITIVE_INFINITY,an.slice(0)),!On}function Hn(he,Ae){const Ie=he.get(Ae)[1],He=he.get(Ae)[2];let rt=Ae-1;const ct=[],St=Ie._tokenizer||He.parser[Ie.contentType](Ie.start),Dt=St.events,cn=[],On={};let an,Xn,Vn=-1,Nn=Ie,yr=0,ie=0;const oe=[ie];for(;Nn;){for(;he.get(++rt)[1]!==Nn;);ct.push(rt),Nn._tokenizer||(an=He.sliceStream(Nn),Nn.next||an.push(null),Xn&&St.defineSkip(Nn.start),Nn._isInFirstContentOfListItem&&(St._gfmTasklistFirstContentOfListItem=!0),St.write(an),Nn._isInFirstContentOfListItem&&(St._gfmTasklistFirstContentOfListItem=void 0)),Xn=Nn,Nn=Nn.next}for(Nn=Ie;++Vn<Dt.length;)Dt[Vn][0]==="exit"&&Dt[Vn-1][0]==="enter"&&Dt[Vn][1].type===Dt[Vn-1][1].type&&Dt[Vn][1].start.line!==Dt[Vn][1].end.line&&(ie=Vn+1,oe.push(ie),Nn._tokenizer=void 0,Nn.previous=void 0,Nn=Nn.next);for(St.events=[],Nn?(Nn._tokenizer=void 0,Nn.previous=void 0):oe.pop(),Vn=oe.length;Vn--;){const ge=Dt.slice(oe[Vn],oe[Vn+1]),pe=ct.pop();cn.push([pe,pe+ge.length-1]),he.splice(pe,2,ge)}for(cn.reverse(),Vn=-1;++Vn<cn.length;)On[yr+cn[Vn][0]]=yr+cn[Vn][1],yr+=cn[Vn][1]-cn[Vn][0]-1;return On}function ui(he){for(;!oi(he););return he}const Ki={}.hasOwnProperty;function Er(he){const Ae={};let Ie=-1;for(;++Ie<he.length;)Vi(Ae,he[Ie]);return Ae}function Vi(he,Ae){let Ie;for(Ie in Ae){const rt=(Ki.call(he,Ie)?he[Ie]:void 0)||(he[Ie]={}),ct=Ae[Ie];let St;if(ct)for(St in ct){Ki.call(rt,St)||(rt[St]=[]);const Dt=ct[St];Ht(rt[St],Array.isArray(Dt)?Dt:Dt?[Dt]:[])}}}function Ht(he,Ae){let Ie=-1;const He=[];for(;++Ie<Ae.length;)(Ae[Ie].add==="after"?he:He).push(Ae[Ie]);gn(he,0,0,He)}function Pi(he){const Ae={};let Ie=-1;for(;++Ie<he.length;)zi(Ae,he[Ie]);return Ae}function zi(he,Ae){let Ie;for(Ie in Ae){const rt=(Ki.call(he,Ie)?he[Ie]:void 0)||(he[Ie]={}),ct=Ae[Ie];let St;if(ct)for(St in ct)rt[St]=ct[St]}}const Ti=Fr(/[A-Za-z]/),er=Fr(/[\dA-Za-z]/),cr=Fr(/[#-'*+\--9=?A-Z^-~]/);function Tr(he){return he!==null&&(he<32||he===127)}const Qi=Fr(/\d/),Fi=Fr(/[\dA-Fa-f]/),Rr=Fr(/[!-/:-@[-`{-~]/);function ln(he){return he!==null&&he<-2}function Ur(he){return he!==null&&(he<0||he===32)}function bn(he){return he===-2||he===-1||he===32}const Mr=Fr(new RegExp("\\p{P}|\\p{S}","u")),Ho=Fr(/\s/);function Fr(he){return Ae;function Ae(Ie){return Ie!==null&&Ie>-1&&he.test(String.fromCharCode(Ie))}}function vo(he,Ae,Ie,He){const rt=He?He-1:Number.POSITIVE_INFINITY;let ct=0;return St;function St(cn){return bn(cn)?(he.enter(Ie),Dt(cn)):Ae(cn)}function Dt(cn){return bn(cn)&&ct++<rt?(he.consume(cn),Dt):(he.exit(Ie),Ae(cn))}}const Ro={tokenize:ir};function ir(he){const Ae=he.attempt(this.parser.constructs.contentInitial,He,rt);let Ie;return Ae;function He(Dt){if(Dt===null){he.consume(Dt);return}return he.enter("lineEnding"),he.consume(Dt),he.exit("lineEnding"),vo(he,Ae,"linePrefix")}function rt(Dt){return he.enter("paragraph"),ct(Dt)}function ct(Dt){const cn=he.enter("chunkText",{contentType:"text",previous:Ie});return Ie&&(Ie.next=cn),Ie=cn,St(Dt)}function St(Dt){if(Dt===null){he.exit("chunkText"),he.exit("paragraph"),he.consume(Dt);return}return ln(Dt)?(he.consume(Dt),he.exit("chunkText"),ct):(he.consume(Dt),St)}}const qi={tokenize:lo},Vr={tokenize:ki};function lo(he){const Ae=this,Ie=[];let He=0,rt,ct,St;return Dt;function Dt(ye){if(He<Ie.length){const Oe=Ie[He];return Ae.containerState=Oe[1],he.attempt(Oe[0].continuation,cn,On)(ye)}return On(ye)}function cn(ye){if(He++,Ae.containerState._closeFlow){Ae.containerState._closeFlow=void 0,rt&&pe();const Oe=Ae.events.length;let Ve=Oe,Xe;for(;Ve--;)if(Ae.events[Ve][0]==="exit"&&Ae.events[Ve][1].type==="chunkFlow"){Xe=Ae.events[Ve][1].end;break}ge(He);let et=Oe;for(;et<Ae.events.length;)Ae.events[et][1].end=Ss({},Xe),et++;return gn(Ae.events,Ve+1,0,Ae.events.slice(Oe)),Ae.events.length=et,On(ye)}return Dt(ye)}function On(ye){if(He===Ie.length){if(!rt)return Vn(ye);if(rt.currentConstruct&&rt.currentConstruct.concrete)return yr(ye);Ae.interrupt=!!(rt.currentConstruct&&!rt._gfmTableDynamicInterruptHack)}return Ae.containerState={},he.check(Vr,an,Xn)(ye)}function an(ye){return rt&&pe(),ge(He),Vn(ye)}function Xn(ye){return Ae.parser.lazy[Ae.now().line]=He!==Ie.length,St=Ae.now().offset,yr(ye)}function Vn(ye){return Ae.containerState={},he.attempt(Vr,Nn,yr)(ye)}function Nn(ye){return He++,Ie.push([Ae.currentConstruct,Ae.containerState]),Vn(ye)}function yr(ye){if(ye===null){rt&&pe(),ge(0),he.consume(ye);return}return rt=rt||Ae.parser.flow(Ae.now()),he.enter("chunkFlow",{_tokenizer:rt,contentType:"flow",previous:ct}),ie(ye)}function ie(ye){if(ye===null){oe(he.exit("chunkFlow"),!0),ge(0),he.consume(ye);return}return ln(ye)?(he.consume(ye),oe(he.exit("chunkFlow")),He=0,Ae.interrupt=void 0,Dt):(he.consume(ye),ie)}function oe(ye,Oe){const Ve=Ae.sliceStream(ye);if(Oe&&Ve.push(null),ye.previous=ct,ct&&(ct.next=ye),ct=ye,rt.defineSkip(ye.start),rt.write(Ve),Ae.parser.lazy[ye.start.line]){let Xe=rt.events.length;for(;Xe--;)if(rt.events[Xe][1].start.offset<St&&(!rt.events[Xe][1].end||rt.events[Xe][1].end.offset>St))return;const et=Ae.events.length;let wt=et,Jt,Nt;for(;wt--;)if(Ae.events[wt][0]==="exit"&&Ae.events[wt][1].type==="chunkFlow"){if(Jt){Nt=Ae.events[wt][1].end;break}Jt=!0}for(ge(He),Xe=et;Xe<Ae.events.length;)Ae.events[Xe][1].end=Ss({},Nt),Xe++;gn(Ae.events,wt+1,0,Ae.events.slice(et)),Ae.events.length=Xe}}function ge(ye){let Oe=Ie.length;for(;Oe-- >ye;){const Ve=Ie[Oe];Ae.containerState=Ve[1],Ve[0].exit.call(Ae,he)}Ie.length=ye}function pe(){rt.write([null]),ct=void 0,rt=void 0,Ae.containerState._closeFlow=void 0}}function ki(he,Ae,Ie){return vo(he,he.attempt(this.parser.constructs.document,Ae,Ie),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ot={partial:!0,tokenize:Gr};function Gr(he,Ae,Ie){return He;function He(ct){return bn(ct)?vo(he,rt,"linePrefix")(ct):rt(ct)}function rt(ct){return ct===null||ln(ct)?Ae(ct):Ie(ct)}}const ta={resolve:Uo,tokenize:kr},Hr={partial:!0,tokenize:fr};function Uo(he){return oi(he),he}function kr(he,Ae){let Ie;return He;function He(Dt){return he.enter("content"),Ie=he.enter("chunkContent",{contentType:"content"}),rt(Dt)}function rt(Dt){return Dt===null?ct(Dt):ln(Dt)?he.check(Hr,St,ct)(Dt):(he.consume(Dt),rt)}function ct(Dt){return he.exit("chunkContent"),he.exit("content"),Ae(Dt)}function St(Dt){return he.consume(Dt),he.exit("chunkContent"),Ie.next=he.enter("chunkContent",{contentType:"content",previous:Ie}),Ie=Ie.next,rt}}function fr(he,Ae,Ie){const He=this;return rt;function rt(St){return he.exit("chunkContent"),he.enter("lineEnding"),he.consume(St),he.exit("lineEnding"),vo(he,ct,"linePrefix")}function ct(St){if(St===null||ln(St))return Ie(St);const Dt=He.events[He.events.length-1];return!He.parser.constructs.disable.null.includes("codeIndented")&&Dt&&Dt[1].type==="linePrefix"&&Dt[2].sliceSerialize(Dt[1],!0).length>=4?Ae(St):he.interrupt(He.parser.constructs.flow,Ie,Ae)(St)}}const no={tokenize:Po};function Po(he){const Ae=this,Ie=he.attempt(ot,He,he.attempt(this.parser.constructs.flowInitial,rt,vo(he,he.attempt(this.parser.constructs.flow,rt,he.attempt(ta,rt)),"linePrefix")));return Ie;function He(ct){if(ct===null){he.consume(ct);return}return he.enter("lineEndingBlank"),he.consume(ct),he.exit("lineEndingBlank"),Ae.currentConstruct=void 0,Ie}function rt(ct){if(ct===null){he.consume(ct);return}return he.enter("lineEnding"),he.consume(ct),he.exit("lineEnding"),Ae.currentConstruct=void 0,Ie}}const Wr={resolveAll:Pr()},na=Zi("string"),tr=Zi("text");function Zi(he){return{resolveAll:Pr(he==="text"?ai:void 0),tokenize:Ae};function Ae(Ie){const He=this,rt=this.parser.constructs[he],ct=Ie.attempt(rt,St,Dt);return St;function St(an){return On(an)?ct(an):Dt(an)}function Dt(an){if(an===null){Ie.consume(an);return}return Ie.enter("data"),Ie.consume(an),cn}function cn(an){return On(an)?(Ie.exit("data"),ct(an)):(Ie.consume(an),cn)}function On(an){if(an===null)return!0;const Xn=rt[an];let Vn=-1;if(Xn)for(;++Vn<Xn.length;){const Nn=Xn[Vn];if(!Nn.previous||Nn.previous.call(He,He.previous))return!0}return!1}}}function Pr(he){return Ae;function Ae(Ie,He){let rt=-1,ct;for(;++rt<=Ie.length;)ct===void 0?Ie[rt]&&Ie[rt][1].type==="data"&&(ct=rt,rt++):(!Ie[rt]||Ie[rt][1].type!=="data")&&(rt!==ct+2&&(Ie[ct][1].end=Ie[rt-1][1].end,Ie.splice(ct+2,rt-ct-2),rt=ct+2),ct=void 0);return he?he(Ie,He):Ie}}function ai(he,Ae){let Ie=0;for(;++Ie<=he.length;)if((Ie===he.length||he[Ie][1].type==="lineEnding")&&he[Ie-1][1].type==="data"){const He=he[Ie-1][1],rt=Ae.sliceStream(He);let ct=rt.length,St=-1,Dt=0,cn;for(;ct--;){const On=rt[ct];if(typeof On=="string"){for(St=On.length;On.charCodeAt(St-1)===32;)Dt++,St--;if(St)break;St=-1}else if(On===-2)cn=!0,Dt++;else if(On!==-1){ct++;break}}if(Dt){const On={type:Ie===he.length||cn||Dt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:ct?St:He.start._bufferIndex+St,_index:He.start._index+ct,line:He.end.line,column:He.end.column-Dt,offset:He.end.offset-Dt},end:Ss({},He.end)};He.end=Ss({},On.start),He.start.offset===He.end.offset?Object.assign(He,On):(he.splice(Ie,0,["enter",On,Ae],["exit",On,Ae]),Ie+=2)}Ie++}return he}const xo={name:"thematicBreak",tokenize:_o};function _o(he,Ae,Ie){let He=0,rt;return ct;function ct(On){return he.enter("thematicBreak"),St(On)}function St(On){return rt=On,Dt(On)}function Dt(On){return On===rt?(he.enter("thematicBreakSequence"),cn(On)):He>=3&&(On===null||ln(On))?(he.exit("thematicBreak"),Ae(On)):Ie(On)}function cn(On){return On===rt?(he.consume(On),He++,cn):(he.exit("thematicBreakSequence"),bn(On)?vo(he,Dt,"whitespace")(On):Dt(On))}}const Wo={continuation:{tokenize:cs},exit:al,name:"list",tokenize:Ja},ea={partial:!0,tokenize:Js},ka={partial:!0,tokenize:Ts};function Ja(he,Ae,Ie){const He=this,rt=He.events[He.events.length-1];let ct=rt&&rt[1].type==="linePrefix"?rt[2].sliceSerialize(rt[1],!0).length:0,St=0;return Dt;function Dt(Nn){const yr=He.containerState.type||(Nn===42||Nn===43||Nn===45?"listUnordered":"listOrdered");if(yr==="listUnordered"?!He.containerState.marker||Nn===He.containerState.marker:Qi(Nn)){if(He.containerState.type||(He.containerState.type=yr,he.enter(yr,{_container:!0})),yr==="listUnordered")return he.enter("listItemPrefix"),Nn===42||Nn===45?he.check(xo,Ie,On)(Nn):On(Nn);if(!He.interrupt||Nn===49)return he.enter("listItemPrefix"),he.enter("listItemValue"),cn(Nn)}return Ie(Nn)}function cn(Nn){return Qi(Nn)&&++St<10?(he.consume(Nn),cn):(!He.interrupt||St<2)&&(He.containerState.marker?Nn===He.containerState.marker:Nn===41||Nn===46)?(he.exit("listItemValue"),On(Nn)):Ie(Nn)}function On(Nn){return he.enter("listItemMarker"),he.consume(Nn),he.exit("listItemMarker"),He.containerState.marker=He.containerState.marker||Nn,he.check(ot,He.interrupt?Ie:an,he.attempt(ea,Vn,Xn))}function an(Nn){return He.containerState.initialBlankLine=!0,ct++,Vn(Nn)}function Xn(Nn){return bn(Nn)?(he.enter("listItemPrefixWhitespace"),he.consume(Nn),he.exit("listItemPrefixWhitespace"),Vn):Ie(Nn)}function Vn(Nn){return He.containerState.size=ct+He.sliceSerialize(he.exit("listItemPrefix"),!0).length,Ae(Nn)}}function cs(he,Ae,Ie){const He=this;return He.containerState._closeFlow=void 0,he.check(ot,rt,ct);function rt(Dt){return He.containerState.furtherBlankLines=He.containerState.furtherBlankLines||He.containerState.initialBlankLine,vo(he,Ae,"listItemIndent",He.containerState.size+1)(Dt)}function ct(Dt){return He.containerState.furtherBlankLines||!bn(Dt)?(He.containerState.furtherBlankLines=void 0,He.containerState.initialBlankLine=void 0,St(Dt)):(He.containerState.furtherBlankLines=void 0,He.containerState.initialBlankLine=void 0,he.attempt(ka,Ae,St)(Dt))}function St(Dt){return He.containerState._closeFlow=!0,He.interrupt=void 0,vo(he,he.attempt(Wo,Ae,Ie),"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Dt)}}function Ts(he,Ae,Ie){const He=this;return vo(he,rt,"listItemIndent",He.containerState.size+1);function rt(ct){const St=He.events[He.events.length-1];return St&&St[1].type==="listItemIndent"&&St[2].sliceSerialize(St[1],!0).length===He.containerState.size?Ae(ct):Ie(ct)}}function al(he){he.exit(this.containerState.type)}function Js(he,Ae,Ie){const He=this;return vo(he,rt,"listItemPrefixWhitespace",He.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function rt(ct){const St=He.events[He.events.length-1];return!bn(ct)&&St&&St[1].type==="listItemPrefixWhitespace"?Ae(ct):Ie(ct)}}const vn={continuation:{tokenize:fu},exit:gu,name:"blockQuote",tokenize:Ms};function Ms(he,Ae,Ie){const He=this;return rt;function rt(St){if(St===62){const Dt=He.containerState;return Dt.open||(he.enter("blockQuote",{_container:!0}),Dt.open=!0),he.enter("blockQuotePrefix"),he.enter("blockQuoteMarker"),he.consume(St),he.exit("blockQuoteMarker"),ct}return Ie(St)}function ct(St){return bn(St)?(he.enter("blockQuotePrefixWhitespace"),he.consume(St),he.exit("blockQuotePrefixWhitespace"),he.exit("blockQuotePrefix"),Ae):(he.exit("blockQuotePrefix"),Ae(St))}}function fu(he,Ae,Ie){const He=this;return rt;function rt(St){return bn(St)?vo(he,ct,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(St):ct(St)}function ct(St){return he.attempt(vn,Ae,Ie)(St)}}function gu(he){he.exit("blockQuote")}function ho(he,Ae,Ie,He,rt,ct,St,Dt,cn){const On=cn||Number.POSITIVE_INFINITY;let an=0;return Xn;function Xn(ge){return ge===60?(he.enter(He),he.enter(rt),he.enter(ct),he.consume(ge),he.exit(ct),Vn):ge===null||ge===32||ge===41||Tr(ge)?Ie(ge):(he.enter(He),he.enter(St),he.enter(Dt),he.enter("chunkString",{contentType:"string"}),ie(ge))}function Vn(ge){return ge===62?(he.enter(ct),he.consume(ge),he.exit(ct),he.exit(rt),he.exit(He),Ae):(he.enter(Dt),he.enter("chunkString",{contentType:"string"}),Nn(ge))}function Nn(ge){return ge===62?(he.exit("chunkString"),he.exit(Dt),Vn(ge)):ge===null||ge===60||ln(ge)?Ie(ge):(he.consume(ge),ge===92?yr:Nn)}function yr(ge){return ge===60||ge===62||ge===92?(he.consume(ge),Nn):Nn(ge)}function ie(ge){return!an&&(ge===null||ge===41||Ur(ge))?(he.exit("chunkString"),he.exit(Dt),he.exit(St),he.exit(He),Ae(ge)):an<On&&ge===40?(he.consume(ge),an++,ie):ge===41?(he.consume(ge),an--,ie):ge===null||ge===32||ge===40||Tr(ge)?Ie(ge):(he.consume(ge),ge===92?oe:ie)}function oe(ge){return ge===40||ge===41||ge===92?(he.consume(ge),ie):ie(ge)}}function ia(he,Ae,Ie,He,rt,ct){const St=this;let Dt=0,cn;return On;function On(Nn){return he.enter(He),he.enter(rt),he.consume(Nn),he.exit(rt),he.enter(ct),an}function an(Nn){return Dt>999||Nn===null||Nn===91||Nn===93&&!cn||Nn===94&&!Dt&&"_hiddenFootnoteSupport"in St.parser.constructs?Ie(Nn):Nn===93?(he.exit(ct),he.enter(rt),he.consume(Nn),he.exit(rt),he.exit(He),Ae):ln(Nn)?(he.enter("lineEnding"),he.consume(Nn),he.exit("lineEnding"),an):(he.enter("chunkString",{contentType:"string"}),Xn(Nn))}function Xn(Nn){return Nn===null||Nn===91||Nn===93||ln(Nn)||Dt++>999?(he.exit("chunkString"),an(Nn)):(he.consume(Nn),cn||(cn=!bn(Nn)),Nn===92?Vn:Xn)}function Vn(Nn){return Nn===91||Nn===92||Nn===93?(he.consume(Nn),Dt++,Xn):Xn(Nn)}}function ja(he,Ae,Ie,He,rt,ct){let St;return Dt;function Dt(Vn){return Vn===34||Vn===39||Vn===40?(he.enter(He),he.enter(rt),he.consume(Vn),he.exit(rt),St=Vn===40?41:Vn,cn):Ie(Vn)}function cn(Vn){return Vn===St?(he.enter(rt),he.consume(Vn),he.exit(rt),he.exit(He),Ae):(he.enter(ct),On(Vn))}function On(Vn){return Vn===St?(he.exit(ct),cn(St)):Vn===null?Ie(Vn):ln(Vn)?(he.enter("lineEnding"),he.consume(Vn),he.exit("lineEnding"),vo(he,On,"linePrefix")):(he.enter("chunkString",{contentType:"string"}),an(Vn))}function an(Vn){return Vn===St||Vn===null||ln(Vn)?(he.exit("chunkString"),On(Vn)):(he.consume(Vn),Vn===92?Xn:an)}function Xn(Vn){return Vn===St||Vn===92?(he.consume(Vn),an):an(Vn)}}function Ko(he,Ae){let Ie;return He;function He(rt){return ln(rt)?(he.enter("lineEnding"),he.consume(rt),he.exit("lineEnding"),Ie=!0,He):bn(rt)?vo(he,He,Ie?"linePrefix":"lineSuffix")(rt):Ae(rt)}}function ao(he){return he.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jo={name:"definition",tokenize:Kr},xs={partial:!0,tokenize:To};function Kr(he,Ae,Ie){const He=this;let rt;return ct;function ct(Nn){return he.enter("definition"),St(Nn)}function St(Nn){return ia.call(He,he,Dt,Ie,"definitionLabel","definitionLabelMarker","definitionLabelString")(Nn)}function Dt(Nn){return rt=ao(He.sliceSerialize(He.events[He.events.length-1][1]).slice(1,-1)),Nn===58?(he.enter("definitionMarker"),he.consume(Nn),he.exit("definitionMarker"),cn):Ie(Nn)}function cn(Nn){return Ur(Nn)?Ko(he,On)(Nn):On(Nn)}function On(Nn){return ho(he,an,Ie,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Nn)}function an(Nn){return he.attempt(xs,Xn,Xn)(Nn)}function Xn(Nn){return bn(Nn)?vo(he,Vn,"whitespace")(Nn):Vn(Nn)}function Vn(Nn){return Nn===null||ln(Nn)?(he.exit("definition"),He.parser.defined.push(rt),Ae(Nn)):Ie(Nn)}}function To(he,Ae,Ie){return He;function He(Dt){return Ur(Dt)?Ko(he,rt)(Dt):Ie(Dt)}function rt(Dt){return ja(he,ct,Ie,"definitionTitle","definitionTitleMarker","definitionTitleString")(Dt)}function ct(Dt){return bn(Dt)?vo(he,St,"whitespace")(Dt):St(Dt)}function St(Dt){return Dt===null||ln(Dt)?Ae(Dt):Ie(Dt)}}const bo={name:"codeIndented",tokenize:ds},ji={partial:!0,tokenize:hs};function ds(he,Ae,Ie){const He=this;return rt;function rt(On){return he.enter("codeIndented"),vo(he,ct,"linePrefix",5)(On)}function ct(On){const an=He.events[He.events.length-1];return an&&an[1].type==="linePrefix"&&an[2].sliceSerialize(an[1],!0).length>=4?St(On):Ie(On)}function St(On){return On===null?cn(On):ln(On)?he.attempt(ji,St,cn)(On):(he.enter("codeFlowValue"),Dt(On))}function Dt(On){return On===null||ln(On)?(he.exit("codeFlowValue"),St(On)):(he.consume(On),Dt)}function cn(On){return he.exit("codeIndented"),Ae(On)}}function hs(he,Ae,Ie){const He=this;return rt;function rt(St){return He.parser.lazy[He.now().line]?Ie(St):ln(St)?(he.enter("lineEnding"),he.consume(St),he.exit("lineEnding"),rt):vo(he,ct,"linePrefix",5)(St)}function ct(St){const Dt=He.events[He.events.length-1];return Dt&&Dt[1].type==="linePrefix"&&Dt[2].sliceSerialize(Dt[1],!0).length>=4?Ae(St):ln(St)?rt(St):Ie(St)}}const dl={name:"headingAtx",resolve:pu,tokenize:Iu};function pu(he,Ae){let Ie=he.length-2,He=3,rt,ct;return he[He][1].type==="whitespace"&&(He+=2),Ie-2>He&&he[Ie][1].type==="whitespace"&&(Ie-=2),he[Ie][1].type==="atxHeadingSequence"&&(He===Ie-1||Ie-4>He&&he[Ie-2][1].type==="whitespace")&&(Ie-=He+1===Ie?2:4),Ie>He&&(rt={type:"atxHeadingText",start:he[He][1].start,end:he[Ie][1].end},ct={type:"chunkText",start:he[He][1].start,end:he[Ie][1].end,contentType:"text"},gn(he,He,Ie-He+1,[["enter",rt,Ae],["enter",ct,Ae],["exit",ct,Ae],["exit",rt,Ae]])),he}function Iu(he,Ae,Ie){let He=0;return rt;function rt(an){return he.enter("atxHeading"),ct(an)}function ct(an){return he.enter("atxHeadingSequence"),St(an)}function St(an){return an===35&&He++<6?(he.consume(an),St):an===null||Ur(an)?(he.exit("atxHeadingSequence"),Dt(an)):Ie(an)}function Dt(an){return an===35?(he.enter("atxHeadingSequence"),cn(an)):an===null||ln(an)?(he.exit("atxHeading"),Ae(an)):bn(an)?vo(he,Dt,"whitespace")(an):(he.enter("atxHeadingText"),On(an))}function cn(an){return an===35?(he.consume(an),cn):(he.exit("atxHeadingSequence"),Dt(an))}function On(an){return an===null||an===35||Ur(an)?(he.exit("atxHeadingText"),Dt(an)):(he.consume(an),On)}}const Ii={name:"setextUnderline",resolveTo:Da,tokenize:bs};function Da(he,Ae){let Ie=he.length,He,rt,ct;for(;Ie--;)if(he[Ie][0]==="enter"){if(he[Ie][1].type==="content"){He=Ie;break}he[Ie][1].type==="paragraph"&&(rt=Ie)}else he[Ie][1].type==="content"&&he.splice(Ie,1),!ct&&he[Ie][1].type==="definition"&&(ct=Ie);const St={type:"setextHeading",start:Ss({},he[rt][1].start),end:Ss({},he[he.length-1][1].end)};return he[rt][1].type="setextHeadingText",ct?(he.splice(rt,0,["enter",St,Ae]),he.splice(ct+1,0,["exit",he[He][1],Ae]),he[He][1].end=Ss({},he[ct][1].end)):he[He][1]=St,he.push(["exit",St,Ae]),he}function bs(he,Ae,Ie){const He=this;let rt;return ct;function ct(On){let an=He.events.length,Xn;for(;an--;)if(He.events[an][1].type!=="lineEnding"&&He.events[an][1].type!=="linePrefix"&&He.events[an][1].type!=="content"){Xn=He.events[an][1].type==="paragraph";break}return!He.parser.lazy[He.now().line]&&(He.interrupt||Xn)?(he.enter("setextHeadingLine"),rt=On,St(On)):Ie(On)}function St(On){return he.enter("setextHeadingLineSequence"),Dt(On)}function Dt(On){return On===rt?(he.consume(On),Dt):(he.exit("setextHeadingLineSequence"),bn(On)?vo(he,cn,"lineSuffix")(On):cn(On))}function cn(On){return On===null||ln(On)?(he.exit("setextHeadingLine"),Ae(On)):Ie(On)}}const Xl=["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"],Ql=["pre","script","style","textarea"],mu={concrete:!0,name:"htmlFlow",resolveTo:bl,tokenize:wl},Xr={partial:!0,tokenize:Ju},Vc={partial:!0,tokenize:pl};function bl(he){let Ae=he.length;for(;Ae--&&!(he[Ae][0]==="enter"&&he[Ae][1].type==="htmlFlow"););return Ae>1&&he[Ae-2][1].type==="linePrefix"&&(he[Ae][1].start=he[Ae-2][1].start,he[Ae+1][1].start=he[Ae-2][1].start,he.splice(Ae-2,2)),he}function wl(he,Ae,Ie){const He=this;let rt,ct,St,Dt,cn;return On;function On(_n){return an(_n)}function an(_n){return he.enter("htmlFlow"),he.enter("htmlFlowData"),he.consume(_n),Xn}function Xn(_n){return _n===33?(he.consume(_n),Vn):_n===47?(he.consume(_n),ct=!0,ie):_n===63?(he.consume(_n),rt=3,He.interrupt?Ae:wn):Ti(_n)?(he.consume(_n),St=String.fromCharCode(_n),oe):Ie(_n)}function Vn(_n){return _n===45?(he.consume(_n),rt=2,Nn):_n===91?(he.consume(_n),rt=5,Dt=0,yr):Ti(_n)?(he.consume(_n),rt=4,He.interrupt?Ae:wn):Ie(_n)}function Nn(_n){return _n===45?(he.consume(_n),He.interrupt?Ae:wn):Ie(_n)}function yr(_n){const Oa="CDATA[";return _n===Oa.charCodeAt(Dt++)?(he.consume(_n),Dt===Oa.length?He.interrupt?Ae:Sn:yr):Ie(_n)}function ie(_n){return Ti(_n)?(he.consume(_n),St=String.fromCharCode(_n),oe):Ie(_n)}function oe(_n){if(_n===null||_n===47||_n===62||Ur(_n)){const Oa=_n===47,Ta=St.toLowerCase();return!Oa&&!ct&&Ql.includes(Ta)?(rt=1,He.interrupt?Ae(_n):Sn(_n)):Xl.includes(St.toLowerCase())?(rt=6,Oa?(he.consume(_n),ge):He.interrupt?Ae(_n):Sn(_n)):(rt=7,He.interrupt&&!He.parser.lazy[He.now().line]?Ie(_n):ct?pe(_n):ye(_n))}return _n===45||er(_n)?(he.consume(_n),St+=String.fromCharCode(_n),oe):Ie(_n)}function ge(_n){return _n===62?(he.consume(_n),He.interrupt?Ae:Sn):Ie(_n)}function pe(_n){return bn(_n)?(he.consume(_n),pe):Nt(_n)}function ye(_n){return _n===47?(he.consume(_n),Nt):_n===58||_n===95||Ti(_n)?(he.consume(_n),Oe):bn(_n)?(he.consume(_n),ye):Nt(_n)}function Oe(_n){return _n===45||_n===46||_n===58||_n===95||er(_n)?(he.consume(_n),Oe):Ve(_n)}function Ve(_n){return _n===61?(he.consume(_n),Xe):bn(_n)?(he.consume(_n),Ve):ye(_n)}function Xe(_n){return _n===null||_n===60||_n===61||_n===62||_n===96?Ie(_n):_n===34||_n===39?(he.consume(_n),cn=_n,et):bn(_n)?(he.consume(_n),Xe):wt(_n)}function et(_n){return _n===cn?(he.consume(_n),cn=null,Jt):_n===null||ln(_n)?Ie(_n):(he.consume(_n),et)}function wt(_n){return _n===null||_n===34||_n===39||_n===47||_n===60||_n===61||_n===62||_n===96||Ur(_n)?Ve(_n):(he.consume(_n),wt)}function Jt(_n){return _n===47||_n===62||bn(_n)?ye(_n):Ie(_n)}function Nt(_n){return _n===62?(he.consume(_n),Bn):Ie(_n)}function Bn(_n){return _n===null||ln(_n)?Sn(_n):bn(_n)?(he.consume(_n),Bn):Ie(_n)}function Sn(_n){return _n===45&&rt===2?(he.consume(_n),Gi):_n===60&&rt===1?(he.consume(_n),lr):_n===62&&rt===4?(he.consume(_n),or):_n===63&&rt===3?(he.consume(_n),wn):_n===93&&rt===5?(he.consume(_n),Cr):ln(_n)&&(rt===6||rt===7)?(he.exit("htmlFlowData"),he.check(Xr,Eo,ti)(_n)):_n===null||ln(_n)?(he.exit("htmlFlowData"),ti(_n)):(he.consume(_n),Sn)}function ti(_n){return he.check(Vc,gi,Eo)(_n)}function gi(_n){return he.enter("lineEnding"),he.consume(_n),he.exit("lineEnding"),bi}function bi(_n){return _n===null||ln(_n)?ti(_n):(he.enter("htmlFlowData"),Sn(_n))}function Gi(_n){return _n===45?(he.consume(_n),wn):Sn(_n)}function lr(_n){return _n===47?(he.consume(_n),St="",rr):Sn(_n)}function rr(_n){if(_n===62){const Oa=St.toLowerCase();return Ql.includes(Oa)?(he.consume(_n),or):Sn(_n)}return Ti(_n)&&St.length<8?(he.consume(_n),St+=String.fromCharCode(_n),rr):Sn(_n)}function Cr(_n){return _n===93?(he.consume(_n),wn):Sn(_n)}function wn(_n){return _n===62?(he.consume(_n),or):_n===45&&rt===2?(he.consume(_n),wn):Sn(_n)}function or(_n){return _n===null||ln(_n)?(he.exit("htmlFlowData"),Eo(_n)):(he.consume(_n),or)}function Eo(_n){return he.exit("htmlFlow"),Ae(_n)}}function pl(he,Ae,Ie){const He=this;return rt;function rt(St){return ln(St)?(he.enter("lineEnding"),he.consume(St),he.exit("lineEnding"),ct):Ie(St)}function ct(St){return He.parser.lazy[He.now().line]?Ie(St):Ae(St)}}function Ju(he,Ae,Ie){return He;function He(rt){return he.enter("lineEnding"),he.consume(rt),he.exit("lineEnding"),he.attempt(ot,Ae,Ie)}}const qu={partial:!0,tokenize:ud},ml={concrete:!0,name:"codeFenced",tokenize:Il};function Il(he,Ae,Ie){const He=this,rt={partial:!0,tokenize:Ve};let ct=0,St=0,Dt;return cn;function cn(Xe){return On(Xe)}function On(Xe){const et=He.events[He.events.length-1];return ct=et&&et[1].type==="linePrefix"?et[2].sliceSerialize(et[1],!0).length:0,Dt=Xe,he.enter("codeFenced"),he.enter("codeFencedFence"),he.enter("codeFencedFenceSequence"),an(Xe)}function an(Xe){return Xe===Dt?(St++,he.consume(Xe),an):St<3?Ie(Xe):(he.exit("codeFencedFenceSequence"),bn(Xe)?vo(he,Xn,"whitespace")(Xe):Xn(Xe))}function Xn(Xe){return Xe===null||ln(Xe)?(he.exit("codeFencedFence"),He.interrupt?Ae(Xe):he.check(qu,ie,Oe)(Xe)):(he.enter("codeFencedFenceInfo"),he.enter("chunkString",{contentType:"string"}),Vn(Xe))}function Vn(Xe){return Xe===null||ln(Xe)?(he.exit("chunkString"),he.exit("codeFencedFenceInfo"),Xn(Xe)):bn(Xe)?(he.exit("chunkString"),he.exit("codeFencedFenceInfo"),vo(he,Nn,"whitespace")(Xe)):Xe===96&&Xe===Dt?Ie(Xe):(he.consume(Xe),Vn)}function Nn(Xe){return Xe===null||ln(Xe)?Xn(Xe):(he.enter("codeFencedFenceMeta"),he.enter("chunkString",{contentType:"string"}),yr(Xe))}function yr(Xe){return Xe===null||ln(Xe)?(he.exit("chunkString"),he.exit("codeFencedFenceMeta"),Xn(Xe)):Xe===96&&Xe===Dt?Ie(Xe):(he.consume(Xe),yr)}function ie(Xe){return he.attempt(rt,Oe,oe)(Xe)}function oe(Xe){return he.enter("lineEnding"),he.consume(Xe),he.exit("lineEnding"),ge}function ge(Xe){return ct>0&&bn(Xe)?vo(he,pe,"linePrefix",ct+1)(Xe):pe(Xe)}function pe(Xe){return Xe===null||ln(Xe)?he.check(qu,ie,Oe)(Xe):(he.enter("codeFlowValue"),ye(Xe))}function ye(Xe){return Xe===null||ln(Xe)?(he.exit("codeFlowValue"),pe(Xe)):(he.consume(Xe),ye)}function Oe(Xe){return he.exit("codeFenced"),Ae(Xe)}function Ve(Xe,et,wt){let Jt=0;return Nt;function Nt(bi){return Xe.enter("lineEnding"),Xe.consume(bi),Xe.exit("lineEnding"),Bn}function Bn(bi){return Xe.enter("codeFencedFence"),bn(bi)?vo(Xe,Sn,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(bi):Sn(bi)}function Sn(bi){return bi===Dt?(Xe.enter("codeFencedFenceSequence"),ti(bi)):wt(bi)}function ti(bi){return bi===Dt?(Jt++,Xe.consume(bi),ti):Jt>=St?(Xe.exit("codeFencedFenceSequence"),bn(bi)?vo(Xe,gi,"whitespace")(bi):gi(bi)):wt(bi)}function gi(bi){return bi===null||ln(bi)?(Xe.exit("codeFencedFence"),et(bi)):wt(bi)}}}function ud(he,Ae,Ie){const He=this;return rt;function rt(St){return St===null?Ie(St):(he.enter("lineEnding"),he.consume(St),he.exit("lineEnding"),ct)}function ct(St){return He.parser.lazy[He.now().line]?Ie(St):Ae(St)}}const cd=document.createElement("i");function Tc(he){const Ae="&"+he+";";cd.innerHTML=Ae;const Ie=cd.textContent;return Ie.charCodeAt(Ie.length-1)===59&&he!=="semi"||Ie===Ae?!1:Ie}const Ed={name:"characterReference",tokenize:dd};function dd(he,Ae,Ie){const He=this;let rt=0,ct,St;return Dt;function Dt(Xn){return he.enter("characterReference"),he.enter("characterReferenceMarker"),he.consume(Xn),he.exit("characterReferenceMarker"),cn}function cn(Xn){return Xn===35?(he.enter("characterReferenceMarkerNumeric"),he.consume(Xn),he.exit("characterReferenceMarkerNumeric"),On):(he.enter("characterReferenceValue"),ct=31,St=er,an(Xn))}function On(Xn){return Xn===88||Xn===120?(he.enter("characterReferenceMarkerHexadecimal"),he.consume(Xn),he.exit("characterReferenceMarkerHexadecimal"),he.enter("characterReferenceValue"),ct=6,St=Fi,an):(he.enter("characterReferenceValue"),ct=7,St=Qi,an(Xn))}function an(Xn){if(Xn===59&&rt){const Vn=he.exit("characterReferenceValue");return St===er&&!Tc(He.sliceSerialize(Vn))?Ie(Xn):(he.enter("characterReferenceMarker"),he.consume(Xn),he.exit("characterReferenceMarker"),he.exit("characterReference"),Ae)}return St(Xn)&&rt++<ct?(he.consume(Xn),an):Ie(Xn)}}const kc={name:"characterEscape",tokenize:hc};function hc(he,Ae,Ie){return He;function He(ct){return he.enter("characterEscape"),he.enter("escapeMarker"),he.consume(ct),he.exit("escapeMarker"),rt}function rt(ct){return Rr(ct)?(he.enter("characterEscapeValue"),he.consume(ct),he.exit("characterEscapeValue"),he.exit("characterEscape"),Ae):Ie(ct)}}const Ml={name:"lineEnding",tokenize:Cd};function Cd(he,Ae){return Ie;function Ie(He){return he.enter("lineEnding"),he.consume(He),he.exit("lineEnding"),vo(he,Ae,"linePrefix")}}function Ac(he,Ae,Ie){const He=[];let rt=-1;for(;++rt<he.length;){const ct=he[rt].resolveAll;ct&&!He.includes(ct)&&(Ae=ct(Ae,Ie),He.push(ct))}return Ae}const fc={name:"labelEnd",resolveAll:ks,resolveTo:fs,tokenize:Ua},wo={tokenize:qa},aa={tokenize:ws},hl={tokenize:gs};function ks(he){let Ae=-1;const Ie=[];for(;++Ae<he.length;){const He=he[Ae][1];if(Ie.push(he[Ae]),He.type==="labelImage"||He.type==="labelLink"||He.type==="labelEnd"){const rt=He.type==="labelImage"?4:2;He.type="data",Ae+=rt}}return he.length!==Ie.length&&gn(he,0,he.length,Ie),he}function fs(he,Ae){let Ie=he.length,He=0,rt,ct,St,Dt;for(;Ie--;)if(rt=he[Ie][1],ct){if(rt.type==="link"||rt.type==="labelLink"&&rt._inactive)break;he[Ie][0]==="enter"&&rt.type==="labelLink"&&(rt._inactive=!0)}else if(St){if(he[Ie][0]==="enter"&&(rt.type==="labelImage"||rt.type==="labelLink")&&!rt._balanced&&(ct=Ie,rt.type!=="labelLink")){He=2;break}}else rt.type==="labelEnd"&&(St=Ie);const cn={type:he[ct][1].type==="labelLink"?"link":"image",start:Ss({},he[ct][1].start),end:Ss({},he[he.length-1][1].end)},On={type:"label",start:Ss({},he[ct][1].start),end:Ss({},he[St][1].end)},an={type:"labelText",start:Ss({},he[ct+He+2][1].end),end:Ss({},he[St-2][1].start)};return Dt=[["enter",cn,Ae],["enter",On,Ae]],Dt=In(Dt,he.slice(ct+1,ct+He+3)),Dt=In(Dt,[["enter",an,Ae]]),Dt=In(Dt,Ac(Ae.parser.constructs.insideSpan.null,he.slice(ct+He+4,St-3),Ae)),Dt=In(Dt,[["exit",an,Ae],he[St-2],he[St-1],["exit",On,Ae]]),Dt=In(Dt,he.slice(St+1)),Dt=In(Dt,[["exit",cn,Ae]]),gn(he,ct,he.length,Dt),he}function Ua(he,Ae,Ie){const He=this;let rt=He.events.length,ct,St;for(;rt--;)if((He.events[rt][1].type==="labelImage"||He.events[rt][1].type==="labelLink")&&!He.events[rt][1]._balanced){ct=He.events[rt][1];break}return Dt;function Dt(Vn){return ct?ct._inactive?Xn(Vn):(St=He.parser.defined.includes(ao(He.sliceSerialize({start:ct.end,end:He.now()}))),he.enter("labelEnd"),he.enter("labelMarker"),he.consume(Vn),he.exit("labelMarker"),he.exit("labelEnd"),cn):Ie(Vn)}function cn(Vn){return Vn===40?he.attempt(wo,an,St?an:Xn)(Vn):Vn===91?he.attempt(aa,an,St?On:Xn)(Vn):St?an(Vn):Xn(Vn)}function On(Vn){return he.attempt(hl,an,Xn)(Vn)}function an(Vn){return Ae(Vn)}function Xn(Vn){return ct._balanced=!0,Ie(Vn)}}function qa(he,Ae,Ie){return He;function He(Xn){return he.enter("resource"),he.enter("resourceMarker"),he.consume(Xn),he.exit("resourceMarker"),rt}function rt(Xn){return Ur(Xn)?Ko(he,ct)(Xn):ct(Xn)}function ct(Xn){return Xn===41?an(Xn):ho(he,St,Dt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Xn)}function St(Xn){return Ur(Xn)?Ko(he,cn)(Xn):an(Xn)}function Dt(Xn){return Ie(Xn)}function cn(Xn){return Xn===34||Xn===39||Xn===40?ja(he,On,Ie,"resourceTitle","resourceTitleMarker","resourceTitleString")(Xn):an(Xn)}function On(Xn){return Ur(Xn)?Ko(he,an)(Xn):an(Xn)}function an(Xn){return Xn===41?(he.enter("resourceMarker"),he.consume(Xn),he.exit("resourceMarker"),he.exit("resource"),Ae):Ie(Xn)}}function ws(he,Ae,Ie){const He=this;return rt;function rt(Dt){return ia.call(He,he,ct,St,"reference","referenceMarker","referenceString")(Dt)}function ct(Dt){return He.parser.defined.includes(ao(He.sliceSerialize(He.events[He.events.length-1][1]).slice(1,-1)))?Ae(Dt):Ie(Dt)}function St(Dt){return Ie(Dt)}}function gs(he,Ae,Ie){return He;function He(ct){return he.enter("reference"),he.enter("referenceMarker"),he.consume(ct),he.exit("referenceMarker"),rt}function rt(ct){return ct===93?(he.enter("referenceMarker"),he.consume(ct),he.exit("referenceMarker"),he.exit("reference"),Ae):Ie(ct)}}const gc={name:"labelStartImage",resolveAll:fc.resolveAll,tokenize:vu};function vu(he,Ae,Ie){const He=this;return rt;function rt(Dt){return he.enter("labelImage"),he.enter("labelImageMarker"),he.consume(Dt),he.exit("labelImageMarker"),ct}function ct(Dt){return Dt===91?(he.enter("labelMarker"),he.consume(Dt),he.exit("labelMarker"),he.exit("labelImage"),St):Ie(Dt)}function St(Dt){return Dt===94&&"_hiddenFootnoteSupport"in He.parser.constructs?Ie(Dt):Ae(Dt)}}function es(he){if(he===null||Ur(he)||Ho(he))return 1;if(Mr(he))return 2}const Pd={name:"attention",resolveAll:vh,tokenize:hd};function vh(he,Ae){let Ie=-1,He,rt,ct,St,Dt,cn,On,an;for(;++Ie<he.length;)if(he[Ie][0]==="enter"&&he[Ie][1].type==="attentionSequence"&&he[Ie][1]._close){for(He=Ie;He--;)if(he[He][0]==="exit"&&he[He][1].type==="attentionSequence"&&he[He][1]._open&&Ae.sliceSerialize(he[He][1]).charCodeAt(0)===Ae.sliceSerialize(he[Ie][1]).charCodeAt(0)){if((he[He][1]._close||he[Ie][1]._open)&&(he[Ie][1].end.offset-he[Ie][1].start.offset)%3&&!((he[He][1].end.offset-he[He][1].start.offset+he[Ie][1].end.offset-he[Ie][1].start.offset)%3))continue;cn=he[He][1].end.offset-he[He][1].start.offset>1&&he[Ie][1].end.offset-he[Ie][1].start.offset>1?2:1;const Xn=Ss({},he[He][1].end),Vn=Ss({},he[Ie][1].start);Ar(Xn,-cn),Ar(Vn,cn),St={type:cn>1?"strongSequence":"emphasisSequence",start:Xn,end:Ss({},he[He][1].end)},Dt={type:cn>1?"strongSequence":"emphasisSequence",start:Ss({},he[Ie][1].start),end:Vn},ct={type:cn>1?"strongText":"emphasisText",start:Ss({},he[He][1].end),end:Ss({},he[Ie][1].start)},rt={type:cn>1?"strong":"emphasis",start:Ss({},St.start),end:Ss({},Dt.end)},he[He][1].end=Ss({},St.start),he[Ie][1].start=Ss({},Dt.end),On=[],he[He][1].end.offset-he[He][1].start.offset&&(On=In(On,[["enter",he[He][1],Ae],["exit",he[He][1],Ae]])),On=In(On,[["enter",rt,Ae],["enter",St,Ae],["exit",St,Ae],["enter",ct,Ae]]),On=In(On,Ac(Ae.parser.constructs.insideSpan.null,he.slice(He+1,Ie),Ae)),On=In(On,[["exit",ct,Ae],["enter",Dt,Ae],["exit",Dt,Ae],["exit",rt,Ae]]),he[Ie][1].end.offset-he[Ie][1].start.offset?(an=2,On=In(On,[["enter",he[Ie][1],Ae],["exit",he[Ie][1],Ae]])):an=0,gn(he,He-1,Ie-He+3,On),Ie=He+On.length-an-2;break}}for(Ie=-1;++Ie<he.length;)he[Ie][1].type==="attentionSequence"&&(he[Ie][1].type="data");return he}function hd(he,Ae){const Ie=this.parser.constructs.attentionMarkers.null,He=this.previous,rt=es(He);let ct;return St;function St(cn){return ct=cn,he.enter("attentionSequence"),Dt(cn)}function Dt(cn){if(cn===ct)return he.consume(cn),Dt;const On=he.exit("attentionSequence"),an=es(cn),Xn=!an||an===2&&rt||Ie.includes(cn),Vn=!rt||rt===2&&an||Ie.includes(He);return On._open=!!(ct===42?Xn:Xn&&(rt||!Vn)),On._close=!!(ct===42?Vn:Vn&&(an||!Xn)),Ae(cn)}}function Ar(he,Ae){he.column+=Ae,he.offset+=Ae,he._bufferIndex+=Ae}const Td={name:"autolink",tokenize:Ft};function Ft(he,Ae,Ie){let He=0;return rt;function rt(Nn){return he.enter("autolink"),he.enter("autolinkMarker"),he.consume(Nn),he.exit("autolinkMarker"),he.enter("autolinkProtocol"),ct}function ct(Nn){return Ti(Nn)?(he.consume(Nn),St):Nn===64?Ie(Nn):On(Nn)}function St(Nn){return Nn===43||Nn===45||Nn===46||er(Nn)?(He=1,Dt(Nn)):On(Nn)}function Dt(Nn){return Nn===58?(he.consume(Nn),He=0,cn):(Nn===43||Nn===45||Nn===46||er(Nn))&&He++<32?(he.consume(Nn),Dt):(He=0,On(Nn))}function cn(Nn){return Nn===62?(he.exit("autolinkProtocol"),he.enter("autolinkMarker"),he.consume(Nn),he.exit("autolinkMarker"),he.exit("autolink"),Ae):Nn===null||Nn===32||Nn===60||Tr(Nn)?Ie(Nn):(he.consume(Nn),cn)}function On(Nn){return Nn===64?(he.consume(Nn),an):cr(Nn)?(he.consume(Nn),On):Ie(Nn)}function an(Nn){return er(Nn)?Xn(Nn):Ie(Nn)}function Xn(Nn){return Nn===46?(he.consume(Nn),He=0,an):Nn===62?(he.exit("autolinkProtocol").type="autolinkEmail",he.enter("autolinkMarker"),he.consume(Nn),he.exit("autolinkMarker"),he.exit("autolink"),Ae):Vn(Nn)}function Vn(Nn){if((Nn===45||er(Nn))&&He++<63){const yr=Nn===45?Vn:Xn;return he.consume(Nn),yr}return Ie(Nn)}}const si={name:"htmlText",tokenize:yh};function yh(he,Ae,Ie){const He=this;let rt,ct,St;return Dt;function Dt(wn){return he.enter("htmlText"),he.enter("htmlTextData"),he.consume(wn),cn}function cn(wn){return wn===33?(he.consume(wn),On):wn===47?(he.consume(wn),Ve):wn===63?(he.consume(wn),ye):Ti(wn)?(he.consume(wn),wt):Ie(wn)}function On(wn){return wn===45?(he.consume(wn),an):wn===91?(he.consume(wn),ct=0,yr):Ti(wn)?(he.consume(wn),pe):Ie(wn)}function an(wn){return wn===45?(he.consume(wn),Nn):Ie(wn)}function Xn(wn){return wn===null?Ie(wn):wn===45?(he.consume(wn),Vn):ln(wn)?(St=Xn,lr(wn)):(he.consume(wn),Xn)}function Vn(wn){return wn===45?(he.consume(wn),Nn):Xn(wn)}function Nn(wn){return wn===62?Gi(wn):wn===45?Vn(wn):Xn(wn)}function yr(wn){const or="CDATA[";return wn===or.charCodeAt(ct++)?(he.consume(wn),ct===or.length?ie:yr):Ie(wn)}function ie(wn){return wn===null?Ie(wn):wn===93?(he.consume(wn),oe):ln(wn)?(St=ie,lr(wn)):(he.consume(wn),ie)}function oe(wn){return wn===93?(he.consume(wn),ge):ie(wn)}function ge(wn){return wn===62?Gi(wn):wn===93?(he.consume(wn),ge):ie(wn)}function pe(wn){return wn===null||wn===62?Gi(wn):ln(wn)?(St=pe,lr(wn)):(he.consume(wn),pe)}function ye(wn){return wn===null?Ie(wn):wn===63?(he.consume(wn),Oe):ln(wn)?(St=ye,lr(wn)):(he.consume(wn),ye)}function Oe(wn){return wn===62?Gi(wn):ye(wn)}function Ve(wn){return Ti(wn)?(he.consume(wn),Xe):Ie(wn)}function Xe(wn){return wn===45||er(wn)?(he.consume(wn),Xe):et(wn)}function et(wn){return ln(wn)?(St=et,lr(wn)):bn(wn)?(he.consume(wn),et):Gi(wn)}function wt(wn){return wn===45||er(wn)?(he.consume(wn),wt):wn===47||wn===62||Ur(wn)?Jt(wn):Ie(wn)}function Jt(wn){return wn===47?(he.consume(wn),Gi):wn===58||wn===95||Ti(wn)?(he.consume(wn),Nt):ln(wn)?(St=Jt,lr(wn)):bn(wn)?(he.consume(wn),Jt):Gi(wn)}function Nt(wn){return wn===45||wn===46||wn===58||wn===95||er(wn)?(he.consume(wn),Nt):Bn(wn)}function Bn(wn){return wn===61?(he.consume(wn),Sn):ln(wn)?(St=Bn,lr(wn)):bn(wn)?(he.consume(wn),Bn):Jt(wn)}function Sn(wn){return wn===null||wn===60||wn===61||wn===62||wn===96?Ie(wn):wn===34||wn===39?(he.consume(wn),rt=wn,ti):ln(wn)?(St=Sn,lr(wn)):bn(wn)?(he.consume(wn),Sn):(he.consume(wn),gi)}function ti(wn){return wn===rt?(he.consume(wn),rt=void 0,bi):wn===null?Ie(wn):ln(wn)?(St=ti,lr(wn)):(he.consume(wn),ti)}function gi(wn){return wn===null||wn===34||wn===39||wn===60||wn===61||wn===96?Ie(wn):wn===47||wn===62||Ur(wn)?Jt(wn):(he.consume(wn),gi)}function bi(wn){return wn===47||wn===62||Ur(wn)?Jt(wn):Ie(wn)}function Gi(wn){return wn===62?(he.consume(wn),he.exit("htmlTextData"),he.exit("htmlText"),Ae):Ie(wn)}function lr(wn){return he.exit("htmlTextData"),he.enter("lineEnding"),he.consume(wn),he.exit("lineEnding"),rr}function rr(wn){return bn(wn)?vo(he,Cr,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(wn):Cr(wn)}function Cr(wn){return he.enter("htmlTextData"),St(wn)}}const qh={name:"labelStartLink",resolveAll:fc.resolveAll,tokenize:pc};function pc(he,Ae,Ie){const He=this;return rt;function rt(St){return he.enter("labelLink"),he.enter("labelMarker"),he.consume(St),he.exit("labelMarker"),he.exit("labelLink"),ct}function ct(St){return St===94&&"_hiddenFootnoteSupport"in He.parser.constructs?Ie(St):Ae(St)}}const mc={name:"hardBreakEscape",tokenize:Lc};function Lc(he,Ae,Ie){return He;function He(ct){return he.enter("hardBreakEscape"),he.consume(ct),rt}function rt(ct){return ln(ct)?(he.exit("hardBreakEscape"),Ae(ct)):Ie(ct)}}const Sh={name:"codeText",previous:ps,resolve:kd,tokenize:io};function kd(he){let Ae=he.length-4,Ie=3,He,rt;if((he[Ie][1].type==="lineEnding"||he[Ie][1].type==="space")&&(he[Ae][1].type==="lineEnding"||he[Ae][1].type==="space")){for(He=Ie;++He<Ae;)if(he[He][1].type==="codeTextData"){he[Ie][1].type="codeTextPadding",he[Ae][1].type="codeTextPadding",Ie+=2,Ae-=2;break}}for(He=Ie-1,Ae++;++He<=Ae;)rt===void 0?He!==Ae&&he[He][1].type!=="lineEnding"&&(rt=He):(He===Ae||he[He][1].type==="lineEnding")&&(he[rt][1].type="codeTextData",He!==rt+2&&(he[rt][1].end=he[He-1][1].end,he.splice(rt+2,He-rt-2),Ae-=He-rt-2,He=rt+2),rt=void 0);return he}function ps(he){return he!==96||this.events[this.events.length-1][1].type==="characterEscape"}function io(he,Ae,Ie){const He=this;let rt=0,ct,St;return Dt;function Dt(Vn){return he.enter("codeText"),he.enter("codeTextSequence"),cn(Vn)}function cn(Vn){return Vn===96?(he.consume(Vn),rt++,cn):(he.exit("codeTextSequence"),On(Vn))}function On(Vn){return Vn===null?Ie(Vn):Vn===32?(he.enter("space"),he.consume(Vn),he.exit("space"),On):Vn===96?(St=he.enter("codeTextSequence"),ct=0,Xn(Vn)):ln(Vn)?(he.enter("lineEnding"),he.consume(Vn),he.exit("lineEnding"),On):(he.enter("codeTextData"),an(Vn))}function an(Vn){return Vn===null||Vn===32||Vn===96||ln(Vn)?(he.exit("codeTextData"),On(Vn)):(he.consume(Vn),an)}function Xn(Vn){return Vn===96?(he.consume(Vn),ct++,Xn):ct===rt?(he.exit("codeTextSequence"),he.exit("codeText"),Ae(Vn)):(St.type="codeTextData",an(Vn))}}const El={42:Wo,43:Wo,45:Wo,48:Wo,49:Wo,50:Wo,51:Wo,52:Wo,53:Wo,54:Wo,55:Wo,56:Wo,57:Wo,62:vn},yl={91:Jo},Za={[-2]:bo,[-1]:bo,32:bo},Go={35:dl,42:xo,45:[Ii,xo],60:mu,61:Ii,95:xo,96:ml,126:ml},Ks={38:Ed,92:kc},Jl={[-5]:Ml,[-4]:Ml,[-3]:Ml,33:gc,38:Ed,42:Pd,60:[Td,si],91:qh,92:[mc,kc],93:fc,95:Pd,96:Sh},Ga={null:[Pd,Wr]},yu={null:[42,95]},sl={null:[]};function fd(he,Ae,Ie){let He={_bufferIndex:-1,_index:0,line:Ie&&Ie.line||1,column:Ie&&Ie.column||1,offset:Ie&&Ie.offset||0};const rt={},ct=[];let St=[],Dt=[],cn=!0;const On={attempt:Jt(et),check:Jt(wt),consume:Oe,enter:Ve,exit:Xe,interrupt:Jt(wt,{interrupt:!0})},an={code:null,containerState:{},defineSkip:ge,events:[],now:oe,parser:he,previous:null,sliceSerialize:yr,sliceStream:ie,write:Nn};let Xn=Ae.tokenize.call(an,On),Vn;return Ae.resolveAll&&ct.push(Ae),an;function Nn(ti){return St=In(St,ti),pe(),St[St.length-1]!==null?[]:(Nt(Ae,0),an.events=Ac(ct,an.events,an),an.events)}function yr(ti,gi){return Cl(ie(ti),gi)}function ie(ti){return da(St,ti)}function oe(){const{_bufferIndex:ti,_index:gi,line:bi,column:Gi,offset:lr}=He;return{_bufferIndex:ti,_index:gi,line:bi,column:Gi,offset:lr}}function ge(ti){rt[ti.line]=ti.column,Sn()}function pe(){let ti;for(;He._index<St.length;){const gi=St[He._index];if(typeof gi=="string")for(ti=He._index,He._bufferIndex<0&&(He._bufferIndex=0);He._index===ti&&He._bufferIndex<gi.length;)ye(gi.charCodeAt(He._bufferIndex));else ye(gi)}}function ye(ti){cn=void 0,Vn=ti,Xn=Xn(ti)}function Oe(ti){ln(ti)?(He.line++,He.column=1,He.offset+=ti===-3?2:1,Sn()):ti!==-1&&(He.column++,He.offset++),He._bufferIndex<0?He._index++:(He._bufferIndex++,He._bufferIndex===St[He._index].length&&(He._bufferIndex=-1,He._index++)),an.previous=ti,cn=!0}function Ve(ti,gi){const bi=gi||{};return bi.type=ti,bi.start=oe(),an.events.push(["enter",bi,an]),Dt.push(bi),bi}function Xe(ti){const gi=Dt.pop();return gi.end=oe(),an.events.push(["exit",gi,an]),gi}function et(ti,gi){Nt(ti,gi.from)}function wt(ti,gi){gi.restore()}function Jt(ti,gi){return bi;function bi(Gi,lr,rr){let Cr,wn,or,Eo;return Array.isArray(Gi)?Oa(Gi):"tokenize"in Gi?Oa([Gi]):_n(Gi);function _n(wa){return Ds;function Ds(Es){const Bo=Es!==null&&wa[Es],Yo=Es!==null&&wa.null,Xa=[...Array.isArray(Bo)?Bo:Bo?[Bo]:[],...Array.isArray(Yo)?Yo:Yo?[Yo]:[]];return Oa(Xa)(Es)}}function Oa(wa){return Cr=wa,wn=0,wa.length===0?rr:Ta(wa[wn])}function Ta(wa){return Ds;function Ds(Es){return Eo=Bn(),or=wa,wa.partial||(an.currentConstruct=wa),wa.name&&an.parser.constructs.disable.null.includes(wa.name)?Hs(Es):wa.tokenize.call(gi?Object.assign(Object.create(an),gi):an,On,Gs,Hs)(Es)}}function Gs(wa){return cn=!0,ti(or,Eo),lr}function Hs(wa){return cn=!0,Eo.restore(),++wn<Cr.length?Ta(Cr[wn]):rr}}}function Nt(ti,gi){ti.resolveAll&&!ct.includes(ti)&&ct.push(ti),ti.resolve&&gn(an.events,gi,an.events.length-gi,ti.resolve(an.events.slice(gi),an)),ti.resolveTo&&(an.events=ti.resolveTo(an.events,an))}function Bn(){const ti=oe(),gi=an.previous,bi=an.currentConstruct,Gi=an.events.length,lr=Array.from(Dt);return{from:Gi,restore:rr};function rr(){He=ti,an.previous=gi,an.currentConstruct=bi,an.events.length=Gi,Dt=lr,Sn()}}function Sn(){He.line in rt&&He.column<2&&(He.column=rt[He.line],He.offset+=rt[He.line]-1)}}function da(he,Ae){const Ie=Ae.start._index,He=Ae.start._bufferIndex,rt=Ae.end._index,ct=Ae.end._bufferIndex;let St;if(Ie===rt)St=[he[Ie].slice(He,ct)];else{if(St=he.slice(Ie,rt),He>-1){const Dt=St[0];typeof Dt=="string"?St[0]=Dt.slice(He):St.shift()}ct>0&&St.push(he[rt].slice(0,ct))}return St}function Cl(he,Ae){let Ie=-1;const He=[];let rt;for(;++Ie<he.length;){const ct=he[Ie];let St;if(typeof ct=="string")St=ct;else switch(ct){case-5:{St="\r";break}case-4:{St=`
`;break}case-3:{St=`\r
`;break}case-2:{St=Ae?" ":" ";break}case-1:{if(!Ae&&rt)continue;St=" ";break}default:St=String.fromCharCode(ct)}rt=ct===-2,He.push(St)}return He.join("")}function ha(he){const He={constructs:Er([Te,...(he||{}).extensions||[]]),content:rt(Ro),defined:[],document:rt(qi),flow:rt(no),lazy:{},string:rt(na),text:rt(tr)};return He;function rt(ct){return St;function St(Dt){return fd(He,ct,Dt)}}}const Fa=/[\0\t\n\r]/g;function rs(){let he=1,Ae="",Ie=!0,He;return rt;function rt(ct,St,Dt){const cn=[];let On,an,Xn,Vn,Nn;for(ct=Ae+(typeof ct=="string"?ct.toString():new TextDecoder(St||void 0).decode(ct)),Xn=0,Ae="",Ie&&(ct.charCodeAt(0)===65279&&Xn++,Ie=void 0);Xn<ct.length;){if(Fa.lastIndex=Xn,On=Fa.exec(ct),Vn=On&&On.index!==void 0?On.index:ct.length,Nn=ct.charCodeAt(Vn),!On){Ae=ct.slice(Xn);break}if(Nn===10&&Xn===Vn&&He)cn.push(-3),He=void 0;else switch(He&&(cn.push(-5),He=void 0),Xn<Vn&&(cn.push(ct.slice(Xn,Vn)),he+=Vn-Xn),Nn){case 0:{cn.push(65533),he++;break}case 9:{for(an=Math.ceil(he/4)*4,cn.push(-2);he++<an;)cn.push(-1);break}case 10:{cn.push(-4),he=1;break}default:He=!0,he=1}Xn=Vn+1}return Dt&&(He&&cn.push(-5),Ae&&cn.push(Ae),cn.push(null)),cn}}function ms(he,Ae){const Ie=Number.parseInt(he,Ae);return Ie<9||Ie===11||Ie>13&&Ie<32||Ie>126&&Ie<160||Ie>55295&&Ie<57344||Ie>64975&&Ie<65008||(Ie&65535)===65535||(Ie&65535)===65534||Ie>1114111?"\uFFFD":String.fromCodePoint(Ie)}const Sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gd(he){return he.replace(Sa,eo)}function eo(he,Ae,Ie){if(Ae)return Ae;if(Ie.charCodeAt(0)===35){const rt=Ie.charCodeAt(1),ct=rt===120||rt===88;return ms(Ie.slice(ct?2:1),ct?16:10)}return Tc(Ie)||he}const ef={}.hasOwnProperty;function sa(he,Ae,Ie){return typeof Ae!="string"&&(Ie=Ae,Ae=void 0),Mf(Ie)(ui(ha(Ie).document().write(rs()(he,Ae,!0))))}function Mf(he){const Ae={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:ct(Ba),autolinkProtocol:Jt,autolinkEmail:Jt,atxHeading:ct(Ka),blockQuote:ct(Es),characterEscape:Jt,characterReference:Jt,codeFenced:ct(Bo),codeFencedFenceInfo:St,codeFencedFenceMeta:St,codeIndented:ct(Bo,St),codeText:ct(Yo,St),codeTextData:Jt,data:Jt,codeFlowValue:Jt,definition:ct(Xa),definitionDestinationString:St,definitionLabelString:St,definitionTitleString:St,emphasis:ct(As),hardBreakEscape:ct(tl),hardBreakTrailing:ct(tl),htmlFlow:ct(Zo,St),htmlFlowData:Jt,htmlText:ct(Zo,St),htmlTextData:Jt,image:ct(ru),label:St,link:ct(Ba),listItem:ct(kl),listItemValue:Vn,listOrdered:ct(jl,Xn),listUnordered:ct(jl),paragraph:ct(ou),reference:_n,referenceString:St,resourceDestinationString:St,resourceTitleString:St,setextHeading:ct(Ka),strong:ct(Ul),thematicBreak:ct(nl)},exit:{atxHeading:cn(),atxHeadingSequence:Ve,autolink:cn(),autolinkEmail:Ds,autolinkProtocol:wa,blockQuote:cn(),characterEscapeValue:Nt,characterReferenceMarkerHexadecimal:Ta,characterReferenceMarkerNumeric:Ta,characterReferenceValue:Gs,characterReference:Hs,codeFenced:cn(oe),codeFencedFence:ie,codeFencedFenceInfo:Nn,codeFencedFenceMeta:yr,codeFlowValue:Nt,codeIndented:cn(ge),codeText:cn(bi),codeTextData:Nt,data:Nt,definition:cn(),definitionDestinationString:Oe,definitionLabelString:pe,definitionTitleString:ye,emphasis:cn(),hardBreakEscape:cn(Sn),hardBreakTrailing:cn(Sn),htmlFlow:cn(ti),htmlFlowData:Nt,htmlText:cn(gi),htmlTextData:Nt,image:cn(lr),label:Cr,labelText:rr,lineEnding:Bn,link:cn(Gi),listItem:cn(),listOrdered:cn(),listUnordered:cn(),paragraph:cn(),referenceString:Oa,resourceDestinationString:wn,resourceTitleString:or,resource:Eo,setextHeading:cn(wt),setextHeadingLineSequence:et,setextHeadingText:Xe,strong:cn(),thematicBreak:cn()}};Ad(Ae,(he||{}).mdastExtensions||[]);const Ie={};return He;function He(Hi){let Or={type:"root",children:[]};const va={stack:[Or],tokenStack:[],config:Ae,enter:Dt,exit:On,buffer:St,resume:an,data:Ie},zo=[];let Qa=-1;for(;++Qa<Hi.length;)if(Hi[Qa][1].type==="listOrdered"||Hi[Qa][1].type==="listUnordered")if(Hi[Qa][0]==="enter")zo.push(Qa);else{const il=zo.pop();Qa=rt(Hi,il,Qa)}for(Qa=-1;++Qa<Hi.length;){const il=Ae[Hi[Qa][0]];ef.call(il,Hi[Qa][1].type)&&il[Hi[Qa][1].type].call(Object.assign({sliceSerialize:Hi[Qa][2].sliceSerialize},va),Hi[Qa][1])}if(va.tokenStack.length>0){const il=va.tokenStack[va.tokenStack.length-1];(il[1]||Yd).call(va,void 0,il[0])}for(Or.position={start:Wu(Hi.length>0?Hi[0][1].start:{line:1,column:1,offset:0}),end:Wu(Hi.length>0?Hi[Hi.length-2][1].end:{line:1,column:1,offset:0})},Qa=-1;++Qa<Ae.transforms.length;)Or=Ae.transforms[Qa](Or)||Or;return Or}function rt(Hi,Or,va){let zo=Or-1,Qa=-1,il=!1,Cu,au,nc,ic;for(;++zo<=va;){const su=Hi[zo];switch(su[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{su[0]==="enter"?Qa++:Qa--,ic=void 0;break}case"lineEndingBlank":{su[0]==="enter"&&(Cu&&!ic&&!Qa&&!nc&&(nc=zo),ic=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ic=void 0}if(!Qa&&su[0]==="enter"&&su[1].type==="listItemPrefix"||Qa===-1&&su[0]==="exit"&&(su[1].type==="listUnordered"||su[1].type==="listOrdered")){if(Cu){let rc=zo;for(au=void 0;rc--;){const Pu=Hi[rc];if(Pu[1].type==="lineEnding"||Pu[1].type==="lineEndingBlank"){if(Pu[0]==="exit")continue;au&&(Hi[au][1].type="lineEndingBlank",il=!0),Pu[1].type="lineEnding",au=rc}else if(!(Pu[1].type==="linePrefix"||Pu[1].type==="blockQuotePrefix"||Pu[1].type==="blockQuotePrefixWhitespace"||Pu[1].type==="blockQuoteMarker"||Pu[1].type==="listItemIndent"))break}nc&&(!au||nc<au)&&(Cu._spread=!0),Cu.end=Object.assign({},au?Hi[au][1].start:su[1].end),Hi.splice(au||zo,0,["exit",Cu,su[2]]),zo++,va++}if(su[1].type==="listItemPrefix"){const rc={type:"listItem",_spread:!1,start:Object.assign({},su[1].start),end:void 0};Cu=rc,Hi.splice(zo,0,["enter",rc,su[2]]),zo++,va++,nc=void 0,ic=!0}}}return Hi[Or][1]._spread=il,va}function ct(Hi,Or){return va;function va(zo){Dt.call(this,Hi(zo),zo),Or&&Or.call(this,zo)}}function St(){this.stack.push({type:"fragment",children:[]})}function Dt(Hi,Or,va){this.stack[this.stack.length-1].children.push(Hi),this.stack.push(Hi),this.tokenStack.push([Or,va||void 0]),Hi.position={start:Wu(Or.start),end:void 0}}function cn(Hi){return Or;function Or(va){Hi&&Hi.call(this,va),On.call(this,va)}}function On(Hi,Or){const va=this.stack.pop(),zo=this.tokenStack.pop();if(zo)zo[0].type!==Hi.type&&(Or?Or.call(this,Hi,zo[0]):(zo[1]||Yd).call(this,Hi,zo[0]));else throw new Error("Cannot close `"+Hi.type+"` ("+ni({start:Hi.start,end:Hi.end})+"): it\u2019s not open");va.position.end=Wu(Hi.end)}function an(){return Fn(this.stack.pop())}function Xn(){this.data.expectingFirstListItemValue=!0}function Vn(Hi){if(this.data.expectingFirstListItemValue){const Or=this.stack[this.stack.length-2];Or.start=Number.parseInt(this.sliceSerialize(Hi),10),this.data.expectingFirstListItemValue=void 0}}function Nn(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.lang=Hi}function yr(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.meta=Hi}function ie(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function oe(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.value=Hi.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function ge(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.value=Hi.replace(/(\r?\n|\r)$/g,"")}function pe(Hi){const Or=this.resume(),va=this.stack[this.stack.length-1];va.label=Or,va.identifier=ao(this.sliceSerialize(Hi)).toLowerCase()}function ye(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.title=Hi}function Oe(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.url=Hi}function Ve(Hi){const Or=this.stack[this.stack.length-1];if(!Or.depth){const va=this.sliceSerialize(Hi).length;Or.depth=va}}function Xe(){this.data.setextHeadingSlurpLineEnding=!0}function et(Hi){const Or=this.stack[this.stack.length-1];Or.depth=this.sliceSerialize(Hi).codePointAt(0)===61?1:2}function wt(){this.data.setextHeadingSlurpLineEnding=void 0}function Jt(Hi){const va=this.stack[this.stack.length-1].children;let zo=va[va.length-1];(!zo||zo.type!=="text")&&(zo=Ra(),zo.position={start:Wu(Hi.start),end:void 0},va.push(zo)),this.stack.push(zo)}function Nt(Hi){const Or=this.stack.pop();Or.value+=this.sliceSerialize(Hi),Or.position.end=Wu(Hi.end)}function Bn(Hi){const Or=this.stack[this.stack.length-1];if(this.data.atHardBreak){const va=Or.children[Or.children.length-1];va.position.end=Wu(Hi.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Ae.canContainEols.includes(Or.type)&&(Jt.call(this,Hi),Nt.call(this,Hi))}function Sn(){this.data.atHardBreak=!0}function ti(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.value=Hi}function gi(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.value=Hi}function bi(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.value=Hi}function Gi(){const Hi=this.stack[this.stack.length-1];if(this.data.inReference){const Or=this.data.referenceType||"shortcut";Hi.type+="Reference",Hi.referenceType=Or,delete Hi.url,delete Hi.title}else delete Hi.identifier,delete Hi.label;this.data.referenceType=void 0}function lr(){const Hi=this.stack[this.stack.length-1];if(this.data.inReference){const Or=this.data.referenceType||"shortcut";Hi.type+="Reference",Hi.referenceType=Or,delete Hi.url,delete Hi.title}else delete Hi.identifier,delete Hi.label;this.data.referenceType=void 0}function rr(Hi){const Or=this.sliceSerialize(Hi),va=this.stack[this.stack.length-2];va.label=gd(Or),va.identifier=ao(Or).toLowerCase()}function Cr(){const Hi=this.stack[this.stack.length-1],Or=this.resume(),va=this.stack[this.stack.length-1];if(this.data.inReference=!0,va.type==="link"){const zo=Hi.children;va.children=zo}else va.alt=Or}function wn(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.url=Hi}function or(){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.title=Hi}function Eo(){this.data.inReference=void 0}function _n(){this.data.referenceType="collapsed"}function Oa(Hi){const Or=this.resume(),va=this.stack[this.stack.length-1];va.label=Or,va.identifier=ao(this.sliceSerialize(Hi)).toLowerCase(),this.data.referenceType="full"}function Ta(Hi){this.data.characterReferenceType=Hi.type}function Gs(Hi){const Or=this.sliceSerialize(Hi),va=this.data.characterReferenceType;let zo;va?(zo=ms(Or,va==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):zo=Tc(Or);const Qa=this.stack[this.stack.length-1];Qa.value+=zo}function Hs(Hi){const Or=this.stack.pop();Or.position.end=Wu(Hi.end)}function wa(Hi){Nt.call(this,Hi);const Or=this.stack[this.stack.length-1];Or.url=this.sliceSerialize(Hi)}function Ds(Hi){Nt.call(this,Hi);const Or=this.stack[this.stack.length-1];Or.url="mailto:"+this.sliceSerialize(Hi)}function Es(){return{type:"blockquote",children:[]}}function Bo(){return{type:"code",lang:null,meta:null,value:""}}function Yo(){return{type:"inlineCode",value:""}}function Xa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function As(){return{type:"emphasis",children:[]}}function Ka(){return{type:"heading",depth:0,children:[]}}function tl(){return{type:"break"}}function Zo(){return{type:"html",value:""}}function ru(){return{type:"image",title:null,url:"",alt:null}}function Ba(){return{type:"link",title:null,url:"",children:[]}}function jl(Hi){return{type:"list",ordered:Hi.type==="listOrdered",start:null,spread:Hi._spread,children:[]}}function kl(Hi){return{type:"listItem",spread:Hi._spread,checked:null,children:[]}}function ou(){return{type:"paragraph",children:[]}}function Ul(){return{type:"strong",children:[]}}function Ra(){return{type:"text",value:""}}function nl(){return{type:"thematicBreak"}}}function Wu(he){return{line:he.line,column:he.column,offset:he.offset}}function Ad(he,Ae){let Ie=-1;for(;++Ie<Ae.length;){const He=Ae[Ie];Array.isArray(He)?Ad(he,He):Of(he,He)}}function Of(he,Ae){let Ie;for(Ie in Ae)if(ef.call(Ae,Ie))switch(Ie){case"canContainEols":{const He=Ae[Ie];He&&he[Ie].push(...He);break}case"transforms":{const He=Ae[Ie];He&&he[Ie].push(...He);break}case"enter":case"exit":{const He=Ae[Ie];He&&Object.assign(he[Ie],He);break}}}function Yd(he,Ae){throw he?new Error("Cannot close `"+he.type+"` ("+ni({start:he.start,end:he.end})+"): a different token (`"+Ae.type+"`, "+ni({start:Ae.start,end:Ae.end})+") is open"):new Error("Cannot close document, a token (`"+Ae.type+"`, "+ni({start:Ae.start,end:Ae.end})+") is still open")}function Zc(he){const Ae=this;Ae.parser=Ie;function Ie(He){return sa(He,rS(Ss(Ss({},Ae.data("settings")),he),{extensions:Ae.data("micromarkExtensions")||[],mdastExtensions:Ae.data("fromMarkdownExtensions")||[]}))}}const $c=-1,la=0,Mu=1,Ld=2,Nc=3,xh=4,Ku=5,Su=6,Ic=7,Vu=8,Mc=typeof self=="object"?self:globalThis,bh=(he,Ae)=>{const Ie=(rt,ct)=>(he.set(ct,rt),rt),He=rt=>{if(he.has(rt))return he.get(rt);const[ct,St]=Ae[rt];switch(ct){case la:case $c:return Ie(St,rt);case Mu:{const Dt=Ie([],rt);for(const cn of St)Dt.push(He(cn));return Dt}case Ld:{const Dt=Ie({},rt);for(const[cn,On]of St)Dt[He(cn)]=He(On);return Dt}case Nc:return Ie(new Date(St),rt);case xh:{const{source:Dt,flags:cn}=St;return Ie(new RegExp(Dt,cn),rt)}case Ku:{const Dt=Ie(new Map,rt);for(const[cn,On]of St)Dt.set(He(cn),He(On));return Dt}case Su:{const Dt=Ie(new Set,rt);for(const cn of St)Dt.add(He(cn));return Dt}case Ic:{const{name:Dt,message:cn}=St;return Ie(new Mc[Dt](cn),rt)}case Vu:return Ie(BigInt(St),rt);case"BigInt":return Ie(Object(BigInt(St)),rt)}return Ie(new Mc[ct](St),rt)};return He},wh=he=>bh(new Map,he)(0),Yc="",{toString:Rf}={},{keys:Ol}=Object,Zu=he=>{const Ae=typeof he;if(Ae!=="object"||!he)return[la,Ae];const Ie=Rf.call(he).slice(8,-1);switch(Ie){case"Array":return[Mu,Yc];case"Object":return[Ld,Yc];case"Date":return[Nc,Yc];case"RegExp":return[xh,Yc];case"Map":return[Ku,Yc];case"Set":return[Su,Yc]}return Ie.includes("Array")?[Mu,Ie]:Ie.includes("Error")?[Ic,Ie]:[Ld,Ie]},Eh=([he,Ae])=>he===la&&(Ae==="function"||Ae==="symbol"),dt=(he,Ae,Ie,He)=>{const rt=(St,Dt)=>{const cn=He.push(St)-1;return Ie.set(Dt,cn),cn},ct=St=>{if(Ie.has(St))return Ie.get(St);let[Dt,cn]=Zu(St);switch(Dt){case la:{let an=St;switch(cn){case"bigint":Dt=Vu,an=St.toString();break;case"function":case"symbol":if(he)throw new TypeError("unable to serialize "+cn);an=null;break;case"undefined":return rt([$c],St)}return rt([Dt,an],St)}case Mu:{if(cn)return rt([cn,[...St]],St);const an=[],Xn=rt([Dt,an],St);for(const Vn of St)an.push(ct(Vn));return Xn}case Ld:{if(cn)switch(cn){case"BigInt":return rt([cn,St.toString()],St);case"Boolean":case"Number":case"String":return rt([cn,St.valueOf()],St)}if(Ae&&"toJSON"in St)return ct(St.toJSON());const an=[],Xn=rt([Dt,an],St);for(const Vn of Ol(St))(he||!Eh(Zu(St[Vn])))&&an.push([ct(Vn),ct(St[Vn])]);return Xn}case Nc:return rt([Dt,St.toISOString()],St);case xh:{const{source:an,flags:Xn}=St;return rt([Dt,{source:an,flags:Xn}],St)}case Ku:{const an=[],Xn=rt([Dt,an],St);for(const[Vn,Nn]of St)(he||!(Eh(Zu(Vn))||Eh(Zu(Nn))))&&an.push([ct(Vn),ct(Nn)]);return Xn}case Su:{const an=[],Xn=rt([Dt,an],St);for(const Vn of St)(he||!Eh(Zu(Vn)))&&an.push(ct(Vn));return Xn}}const{message:On}=St;return rt([Dt,{name:cn,message:On}],St)};return ct},pt=(he,{json:Ae,lossy:Ie}={})=>{const He=[];return dt(!(Ae||Ie),!!Ae,new Map,He)(he),He};var _t=typeof structuredClone=="function"?(he,Ae)=>Ae&&("json"in Ae||"lossy"in Ae)?wh(pt(he,Ae)):structuredClone(he):(he,Ae)=>wh(pt(he,Ae));function Vt(he,Ae){const Ie=encode(hn(he||""));if(!Ae)return Ie;const He=Ie.indexOf(":"),rt=Ie.indexOf("?"),ct=Ie.indexOf("#"),St=Ie.indexOf("/");return He<0||St>-1&&He>St||rt>-1&&He>rt||ct>-1&&He>ct||Ae.test(Ie.slice(0,He))?Ie:""}function hn(he){const Ae=[];let Ie=-1,He=0,rt=0;for(;++Ie<he.length;){const ct=he.charCodeAt(Ie);let St="";if(ct===37&&er(he.charCodeAt(Ie+1))&&er(he.charCodeAt(Ie+2)))rt=2;else if(ct<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(ct))||(St=String.fromCharCode(ct));else if(ct>55295&&ct<57344){const Dt=he.charCodeAt(Ie+1);ct<56320&&Dt>56319&&Dt<57344?(St=String.fromCharCode(ct,Dt),rt=1):St="\uFFFD"}else St=String.fromCharCode(ct);St&&(Ae.push(he.slice(He,Ie),encodeURIComponent(St)),He=Ie+rt+1,St=""),rt&&(Ie+=rt,rt=0)}return Ae.join("")+he.slice(He)}function rn(he,Ae){const Ie=[{type:"text",value:"\u21A9"}];return Ae>1&&Ie.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Ae)}]}),Ie}function Wn(he,Ae){return"Back to reference "+(he+1)+(Ae>1?"-"+Ae:"")}function Kn(he){const Ae=typeof he.options.clobberPrefix=="string"?he.options.clobberPrefix:"user-content-",Ie=he.options.footnoteBackContent||rn,He=he.options.footnoteBackLabel||Wn,rt=he.options.footnoteLabel||"Footnotes",ct=he.options.footnoteLabelTagName||"h2",St=he.options.footnoteLabelProperties||{className:["sr-only"]},Dt=[];let cn=-1;for(;++cn<he.footnoteOrder.length;){const On=he.footnoteById.get(he.footnoteOrder[cn]);if(!On)continue;const an=he.all(On),Xn=String(On.identifier).toUpperCase(),Vn=hn(Xn.toLowerCase());let Nn=0;const yr=[],ie=he.footnoteCounts.get(Xn);for(;ie!==void 0&&++Nn<=ie;){yr.length>0&&yr.push({type:"text",value:" "});let pe=typeof Ie=="string"?Ie:Ie(cn,Nn);typeof pe=="string"&&(pe={type:"text",value:pe}),yr.push({type:"element",tagName:"a",properties:{href:"#"+Ae+"fnref-"+Vn+(Nn>1?"-"+Nn:""),dataFootnoteBackref:"",ariaLabel:typeof He=="string"?He:He(cn,Nn),className:["data-footnote-backref"]},children:Array.isArray(pe)?pe:[pe]})}const oe=an[an.length-1];if(oe&&oe.type==="element"&&oe.tagName==="p"){const pe=oe.children[oe.children.length-1];pe&&pe.type==="text"?pe.value+=" ":oe.children.push({type:"text",value:" "}),oe.children.push(...yr)}else an.push(...yr);const ge={type:"element",tagName:"li",properties:{id:Ae+"fn-"+Vn},children:he.wrap(an,!0)};he.patch(On,ge),Dt.push(ge)}if(Dt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:ct,properties:rS(Ss({},_t(St)),{id:"footnote-label"}),children:[{type:"text",value:rt}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:he.wrap(Dt,!0)},{type:"text",value:`
`}]}}const jn=function(he,Ae,Ie,He,rt){const ct=ci(Ae);if(Ie!=null&&(typeof Ie!="number"||Ie<0||Ie===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(He!=null&&(!jn(He)||!He.children))throw new Error("Expected parent node");if(He==null!=(Ie==null))throw new Error("Expected both parent and index");return gr(he)?ct.call(rt,he,Ie,He):!1},ci=function(he){if(he==null)return Ni;if(typeof he=="function")return Di(he);if(typeof he=="object")return Array.isArray(he)?yi(he):mi(he);if(typeof he=="string")return Ui(he);throw new Error("Expected function, string, or object as test")};function yi(he){const Ae=[];let Ie=-1;for(;++Ie<he.length;)Ae[Ie]=ci(he[Ie]);return Di(He);function He(...rt){let ct=-1;for(;++ct<Ae.length;)if(Ae[ct].apply(this,rt))return!0;return!1}}function mi(he){const Ae=he;return Di(Ie);function Ie(He){const rt=He;let ct;for(ct in he)if(rt[ct]!==Ae[ct])return!1;return!0}}function Ui(he){return Di(Ae);function Ae(Ie){return Ie&&Ie.type===he}}function Di(he){return Ae;function Ae(Ie,He,rt){return!!(gr(Ie)&&he.call(this,Ie,typeof He=="number"?He:void 0,rt||void 0))}}function Ni(){return!0}function gr(he){return he!==null&&typeof he=="object"&&"type"in he}function Ri(he){return he}const ur=[],sr=!0,br=!1,Zr="skip";function ro(he,Ae,Ie,He){let rt;typeof Ae=="function"&&typeof Ie!="function"?(He=Ie,Ie=Ae):rt=Ae;const ct=ci(rt),St=He?-1:1;Dt(he,void 0,[])();function Dt(cn,On,an){const Xn=cn&&typeof cn=="object"?cn:{};if(typeof Xn.type=="string"){const Nn=typeof Xn.tagName=="string"?Xn.tagName:typeof Xn.name=="string"?Xn.name:void 0;Object.defineProperty(Vn,"name",{value:"node ("+(cn.type+(Nn?"<"+Nn+">":""))+")"})}return Vn;function Vn(){let Nn=ur,yr,ie,oe;if((!Ae||ct(cn,On,an[an.length-1]||void 0))&&(Nn=pr(Ie(cn,an)),Nn[0]===br))return Nn;if("children"in cn&&cn.children){const ge=cn;if(ge.children&&Nn[0]!==Zr)for(ie=(He?ge.children.length:-1)+St,oe=an.concat(ge);ie>-1&&ie<ge.children.length;){const pe=ge.children[ie];if(yr=Dt(pe,ie,oe)(),yr[0]===br)return yr;ie=typeof yr[1]=="number"?yr[1]:ie+St}}return Nn}}}function pr(he){return Array.isArray(he)?he:typeof he=="number"?[sr,he]:he==null?ur:[he]}function _r(he,Ae,Ie,He){let rt,ct,St;typeof Ae=="function"&&typeof Ie!="function"?(ct=void 0,St=Ae,rt=Ie):(ct=Ae,St=Ie,rt=He),ro(he,ct,Dt,rt);function Dt(cn,On){const an=On[On.length-1],Xn=an?an.children.indexOf(cn):void 0;return St(cn,Xn,an)}}function ko(he,Ae){const Ie={type:"element",tagName:"blockquote",properties:{},children:he.wrap(he.all(Ae),!0)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function wr(he,Ae){const Ie={type:"element",tagName:"br",properties:{},children:[]};return he.patch(Ae,Ie),[he.applyData(Ae,Ie),{type:"text",value:`
`}]}function Br(he,Ae){const Ie=Ae.value?Ae.value+`
`:"",He={};Ae.lang&&(He.className=["language-"+Ae.lang]);let rt={type:"element",tagName:"code",properties:He,children:[{type:"text",value:Ie}]};return Ae.meta&&(rt.data={meta:Ae.meta}),he.patch(Ae,rt),rt=he.applyData(Ae,rt),rt={type:"element",tagName:"pre",properties:{},children:[rt]},he.patch(Ae,rt),rt}function xr(he,Ae){const Ie={type:"element",tagName:"del",properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function $i(he,Ae){const Ie={type:"element",tagName:"em",properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function Nr(he,Ae){const Ie=typeof he.options.clobberPrefix=="string"?he.options.clobberPrefix:"user-content-",He=String(Ae.identifier).toUpperCase(),rt=hn(He.toLowerCase()),ct=he.footnoteOrder.indexOf(He);let St,Dt=he.footnoteCounts.get(He);Dt===void 0?(Dt=0,he.footnoteOrder.push(He),St=he.footnoteOrder.length):St=ct+1,Dt+=1,he.footnoteCounts.set(He,Dt);const cn={type:"element",tagName:"a",properties:{href:"#"+Ie+"fn-"+rt,id:Ie+"fnref-"+rt+(Dt>1?"-"+Dt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(St)}]};he.patch(Ae,cn);const On={type:"element",tagName:"sup",properties:{},children:[cn]};return he.patch(Ae,On),he.applyData(Ae,On)}function Qr(he,Ae){const Ie={type:"element",tagName:"h"+Ae.depth,properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function fo(he,Ae){if(he.options.allowDangerousHtml){const Ie={type:"raw",value:Ae.value};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}}function po(he,Ae){const Ie=Ae.referenceType;let He="]";if(Ie==="collapsed"?He+="[]":Ie==="full"&&(He+="["+(Ae.label||Ae.identifier)+"]"),Ae.type==="imageReference")return[{type:"text",value:"!["+Ae.alt+He}];const rt=he.all(Ae),ct=rt[0];ct&&ct.type==="text"?ct.value="["+ct.value:rt.unshift({type:"text",value:"["});const St=rt[rt.length-1];return St&&St.type==="text"?St.value+=He:rt.push({type:"text",value:He}),rt}function mr(he,Ae){const Ie=String(Ae.identifier).toUpperCase(),He=he.definitionById.get(Ie);if(!He)return po(he,Ae);const rt={src:hn(He.url||""),alt:Ae.alt};He.title!==null&&He.title!==void 0&&(rt.title=He.title);const ct={type:"element",tagName:"img",properties:rt,children:[]};return he.patch(Ae,ct),he.applyData(Ae,ct)}function Lo(he,Ae){const Ie={src:hn(Ae.url)};Ae.alt!==null&&Ae.alt!==void 0&&(Ie.alt=Ae.alt),Ae.title!==null&&Ae.title!==void 0&&(Ie.title=Ae.title);const He={type:"element",tagName:"img",properties:Ie,children:[]};return he.patch(Ae,He),he.applyData(Ae,He)}function Fo(he,Ae){const Ie={type:"text",value:Ae.value.replace(/\r?\n|\r/g," ")};he.patch(Ae,Ie);const He={type:"element",tagName:"code",properties:{},children:[Ie]};return he.patch(Ae,He),he.applyData(Ae,He)}function Ea(he,Ae){const Ie=String(Ae.identifier).toUpperCase(),He=he.definitionById.get(Ie);if(!He)return po(he,Ae);const rt={href:hn(He.url||"")};He.title!==null&&He.title!==void 0&&(rt.title=He.title);const ct={type:"element",tagName:"a",properties:rt,children:he.all(Ae)};return he.patch(Ae,ct),he.applyData(Ae,ct)}function ra(he,Ae){const Ie={href:hn(Ae.url)};Ae.title!==null&&Ae.title!==void 0&&(Ie.title=Ae.title);const He={type:"element",tagName:"a",properties:Ie,children:he.all(Ae)};return he.patch(Ae,He),he.applyData(Ae,He)}function os(he,Ae,Ie){const He=he.all(Ae),rt=Ie?ts(Ie):No(Ae),ct={},St=[];if(typeof Ae.checked=="boolean"){const an=He[0];let Xn;an&&an.type==="element"&&an.tagName==="p"?Xn=an:(Xn={type:"element",tagName:"p",properties:{},children:[]},He.unshift(Xn)),Xn.children.length>0&&Xn.children.unshift({type:"text",value:" "}),Xn.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Ae.checked,disabled:!0},children:[]}),ct.className=["task-list-item"]}let Dt=-1;for(;++Dt<He.length;){const an=He[Dt];(rt||Dt!==0||an.type!=="element"||an.tagName!=="p")&&St.push({type:"text",value:`
`}),an.type==="element"&&an.tagName==="p"&&!rt?St.push(...an.children):St.push(an)}const cn=He[He.length-1];cn&&(rt||cn.type!=="element"||cn.tagName!=="p")&&St.push({type:"text",value:`
`});const On={type:"element",tagName:"li",properties:ct,children:St};return he.patch(Ae,On),he.applyData(Ae,On)}function ts(he){let Ae=!1;if(he.type==="list"){Ae=he.spread||!1;const Ie=he.children;let He=-1;for(;!Ae&&++He<Ie.length;)Ae=No(Ie[He])}return Ae}function No(he){const Ae=he.spread;return Ae==null?he.children.length>1:Ae}function to(he,Ae){const Ie={},He=he.all(Ae);let rt=-1;for(typeof Ae.start=="number"&&Ae.start!==1&&(Ie.start=Ae.start);++rt<He.length;){const St=He[rt];if(St.type==="element"&&St.tagName==="li"&&St.properties&&Array.isArray(St.properties.className)&&St.properties.className.includes("task-list-item")){Ie.className=["contains-task-list"];break}}const ct={type:"element",tagName:Ae.ordered?"ol":"ul",properties:Ie,children:he.wrap(He,!0)};return he.patch(Ae,ct),he.applyData(Ae,ct)}function ma(he,Ae){const Ie={type:"element",tagName:"p",properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function as(he,Ae){const Ie={type:"root",children:he.wrap(he.all(Ae))};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function $a(he,Ae){const Ie={type:"element",tagName:"strong",properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function Fs(he,Ae){const Ie=he.all(Ae),He=Ie.shift(),rt=[];if(He){const St={type:"element",tagName:"thead",properties:{},children:he.wrap([He],!0)};he.patch(Ae.children[0],St),rt.push(St)}if(Ie.length>0){const St={type:"element",tagName:"tbody",properties:{},children:he.wrap(Ie,!0)},Dt=Wt(Ae.children[1]),cn=bt(Ae.children[Ae.children.length-1]);Dt&&cn&&(St.position={start:Dt,end:cn}),rt.push(St)}const ct={type:"element",tagName:"table",properties:{},children:he.wrap(rt,!0)};return he.patch(Ae,ct),he.applyData(Ae,ct)}function yo(he,Ae,Ie){const He=Ie?Ie.children:void 0,ct=(He?He.indexOf(Ae):1)===0?"th":"td",St=Ie&&Ie.type==="table"?Ie.align:void 0,Dt=St?St.length:Ae.children.length;let cn=-1;const On=[];for(;++cn<Dt;){const Xn=Ae.children[cn],Vn={},Nn=St?St[cn]:void 0;Nn&&(Vn.align=Nn);let yr={type:"element",tagName:ct,properties:Vn,children:[]};Xn&&(yr.children=he.all(Xn),he.patch(Xn,yr),yr=he.applyData(Xn,yr)),On.push(yr)}const an={type:"element",tagName:"tr",properties:{},children:he.wrap(On,!0)};return he.patch(Ae,an),he.applyData(Ae,an)}function uo(he,Ae){const Ie={type:"element",tagName:"td",properties:{},children:he.all(Ae)};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}const mo=9,$r=32;function xa(he){const Ae=String(he),Ie=/\r?\n|\r/g;let He=Ie.exec(Ae),rt=0;const ct=[];for(;He;)ct.push(Yr(Ae.slice(rt,He.index),rt>0,!0),He[0]),rt=He.index+He[0].length,He=Ie.exec(Ae);return ct.push(Yr(Ae.slice(rt),rt>0,!1)),ct.join("")}function Yr(he,Ae,Ie){let He=0,rt=he.length;if(Ae){let ct=he.codePointAt(He);for(;ct===mo||ct===$r;)He++,ct=he.codePointAt(He)}if(Ie){let ct=he.codePointAt(rt-1);for(;ct===mo||ct===$r;)rt--,ct=he.codePointAt(rt-1)}return rt>He?he.slice(He,rt):""}function Ao(he,Ae){const Ie={type:"text",value:xa(String(Ae.value))};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}function ua(he,Ae){const Ie={type:"element",tagName:"hr",properties:{},children:[]};return he.patch(Ae,Ie),he.applyData(Ae,Ie)}const ca={blockquote:ko,break:wr,code:Br,delete:xr,emphasis:$i,footnoteReference:Nr,heading:Qr,html:fo,imageReference:mr,image:Lo,inlineCode:Fo,linkReference:Ea,link:ra,listItem:os,list:to,paragraph:ma,root:as,strong:$a,table:Fs,tableCell:uo,tableRow:yo,text:Ao,thematicBreak:ua,toml:Vs,yaml:Vs,definition:Vs,footnoteDefinition:Vs};function Vs(){}const Os={}.hasOwnProperty,Sl={};function Ca(he,Ae){const Ie=Ae||Sl,He=new Map,rt=new Map,ct=new Map,St=Ss(Ss({},ca),Ie.handlers),Dt={all:On,applyData:Rs,definitionById:He,footnoteById:rt,footnoteCounts:ct,footnoteOrder:[],handlers:St,one:cn,options:Ie,patch:ll,wrap:vc};return _r(he,function(an){if(an.type==="definition"||an.type==="footnoteDefinition"){const Xn=an.type==="definition"?He:rt,Vn=String(an.identifier).toUpperCase();Xn.has(Vn)||Xn.set(Vn,an)}}),Dt;function cn(an,Xn){const Vn=an.type,Nn=Dt.handlers[Vn];if(Os.call(Dt.handlers,Vn)&&Nn)return Nn(Dt,an,Xn);if(Dt.options.passThrough&&Dt.options.passThrough.includes(Vn)){if("children"in an){const ie=an,{children:oe}=ie,ge=n1(ie,["children"]),pe=_t(ge);return pe.children=Dt.all(an),pe}return _t(an)}return(Dt.options.unknownHandler||qs)(Dt,an,Xn)}function On(an){const Xn=[];if("children"in an){const Vn=an.children;let Nn=-1;for(;++Nn<Vn.length;){const yr=Dt.one(Vn[Nn],an);if(yr){if(Nn&&Vn[Nn-1].type==="break"&&(!Array.isArray(yr)&&yr.type==="text"&&(yr.value=ba(yr.value)),!Array.isArray(yr)&&yr.type==="element")){const ie=yr.children[0];ie&&ie.type==="text"&&(ie.value=ba(ie.value))}Array.isArray(yr)?Xn.push(...yr):Xn.push(yr)}}}return Xn}}function ll(he,Ae){he.position&&(Ae.position=zn(he))}function Rs(he,Ae){let Ie=Ae;if(he&&he.data){const He=he.data.hName,rt=he.data.hChildren,ct=he.data.hProperties;if(typeof He=="string")if(Ie.type==="element")Ie.tagName=He;else{const St="children"in Ie?Ie.children:[Ie];Ie={type:"element",tagName:He,properties:{},children:St}}Ie.type==="element"&&ct&&Object.assign(Ie.properties,_t(ct)),"children"in Ie&&Ie.children&&rt!==null&&rt!==void 0&&(Ie.children=rt)}return Ie}function qs(he,Ae){const Ie=Ae.data||{},He="value"in Ae&&!(Os.call(Ie,"hProperties")||Os.call(Ie,"hChildren"))?{type:"text",value:Ae.value}:{type:"element",tagName:"div",properties:{},children:he.all(Ae)};return he.patch(Ae,He),he.applyData(Ae,He)}function vc(he,Ae){const Ie=[];let He=-1;for(Ae&&Ie.push({type:"text",value:`
`});++He<he.length;)He&&Ie.push({type:"text",value:`
`}),Ie.push(he[He]);return Ae&&he.length>0&&Ie.push({type:"text",value:`
`}),Ie}function ba(he){let Ae=0,Ie=he.charCodeAt(Ae);for(;Ie===9||Ie===32;)Ae++,Ie=he.charCodeAt(Ae);return he.slice(Ae)}function Na(he,Ae){const Ie=Ca(he,Ae),He=Ie.one(he,void 0),rt=Kn(Ie),ct=Array.isArray(He)?{type:"root",children:He}:He||{type:"root",children:[]};return rt&&("children"in ct,ct.children.push({type:"text",value:`
`},rt)),ct}function za(he,Ae){return he&&"run"in he?function(Ie,He){return i1(this,null,function*(){const rt=Na(Ie,Ss({file:He},Ae));yield he.run(rt,He)})}:function(Ie,He){return Na(Ie,Ss({file:He},he||Ae))}}function vs(he){if(he)throw he}var Bs=ae(58847);function Vo(he){if(typeof he!="object"||he===null)return!1;const Ae=Object.getPrototypeOf(he);return(Ae===null||Ae===Object.prototype||Object.getPrototypeOf(Ae)===null)&&!(Symbol.toStringTag in he)&&!(Symbol.iterator in he)}function Ha(){const he=[],Ae={run:Ie,use:He};return Ae;function Ie(...rt){let ct=-1;const St=rt.pop();if(typeof St!="function")throw new TypeError("Expected function as last argument, not "+St);Dt(null,...rt);function Dt(cn,...On){const an=he[++ct];let Xn=-1;if(cn){St(cn);return}for(;++Xn<rt.length;)(On[Xn]===null||On[Xn]===void 0)&&(On[Xn]=rt[Xn]);rt=On,an?el(an,Dt)(...On):St(null,...On)}}function He(rt){if(typeof rt!="function")throw new TypeError("Expected `middelware` to be a function, not "+rt);return he.push(rt),Ae}}function el(he,Ae){let Ie;return He;function He(...St){const Dt=he.length>St.length;let cn;Dt&&St.push(rt);try{cn=he.apply(this,St)}catch(On){const an=On;if(Dt&&Ie)throw an;return rt(an)}Dt||(cn&&cn.then&&typeof cn.then=="function"?cn.then(ct,rt):cn instanceof Error?rt(cn):ct(cn))}function rt(St,...Dt){Ie||(Ie=!0,Ae(St,...Dt))}function ct(St){rt(null,St)}}const zs={basename:xu,dirname:ql,extname:Ou,join:Ru,sep:"/"};function xu(he,Ae){if(Ae!==void 0&&typeof Ae!="string")throw new TypeError('"ext" argument must be a string');Zs(he);let Ie=0,He=-1,rt=he.length,ct;if(Ae===void 0||Ae.length===0||Ae.length>he.length){for(;rt--;)if(he.codePointAt(rt)===47){if(ct){Ie=rt+1;break}}else He<0&&(ct=!0,He=rt+1);return He<0?"":he.slice(Ie,He)}if(Ae===he)return"";let St=-1,Dt=Ae.length-1;for(;rt--;)if(he.codePointAt(rt)===47){if(ct){Ie=rt+1;break}}else St<0&&(ct=!0,St=rt+1),Dt>-1&&(he.codePointAt(rt)===Ae.codePointAt(Dt--)?Dt<0&&(He=rt):(Dt=-1,He=St));return Ie===He?He=St:He<0&&(He=he.length),he.slice(Ie,He)}function ql(he){if(Zs(he),he.length===0)return".";let Ae=-1,Ie=he.length,He;for(;--Ie;)if(he.codePointAt(Ie)===47){if(He){Ae=Ie;break}}else He||(He=!0);return Ae<0?he.codePointAt(0)===47?"/":".":Ae===1&&he.codePointAt(0)===47?"//":he.slice(0,Ae)}function Ou(he){Zs(he);let Ae=he.length,Ie=-1,He=0,rt=-1,ct=0,St;for(;Ae--;){const Dt=he.codePointAt(Ae);if(Dt===47){if(St){He=Ae+1;break}continue}Ie<0&&(St=!0,Ie=Ae+1),Dt===46?rt<0?rt=Ae:ct!==1&&(ct=1):rt>-1&&(ct=-1)}return rt<0||Ie<0||ct===0||ct===1&&rt===Ie-1&&rt===He+1?"":he.slice(rt,Ie)}function Ru(...he){let Ae=-1,Ie;for(;++Ae<he.length;)Zs(he[Ae]),he[Ae]&&(Ie=Ie===void 0?he[Ae]:Ie+"/"+he[Ae]);return Ie===void 0?".":bu(Ie)}function bu(he){Zs(he);const Ae=he.codePointAt(0)===47;let Ie=Aa(he,!Ae);return Ie.length===0&&!Ae&&(Ie="."),Ie.length>0&&he.codePointAt(he.length-1)===47&&(Ie+="/"),Ae?"/"+Ie:Ie}function Aa(he,Ae){let Ie="",He=0,rt=-1,ct=0,St=-1,Dt,cn;for(;++St<=he.length;){if(St<he.length)Dt=he.codePointAt(St);else{if(Dt===47)break;Dt=47}if(Dt===47){if(!(rt===St-1||ct===1))if(rt!==St-1&&ct===2){if(Ie.length<2||He!==2||Ie.codePointAt(Ie.length-1)!==46||Ie.codePointAt(Ie.length-2)!==46){if(Ie.length>2){if(cn=Ie.lastIndexOf("/"),cn!==Ie.length-1){cn<0?(Ie="",He=0):(Ie=Ie.slice(0,cn),He=Ie.length-1-Ie.lastIndexOf("/")),rt=St,ct=0;continue}}else if(Ie.length>0){Ie="",He=0,rt=St,ct=0;continue}}Ae&&(Ie=Ie.length>0?Ie+"/..":"..",He=2)}else Ie.length>0?Ie+="/"+he.slice(rt+1,St):Ie=he.slice(rt+1,St),He=St-rt-1;rt=St,ct=0}else Dt===46&&ct>-1?ct++:ct=-1}return Ie}function Zs(he){if(typeof he!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(he))}const ys={cwd:_a};function _a(){return"/"}function Rl(he){return!!(he!==null&&typeof he=="object"&&"href"in he&&he.href&&"protocol"in he&&he.protocol&&he.auth===void 0)}function Oc(he){if(typeof he=="string")he=new URL(he);else if(!Rl(he)){const Ae=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+he+"`");throw Ae.code="ERR_INVALID_ARG_TYPE",Ae}if(he.protocol!=="file:"){const Ae=new TypeError("The URL must be of scheme file");throw Ae.code="ERR_INVALID_URL_SCHEME",Ae}return Du(he)}function Du(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 Ae=he.pathname;let Ie=-1;for(;++Ie<Ae.length;)if(Ae.codePointAt(Ie)===37&&Ae.codePointAt(Ie+1)===50){const He=Ae.codePointAt(Ie+2);if(He===70||He===102){const rt=new TypeError("File URL path must not include encoded / characters");throw rt.code="ERR_INVALID_FILE_URL_PATH",rt}}return decodeURIComponent(Ae)}const Fu=["history","path","basename","stem","extname","dirname"];class ec{constructor(Ae){let Ie;Ae?Rl(Ae)?Ie={path:Ae}:typeof Ae=="string"||$s(Ae)?Ie={value:Ae}:Ie=Ae:Ie={},this.cwd="cwd"in Ie?"":ys.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let He=-1;for(;++He<Fu.length;){const ct=Fu[He];ct in Ie&&Ie[ct]!==void 0&&Ie[ct]!==null&&(this[ct]=ct==="history"?[...Ie[ct]]:Ie[ct])}let rt;for(rt in Ie)Fu.includes(rt)||(this[rt]=Ie[rt])}get basename(){return typeof this.path=="string"?zs.basename(this.path):void 0}set basename(Ae){fa(Ae,"basename"),Pl(Ae,"basename"),this.path=zs.join(this.dirname||"",Ae)}get dirname(){return typeof this.path=="string"?zs.dirname(this.path):void 0}set dirname(Ae){Wa(this.basename,"dirname"),this.path=zs.join(Ae||"",this.basename)}get extname(){return typeof this.path=="string"?zs.extname(this.path):void 0}set extname(Ae){if(Pl(Ae,"extname"),Wa(this.dirname,"extname"),Ae){if(Ae.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Ae.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zs.join(this.dirname,this.stem+(Ae||""))}get path(){return this.history[this.history.length-1]}set path(Ae){Rl(Ae)&&(Ae=Oc(Ae)),fa(Ae,"path"),this.path!==Ae&&this.history.push(Ae)}get stem(){return typeof this.path=="string"?zs.basename(this.path,this.extname):void 0}set stem(Ae){fa(Ae,"stem"),Pl(Ae,"stem"),this.path=zs.join(this.dirname||"",Ae+(this.extname||""))}fail(Ae,Ie,He){const rt=this.message(Ae,Ie,He);throw rt.fatal=!0,rt}info(Ae,Ie,He){const rt=this.message(Ae,Ie,He);return rt.fatal=void 0,rt}message(Ae,Ie,He){const rt=new Li(Ae,Ie,He);return this.path&&(rt.name=this.path+":"+rt.name,rt.file=this.path),rt.fatal=!1,this.messages.push(rt),rt}toString(Ae){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Ae||void 0).decode(this.value)}}function Pl(he,Ae){if(he&&he.includes(zs.sep))throw new Error("`"+Ae+"` cannot be a path: did not expect `"+zs.sep+"`")}function fa(he,Ae){if(!he)throw new Error("`"+Ae+"` cannot be empty")}function Wa(he,Ae){if(!he)throw new Error("Setting `"+Ae+"` requires `path` to be set too")}function $s(he){return!!(he&&typeof he=="object"&&"byteLength"in he&&"byteOffset"in he)}const Ya=function(he){const He=this.constructor.prototype,rt=He[he],ct=function(){return rt.apply(ct,arguments)};return Object.setPrototypeOf(ct,He),ct},ga={}.hasOwnProperty;class js extends Ya{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=Ha()}copy(){const Ae=new js;let Ie=-1;for(;++Ie<this.attachers.length;){const He=this.attachers[Ie];Ae.use(...He)}return Ae.data(Bs(!0,{},this.namespace)),Ae}data(Ae,Ie){return typeof Ae=="string"?arguments.length===2?(Qt("data",this.frozen),this.namespace[Ae]=Ie,this):ga.call(this.namespace,Ae)&&this.namespace[Ae]||void 0:Ae?(Qt("data",this.frozen),this.namespace=Ae,this):this.namespace}freeze(){if(this.frozen)return this;const Ae=this;for(;++this.freezeIndex<this.attachers.length;){const[Ie,...He]=this.attachers[this.freezeIndex];if(He[0]===!1)continue;He[0]===!0&&(He[0]=void 0);const rt=Ie.call(Ae,...He);typeof rt=="function"&&this.transformers.use(rt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Ae){this.freeze();const Ie=Nd(Ae),He=this.parser||this.Parser;return wu("parse",He),He(String(Ie),Ie)}process(Ae,Ie){const He=this;return this.freeze(),wu("process",this.parser||this.Parser),Xd("process",this.compiler||this.Compiler),Ie?rt(void 0,Ie):new Promise(rt);function rt(ct,St){const Dt=Nd(Ae),cn=He.parse(Dt);He.run(cn,Dt,function(an,Xn,Vn){if(an||!Xn||!Vn)return On(an);const Nn=Xn,yr=He.stringify(Nn,Vn);pd(yr)?Vn.value=yr:Vn.result=yr,On(an,Vn)});function On(an,Xn){an||!Xn?St(an):ct?ct(Xn):Ie(void 0,Xn)}}}processSync(Ae){let Ie=!1,He;return this.freeze(),wu("processSync",this.parser||this.Parser),Xd("processSync",this.compiler||this.Compiler),this.process(Ae,rt),tc("processSync","process",Ie),He;function rt(ct,St){Ie=!0,vs(ct),He=St}}run(Ae,Ie,He){Rc(Ae),this.freeze();const rt=this.transformers;return!He&&typeof Ie=="function"&&(He=Ie,Ie=void 0),He?ct(void 0,He):new Promise(ct);function ct(St,Dt){const cn=Nd(Ie);rt.run(Ae,cn,On);function On(an,Xn,Vn){const Nn=Xn||Ae;an?Dt(an):St?St(Nn):He(void 0,Nn,Vn)}}}runSync(Ae,Ie){let He=!1,rt;return this.run(Ae,Ie,ct),tc("runSync","run",He),rt;function ct(St,Dt){vs(St),rt=Dt,He=!0}}stringify(Ae,Ie){this.freeze();const He=Nd(Ie),rt=this.compiler||this.Compiler;return Xd("stringify",rt),Rc(Ae),rt(Ae,He)}use(Ae,...Ie){const He=this.attachers,rt=this.namespace;if(Qt("use",this.frozen),Ae!=null)if(typeof Ae=="function")cn(Ae,Ie);else if(typeof Ae=="object")Array.isArray(Ae)?Dt(Ae):St(Ae);else throw new TypeError("Expected usable value, not `"+Ae+"`");return this;function ct(On){if(typeof On=="function")cn(On,[]);else if(typeof On=="object")if(Array.isArray(On)){const[an,...Xn]=On;cn(an,Xn)}else St(On);else throw new TypeError("Expected usable value, not `"+On+"`")}function St(On){if(!("plugins"in On)&&!("settings"in On))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");Dt(On.plugins),On.settings&&(rt.settings=Bs(!0,rt.settings,On.settings))}function Dt(On){let an=-1;if(On!=null)if(Array.isArray(On))for(;++an<On.length;){const Xn=On[an];ct(Xn)}else throw new TypeError("Expected a list of plugins, not `"+On+"`")}function cn(On,an){let Xn=-1,Vn=-1;for(;++Xn<He.length;)if(He[Xn][0]===On){Vn=Xn;break}if(Vn===-1)He.push([On,...an]);else if(an.length>0){let[Nn,...yr]=an;const ie=He[Vn][1];Vo(ie)&&Vo(Nn)&&(Nn=Bs(!0,ie,Nn)),He[Vn]=[On,Nn,...yr]}}}}const Dl=new js().freeze();function wu(he,Ae){if(typeof Ae!="function")throw new TypeError("Cannot `"+he+"` without `parser`")}function Xd(he,Ae){if(typeof Ae!="function")throw new TypeError("Cannot `"+he+"` without `compiler`")}function Qt(he,Ae){if(Ae)throw new Error("Cannot call `"+he+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rc(he){if(!Vo(he)||typeof he.type!="string")throw new TypeError("Expected node, got `"+he+"`")}function tc(he,Ae,Ie){if(!Ie)throw new Error("`"+he+"` finished async. Use `"+Ae+"` instead")}function Nd(he){return Id(he)?he:new ec(he)}function Id(he){return!!(he&&typeof he=="object"&&"message"in he&&"messages"in he)}function pd(he){return typeof he=="string"||Ch(he)}function Ch(he){return!!(he&&typeof he=="object"&&"byteLength"in he&&"byteOffset"in he)}const cg="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ul=[],Md={allowDangerousHtml:!0},Ph=/^(https?|ircs?|mailto|xmpp)$/i,Qd=[{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 tf(he){const Ae=he.allowedElements,Ie=he.allowElement,He=he.children||"",rt=he.className,ct=he.components,St=he.disallowedElements,Dt=he.rehypePlugins||ul,cn=he.remarkPlugins||ul,On=he.remarkRehypeOptions?Ss(Ss({},he.remarkRehypeOptions),Md):Md,an=he.skipHtml,Xn=he.unwrapDisallowed,Vn=he.urlTransform||Df,Nn=Dl().use(Zc).use(cn).use(za,On).use(Dt),yr=new ec;typeof He=="string"?yr.value=He:(""+He,void 0),Ae&&St&&void 0;for(const pe of Qd)Object.hasOwn(he,pe.from)&&(""+pe.from+(pe.to?"use `"+pe.to+"` instead":"remove it")+cg+pe.id,void 0);const ie=Nn.parse(yr);let oe=Nn.runSync(ie,yr);return rt&&(oe={type:"element",tagName:"div",properties:{className:rt},children:oe.type==="root"?oe.children:[oe]}),_r(oe,ge),_i(oe,{Fragment:Oi.Fragment,components:ct,ignoreInvalidStyle:!0,jsx:Oi.jsx,jsxs:Oi.jsxs,passKeys:!0,passNode:!0});function ge(pe,ye,Oe){if(pe.type==="raw"&&Oe&&typeof ye=="number")return an?Oe.children.splice(ye,1):Oe.children[ye]={type:"text",value:pe.value},ye;if(pe.type==="element"){let Ve;for(Ve in vi)if(Object.hasOwn(vi,Ve)&&Object.hasOwn(pe.properties,Ve)){const Xe=pe.properties[Ve],et=vi[Ve];(et===null||et.includes(pe.tagName))&&(pe.properties[Ve]=Vn(String(Xe||""),Ve,pe))}}if(pe.type==="element"){let Ve=Ae?!Ae.includes(pe.tagName):St?St.includes(pe.tagName):!1;if(!Ve&&Ie&&typeof ye=="number"&&(Ve=!Ie(pe,ye,Oe)),Ve&&Oe&&typeof ye=="number")return Xn&&pe.children?Oe.children.splice(ye,1,...pe.children):Oe.children.splice(ye,1),ye}}}function Df(he){const Ae=he.indexOf(":"),Ie=he.indexOf("?"),He=he.indexOf("#"),rt=he.indexOf("/");return Ae===-1||rt!==-1&&Ae>rt||Ie!==-1&&Ae>Ie||He!==-1&&Ae>He||Ph.test(he.slice(0,Ae))?he:""}var nf=ae(19149),Od=ae(26390),eu=ae(80962),Rd=ae(5891);function Th(he,Ae){var Ie=Object.keys(he);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(he);Ae&&(He=He.filter(function(rt){return Object.getOwnPropertyDescriptor(he,rt).enumerable})),Ie.push.apply(Ie,He)}return Ie}function Fl(he){for(var Ae=1;Ae<arguments.length;Ae++){var Ie=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?Th(Object(Ie),!0).forEach(function(He){(0,eu.Z)(he,He,Ie[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ie)):Th(Object(Ie)).forEach(function(He){Object.defineProperty(he,He,Object.getOwnPropertyDescriptor(Ie,He))})}return he}function Xc(he){var Ae=he.length;if(Ae===0||Ae===1)return he;if(Ae===2)return[he[0],he[1],"".concat(he[0],".").concat(he[1]),"".concat(he[1],".").concat(he[0])];if(Ae===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(Ae>=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 Qc={};function md(he){if(he.length===0||he.length===1)return he;var Ae=he.join(".");return Qc[Ae]||(Qc[Ae]=Xc(he)),Qc[Ae]}function Bl(he){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=arguments.length>2?arguments[2]:void 0,He=he.filter(function(ct){return ct!=="token"}),rt=md(He);return rt.reduce(function(ct,St){return Fl(Fl({},ct),Ie[St])},Ae)}function Jd(he){return he.join(" ")}function kh(he,Ae){var Ie=0;return function(He){return Ie+=1,He.map(function(rt,ct){return tu({node:rt,stylesheet:he,useInlineStyles:Ae,key:"code-segment-".concat(Ie,"-").concat(ct)})})}}function tu(he){var Ae=he.node,Ie=he.stylesheet,He=he.style,rt=He===void 0?{}:He,ct=he.useInlineStyles,St=he.key,Dt=Ae.properties,cn=Ae.type,On=Ae.tagName,an=Ae.value;if(cn==="text")return an;if(On){var Xn=kh(Ie,ct),Vn;if(!ct)Vn=Fl(Fl({},Dt),{},{className:Jd(Dt.className)});else{var Nn=Object.keys(Ie).reduce(function(ge,pe){return pe.split(".").forEach(function(ye){ge.includes(ye)||ge.push(ye)}),ge},[]),yr=Dt.className&&Dt.className.includes("token")?["token"]:[],ie=Dt.className&&yr.concat(Dt.className.filter(function(ge){return!Nn.includes(ge)}));Vn=Fl(Fl({},Dt),{},{className:Jd(ie)||void 0,style:Bl(Dt.className,Object.assign({},Dt.style,rt),Ie)})}var oe=Xn(Ae.children);return Ee.createElement(On,(0,Rd.Z)({key:St},Vn),oe)}}var Dd=function(he,Ae){var Ie=he.listLanguages();return Ie.indexOf(Ae)!==-1},Ah=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function qd(he,Ae){var Ie=Object.keys(he);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(he);Ae&&(He=He.filter(function(rt){return Object.getOwnPropertyDescriptor(he,rt).enumerable})),Ie.push.apply(Ie,He)}return Ie}function nu(he){for(var Ae=1;Ae<arguments.length;Ae++){var Ie=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?qd(Object(Ie),!0).forEach(function(He){(0,eu.Z)(he,He,Ie[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ie)):qd(Object(Ie)).forEach(function(He){Object.defineProperty(he,He,Object.getOwnPropertyDescriptor(Ie,He))})}return he}var Tl=/\n/g;function Lh(he){return he.match(Tl)}function Ys(he){var Ae=he.lines,Ie=he.startingLineNumber,He=he.style;return Ae.map(function(rt,ct){var St=ct+Ie;return Ee.createElement("span",{key:"line-".concat(ct),className:"react-syntax-highlighter-line-number",style:typeof He=="function"?He(St):He},"".concat(St,`
`))})}function Pa(he){var Ae=he.codeString,Ie=he.codeStyle,He=he.containerStyle,rt=He===void 0?{float:"left",paddingRight:"10px"}:He,ct=he.numberStyle,St=ct===void 0?{}:ct,Dt=he.startingLineNumber;return Ee.createElement("code",{style:Object.assign({},Ie,rt)},Ys({lines:Ae.replace(/\n$/,"").split(`
`),style:St,startingLineNumber:Dt}))}function ns(he){return"".concat(he.toString().length,".25em")}function fl(he,Ae){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(he),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Ae},children:[{type:"text",value:he}]}}function Eu(he,Ae,Ie){var He={display:"inline-block",minWidth:ns(Ie),paddingRight:"1em",textAlign:"right",userSelect:"none"},rt=typeof he=="function"?he(Ae):he,ct=nu(nu({},He),rt);return ct}function zl(he){var Ae=he.children,Ie=he.lineNumber,He=he.lineNumberStyle,rt=he.largestLineNumber,ct=he.showInlineLineNumbers,St=he.lineProps,Dt=St===void 0?{}:St,cn=he.className,On=cn===void 0?[]:cn,an=he.showLineNumbers,Xn=he.wrapLongLines,Vn=he.wrapLines,Nn=Vn===void 0?!1:Vn,yr=Nn?nu({},typeof Dt=="function"?Dt(Ie):Dt):{};if(yr.className=yr.className?[].concat((0,Od.Z)(yr.className.trim().split(/\s+/)),(0,Od.Z)(On)):On,Ie&&ct){var ie=Eu(He,Ie,rt);Ae.unshift(fl(Ie,ie))}return Xn&an&&(yr.style=nu({display:"flex"},yr.style)),{type:"element",tagName:"span",properties:yr,children:Ae}}function eh(he){for(var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],He=0;He<he.length;He++){var rt=he[He];if(rt.type==="text")Ie.push(zl({children:[rt],className:(0,Od.Z)(new Set(Ae))}));else if(rt.children){var ct=Ae.concat(rt.properties.className);eh(rt.children,ct).forEach(function(St){return Ie.push(St)})}}return Ie}function Jc(he,Ae,Ie,He,rt,ct,St,Dt,cn){var On,an=eh(he.value),Xn=[],Vn=-1,Nn=0;function yr(Ve,Xe){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return zl({children:Ve,lineNumber:Xe,lineNumberStyle:Dt,largestLineNumber:St,showInlineLineNumbers:rt,lineProps:Ie,className:et,showLineNumbers:He,wrapLongLines:cn,wrapLines:Ae})}function ie(Ve,Xe){if(He&&Xe&&rt){var et=Eu(Dt,Xe,St);Ve.unshift(fl(Xe,et))}return Ve}function oe(Ve,Xe){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ae||et.length>0?yr(Ve,Xe,et):ie(Ve,Xe)}for(var ge=function(){var Xe=an[Nn],et=Xe.children[0].value,wt=Lh(et);if(wt){var Jt=et.split(`
`);Jt.forEach(function(Nt,Bn){var Sn=He&&Xn.length+ct,ti={type:"text",value:"".concat(Nt,`
`)};if(Bn===0){var gi=an.slice(Vn+1,Nn).concat(zl({children:[ti],className:Xe.properties.className})),bi=oe(gi,Sn);Xn.push(bi)}else if(Bn===Jt.length-1){var Gi=an[Nn+1]&&an[Nn+1].children&&an[Nn+1].children[0],lr={type:"text",value:"".concat(Nt)};if(Gi){var rr=zl({children:[lr],className:Xe.properties.className});an.splice(Nn+1,0,rr)}else{var Cr=[lr],wn=oe(Cr,Sn,Xe.properties.className);Xn.push(wn)}}else{var or=[ti],Eo=oe(or,Sn,Xe.properties.className);Xn.push(Eo)}}),Vn=Nn}Nn++};Nn<an.length;)ge();if(Vn!==an.length-1){var pe=an.slice(Vn+1,an.length);if(pe&&pe.length){var ye=He&&Xn.length+ct,Oe=oe(pe,ye);Xn.push(Oe)}}return Ae?Xn:(On=[]).concat.apply(On,Xn)}function th(he){var Ae=he.rows,Ie=he.stylesheet,He=he.useInlineStyles;return Ae.map(function(rt,ct){return tu({node:rt,stylesheet:Ie,useInlineStyles:He,key:"code-segement".concat(ct)})})}function Bu(he){return he&&typeof he.highlightAuto!="undefined"}function Dc(he){var Ae=he.astGenerator,Ie=he.language,He=he.code,rt=he.defaultCodeValue;if(Bu(Ae)){var ct=Dd(Ae,Ie);return Ie==="text"?{value:rt,language:"text"}:ct?Ae.highlight(Ie,He):Ae.highlightAuto(He)}try{return Ie&&Ie!=="text"?{value:Ae.highlight(He,Ie)}:{value:rt}}catch(St){return{value:rt}}}function Ff(he,Ae){return function(He){var rt=He.language,ct=He.children,St=He.style,Dt=St===void 0?Ae:St,cn=He.customStyle,On=cn===void 0?{}:cn,an=He.codeTagProps,Xn=an===void 0?{className:rt?"language-".concat(rt):void 0,style:nu(nu({},Dt['code[class*="language-"]']),Dt['code[class*="language-'.concat(rt,'"]')])}:an,Vn=He.useInlineStyles,Nn=Vn===void 0?!0:Vn,yr=He.showLineNumbers,ie=yr===void 0?!1:yr,oe=He.showInlineLineNumbers,ge=oe===void 0?!0:oe,pe=He.startingLineNumber,ye=pe===void 0?1:pe,Oe=He.lineNumberContainerStyle,Ve=He.lineNumberStyle,Xe=Ve===void 0?{}:Ve,et=He.wrapLines,wt=He.wrapLongLines,Jt=wt===void 0?!1:wt,Nt=He.lineProps,Bn=Nt===void 0?{}:Nt,Sn=He.renderer,ti=He.PreTag,gi=ti===void 0?"pre":ti,bi=He.CodeTag,Gi=bi===void 0?"code":bi,lr=He.code,rr=lr===void 0?(Array.isArray(ct)?ct[0]:ct)||"":lr,Cr=He.astGenerator,wn=(0,nf.Z)(He,Ah);Cr=Cr||he;var or=ie?Ee.createElement(Pa,{containerStyle:Oe,codeStyle:Xn.style||{},numberStyle:Xe,startingLineNumber:ye,codeString:rr}):null,Eo=Dt.hljs||Dt['pre[class*="language-"]']||{backgroundColor:"#fff"},_n=Bu(Cr)?"hljs":"prismjs",Oa=Nn?Object.assign({},wn,{style:Object.assign({},Eo,On)}):Object.assign({},wn,{className:wn.className?"".concat(_n," ").concat(wn.className):_n,style:Object.assign({},On)});if(Jt?Xn.style=nu({whiteSpace:"pre-wrap"},Xn.style):Xn.style=nu({whiteSpace:"pre"},Xn.style),!Cr)return Ee.createElement(gi,Oa,or,Ee.createElement(Gi,Xn,rr));(et===void 0&&Sn||Jt)&&(et=!0),Sn=Sn||th;var Ta=[{type:"text",value:rr}],Gs=Dc({astGenerator:Cr,language:rt,code:rr,defaultCodeValue:Ta});Gs.language===null&&(Gs.value=Ta);var Hs=Gs.value.length;Hs===1&&Gs.value[0].type==="text"&&(Hs=Gs.value[0].value.split(`
`).length);var wa=Hs+ye,Ds=Jc(Gs,et,Bn,ie,ge,ye,wa,Xe,Jt);return Ee.createElement(gi,Oa,Ee.createElement(Gi,Xn,!ge&&or,Sn({rows:Ds,stylesheet:Dt,useInlineStyles:Nn})))}}var Bf={'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"}},zf=ae(11594),nh=ae.n(zf),dg=["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"],jf=Ff(nh(),Bf);jf.supportedLanguages=dg;var hg=jf,Fc={'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"}},Uf=ae(56102),rf={wrp:"wrp___H70W8","file-list":"file-list___S5XYJ",ExtraEdit:"ExtraEdit___K6Xf2",btn:"btn___Yiu8q"},ih=ae(43604),qc=ae(58130),Us=ae(59301),Bc=Object.defineProperty,Nh=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,fg=Object.prototype.propertyIsEnumerable,Gf=(he,Ae,Ie)=>Ae in he?Bc(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):he[Ae]=Ie,Hf=(he,Ae)=>{for(var Ie in Ae||(Ae={}))of.call(Ae,Ie)&&Gf(he,Ie,Ae[Ie]);if(Nh)for(var Ie of Nh(Ae))fg.call(Ae,Ie)&&Gf(he,Ie,Ae[Ie]);return he},Lp=(he,Ae)=>{var Ie={};for(var He in he)of.call(he,He)&&Ae.indexOf(He)<0&&(Ie[He]=he[He]);if(he!=null&&Nh)for(var He of Nh(he))Ae.indexOf(He)<0&&fg.call(he,He)&&(Ie[He]=he[He]);return Ie},jg=(he,Ae,Ie)=>new Promise((He,rt)=>{var ct=cn=>{try{Dt(Ie.next(cn))}catch(On){rt(On)}},St=cn=>{try{Dt(Ie.throw(cn))}catch(On){rt(On)}},Dt=cn=>cn.done?He(cn.value):Promise.resolve(cn.value).then(ct,St);Dt((Ie=Ie.apply(he,Ae)).next())}),_f=({onCallback:he,scrollBox:Ae,Data:Ie,extraEdit:He,showEditableBox:rt,onRedraw:ct,loading:St,showPreference:Dt,onPreference:cn})=>{var On,an;const{allowCopy:Xn=!1,fileList:Vn,hideTextEffect:Nn=!1,text:yr=""}=Ie,[ie,oe]=(0,Ee.useState)(""),[ge,pe]=(0,Ee.useState)(!0),ye=(0,Ee.useRef)(0),Oe=(0,Ee.useRef)(!1);(0,Ee.useEffect)(()=>yr?(pe(!0),Nn?oe(yr):jg(void 0,null,function*(){for(let et=0;et<yr.length;et+=5){const wt=yr.substring(0,et+5)+(yr.length-1>et+4?" __":"");oe(wt),yield new Promise(Jt=>setTimeout(Jt,70))}pe(!1),he==null||he(Ie)}),Ae.current.addEventListener("wheel",Ve),()=>{var et;oe(""),(et=Ae.current)==null||et.removeEventListener("wheel",Ve)}):void 0,[]),(0,Ee.useEffect)(()=>{Ae.current.scrollTo({top:Ae.current.scrollHeight,behavior:"smooth"})},[]);const Ve=()=>{Oe.current=!0};return Us.createElement("div",{className:`${rf.wrp} fadeIn animated`},Ie.sender!=="AI"&&Us.createElement("p",{dangerouslySetInnerHTML:{__html:yr.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")}}),Ie.sender==="AI"&&Us.createElement(tf,{components:{code(Xe){var et=Xe,{node:wt,inline:Jt,className:Nt,children:Bn}=et,Sn=Lp(et,["node","inline","className","children"]);const ti=/language-(\w+)/.exec(Nt||"");return Ae.current.scrollHeight-ye.current>60&&!Oe.current&&(Ae.current.scrollTo({top:Ae.current.scrollHeight,behavior:"smooth"}),ye.current=Ae.current.scrollHeight),!Jt&&ti?Us.createElement("div",{style:{position:"relative",minHeight:50}},Us.createElement(Uf.CopyToClipboard,{text:String(Bn).replace(/\n$/,""),onCopy:()=>Re.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Us.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")),Us.createElement(hg,Hf({style:Fc,language:ti[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Sn),String(Bn||"").replace(/\n$/,""))):Us.createElement("code",Hf({className:Nt},Sn),Bn)}}},ie),Vn&&!ge&&Us.createElement(st.Z,{className:`${rf["file-list"]} animated fadeIn`},Us.createElement(ih.Z,null,Us.createElement("img",{src:ae(90034)(`./${((an=(On=Vn==null?void 0:Vn.name)==null?void 0:On.split("."))==null?void 0:an.pop())||"txt"}.png`),width:20,className:"mr10"})),Us.createElement(ih.Z,null,Vn==null?void 0:Vn.name,Us.createElement("br",null),(0,qc.RD)(Vn==null?void 0:Vn.size))),!ge&&Us.createElement("div",{className:rf.ExtraEdit},He==null?void 0:He(Ie),Xn&&Us.createElement(Uf.CopyToClipboard,{text:String(ie).replace(/\n$/,""),onCopy:()=>Re.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Us.createElement(Je.Z,{title:"\u590D\u5236"},Us.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Dt&&Us.createElement(Us.Fragment,null,Us.createElement(Je.Z,{title:"\u559C\u6B22"},Us.createElement("i",{style:Ie!=null&&Ie.like?{color:"#FA8D30"}:{},onClick:()=>cn("like",!(Ie!=null&&Ie.like)),className:"iconfot icon-yijiejue font15"})),Us.createElement(Je.Z,{title:"\u4E0D\u559C\u6B22"},Us.createElement("i",{style:Ie!=null&&Ie.boring?{color:"#e86d7c"}:{},onClick:()=>cn("boring",!(Ie!=null&&Ie.boring)),className:"iconfot icon-weijiejuezhengchang font15"}))),rt&&!St&&Us.createElement(Je.Z,{title:"\u91CD\u65B0\u751F\u6210"},Us.createElement("i",{onClick:ct,className:"iconfot icon-gengxin-genghuan-tihuan"}))))},Ia={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"},Wf=ae(70635),Ih=ae(2119),pg=({positionX:he,src:Ae,onClick:Ie})=>{const He=(0,Ee.useRef)(null),[rt,ct]=(0,Ee.useState)(!1),[St,Dt]=(0,Ee.useState)({x:20,y:window.innerHeight*.62}),[cn,On]=(0,Ee.useState)({x:20,y:window.innerHeight*.62}),[an,Xn]=(0,Ee.useState)({x:20,y:window.innerHeight*.62}),[Vn,Nn]=(0,Ee.useState)(!1);(0,Ee.useEffect)(()=>{const oe=()=>{Dt({x:20,y:window.innerHeight*.62})};return window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[]),(0,Ee.useEffect)(()=>{const oe=pe=>{var ye;if(rt){const Oe=pe.clientY-an.y;let Ve=cn.y+Oe;const Xe=window.innerHeight-(((ye=He.current)==null?void 0:ye.offsetHeight)||0)-50,et=50;Ve<et&&(Ve=et),Ve>Xe&&(Ve=Xe),requestAnimationFrame(()=>{Dt({x:20,y:Ve})}),Nn(!0)}},ge=()=>{ct(!1)};return document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ge),()=>{document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ge)}},[rt,an,cn]);const yr=oe=>{ct(!0),Xn({x:oe.clientX,y:oe.clientY}),On(St),Nn(!1)},ie=oe=>{ct(!1),!Vn&&Ie&&Ie(oe)};return Ee.createElement("div",{style:{position:"fixed",top:St.y,right:St.x,zIndex:100,cursor:rt?"grabbing":"grab"},onMouseDown:yr,onMouseUp:ie,ref:He},Ee.createElement("img",{src:Ae||"/images/ai_teacher.png",width:60,draggable:"false"}))},af="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==",Ug="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==",Kf="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=",Gg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACuCAYAAADtT0V5AAAAAXNSR0IArs4c6QAAIABJREFUeF7cfQecVcX59nPqLdt3YekdAUWjBhuxgKCAWBN7w/a3EGs01tgL9oi9x0Y1YIsFFRUUK9I7Ir0ty/a97bT58s7Muffs3QZZTfkuv+XcesrMM8/7vGXmKNiFx9lfsK5I4SEGDAXQiTHGf6UoCug5bf8dDzosHUoePv28ucP75/ZLne8vvb/dbbNf4voBbFOAWQjhholHKptbO4dWe/bsD1lXT8EiMFbcaGd+b/k9RLihPQr8yCcN3mjxfLJ/7v8yfZKNjpeFmMYnGDiHXTmf7CM2uqCGR/hfvn5FqVQZ9p04umWQtAqQMz9gkxjYmf9Cf2fA4h8lq72zGYiBQYEC2u7K8VrDS1v3nwZ7M+ff2uhr7fdtPb+2Xr8CZfLkY5WzWrqOVgFyxvtsKxjr1NROWhvxrYy/xu0nzVVzJqExQTVkkMYNnkVoWRfRGl80YrCs3/+vX7+qKNsmH6d0bhNATn/X9U1+ow7NpohsBthdE9G4wQWbEKsI0ZNtMbJNTMtdvtuAzbKYjQHT8J3/xet/80StRZJolUFOe9slFSopP1slZnVYNhRbGWKtiq6s37c2Yluj9CYQ3vCMGx1AKuL/j6//zZPaCJBT33LTkrMRFbXaw61a6awO2k03ZTdNxi9+/v8fXP/fT9bbxiCnTHOaB0gr/e8LTt9ENBKhv/Lvs3ffSKNkaZ7dhHOrX/9fuP5pp7QRICe/6bBdDXNkDyhqwUsHKdheD7y7Slgq/ztNit7WLFgzEuO3HYGIrmDuVgbLDexZfr9dFBjZV8GCbQzLdzYfR2krIRy/h4K4Dcxc1/SYau76u+cD+3dU8PUmhp2JwPllWfBT91JQFgO+3LhrXl62SW3q+qad2kaA/GGKzdKBsKwjNDbZDQNn+3cE/nKEhndXenhjMcugo5lIV6uBqCaOn2cCT47WkHKBqz/ykHQygTt/f3sUM9x/lI5JSzxMX+41G9gLHj+sA6U5WYHAwPETDlAeb+glvXqShh0x4MaZXtPs0gwCh/VW8ccDVdw1y8WSHdRMAgDtcxR0ygV/L6IDr/9exeIy4J7ZYhS01v6ttieA6ae3FSCT7eZFagskS4P3oREaehcrqEowJJ2mv3zXFx7CBsPDI7Rm97ZoO8P9XzVudALuZQcoOKqPiofnuPhuM0PHXAVj9lPwt/kedsbFLvuVAPcfrWPiYg9vLaf9CLPbMZehfzuVf/7aQq8B+xzYRcFNhzd/TvO2ehj3ZcNzevX3AiA3fBKkseBlZSiwWwHQJU98tk8HBaP2UPH3pR7WVzMQ+BZtp8GlYGCpgj++76JbgYI7j9Tw9nIPExaL4+6+yWxMwW+dabRNg/xhku0DupGJaAmhY/ZTceKeKlbvZKhMMIQ0YP/OKjbXMGyuzVDwi3M95IWA8cfq/LurdpJbKx6kWUb3U7F4O8M9s9xMnF3avAM7K7jpCBXztzLcN5sajaFvsYL7R2hYWc5w+2ce30e/dgoeGKFjwVaPd2D3QgXdC4AcUxzJ9RjGzfawcDtLm0AOkCM0fLne4/sKPi4apGLhNjqmm+4k+vy1k3UBkI/lCG8h0HvOvir+MFBtclBQ+7y5xMO1h2qYuMjF9GUe/rCXinP20/DIHAffbEo3UCuR69YiOcDbZ7cRIL+fYLNmI5tZRtU/HWrcW4ZqWLTNwz1fePAY0KcYePgYHa/Mc/GPlQ0bvHuhAMjUxS6mLqFOynw+5Qwdy3cw3P15pjNo5PQoBMaN0FARB27+xEXMEoAiYXjGbxScto+GNxa4nDH6E0BG6rxVHY9hay2wsZrx0bqqnOHnSjRiuAO7Krh5iIZnvnPx6c+SKSSnv3mGjkUcIF4DUfX6KRp21APXz2iOQTJ4KIkARRHx+sCuKk7dR8WLP7j4qYJB14AbDtdQbwF/+sCB4wE3DdFwcDcVCZvx9sx+TFns4f1VXoNIdCOR3EQg8u1z2giQE1+3WPMc1HSgKKQzXH2ohqe+cRGzxaUc3E3BzUN1PPqVgznrxRX6NpQA8vjxBgfI5EV0kfKhKJhyhiYBkumMbvkMtw3XETGAR750kXKAwghQHFH4lmz30N4qLJfh6n84yA8pePAYHe8s8/D6AhcsfUUNrXjw1UFdFdxypI6nv3Uwc03DHnnzLAmQLzxcOVhFTkic76AuCj+XpWWNe/BJagsOYt/AZZ4P66Pgyt/puHOmw5np8kM0HL2HittnuliyzePM+fIfNIR0cJb1Hz0KFRSEyRwxzFzj4dsNYig3lxnIBgydwTtjJI02yWWZfTXzMXDiq1aA81uJXEq8XHWohqF9GsKKXvk2M9h866uAx+c4ePwEA1MXCYCkHwyYeraOZWUMd88kEyNQdf0QDYf2bEzPZCqIUXbUk1kDDu+pYMFWhqmLPDw4WseE+S6mLaEGb0jRVwzWMOtnr0HHHtRNwS3DdExe6OK7jQ0Z5NHjdCzcynDvZy7+dqrOQUkPVZo+L8CA/nsXvGmjKinOv3+pgvY5mcvcu6OCUf00/H2Ji5oEcNGBKrbUAlMWuty8dclXcNcIHVtqGC5/x0mf/x3DNXQuUHDpdCnwdjd3wIB3z28jQE54xSL3wx/SDR2vLFXuA2BYXxX921OYPGMij+wjOvQLn67lHiviDD9sZHjiJIM3yOQFGXqm/U09RwLkUxr5wkPpVQyuK+osoC7JOBXXJoHKOAPnH9lB1w3RkbQZZq1lGHeMjjfmOZhOJiyQDIyawOSzTby3zMXLczMsRQD5y3Bhlpp6zN3k4d6Z1FmZ400+28CmGoYbP/A1CMPlh+oY0U/FeVMsVEuAXDdEwxG9mxfAweM99IWDo/up2L+LyrXS6RMc2DJ2+fTvDa7vbpOaJy2gminHaCoZ+t6FobaJ1BP+Zgnl1pRb1Uoy3Qf04B4Kbh5uoC7F8PQch1Mhf8jG7VGsCIAscDF5oZfWIPT7N8cYWLad4a5PnAaAMzUgP9SQsrM70vIIQEDPYgWPn2Tgg+Uunv/OzZgwKNivM3DXKAPPfuNixioCiED1Qd0FQIhZVmwXDOID/pLBGuZvYbj308w5qQrw1vkG5m9muOtTMaLp/K84TMPR/TSMmWShhgACIZI56wQ0XEkOMHawxvXGE1853BwJ1gXuHmUgbjNEDQVXvW1jfZVovzfPNfDlWg9Pf9205mk1NQEF713URgY5/sVU88m6VkQy/ZA6/+HjdegqsLyMYd/OKlaUeXjhWwc/U9AKDD2LVDx5soHttQzbAh4ONcK+XRQs3MJw5wxJrfKqh/ZRce3Q5kc4/XbSfAeT57uc+l8/ywCxxeJtDJZkZALZPp0UGBow9u82F6/+42ACyAgDT37l4BMCToAN37rA4Od0DwFBnk9+GJhwtokv1rh4zI9TMOCaIRqG76Hh7AkWapMNu8zXBB1yFdw72kBxFLhjhoOlEpD0Of3+yL4qf/+OkToeneVizjrh+U08x8QbPzr4+0IfwA3LJRoVdGUj5p+66R8Xt5FBjns+mYmDZIdmsg6Yffx+pSpuGKajY76CR75wMHuNi8N7a7jkdxq/QLqwKfMdlOYpuLEFOl9RxvD81wE6VxQM7aviuiN1vL/MxfpK3wSKMyDv4OwDdEyaJwBC7x3QTcGxAzV0L2rIqBsrGb782cUXPzWMaRzcQ8WtIw08+aWNT1Y13P9bFxJAPNwdAG2XAgXPnW7ivSUOXvhWjGjqoD8N0TCsn4azX7dQm8q00KBuKg7oJszuIT1UtMtVsK7C42zpP75d5+LgnhqiBvD4bAfjjjOwoZLh+W9dfj13jDLw8OcOvkyb7dY5owHLMob3Lw23zcQc+xyHfYMR1JxK9r9Ho+m8g3SMGKDyRnr9BwdvBrRFURS45WgDuSHgpvfsNPVmm4iWXg/dQ8Wfhxm48yMbP/oiUv6ga6HorIk/Opg8z+Xqn4CxM8ZQJYNnghEalhMEbTQB5LZRBp6YbeOTlQ0Z5O3/M7Fws4e7ZjjpaPaADgoeOcnEhLkOpnBQisf1w3UM6avh9FdS3Gz4j9P21zDmIMGApC3sgJUgRtNUhR975iqPM199CjhxHw0n76vhvAkWrhyi4+j+Ki6cZKG8fndaLvNduv73L2sjg4x+hgDStEhtXNEkRORfRuoY3EvDlmoP7y2hDhKQCn6fTA65qXWpTO4h+zLp+9MWUPyjcQNwgAw38MYPDlaW+ZFFsS9ipKuHGpg4VwCEvIZH/2Dite9tvDlfBNSahnzmOIf0VHHbMQbvPDcriGvqCn7Y4OLuj5y0Lhy1p4orhhh45DMbX6z2e1vBTSN0HN5Hwx9eTPFIrTg/4LLDdM4Oy7d5ePRzG9uleftNZwW3jjIwZ62HJ2dn9k9n1jEfeOmsEG5+z8JNRws2ueUfdrM1uo1zY40Z5sM/tpFBjnkqkc7FNI6cZiffhCgpiCg4aoCGdxY6OLSPhhtHGP8axAEc/2wKvtsYvOAj+6m4/mizxf1O+MHG5B899C8F/npKCK9952DqPCediyEN0rNE4X+frqCAngA4XechvVTcPtrEki0eNklR6DPMqIEqftzg4a4PRecQgK8dZmD4AA0XvJHCjjpxWrQfAtng3hpOeDYJl+IvjOHJ0010K1Iw4QcHby30OAjpcURfDdcdpePzVR6emEVCqWGH0rGePdOE4wJ92qt47DMbn65s6PUFi8h3JRfz4eVtBciTicZRn93o7iP2UHHTSBPPfmnji1WtRxj9Xd822sQ+XVQc93SyycghB8gIE0/PsrF4S8Mh3onyFseZmPC9jUlzXQzoqHCAfL7Kxdpyjzdu73YKuhYpnMrpcfM7FhZtzuyHA+RYE49/buPj5Q3P+92xISzY5OHO92UUEMDL55owNAVjXk01aJ07jzNwUE8Nxz6VTPMWaTJiz3UVmaYlszvhghA3l3f8I7NfMi/xgGk67xAdpx8g3Pez/5ZCIvPV3eiVzFc/ujLSNg0y6vF4ACC7F4mhkXVEXxU3HWPisZk2PlkuRm8mlN78/sb93sT+3TQc+2RCxDbEkEzbqWH9NVw/0sTt76UwV0Zm/RHXtQh48dwwJnxnY+IPDgZ0VPHYaTLc+U9dEEsxrK9gWLfT49u1Oz2sLWdI8dIXcU6H9FZxx3EhjP/MwsfLMiaDPnvv8jAW8I6knlNQksMw4aIIZq928cAM8Z5vUu87ycDenVWc+EwqHcdp6vrb5wKvXxjGD+tcLN3qoV8Hlf8REC6dKBHCGIYN0PjAmLfBxa3vEjpaip02xEzj5B4w4+o2AmTk+DhL14S2gtGmAjFD+mu4+RgTmyo9VMZ2nYx6t1eRF1Yw+nECiK8YMqJy2ACVA+TH9S521DXcb25YwRF7aBwgE753sCcB5PQQPl7qYNIPDsqkK91SVflgAsjxIYyfSQDJMAsRzruXh1AZo+Acw8TvHexRquKsg3U8/LGFz1eKBKEANPDoaSa6F6s49blkWoNRJw/uo3FTXBAB3+ZHMpFY+mlVjGFNuceB+NYC4Zd3yFPwxJkh/n0yh9dPs7B8ayDwl9U/u5KLmXFNGwEy4q8EkPT1Npz20uiEGgeuhvTTcPOxJrZWe/yid/XRsx3lOBQcMz6RFmFBi0yNfOMxJgddym64X0p2tc9T8ca3NiZ+52BAJxXjzwjh1a9tTP5BeB7Bx9D+GlZt97C1RmQVaG+D/xn5vfOEEJ75wsL6nQx7d1H5316dVYRlfuvnHR6e/sLGnSeY3As57+Uk7EAkn47xzDkh5IWBc19Kpcf6aQfqGDNY5+deEQMq6hniFsOIgTrm/OTi6S8sDsAgv5In9tfTQ+hTqnLgn/xbHTUJhsveyJiZ3eN30QIfXxttm4kZ8UgsUA+SPTEqu7sbq+Qh/VXcclwIf/1YUnUDRmy+BvWBU0zs313DMY8l4KUHcGb/w/bUcOPoEG57K4kf0iZGnA8JwJcuCOONbyxM+M7Fnh0VjD8rjFfm2JjyvS3MlBSRxCKTLw1j1TYXd75r8U4cvY+GQ/roOKRPw3A4mab5GzzMXefyP+rEE/fX8MdhJl6cbWPaj0T5fjcJN3rK2DDK6xiumJBKf0QApohp0GRSHGTipRG8M9/Gs1ygZqwHFS/dNNrE4L4a3vzBxstf2Th6oIY/jwph9ioHD3xoN6nTskPv2fUaZOo+/XNO2wBy9MPxdKi9iYKQrLmQjU3i0D01DpBXv7Lw9U9ZIrVRJDbzxrUjTezZWcWoRwkgkiEC3x9OADk2hFsJIGsbJtO6Fyt46cIIXv/awoRvHL6fx88O47WvLUz8tmHlEonDKWMjmP6jgxdmC8/h2TFhPlIr6xmWbfWwbLOLpVs8rNnBxLlIgHUrAp44J8w759znE7zcMCgJfvdPgN35+xDeW2DjqZlNqMnA9XQsUPD6xRG8Pc/Gs1/4AGHo1V7FrSeY6FasYs5PDu5+R8bgAdxynImhA3R8tdrB/e9b3LtpQPGtRLoJg59e30aAHPXgrtuFpijuyAEabjkhIxB31cT43xv5cDw9OoL7H76XhhuPC+HWaRmA/LanysPmNPqP3U/Hox+lMGOJi+IcYNLYCKfyWStcMXoBHv4/sLfGO+Gut1Oc3ukYfTuoqE8xbKtu3iTmmMBTY8LoXKTg9ukpfL/W48c5tJ+OlMX4PobtpSM3DIx5IYkdtRnz5Q/Zwhzgtz007qUc1k/DiL11PPWphXel5hhKgnS0CYq7/GOBjec+t3ksxf+9qQO3nxjCQX00zF3r4i/ThAfVXJSnqTjrpze2ESDD768P1KS2jNBsv5tOlhjk1hPD+GiRjcX/dA139XHGIQZ6tFMx8sF4WqQGwwLDB2q46fgQbv17Et/9LJjpluNDGDZQRCdJ7/zfS3HUJoSwveAIA6P3NVCU1R7ltR6++cnlHZMNh5ZyGYf313DbSSZe/crGJMlKVAfzzjVR6JrCYxvLNnuYscTBJ0uarrck8Ey/Kpp2tdfu8HDT1CSqYqKVfttL5Qz0+McWPiNXO6uH6bp0VcENx5ncbb59Ol1DZqJZo4lcWZPtqb8+uzm3bSZm2H0ZgDQKvGTPm2qC0roWKzikr4Yf17pc7DV8NC+rqAM65CuYNlcmxOiHga93L1H4yJmzysX2GrHfToUquhQpSFjAiq0i8JU9+ZLEXvBBBT7+o3FNccOi5ezr36eriiX/DLmnW1gBiqIKIiGgJs4QaxgSaWJsKOhcBGiKgqQNlNf59bIZL6gkT0GF76U1YzLo7bwI+GDYHbeXTuizW9oKkHvrd9312FV6yHTJbhrNpkgyqHp39wR+6f392sf/pc+X4fNb89rIIPdkANLYhLSM2KYCMy2t79Fo/61NX8+a+NFcbqi5wFxr83Syu/v/x+v//LY2MsiRd9U1W9Xe2voOTU2kCjb6bvZ/i9nXtDrLeJmNna5Wli9p7XwaA6rlAfK/cP2z7mwjgwy5o7bZSGprUykbF8nuHgU3ni2fNdt/93bX6NttPf+2/r610/93XP/su/LbZmKG3EZxabmPRgNm95ZfaNwgrYiq1oZ0ox22JtKyPt/d69nd7zea+5Z9wv/56599dxsZ5Ihb6zILyLQWeGlFQ7U6mbmNv28NHm3tr91fPqKhU/Hfd/3Kti/vy2vbAjKH/6VuksLEElS7S3mtfb/1z7Od1MZuawNN00KFmPCSWzZRrfkIrZ1vI1GbtaRWawBp/Pmve/2KokyefV9e25agGnpHvKtrOYvAUNx4tnimwCYrTCHaqjUTkfV563GW1hZ0aeXzrB5sBIjsVRtbQcwvfb6/9P4a5WIajqZKzTT2nXVXtMWVDlsUKP7+ht4Q7+rCfgiqMpR5rFMT5RlN4qEJVdhyrqD1Idzi7xsFuhoF8rLXn2gUmswesg0vIcuG7fZyEW28vsbT+VucptTYIiq8cGMbFGWWFtJuaA0c/qBvTUz/V37OMvMn/fMLgt1/zrfzpMqOLBfQNk2x1XUoF7xQ+xfHwa3ChLaMD1PDPU+dm39vYi8RlR+USXv4wcRgULFBgFFRlF8x4PjrddEuMcivd/jd23MLoKDrSIMhCAQCAf2VaeJzQ4WiV4jnmnzv8lfrbk7a7OaW3NaQro4b/6e8cTbVA1HxjgvmOOLPkmkcAk4WaJoCDlXV/c+A5b8eIFmgaMAMBApiBwIEsUIQDD4QCATVGhRdhaLRXx0UHxj18j3q8Btfrbs+nvRuaGCmpUXKjagPjj877yHXBXPzwFwPzPHACuk1AaUEjICTDZoAYLKBkgbIfztY/msB0gIwmgRFpQGVmKHOhOqDwYxDJRAYOlRNgaImoCRUKCo9l9ukKthETUK5fXLdn2ri3p8yIGHIz9H+ev+5eY96HpjHwCK0jYC5DMx24OV6YFYUng+aPAseAabYhhdkmCywNGKW/1ag/FcBZHdAURGCSiwRqoZKDBHSoRIgEjpUQ4OaSkElIOgaVMuCSlvSaJYCRbOhKhIg9JoDRG7vmlh/xc4a5wp6ryRfffLes/KfJGAwD8w14Jli+RLmuPBMEx5t6fNQCJ7twos48AgwKQceMUyqEB6xS0lKAIbM0f8SWP4rALIrwIhGoZIJIabwQRFNQEsYUIkhjCRU24BmaVD1FFRNg+o60GjrqFBVG6qrCpCoLlRH4QX25GjzLQHCkeWq90+ru5he33p63vN8ZTUGpjMwT+MVBEzz4HkGPN2D57rwNB0ubZ0QPNOFZ9hw7TA8YpiIDS8egeuDxWeWeBze/wJQ/uMACYAjqC/SZoSAQWwRqYJK5sNnipQJzQeFY0MzdGg+IGjradBUFarn8Xqc9NZ1odL7BAxXggRiNkaDtuDLKukCHJooumSeB0/TOGN4qliNQWw9eKoL1wcKbW0Hrm7A9cESsuD6zEJmKFEEj1ilNaD8p03PfwwguwsMYgsrBI3Mh21B81zoPihcHRrzoOuq2BIoNBUabZkKTfWgecQitFW46SHA0MxpwSIKlEAlH5cgmmQOuf4WU1UJDCpLVeGqxCIqXMWDSyBx5VZR4TgeXNpqjgANgUXV4BgmXDJDZgouscr/AlD+7QBpwpxwF9X3RoKMkQhDM2NQCRghC5prQie24CAwoNPW8KAzDTpj4jUBgp5r9FoAhpgkCBaVKSAHV1E8qHyBJ8Ee2W3B2UMloKjgk10UmqarwvNB4QkgcJC4ChyF/iQ4+HMXjq3CIbCottgSq2gWnJQJl4Bi5cCLJOG2wij/Ma/n3wqQ5lhj+XKovsaorYVGpsRnDM+B7pnQQ7QlALjQmU7kD4OAQFtoWa8JHBp0YgwyFAQURbIJPF7hpxKTKEyYGgKHl2ViVDH7iZsWpsBTae04WsBIAoLJLRQ4nElcMlT8zyZw0BbivfRrxYGjaHBUFU5Kh6NacFQdTpBR8vPhkpgl07PXXrwcl5+H9Kz49t9pdv4tAGmJNQrWQA2HoZL4TNRBaw4Y8EAzwA2bAKHDUGgL0BQmk4NEvPYB44OHXuuua+ubtm4p2FS+o6B8587CDdu3dtpauaO0Op4oiCdj+XHbiliOa7rM06kHVFV1NN20wkYokRsK1ebn5tV0LC7e0bNjl22d2pVUdysprenVuUuNphk+KDh7wIXNgQEJEAU0pYvmTdqM3ndgG+JzGyrs5oASyYNLYjaZhFfTF54MvvlA+beyya8OkNZYgwRobi20RAialYQWdaCTKSGNwajTPRiOIkDgg0FRYHoEDIDWTyJg8M8ZYDIV+o7y8ryNWzYUL12xoueaDet6VlVWt6+JxQtqrES+BUVzFLIX4DaBBqejgM//5dlUSSlELHyiQroahnF7pCnMzQlHagtyojWl+cXle3bvuX7/PQes79mtW2XHkvZ1isd3Z0mg0AJvBAhLBSzGxPscNApsnV6rnGFs0ihkeuLEKGG4kRTc+ny4vpD9T7HJrwqQLHCktUY2a+RZ0MkrgQuDTEoaDIDhCBCYngJa6aTxc1e8t3nrhqIv58wZsGLVin7by3d021lf084lb1fRQIvNC4GgIKUBNj8TshsCBHwyBnd41YbJGD7pVA5cYWzEazl7Q/UYFNeh+TVuu5y8nd3bd9w0sG//1SMPP3Rl947daNEIS9VAIOF/KgOtMdTgue4zjAQNmRxosMnrqTPh7Aqb/Jom51cDSFPg8LVGkDVcC7qvMxSXUiUwFQbTsWGqEhQEDnruuQgpCkIMYltTW5Mz67MZey5YMG/vtRvWDYil7DxoBu9oAgGjDtcg3AxF5YAgXrd1Upoa72+PviP8GTljjv8QoHRJenU2+iItcOeBz+LiJO9BofApc/lXdVflokhxHOSFQnV9evRYOXjf/ZaOHHrUioL8vBhjSCkALfiWUjWkPNpKwNBz3QAtSEvr7llMg+3rE41A0jKb/Kq65BcHSFN6Yx6gUr6EhGhtBJqvNZwIdGINMiPEAjYTbOASIByECBiaijABgykIEyjgIbxi6YLOMz/5eNCS5Qv2q6muLYWmwyN3Q5FblbaSOTQFnkZ+KbU6sYbKw560mAu/l5bK0SGlajDBLZvGZ400OAggrgCM50GhP4q7k7vkkRliMMi/JvfIc9C+oGDHvgMGLjzmyGHz9tl7v61QkeRgYUgSUFwPSQKKpyOlScAYimAZMj/EJnoCDrnFxCb5CbiB2Em2iP3FBewvCpDmwOGbFPJQyHUl1iCtEQvD0BIwYcJQbYQ4MIAQ8xD2FISZirDqIUzgIGDM/e6rXp/OeP93P/+0au94KpnLW4cGPHW6BAWlaF1iBzIfxBYGGXcyI8QgGixdg6cZ3Oxw1uALyASf+76LBA2nGckaBAz+WoBDrE3lCpDQnyNBQv6243FmIQ+ZfOwc3agf0HePpaNHjvzmdwcdto6AQiDxaCtAklRUJD0IoHgGUrBguxFYOUnYpE04myThkqcTELC/Kkh+MYA0IUZVim0EwWFFofsmRSW2UGDaAK0EReaDA0JTEPY8hKEiQkCBgsj8777t+ck704fIJsmOAAAgAElEQVT8tGrZbyzPC7nkc/LBTuaBGEKDp+hgkimg6vx9h15rvmkhoOhcDTKNrxLH8/1p00L7IqAQYDhpB7QHHYybGGIOCRgCB3/tSAAxgEK4tBij58B0GffLGXM4kIhdDKbA1JTUgD36Lj7p+JNnH3jQwevBkCBgwENCVZF0CSgEGA1JF0gZUtx6CizSJwQSMw4nCyR0sv681l/U5PwiAGkJHDU50MhLsSzoQZNik/kAQq6DEIGCMUQ4U4hthLab167pMOW1l49asWTRAY7thD2KVKkKXO6FUGiUAELmg0Cgg6kaNyEKAUFX4HLgqLA14mmdg8Ul8HBgkCClrW9W/PvZBKu0gs0jxSmZGv/PlQAhsHBTQ1sXqkuuFzGIB80lhnGhuR5Ues0UziqGqSX2HbD3vDFnnz+zZ+++ZVCQUBgScptUFCQILJrOb4WTMhhSQZNjmnDIyymIwQ24wr84SNoMkF0FB4vCYC6MFIOpWQi5qgAGMQc0zhYRhSHKiDlcL+fNV14cPOfzGcNraura+Sv2kNlwNbHENz3nHSxNCukMqAb5oTy+bXNTQsEGTbzWNDi+J0LgCIcRDYeQEzKQnxdBXjSKnGgImq5BUVReoO25DPFECjV1MVTVxxBLukglU0AyKUDCGYyAYwO0PLZD4HC4uYHDeD7A4OBwuTZh3Hcns0O/cWEwFYV5uTuHHnnUZ2PGXPitoqkxxUOCKYgrKhJwkeBMQnpF5+bHCimwFA22Eof97wDJLwUQfz9psxJkDgJHgoCREJ6JJ4QnBwY8zhZRqIgSQJYtmNf976+8cNy6n1fvzX0FGtjEFNRpulh6icBBTEE5e2INAgA3M6oGUECB/E5iDUNHiow6rfdg6OhaWoCBe3TDwQN6YECv7uhaUoj2+TkozstBWNdhUOpX5v05ZzNav5TuYuWgvK4eFXUJbK+qw5oN2/D1yvVYuno9Nm2vAktaHJjcPBGDOA4HiMochFzGs4hkduhiSI8ojMSsAAufK+Ay9O3TZ+m5Yy56f//9B20kgMBDHLQNAEX1kCSPh3RJhICyCyBpqwvcJoBksUcDcDgx6BTf8DwYJEb1JEKOypdMDRNbcGBoiBI4XAZaByln6gvPHDrr4/dHJ5KJPK4yZNTKo2pzjXSFytOr5K5y70PqCQIDFB2uThky0iIKYjTsXKCkXS6G7D8Aww/eByMO3Bud2xUhZLa8fOauFEI6rostFdX4buU6fPHjCnz+4wr8tG6rWDpIV7g5gesizNmDzI/L31P5lueGubfDK9nJ+yEbGw7XjRg1+sPzLxr79T9vahHTCCD05wqgEKs4DEndQ8oJI0XilXQ4xUv0HDhNmJs265F/GSDZcQ5yZUmQ+szhErt6MBKASbENnzV0FRGHACFBQcxRXlZW8upj95+wdMH8Q4Sf5rufYtEV8kBIWNIrRuxAo5zTuxCcxBwejWA9xIERty3069MZpx1zGE4cdhD27NmNF4bs6oMMedP3gvL34Ee7M823dWcVPvxmASZ+8A3mLFgFJ5UCLfFskjh1bJE+5l4P6RLyeoSYJU9HYS43RzwdxMD23Xf/78Zec+N7HTu0ryAmIbAQq+gK4g6JWQ1JziaAFaEAnJRZWZqkgXfzrzLJvwSQ1sBBgpQ8lCA4OGuowpwoDDkeQEu55Cz45qveE58ff/rOsrLulBXjjSTv9ctdWGIP7oaSECWgkFmhsjB6zxSei0aG2kW97aBXrw648NSROH30UHQubZ/GBHVpyxfrB8DE5KoGUEiH3zNZMxGKp5EvPvT3HUumMGfBSjz/5gx89OUCJOMWIqbOU80CIDZ07i1TKtkRbMLjJv4yWiKkX1pauvGisVdNPfCQQ9cSQFQBkhhnFE+wSRAkFMZvQpO0GSS7DZCmIqRr1kCjhFssBp3A4WsOMivEHFyASnMSAEfu5++/tfe0V184vb62tpjHrCjsyeMaokhDRLpVARLyVshlJZlB+oPYQzU4m9SlkujQsQRnnHI0zjxhOPp077qrZMG/JwvVRYiDdzxFWDM51PSyLk20FmlUogFiHI2JxWDoYTsOPvtuMZ6e+CE+mPUDdE/j98hjPGxMZoVYhLQJS2sSvitpbqghcvNyK88576KpI487aSkD6oMgYa4QsgQSMjdBTZKTA6e5OMnuMsm/ChAZXYJC4fP8fGgUBCOzsgvgyGVA7juvvDj442kT/5CwU1QHzMFBZRr8OXkk/kqEnoiEkl2n8Dj1AlM0qJoOy2OIWUkcf8yhuPGa89G/Ty8BjFboIriyKC1exfP5cmqpqyhwJYP46dP0Mrp8phSvEBEH4Uk+XtHKYUWLF1HGUIdCp0twh2XbmPzhbIx7YjJ+WrMZeTkRUdHECCDkJpMbTNef0SN0NvQeufJhw0yc8PtT3zrjwou/VQRI6n0maQ4kpM8pTlJbCzcryUfLiWXocReG0W4BJFuU+rmVeBw6BcGYA0P1YNophFwNYbiCOciUSObg4Hjz2fFDPn1v+kmO4xh+JY5gD2piFwr3RkiQUh9I00KSn4Jh1D+ajmQyhZyCKK6+4mxccPZJCIdaubuQX1DBizoocSdwJFQB414qZw3K1VPMK80s1HXyu7xtxQxaH4Uehew5WKiTFZ5apiX7SDERWEKKytPOG7Zswx0Pv4op785CSKdlu0WizzctXMimk4HC7HATRg6YptrHnnjy2+eOvfLLIEi4NiEBqyGhuUgaIaQ8FZaiw6ZgWjQKJ1BX4l/GboXjdxkgTemOkvXQKLdix0A5SIOiozZJMxthJlzYqAvkqACFxTk4XvvruBFzPvlgtOsy3SMwUANzRUgNT08owknVPEIm8mQa2XiZYCMPpj4Rx2/264txd/0Jg/bbR5CGXIi/0aAgaSG0H2cKfo8oSvUTCOS8F+pgntyTgKE8DQXleOcrAiz0I49DiY/vdAka/YbfF5RKAYQDA0NReGNQkQplFikDSX48VUW/OOkfuOnul/iEmqipcu9GmBuxSB2/iTUHi1yxmQJsJHBVwxk+avQHl15346c+SDygXgNiUBFXXCQcA0kDSFHUFTpsIwcO5W4qesIdJMaCj+xdBsnuAoSblqDHQu6s4vABYWoKQq4PDuG+cnAwhYMjb+rz44+Y+dabf3A9ly8lx9fjkyOXXFkCCAcJd2OF8iNzwsGjUwaL7iqZwvHHHoY7br8GHTuUynXfaRJ5034HAYebEckalKDjnax4sDlz0HMBAv4n2YOAQUCgCiACVbBah3tT/KyE9uCrq1o0OsRrUuh0OgQW3igEFgUIKypyAUx9+1PcfNezqNxZgxy6pbYr4iJEmbyBpWD1eAJQTMghlOuq6h578inTx4y9ipikTmGo5yCR4pVAohk8sJZyqbkoXtjQ/U2DZFdNzS4BpCnTQrrDF6XksaQIHNKsEHOo4J4KgSNPVZD31qvPD/5g6uunu44t7g1CtkIMTEHzqgqdawFNeigyBU/dQEkKEnQGcP31F+OSi86ARvEOGra8uLThZfBJLDLIRsATABEdyUFA7ECFQhT85KVg3LDxbfrPB670Vjio6PsEMFknwi0OZ0AGPUlhYgqnCyeMSukJJIaqQNMUXiQbUjWeeCpSFKxYvgZXXvsA5i9cjcJohItXAgaZFO4D8wsQN1nkeoTASJ68ptsnnXXO1DPPv+Rbj3GQ1JEu8SST+OYmRJlh6dmQaA3okd0yNbsDkDR7+KbFS8Ag3WEBIcPiybYGZoW5yCOAfP7e9H3ffOnxMVYyFc0sdE81GYL+fQNDwlRhJETJg5GejKYhnkiiXYd8jHvwBowccWTApEiE+XaF5iHQP4paUvEoKKUvwCeqxqhYiBhF5axAZsUHhAAI4689T/5OlgRwLUmBUB4uFxFW4X34ng4Bg9c2ch3BQzLSE6M1UwkkNLWP/gxd4QvjFmkayjdvw8Vj78Tcb5egIDcqzCTPGFM7iHA8HZBC83yxaYrAQoEZMuPnXXrl6yNPPHkRAUTRQAtoZsyNh4RtImkCKdIjagR2U6ZmV1ikVYBI9kh7LeTSUjCMTIvuwSTd4VoIE3sonohxkEkh1iCzsvC7OX1ffPjui+O1NUXB+ILKxIKlVA1MD6J00d2aEKkK49tYIole/bti/BN3Yt99B8pEq1iXhA8zP1xNrMFHmguXEUhENp6bEOp8ntSjsDwdiwotgBTJAjJB9OdR9TEFPxlcR+Hhb4fqPOg1TXyh4iA+oEX1MnUWPRdurjh3AglnD4W2TMyvUAkgKp/JRbE6DhgCiaYiL2KgamsZrrjsdsz9ZgmiuVF4jGouaeTIBCDXVv7dtoV3Q+Y0Nze36qqb7nxx0O9+t4bMjWQT7uEwFXESrZqJJOkRR4Xlm5q+fdOEKvivFa+mRYC0ZFrIpY2BD4aQ5yBCopR7KqQ3JHNU7Nha+uB1Y8fuLNvenWhfdKqgDf6Pxzp4soUzCS/6gcix0FdTloVe/bri+b+NQ+8+3eHR6OJOpFy/gTqJZrRwcNB9dWl0EzioU0XHU6eLDL0Kh+nwdBWWRnUhlMzgGXrSjmC2y8vJPYd+4wnmcUXCjgBHYEszP41oWSMiFI0ECC94FuAlp11XySwQc1BOURV/ZEp1+lOgGyoKc0OoWL8ZZ598NTZuLENOxIDK9aoQqgQIoddEeD4NTEVFaYeOm+5+/OlnSko77/CZRGXCDSY9ouo8NJ/KAb9k+18xNbsCkBZNS8hGxHN5+DxHVYS3AgX5nusVPHLTFWeuWPjjIf46mhmA8PHGbbTPGoJNhE3nBUDUMBrDSxPuwqGH7wfPjcvSDfINwgCLcJARIHij0Sgn/uAjnfwjMVlFMIkQow6ZDj4PQYdFEVg+3ZLBtul3NmcLAgSxCvdyOHMI4cpBRiYsQ1rCu5GuKTEJzaMQtUfk7hJ7iOgZmRvSJKRF0gChxKApQFKUE8bqeUvxx/+7DRVlFYiauqh2o8IjcvMJ/Dw2wlspzVx0/XsPOvC72x5+fLKqqTVgqOV6hKFeVxBTNSRSBhJtMTXNAqQ59tiShEFei6EgRC6t4oqEGwGDPBZ4yCeA/P1vTx/2wZTXzuT14zI0ExSTpDUEoYhCHc4gciSSaUmmLPTp1x1vffgIcnM13umK5HMxZilOQnZb99mYT5TlJoAzgMfvfkDPPZc0hQLH9WTnU320MCm0OD7/nkumiYAizQ7pFwIE/yOQMNjSdEk5wM+X3HQRdPfPStwYiFcfyIoEMjMUYSWg6DrN6qLlBiSTGAovMWhXnIe5X3yDyy+8Bcxy+WxzipOQ2RIkQowizCoxSzoboCjs92edO/mciy+fQwCBilrSIwQUCsszDXFyfW0SrTrsLmHYuyNYWwNIA/aggBiZFt9rYToicNO6I495yIOCgmXzvu/91L23jE3U1xcEsxe+lhRmhrBBjasL0+PHG6jwh0aw46CgIA9T//EIevctAfMyt/oSo5Q0gAHPDcN1NFH954NDagbqVBmshENmwmWwiUWoAoeLUQIEaQ2Fv0+vxfd8QAhRyk2VzyL0mdQ+FCchMSmdGX5OJCjJRPqeOmkRkVdUYdD73KNRqYxWlBcYBBoNuqmhpCQf016ZivtufIwyuzz7S/vnolgCkOdwJFD41D8AkdycmhvufvDZfQcduBYMNYoqvBsecdUQVxwkfK+GTA0F0LJjI81pkV0BiEoR00QRdF+Y6kDIsRCGjiiZFs1BrqdwcOS7tld4z1XnX7zx59UDhRvaxENWjfPYBYXNqVlV0fAEGH+ln9rqetz5yJW46JJjwbzMDW+5wk9XBuqw7Ag8R+UNKUyMWJOBOp+zCdXvcLEp3rNd0iMEFgkQLk4FY3DRSmZHahlulsi95eaJ1oAQ5ynyNkT/8hopdCOBQ4lEiqLyvCM3LbK2ieaAktUxSJcIBjEMTWoSHXpEQ1FeFPff+ACmv/oucvOiIqJK5kskaqR5EYzLdR1nFxW9++6x7P7nXn5RM4xqbmoY6lxdmBo4iOsmkg6VxkjBGqmCI8PworS3GbHaJECCngsFxcit9dkjqfGajhBzEaXbyctAWB5U5CseCqa99PQRH06bcLpHvN7KgwCi8LI/8VXKg6g8li7C147t4unXbsaIUQdQJCp9M8R0NkERWRPPNZFKhWCT9+G5DbwOh+w3TZylzqcZ1mRmyGNxVdgEHteDzbWHNC38c3pOYlfhYKLv8M8JGKJYjLMKaR5eGpC2jTLQRdfh10HzqkgBEk2lRUoYF6iUcNRIrEqAGIbOmSScG4bq2rjhouux6LslCEfCfEkjjVe5uVxz0bxRMsNcdfEyARFyPOmMc6eec9kVXzIVNfBQSyxC5sagCjUNcRKsYRep3WGR1gCSZg8kYFA43aH8EbGHCKMLUSrBsXnt6q4P3XjllfW11SWZBfSbYxCRZ/EnK3GaJneQiSV/LMtBz37d8Nqbd6N9aZQLPGGMhf3l3g93YEVhUcoKI5Y0uKDj4QMCA4HFkV4N1xrU0VQyTqAiU0Pg8E0PsQSxjCt0iLyhMpkfASjp2XAzJnWJzANzoSx9GV4oLz0xPvmXci5cf4hL1cmLIcDoBBqNs4muaTBp2QJarsDQUFBcgLXLl+Oqs66Fl7I524hBIcPv3PWl9+h2JZkIekF+YcUd4596snvvfpt9kJAW0UiPqIhTbET3kKQwPCKwd4VFGgEkIE6pQqwRexhULugg4sgcC4GDecj3FBSMv/mqM5bM++GwZk2L9FmE3ybstEjlixHFLQcBRFFQH0/hmBMH4/6/Xo38PF34mP6Du7fkNhPNihA1dXgsloOERVpCxC1c8mG5GXG5K8vXaKDn3LshncNgSYBYnipELFE6L0QnE+SzCM1oos+EHuC6RD4nsAa5ksspP+0vRSrP7HL9QSyi8liIxsUqxUYoLkJMovMVcsirUU0d7UqLMenpV/Hcgy8gN4cC9GLuDe1chH5IrIoZ6L4zRZ3524MOnnPTw09MUYUWqSUmIRbRqaZER8L2kGyGRXgDZ5ua5gDC3YRs7eGzB+kOGRDL416LioLF33/d78m7brjSse1wS5YlOyzO3V2uRUQshP4jkVdXV4+/3HcJzrtkNA8scS+Gn60MUnFdKyvMZYzATpqoqjdh2UJ70DpR3OTQ8j/cnJDJILDQc5WDwXIEYDhruAwWZyAm4yEELoVPgyOXl2sUV2qdgEcjvBl5bnLZIjolGgDkvchqSbGiDbFIIC5CgpVuo0brZgkzI5ZMCuWaiJgGbrjoBiz5fjGiORHOjlwqyDt4Bx0AUbzEYJqh1J/veviJ/Q8dvBoeasir8QUr6RGfRXZVi7QIEIqaxvOgKzvkHBYNYdIeQfZwPRQo/7wb+4N/vvi81UuWHEDDy0+b7xpQZIKOB85oNhy5/1SYzPD8pDtw6GF78YU8RLyBTlcwCY8LcNEmXT6aAukqqKmLoCZGuoE6moBBa1X6otVLMwmxBWkPmwJjBA4CDbEEF7EiisoX/aDnBAwOEPGaB87kHCqhRIjqRUE11x7knfHndE0UURVswbUID7sTSLQ0UChmoOk6d3fpTzd1aKaGgpJC/LR4BW76vxt5rSt5QOJ6xeRz7mL6kWSSzORV/fMunv1/s++P9zz+4mtMQY0m9YjPIqRFDJfP7rNYKaxoHRwZXW1SrDYASNC8LF8OzU/I1StUXcnnsPi5Fp6E89lj3pdf7Pn8/bdcYVuuyZOx/kS0FmRqhkkIICKTyyvJoCKVstG9bye8Pu0+dOyUKzOnInsq/GOhP/x5sWRuCJgEEDupYUe1iXiSwuS20CTS5PggoJXnyLxQpzs2VX953M3lnzvCzFiOWC2GgCYAIzQMiV6qFiMBTfrF882YHNhisp4IsZMo5V4KmRLqfFWYFKqG02l6Dtci9JwCZkKLkAahP900oJkGStoXYcLTr2PSMxMQyQnxwUORI/KoggAhQMrkAzRTt/5067inDh565Iogi/haRKMIK5DKpShrJpEnSmCyzExTAOHmxWcPSsipLkw7KYRpkD3AUMAYCh++8YpzViyYe7AQjnKqCFkNP+qYRSXpPAoPSMsZbeLMuLmJxRI46riD8egz1yISIVqm8HoAHNz/F/lZ3ihcqMmwtMNQVRNGeY3CO5GbGUZ3uiRTQy6Iw4HAO5tkvUPmhAACDhbOLB59x4ZluUilEkjE40jUJRCPJ5Cst2DV27ATDG5S5Ys7UASWh4HJZefClGyLB8WkxJoKPUeFGdVg5IZg5oUQikZhRiIIGSEYpgGds4fwagxyf6W50UwdJiXx/jn8/3z+tSjbtIn/Jh12D7QrD55Jr4qG2T6/HfT9HX99boKioBqK8Gp8FiHBaoSR9DRYlMhriUWaAkgDcUprbyTIrSX20IXnornIc1UUkFu7asG8PuPvuPaqVDKRw42AXE+Dz4311VOTABFvcjeXf09kcFVFQ21NDJdc83vccNu53GbTd/jeuFAVNMtjJYrIntIaUBpPt4ocv5VQsancRF1CTD0gt8ZxHTDPBiPmCACEP3ccWK6NZDKJeCyGeHUMqRoLVpUKp9qAW2sAdSFoyTBUqiN3yBWlSDDNOxcFrAoVyxI4ZFWigD55Kg5UzQUz4nDCMdEbufVwciyoRUCoyEC4IAeh/DyYkVwYpikAQswSMqCaBopLi/HpO5/imfseRzhs8hCAzHHKLI3/WrjdNABD4XDslvvGPzFw0KCfyaPRPNS4Guo4iziIKzoSEZqtB1hZgTMvKFTTAMk2L35gzKSgWBJhipqqnqjx8E2LwlD43LhbTvxh1swRIhwsUuDparAG9eE+IGSSTi6tkAGIWLiUCLS+JobbHroEF1w6WiSo0pMQ/KCUdHEJKKofGxBahBfb2ArKKjVsrVD4qnFUa+HxXIuvRYQ+sZwkEnX1iFXXI1luw9phwC6Pwq3KgxvLgRUzkYwD1VYSNU4McaceMS+OhJtAkqWQRAoO7ZfXbcjAlaxQpZVsTIQQRQR5SgR5Rh4KzQIUhfNQHM1DXsiEFrHhhGtg5e1Eon0Z1I4OQqV5CBeXIBTN52YmZBgwIyaMnBzcfc1tWLFoGUKmEdCnIsTLM74SLqIuT8PgYUd9cu2d495lxCJSsPJcjYoYRVf1MGjKV4oyvdLlbWRmsgHSyLzo9Qg5OiIpKgISqXzSHgWKioLqiorSOy4968+1lVV8fgEJS17Gr2qiUiwAEF9zpLWHCHxk+p7cW+73qojF43j8lRtx3IkHy1yYEKdpQaYK5uCUyrO5YtkFoUlEg8XrVKzdqqI67nBgUNkemA3XSSBRW43YzgSsHQriW00ktuehtsxEVbWD6pSFMqsWO1KVqPQqEEMtLMT4XEdGwToKTzGHV6TxSGn6btd0DiImw1mUtIJLLEKBPx2qZ8g/HTlKDor0dugY6YQeuR1RarZH14IihPMTSBVvQ6prJbSeQLhze5g5edBDJopKivDlZ3Pw5N2PIRQikysicYLBZDxIMjW1DC2cU1hYWP7QK5MeKS4p2cEEQGp48ExBLKQirjtIOLlItWRmGgFkHqBR5DSVglHDYFJSzrMRocJjMi8U9yAG8RgKP5ry6uDprz03hpGaIzhQ8EZqCVH8EigIyqr6UhSdNyDXLbzsVIKFqUjaFl75+9343eF7iuotGSTyq0aFqyfqxPy0uCjLIxCJghuWAjZt97C2jMGxkvBSdYhVVCC10Ya9sRCJ7UXYttPFsqrtWFe/HRX2TtSxaqSUOBw+LTYJl3ZCQRFem0FMxcuJRERXHl/0kNRH/txfPznJo6xkNkVkldbao7+wkgtTiUKHiWRCBFI6mh2xT87+OKB0ELoVlcAuXYdk3/VQ+oUR7lSCcE4+DCOEe/98D35esQpmSBbm+cpU5mt4QlyaGXLzzrxo7OsnnX3+tyqxiIyLkJnhc20MJCiJV6DACoVgy/wMb1jfzGQDhGIf3HuhrG3QvGhMRk09FPji9NEbxp67ctH8g/jyfzJGIac+pb1S2VaNygJ5JJDn930LIqY6+OV8k94fh3326yMrqQQzUDaXdw7XHuROS/aQxULcxJFXwTR+G4bqihTmLqrE1lVlsLZqULZ1QE15HlZWbMey6p+w2dqCGlTCZUl4ShKOm4RHOoVc43TGNF2hFwCqTPNzQAQFllwhIA0a+p4/hVQuFyGLjEpycrFH104oLuiE2koNGzfXoaq+FrlqFL8tHISRnY5Cj44FqCvdAGfvKpj981DSuQu++uw7PPvgUwjT9FGpyXy29mtkhbgTdTZ77/fbH24f/9wbabGqoobMjKugPmhmAllebmaaAgh3JwggTgkM8l6C5kUTVencvBBAyrZs6HLPlRden4jV5VNOgEatAIn0S9LV5Bnt4Vee+24tZ0kyM3KSFLEAJdPUkILpM8aj/549+Y9tz0A9ua2JWhQXOtyUiXiLWFKBdIdgLFlGJgNJFZsr8OGrm1A1twNcqx1+LF+NH6sXYadbhpQSg8ticNwEXCclC48CHe4PHT8AlgaCH3eRb/hTFXwiCQpz/pkEiAzwcb1Ak6JMHb06l+A3A3uhU6f2sFM61q2JY+XySmyrqkJUM3B852MwsudwqPlxJPusg36wAbNdCe67+QFsWb0eeogmV4jwkF+3KrBBmkRM48jJidY++OwbD3fq1mML92bIzAB1LlCfbWb0Cth77SUqzhQefJIJhEByjru3liVWDvS9F8VAjmvLnAtDAZmXd9947oj3J/7tbL89/PZLM0bAvAirE3SYMtMaCCCJRILPkMvLy+X36sgvzsNrk29H2dqNSNUlcdDRg1EXLsXmLTG0c8vRrZdYNJ2HmQNVVlygygpwN5nA3Ok7sWBqe2zdaWPmztlYmVwGS6mD7dXAdsl8yGiXTwN+gWwQFCL+H7Du0qVNmxWfQQS4RAVY8E+UKcowsfDGaCEUXUOXkgIMHNANPXp2RlFxFEbYRH0tsOCbKqxcXIMyZwP2K+qPi/pehh2K3xgAACAASURBVNK8XCR7rYY+xMZX3y/BlNfegmno3ERzj447B6SP0hWQkkUUnHLuBRNP+7/LvyQzQ8Ezcnk1A/XMRizozZgm7OygmTAMgtdpOoPWYTN0qlan4BiF1qlizCZxKtmDoqaeisKHr7v0vJ8WLzqQ2EPEIjJU2yCSml4EXTQMPyAFiGhRQ48haScxcvRgjBh5MPbYdxDMnCKoIQ0F7Quwed0WfDbpExSgEiMuPRUL6tshvm4zRg70UFgaktld4dlwccq1ghC0a2bX4PO/RrFo4w58UP4RypXNsNxKOE5C1rbLfgzaiPQ1+JG+AC0ETYk0LaKzfez4OsRvBz/iK/El5+bwH9D8GU1Dh7xc7NWnK3rv0QVFxfkI5RgIRwxU18bw5YdrUbE2ig3OGnSORnFjrwfQLb8Uqe6rUL7HKjw58S1UV9byZKAwu7KIOm1eOK3wFMbA/fafe8fjL7ymehIgkkUMBTGqOKMEnh80K+sKZ5Ao/uc6JAgQrj/IvaXMrcEQ8oNjLtWZKsijuAeJ48qd5R3u+eN5f6qtqOggA82Zyl2/vaS54fTnt7PMdPptSt7KpVefgatvuJgLyR3btqBdn36Im0WwRSId23bE8eHDz+DQg9qhstshWLuuFocUVmLo0O78tgvpcjVelidqWRMVMXx0n4c5n6TwdsXfsQ2bYDs74TErg2Qf0Y10hA+cDOqFZ5Tm28BIkCI5aI78Yh5ZARbEFfkc4jUlKjUUR6IY0Ksj9ujXDaXtixCK6jBNHZbL8NXX87FyYTny2d5YnfoMRxaMwtiOdyKak4R10Cq8vmoSvv9xKUyTalIcmd0W5t1nPD+jXljUruyBlyY81q60fRlzUU1xEfJmNCayvBQ0sxWkAhnetA5pBBBff9hxhClza3ty8pOHfB4cYyikxNwTt153HWO+yqSzCsQrfGUtK8X8UUaFNAKTCmLxGA4fcRCefOlB5FLRgGdh45Y67NhRCa/HAFRYBl9S0k542L5wKbZ9/i4GnzIK838Gcms346wz+qOoY64omknbORG+XT2zHu+O0zFt7QwsTs2D5ZTD81ICqT4ggpTnvxfwCISVEN0pZlyK56LRG9BJ2lXLMKn/nYBZlWFlcQiRoMzXczGgUw/0H9gBHbvmIxzWYYQpF+9h/ryfMGvOjyjS9kAqRWtA/Iy/tH8F+xT2hzJgK2awKZg262OeCc6kH2Q6gg9Kyg3JKRRQvBsfeuzRQYMPX00xEQqaUaaX14qoiFGG14giSe5uQIdwoRoEiJatP6ickKKnngNeEEQClQFFU54bP3zm9EmniHB3ZpaZyMrK5vMjqgFG4VkXherwHT7P5bW3xqN3n1J4bh0Ux4brmZi/pAqVcQ+brHykYgkwKwW4FjZ9/ikG/bY9ttSVomrHTpwwqhMOPKyPjKhmBrUTs/HROAtvT9+Ot+umoNbeAs8lsyJnUgWsRrqjZeU4j1/IMj7uQgcL4ngH+/5rxlw2rntJq7DMSQWeCYCQUDWxJw7CmdoJ2KPIwPojlyPWqQ4GFSyrDEuX/IyZsxYhmXLRydgHG1Nf4ZzIrfh9/mmI9K3GjOgbePP792BQUiewfh23NpKyRUhezC897vSzpp13xXWfKUAVCVXSIaqOOoqqUlmiH1UN6BA3CBAefFu/Hrof/wjRsg2iaszXH/nEHgSQR264dMyqRQsPFNMQ5Ex8iVo/Hc3njvhgkQ3kjyfLsnDDPX/ERZedCs/bCZXiDbYDJ+FhW4WHed9vwuZkCFW1FpidgmvbqN64Hh2ilSjqMACrf6rGb/qHcO6FB0OPUgPR6Xtc25QtTeCNP1uYvmI25sY/h+vWiqOnTUrARaWOknNdfBGZudevqLcQSeQMS2W4w6ebbBz47NHcEjTicx35OBFX406ciyLE8f5RU7Bl4DoYeoi8dKxYvhafzlrMXd8ukYHYaS3HUJyG86J/RP6AOKapz+LDFV/A1GSeKi2kA+fDJZIoLtprv/3m3jn+hdcJIDyySmUAQB3pEMrwpjwk/XhIz55i/hh5Mj6DUP6FC9Rg/EMxEFU85DCX13zw4JjnpEpuvfiMq8q3bu5JIWZGVyNNiQyTSdAKAec7BpyqqVLcdZFXHMW0Gc+gW/dCMK8OimsBlgOrxkYsYeGzz9Zg7XYL22qT8GwLzKXPYkiUr8MhQw7AkiX1KIgmcM01Q9GhZ5EUB4RQF3MnxzHp4Vq8W/kW1sUWi8mU6WCbZIG0tyFKC/yHALDvvord+iaMr6saNEtN8oM/EqR45RgKem8CbHQIHXkYhvNwPk5DfrQMC0d/gETHOAwzxCf1rlqxHp/OWoidddXoEO6NuFOGQe5IjCm4GMV7JvBCzaNYsHkpzwbLeQHNnhG1e2mXLusff3XKE2ooVMGDZlSSqKGWAtfMRtwPu1M8xBeqHCBBDwbbYPgC1bVotUFEfYHqm5dNa1Z3/+vNl18Vq60u4pOHKE0v2YMihlyk85J/CjJTwa+s2RDSDIlkEoOH7ouXJj8Ew6gDY0kolEtPWohXJxCPpfDjD+vx7Y/bsKMuBccSwtK1LOxYvxWHDxuITRso3V6Hyy4bjP0O6SXnF6jwLBfv3l+Nd6duxT9q30KltVFqDtlJcrGWtA7hlfEB7ypQdxI0HcRROXw1Q6G4a9IlhjSdwUOe4qKWbiTDrzizQpFcg6jhkJamijI1HdAT+4b2Rc/+DNH9LERyojAiJl9YZNXyDfj0SwJIPdqFOsLyYhjkDseZRWOQu1cFxm96AJuqyniFvF/x3jRCBODz8vOrbnv0mSd69Buw0TczvlAlBtFMJHyhik6w056MBEjag9FSMP0AWVMCdeHXX+z17L03X+m6Dq2qJFNTouG4RyOnM1BYmEBCjEGTknyTk4glcOWNY3D1zecDrEJMenUsIJlCbWUS9dX1WLeuHO++sxzVNSkk6Y6EmoL6uiRS1cCgA9ujutJBXV0KJ56+J44/aX9+50KaiBKvsPH6DTvx0Vc/YWbdB0g4O+UdG6QLGGALwRwyxiHvKiS81qDwEE2eqzIcZLo4u9jBOtvEveW+IFeQo7o4rVDBx3UuttqGNHbS9ZesKSo4BDsJ0AihHlJVdCkpxj79u6JHz47IyY8iEo6gwC7CDyuW4Ou5c1FWH0dYa889sIPdY3Byx1Ng9V2BJ1aMR4LfZM8Ti0U38xArvlEJgu786c5xTxx8xPAVQaHqUJ46kJdxQ7CCiTufQThAyIOh6jGqXOcTogICleIfjKFoxrTXD57+8pMX+DPrucH0L598cR45pAJcgyeMXM/hf5y5qc7TcfDQMzfjhFMPA7xqngBTbAte0kZteR1qK2KoKK/DhDd+REVFApbt8iKbmvoEEI9gwD75/BZQlRUpHPC7TrjwkkMRikT4IhzlP8fx4p924JMVC/F1/edw3PoMxfuTreWUhbRnJe10w/bNgMSP7xUrLh7p4uLjeg1TqkQH04Nimb8JAZtchp2OP1UwExjLhK38hWd8UU+r+1GwrJAvzdmzVyfkFIQRjoQweMkIzNgwE2+WvYmqehuGWsLvpTZUORnH9ByGNaWf4Y1lk6DTgjt+6WVLJo9/puCcsVe8csLpY75XFK5D0kKVZ3ddJKhWlarMGngyPoOsWcPXF0tHUPmEKFrCQc53If1BIvWFh+448YfPPxwpKJhqRaXlplI6KehoQpGcNpe26dwc02IouopnJtyLw4buCbBagCKaDt0r1EZ1WT2qd9aitjaOia/Mw7at9XCYw0cIlXVU7EyiV98SlBRFUVFuoUfffFxxzVDkFkWhhTSsm1eL527ehplr52Jh7Afh2nIhKqOcfoyTE4cs3ZMd7Y/whi5scGgqiNLqcZIHGrm6DTpIQSE85CgKtnA33M+SBD0cD2FNQ/d2JdizXzd069EBOblhmGEDxRVd8c3ixXhvxWxetFQQKkTYDWNU6BwcNmBvfMT+hq/XzIVJd7YIuNxNTW1JL6zDgMNGHPPx1bfezdP/PKrqocZP3DXhyQihKgGSdnHrVYQog8trT2lSFJDnMhH/oAjqA9dcdNHPyxfvLwSbkEeZoL0fakj7Wg2ajSqvjLCGFyY8hIMO6yEFagYgVWX1qCyvQaw+iamvL8CG9bVgqn+rHwXVNXUwcwwMHNAdFWVJFHUI4aprhqCkA6XENSz7uhLP3bUJn236EavrFoFRjsUvxPPdbqJckalPz7PJnGRD88LLINMdICK0wmuTq5ZlC1BpRohVnu/joKoeuL5Mini+Hoq/f+EBRTQdvTq0w4D+3dC5SztEc0IwTRO1sRS++XYlFq9aB4diDGYhClkxjs87B/sc0B6TdzyPVT+vh6nTkWSshic6RV1I8JHRUgz999lvwT3PvPwyMYjqoppiIS5QR8XMpEMos5vrIdXA1fUB0oqLW6BAuLh/uejkq8s2b+wjXBRpXqQ72/DUGnMeMYgR0vHchIdwyOFBgNhgcRtV5bWo2F6NeNzCOxOWYv3PMTAquKBFYBhQVVGD/KII9uzfBTvLkjDzVVxx9aHo1L0AZljD/FkVeG7cWszaPB9ra1eCeUk5lSIAgYAn0hgkwQ4UtJwZoT5Agtu0cQ1cLEUTbUwd4GDiduCNKiryF2yb2Qo9kqtr6Nu5FHv064oOHYsQiYZhGAZ2bK/Bl98sw7rt5XBpqQSzCJ2UXjih+CT0H65h2sZpWLhgDUxDLCzMz7QJgDScNM/QpXuPnx97Y/rj3NUFd3V54q4FV9dNM4gPED8HoziIUgVZ0MVVgaJrTxt5a01NRXvhAwqby9PwnqwalfNCeBMEA4n0mqheBZ54+W4MG7U3GKvm+oOKQbmJIYCU1SEWS+KjyauxcU1SFOdqOuK2g3htCiWdQujRIw+VZRat6YRLrjgIPXpRmFrDvNnlePrBlfhqw1Ksr/0JLksEg4xyfAdiIo1YJDvI5Xes6NCmwRIInvGvUcWHh46Kh+18TbRMPETMF/RrcBnyTB39upaiT+/OKO1QhHA4xGfMrVqzCd/PW4PK+gQvgsoNFaC/tj9GdBqKXqOSeG/ZTHw3dxVMurtOI9dbVNLzCEj6M1FEXVhUXP7C2zPu9YAqWR8iCojI1dUR93MyVBsiYyENAVLmwKRFYShJRwDhNSAO8hRNZHAVhqKxJx4+zkqkovxeorRGuiPnavAcnLjLcLo5JVjEqg4izJ5IpXD7Q3/EOReNBrxKwBFBMhZ3ULOzDjt31CJRZ+Hjaeuw9We5EAy/aS3pHQMFHYHC4hSqtrtgJnDe2N+gV68ihHN0LPy+HOPHLcL3G9dgXdVPcIlB/JPxJxzJ1+nGazK2ETQ1GQ8kQxPZYPEP0hTrNCD8QM6KIWJo6Fqchx5d2qNr1/YoKMhFwnIwb9EarF5bxqNVqqciR8/DAdHfYXCv36DTsHq8/c1szF/0E69bFeZOjEQ/Y84nk2XFbWhiWjgSjb3+0ay/MDIxpEFc1FA0lWpDdgsgnoVIMEjm52DIxFw26uCHXc+jGda82jwYL/ApmzssEhxc7wdS/fXxBE47dyTuf+I6MLYDsFNQkuTFOKip/H/dvQecZXV99/8+7fbpbXdne4Fld+ldmqhosMRYYif+NRqjRhOT+MQkJpbEaCT6WKLGCDHKYxQVjYgEAakiLLCUhe1snZ0+c3s99Xm+v3POzN1hlwVEE//X13jbcPfOOZ/z7d/Pp0Zxuk6t2OKW700wO6or4dmY1LbV8MgN+fQv8ciPBvipgCv+4ESWre5Sja6922b51Mc2c/+BQxzO7yNp2iFrkNrXDfdbFMWDqpfNrwmE33uuG9d2Rhe+djwnuhAoC9ysqrPMZ0ASfKcsg+5sipWL+hga6qbWdNi2a5RCpaHWMWXyriPo48Ke53HqxhV0nF7j+z+9nZ37Dqil79htzW8KhIvlIT7m3Y/iLElYrWtuuedDcTVV9WSiYplnUBMLIgtVQyb2ERZkC5hxFVUsSAwQzyZnaNEEe0A30PuOF5/1WfVlVBm6fQA5HIQJ5yTnxw3j1YcQIxqO47Nq3TDfufGf6OyS+kcdv9bAqdpUyzbVUoPCrM3dP8hTnUhji9JbtOZQbzgYnRWWrLIojFvIAujr37WCpcs7FECmxsr8/Yfv5N5doxzOj7CoKySBUQvbajnKoyXDytGKZbjQHa40hmyI0QFtK3aFpzgGRgyY9uzmaG7pyfHXkdZn/r9XBBi6TkfKojOTVGsX+aqtjILQN5maRZ+2hEuWnMP6UwfRl9T49o9vYWRqSq1pxt8tvgYXNhOPnMPxg2vv2vKn7QDxpKubULMhdT1BQwAi1dSlSxVLV+hinhlAzv6sLP6EAAkXk0MKhHD2IHQloZ+PWB5C760WinS1QyKUlt/8wZWcdvZSqM/ilpvY1Rb1ioOAYOZwkwdvqlCf7MRuyFUU+tNSrYI2kGe4v5vyZBq9t86r3zXE0JAM25i0Gjaf+ugt3Hb/IfZOj7GsXwlshzRSEdeYbO2rpakIJAo8imwmBJLi8pFpNfX9w79RxePqeTz/0R68RnFK9NI8YWYczLYHsgsD1dglhVe87O/GWWHIY6aR0TMMJ5bxvLWbWLtxgJpW55qf3EC11VCzrvHO8jEBEvqeaOIuCK79+bMAiNR7JEiNY5CndDGXn3+l77myF6YibvmjZNFIyUVHiZycFrnF0w9zYUDEUdZotHjL217GR658L1pzAr/UpFkLAdKyPQ4+XmP//R61sR7cVshpKo3BycIUmVVVBvWlVGYNMqvLvPytvXT3JNWQkRzUq798F9++bis7Jyfpz0FWGO7FSijuD9mNEcAIF0goaujJbEy0/B2T3ykCK0VpFVZWY4ZBoc9U859HtPzDNUs15a5KKyHIFB+rIn9RbCILMpijWRg5ZjIGEFqkkPxOo9fqZU3/Es47cS0nrF3Nlj07+PF9dynCGcXNpmZ7QrcVTgnOZ0xRv3TO/lmW1frWbfc+cxezECDHC1KdZjMj0bjk7KYI+Mg6oiPV0vCgtJu12GyrrTnlevSQnkFz+fI1H+eSF23Cn5qgWXVp1WxaTZ/t9xSp7MtROCh0Z4J+OY0uOyZ3s+6cFInRlZRqDYbPr3PxK3JkOhKqaZVKGtx793Y++albeWRkEs+1WdGbw3VDchh18qJ9bynmhSc/ppiKE4LQh4fLWRHNtuqvRcta8lp8ImJ2LbGgevi+sjTKAoXEL1JFFkEisVLz7mph2htaloVkwFJIG0r2smnVUs496SSGe9dw9U+/z/78CJZSu5iPicLj3m6tjqzzyFupVKZ2zc13PfsgVVr9x0tzP/D6l3y4XMwPqC18I9SNC0mCQz+uXElbdTKeGVFmLu7ViExBs8XKNUv4t+9+gqUDCZrjJRw7YPJwjdFdDZq7h6jPJMLhWx/G8lOMu3s475ITKTzQQ1mb5bRXuWw8M61qIELVLRtpxdkiH/3wddz5yEEOTFVYN9hFQhMrMt+5VWCJZo8VEYxiVw6J8Oav9pAwV2VPIZTCvy8+zepkRO4nmoqRol5MaifrF2oQLZC4x6XuSsAcU/rOZzthMBmNYs4pf4f9k95klm4zxXmnrOKCE89jZiLgqnu+pYiGVXmyDSBxHWRhsaw9iejp6Z3+2o9ufvZp7lPMgswVyv7mna/944mDB9eEwbhYhJAqW2UtwpkhAIk4x1VIp1iDIvqmuTaVKp5QrTY4+9wNfPHqDzGYSVAcKzJysIQ/20fh0W5RRFZdXCMd8MD27aw416DbHmb80QSJleOc9ZoEA4sSWMKpoZaihd5J59tfv5V/veY+th7Ok9YTLO/qUaV6+XJCMRmS94ccIcp9xWyJykuEMYgi1ZtLgUOIxINn8t8cMSgUuRxlF9RJC2Oy0GYKOZ5H3W1Rs+2IyvPIIFVxfoT/cQg6mdZHY1G2h6xh8ILz13POovP5/j138ejENizhk2jnS2nzWHGQemRMEv7C8MoVez/3zWdZKIunyY5Xav/0H//+7z+xfevpcRFMDaXNcXtE9iK6zMIxjLBg3V6jjGM9CQJr5QbPu+hU/vrDv8+yvj7KowbTD2ewGyZWViga6vheC7urolh5Zu7pwNbrrHx+gZUbciSzsvgcbtRrhq84Ng49Mcbffvy73Lt9nINTDVZ19dCX6FA8ZjK/oop6ipU5YmaOLJ9yN5El8fWQSnN+oTGcJVFQieZE2uxJlOuEMUDIMhRnciG4HN+mbDdoOJIchBlf2NcNXYU6sTEvaCDq3Wk6jBRDvR381kUnU57RuH7zvWjSelClmaOn3CHE5us4c0DWYMPJpz380S9d9axK7bLu8LSadV/79Edeufm2m14Slg2igxDzpUerdO1XV5zBRAZnLqNRQVW0sN2q2/T2drFm9UrsomzbG2qZursvyV//7TsZ6EpRrhU58HiD2mGfdG+NM1+wCD0VbsSH4tlh7KMkOcyAb13zM/71mnvYPVEiX3bUiuMifSAquAlQQlpFIeJVMqvqsLoqvoiiCfVaCBJXuRh5LCwAil3I8BTvehyghjYhvvrjhn7UAFLaLy4Nr0mx2VR/m4JH28S/+j7RgLe466HOTlrNBs87+QQuPGMdN92zgz0j4yQVl1X4fY8a6ir0hHSg6hvN1ULg4ste+tP3Pctm3TNr91/1pbe1FyDjGkfIwhdG1HG8EQ15R52I8OqLPa4uV3MEMqGIEvYfTXRvwylhlbY+76LT+LsPv42M4TMxVqRvMMv4oRkSpsWJp8uwUDT1Jd3kKCYQNzM9PsOnr/w+P390hD2jRaoNjbWp5SwKhtG9RDiZETEaKzcjQBEI6J46mQoOaiE6goYm6bDHqekW52ZtDtUNftowaRpOWM1Ul66Q2sh3D09S7Eji7MINHKqtOkVbSugCkkhVSxmReTaEXCpJdypN06nx6uefzYpF/Vx704Pkq1XFb6ZOfFROPxpIYt6yOC4JIx6NK97zvq+/4tm2++OVh6czMPTlv/vr9/mebx7Rao5GU5Xnlass7vW28YjG1dXQtBoR3+dcEhz2KaIrKYSITrFY4b3vfQ2vfvH5ZFIBma4kVibF2N4pqrMNNpy1Win4SOqqlCYjdRdxNQ/eu43Pf/Un7Botsm+0TKXhsURfzGp3A50MqihBsiP5CRNesRGymO3gaWJNZL48fE9EADrx+MyZY5xz6kNMjSzmTbdtYLfhYRnh74THI852wqs8JP+VgDJcnLddh+lGGVvxvj55OEmSk1V9Q0yVplg1PMTLLtiE7wR85+aHFFTD2DgqICirOX/85nKYOWK7efgYMjD08U9+4dyLL31WA0NqaerpjRzuXP6///J976+WyyE5f1RNVSY+yl+iVtFcgandYyrDFw84q62JsA2uuEEMC034waKkUoJIGYp57ztfTW+6j8mRAr/zpg10DeRU0W3yQIH84TonnbsGPSf6xuGejPqJUPqzWzbzzWtv59Bsnb3jJaaLsv7RwcpgLcvZSCeh8KFDS2CAi6MA42PjYYduR70e0k1u6KiyqrOAbev8tJClICpCAhBNrE/8zcPfVQdAdyOrooi/1QhmsVmh6Mgwk1KamT+Lgc+ynn6VtuUbeV558ZmcvHoJ2/fO8LPN29XOjBwrqdFEhekoflnYhV44tqDR0dld+JvPfukLK0444ZmNHEZ+6hkOLb/p/dOjoytVMBQ14dR5VzFAeItLNnLIZLJMUTXFhyMyqYLJudqiuhSUk1CvScBo2w7nbNrIqavX0iwnqNcSvP0Dp7JoZRK7GrDtzhKrTu2lcKjGurMX44v6nUiORim3XLyObXPHHQ/w45s2s2+8wESpxWShTqnikPRyLGU9Qyynn0Vk1dqxiAi1cBRQBDQxQOS5QzNyOq4Cj42vO/iGg2c4+GJ1FBN/uDesrIYegkfTXKVTJ5ap5taZbZSw1UCTpMbS89VZ2t9HAouR/DhnblzNJaeuprurgx/89FEOT8wqOisVggrNRXShzQe4seOO2BDbfI+8M7Rs6YHPf/1ZDC3HAHlGaw9/8Qe/t3vr1rPVd5CCXnjuQ7DEvUWRMVVZgZCvCUDCwCmM2qM4RJh5wv8wTIBV8BUP/oZrtievWsHJq1bhJFbz4PYBLr0wx/vf00Ot0uLObxe47IplFKaqTOxw2HjhIrSk8IgpcZeQDC8i4d+1fR//+ZPb2XNonJrtUKq1mCg2lUVpNEXtOUO/v4TFrGaQZWTpIanU5yRElf+1sLEj6NgKQPL/YnFczcbTWyFADNGxklhLXJULhk2gORiaQ6CHP47XZLpepuKUlFUZHurirJPWcuDALHvGxjlnwwrO37SCvp40+8eq/OimLSp9j9cv5pUzQvujBL+P2I2JK7fxafnl1x7kPD3txanv/evnXnjLddeqxan2rkQM2vm2c1sDLO5rRL+kGJXnblE4Fyk9RHVF1a2UaYDzNp3AkmXnc/vhS0jYBi89ezNv/N3l7LzVY+iEJMtPzjJ90Ca/r8HJFwzjmdJviZiFFD23ENrB+OFpHnxwK9t272aqkKdh2yrtLEv/p2pTrNjUGx6+nSDpddMZ9NEV9NPNEBk6FZ9HnLSLEwodTwgUufd0G0cP4xcBgopf9CZoIt3uoBkCIgdfb9LU6mQ7YcVwv6JyeGL/pOJFO3fTMlYN95GyhA4zw3/84G6mChVFchdmJ3FJPQxwVXofp+eRu1Lt/iNuGi9/nSxOfeBZL04p+95O/fBUq5ePbL7nhK985IN/5geePhd9q1Z2SIIb31Qv4qgJmaaIVcKedJS5q2wmpMQM45SwU6yqnK7PeaeeRdO8nNHJEvmR77FmpcUbX/I6zNmVrD23gxPPTzL2RJ7qYY8TzxvCkYMkrIWBp2ZW5DOkM1wt+kxPFDk0MsLBsf2M5UcpNwvqqhbWwkbLp9psUWk6lJo21XqA09Jx7SSml8EKElhBCotkBBgrXPGQFoJi8A9PjrgdxIroYkGkOyvT+S000yGTg3Q6rP4KE6MIL69aHVSWLAAAIABJREFUNsDSRT2kLI2EZZHL9HPdjfexbfcBEkkZQXKjeEOcUTQzKSdNZkLUvlFYXwkHhRbEIJru/8U/fuaXXr18Rsvb//BHb/tAqTA7JGcwyrijhlFcEYh7GmH5fc66RHMkcYc0fjOOPcIicsggEnJchN1iuXq7sr3kK9Pqo1xb+MtNzj3xYt71jldy2vlDqiN7eFsFv2WxalNnyGzohPynMhPiVqDa0mhUdbwaNGotCoUS4/kJpgvjzFYmqNl56m4Fx23g+S1VJm8KG6Lt0HKEDd+jJUzMij7Ti3jbjXAGQ1XQRL0idL2KNFcXGVAfK6GrZmIqoZPNJOjIpOnqSNPTlSKXlFFDERuy6Mr0kE30c8Pt9/PzLVtIpxNhL0rcVQSBmF1ZniuabumHyerIXFPwyGmynr7eyU9+7Zdf3n5G9A+f+eC737pn6yOK/iFMVyK+U3VVhPJMEbdbtP4g9YU5mIRcqsqCxDzk4XuqLiKMgfJYRhnVaKM07MKYRrhF1XvRtlyz1WLF4FK+9r8/zsoVgzQdh9HHHaiZLD8loThOPc0j+8Mcxt1JqhtblNa2qHU4irPdqVvYLYNWE2q2lMNrVFpFKs1ZSo0Zqs1Zaq1ZGnYR16nT8hpzmY5EJyGQQzpxRZIrhP1KgkxXE/zSVJOajVJ2ME2shBTyLBK6iWUmSOopslYHuXQfi7OrmJotctVPvsf+sYOKQjOMy6QmE/IdKFAcMZgcjSEscCoqgYg43TecftqT6B+EZcjUqD4T+gflZp42gcw3/uXin3znG2+eY9CZm5aaH2KJi2VSG5aiUzzFFf590UzrXBATzzZEgFDqBm23qOfT7r7CT9HUasDqRWu44rdfzaUXnkdPdxejj7kIXeziM3zMrSbJf86FGfWuUPm4usSnvM6nvNyj2hUolnspXdmKrtsINWREVyZwVZm87jVpuFVado2WV8V2a7ScRkRb1cQPmipZVrqdmqeoL4XQRQSERBdGACJrCpZhkbYy5JJZMokM2WQXGaub3qCbux6/n6tv/xbF5izJlAztSQYkdFieqvHIUrfKClWBra2Te4yiWexqQgKZ9zx7ApnwilRR4zOgoBoZ/vv3v/2DzXqls3049ohzGnrE0MCokCPKcmK6DWUpYgYfGTaKVJWiEvy8Glz0qeFXjPOktn9K1B4c3KbOiUtO4hUXvoLLzr6IdLNTcY4t+oVBco8O70FmuWELcA94U9DQoNwLpVU+5WU+9R6fRlpEEGPpMnAMlGJxwwrvK0koJKCcBNsEO2KXFm160w1IuD4ZO2DA9hho+qRlRdH1lLifJY04maYxZT83oMNOkq1b/J/N3+M/HvohuulhSQlSXIqKYdR0SUizJdmROgRRNzc+vnPFsrnLZ66+ks5my//4L0JBtezZU1BFAJkLVJ82id2H3nPF7scePidUm1xAlxCf0+g+DF7D2EJu8YBN2OxTvmUuzVWYUS8t3DoV6zK/yXeEVVWv6zi2g9PUGe5cy6UbX8CFK87nBGcZfYc1siOgrQDtLGCpD3UdtoK3H5ojUKlAIRdQ7odqT0CtR1PWZXxY54khmMrCEzmY6YaZDh877aN011WcGGmqCYhFTt3RGKrAuhl4wTQMl1166i7ppkumEtBZ1FlUStOoVPji/m/zvZGbSaZEB0bJPaOp+olkQWE2pmZMwlJR5NLjuRuxJguzljBQDbf6T3/go5/76jcXktgdbWk7kio7JomdOoPPhAbzpmu/cf711/zL73meiJtKhzQOoxY4RHX84qt/PtZQNRIVmEgxRcEmrIPMdYPbARLSdM/TYsb/Vgi68PWwWyvwUjTbLZ+OZD/rl53GSd0bOC9zKuu8RXQULVJJSA6DOSBKC2DI+oqmOHjVDnC9BOUmzGTg6hf5/NvJ4Cc1Qq11qW9EwFD8ljEPRxRkRb0kpTlf1zhhV8B774Xz98CilkavzHN0Nrnn0Fa+/MiPeXhmN6mEYF8ynrCwJvWTsLcVUomrnlCU+KlOV9tgViiNEo1Hhpefel/Xdf8N73jPc0qDOReHiMrDQqbDJxHpFguDf//ukEg3VuY6Yk7iCJyEJziCR2RF4oF9JcETCiK31UfaLcgcwKLprnAsSVOZhN2S5XCJ6IUsP0HCTGHoKdU+F2L8RJfFwekyBhneeNnLOGf1acxO9NJV7mFVI0XG0UkEIMwLyT7I9gckOwPMDmgMwzfOdPhof6AWWqM6bwToaPjFjPTcVVwV5WNqJCQchVg7aXLNwxpn1WCkNMFN2x7htq0P8eij+wlaHqYlFdhaaDXEggh1t8QzEnOojmLYMoy536QhOF9/ivjJ5hanorKB79Pd2/ucE+mqIDlu3IlG3fGouL/2yQ+/8sG7bnux0opbMG4413KOpuPCLCYs7CjEK9Wk2LuIFOr8mkFcCwnjlwhc0ShgWIs3qNcadPblOOvcU9m4cT2LegbpSPRiBTlaTZNGQ4SZdcq1Ovc/sYfRyj4uOW05KdfhcCXBD3ctpqOxmLVGhmV9WRb1ZejNJshkTGVhtDTctQluuAjynQEyYI8p44XheMEccZn6u6JdlLlmQ9hnkqXrf/yFx8vvGOP6+x7lhw9sYWxqVok+JQ0/qpM0CUwpu88DRBXFtHB7Pxxk9nBjYMjxkGOlvPORWUw8RC4e7zml4m6PQ9qVpo5H5r/n4S1rPv/xD77frguZ/5EzCgutSfxunO0qkKizHfVkojlOFYJFPR4FIFWAigEUIkp4Ri5/9fN51/veyvq1a7G8JAiZkASh/28ntlaxOTzrMFUyKDZSlHzYlmrx01yZ1MQe1u/fz633JBgpLofpJnrLIJXJks52kulPkV3k4Q377F2fwD81C2sz0GGAVDQl7pB76Z3JHyUuRpp24t6kXNF0oOqijTVYcvMoz/vWTvbueoIZv0TS8DB1lS/halJlbaJp0tNxVd9GCX1I1VUBTs0jhM1L0eeLJ87UxF5oOeJjqhinY7sSBKIoUfvQJz57TDJ/UeVOCp300yXzbwPIk9zM8eRAPvuhP3rLzke3nBsO7EbWYYE1iT4/qpK2UUOKhIYSMowCXbWdaYTqGuoYhCoQmgghK41TqDebvO7tL+Xjn/xLErJeV3GgKcwuJopYSWpGXkC9YTOSdxjPWxTrCaYMjR8Owc9WSxOvQOK7T+Dc1MQakxXNNL6RVrTYqjhngd4sKal1r78T/fIujBOTJBxHrVEE3Rns/g5IqZRDPpD+eoveoo+1v0j10R2U9+8hNyWqYD6mAEPNjbTQfAd0afY1CHQbXZ38cLxAk6BUgjld4jMp6KvllCjDC4eMVO8launPteiiJfewkhqw8YyzNn/ks1+ekwORFUvZgRFpMmE2FJnU4/G0h/a+7fasBYV+fvtJX/vU3/6Rb7uJ8IuHtyOXdsKgUq0QxAPZsZtRk/sRRYNSwWz/UpL+hlv2ki1Jh3fNxmV8+/ov093VrSqXStSi4MOskhMOARIFzE3bYWzCZ3LSJF8xKeiwpQe+fyIcHgTuHse88iGMMWnIZVT5GzMTWoXGBKR7cXM5tOen1EhBttjCdD060wlyyTSNVBLf0Fnh2PQ6FTTbxWqlWOz3Upka5c7tN2M3CiRlFCBw0NWgkPRjlBKHKsNLpiKqACp7UWsSYRob1kGiKRM1gzpPFhOyW0fHWNGUh9mggMMwDft9f/V3Xzr/hS/Y/pwKCh3LijwdSbIr//wP3/rE41vPmu8qPjmTma9hRFxhavEnlEb1HFcFZXPyICHE1NUZzoCG8yayuvnRf/oAb33Hq5g4OMmW+3aweNESNq5fR7KUhtloZijcXQDdodq0GR8LmD2YolpIKE90sAP+awXcsgHYN0vH1TMMHEozEzg0Gi5upYJW2Y1m9uKnOwjOkIETCSsctJRLOqOrafqa6oNoLEnCBstBc1rYDiT8DJckT8Cqz/Ct+/6d2enDpE2JuaS+YeNrQsspILDVZ6oKclSVVlTjaqbVx1W/E7YdJJsRoWYV/cT0nwpA87GbBPPrTz7lwY987ivf1Ay9+JxKki0EyDMTNbz3hK987C/e7zp2MrYAR6ZeRytwqZg43PyKKKHmxhejETw5GPFOi7ANdfd2ctPPv8zhfYf4kz/+Mgd22WrA9+KLTua9f/A7bFy+AaVgL2PsYpX0Fo5mU667TOwLqB3ooFZMUgsMhJnh+pVw81oou3DBnbDisM+s61Bs2hTLBYrVpgop7IyJ5oZXtdGpkemxsE2fSqWAl8+rmYf+zgTr+1IYMsvi6eRaHbwpeTJabpwv3fUFJscOqoVtsSQyRxIOWQk4wtgjLI2LUVTCvIoqXE3Xq98Lq6jz7iU200cOKVuJROvPP/apL5x+wQW/UlFDdeaeqSzqF/7qT96w7cHNF8ah09MDSFRAi0b/w4kQQ6lfywaentDp6MyqNDhr9bJh1SmccfpG7rptGyP7inTm+ihVSgRGnXNPX8bzLzuJi19wLjmrUxHjyUyGKFmKRGqx1GT2QEDjYC9OIUs9MMlnArYManxnBUyZ8KJHYf2MqOxAUyqoUsrQoaV+fOqiYilXgCvavlD5f5xrs+OjzBzaiZ8fo6crwZq1q9DNJA0txRpnKW9P95Pv3M3nfvoZirNTiqFHsT6LdVCDRbEShBz1QMW6WrzhFVVLxaoIUESPp31jUV3UUaldrMdp55zz8w9d+flfnSzqsazI0xNWfmLpZz/0VMLKC7lDj6yNxLshjWpT8Zb/9hteyEsuO5eB/m6wLfzxIfZvgx9fezdjY6NqZsKUQRytpWQ9HL2mdOHWn3IGf/b+F7B0qBe73prby5XF8WKlQPGgTuvgIG4+SzOwKKQN9vZo3LwE7kvDG3fBmgK4SWhloaL7jB4eZ//EKFVhJctmyA0NY3V04jZBNhkKxTpju7YRTO2jI2uydNVKvESOZqKfl7k9vDbt8IT+MF+88YvUagUsJRoVrjCE9Z+IVzaeM41WNsMygLiaULxAbdq0E/bHDU4h2+vqmv3I5770xeWr1/7qhJUXAEQqq89Imv17V/3zJTdf9x+vC2QlbcEtHkSef7kdIKq4QblS4/TzNvEXH7uCs89ag+YIw6FHo+oyM+ExuWWQ2RGLu++8g5HD47Q0i5Y0NyQaq+0i33qMge7LOOvs5Xz0f22iM9eJ3QoFkgMnZHkuVmcojJi0RvppFTtpBUkKKZPxTo3/GoKHOuDNkwHNXo1HlkKlYLPqa4cIGi1agU/ZqTNFk9qKQTLrV5Pyk+glKIxXyO/bCdMjDKweJrt4CV6imxOMLK9papzYXebe/F382y3/hl0rkkxZapFdlDnnWvXR+kY4ixe+LkdGUc9EdZD5ha64wq/WNoOXv/5N3/29d//RnUeTZj+OqLIKehaKKj8pizlKRjOX8payGFI4E3oIkUh1RZ7djHjMXHIx2Z3nON2ffP873jmyb89GlZYuuMU9mfCARFq56ncCqrUar33r5fzlx95KV5eBV27SrHhUKz4T9YB9jSrewwbGwROZLPh847YdlPQyRmsEvz6F59WpO7vJWL3o/jm8/lXdfPDPTsWVXXPXQHOTBI6pFK0KlSmK4z71sT5alU7qXpaSmWCy2+SGJfDwUrDXBXjdIoeps+mqGU6501YZiy1yTQ7sL5c4rJVwz16N1THAwBTU8g2aM0VwS/Su6qM/mWG5nuYcX2elb9M7UGJ09SHuuu927rr+VjyvgZUUcURxreGMb3iTGZCwZa8oWqMJeTXiHT1Xv6aaHBor167b9ol/ufprhmUVCSjrktaaqqVfE7ptM0FTpFBjQeWuGt5T6eXGp+1JV3n8RpuGzJOsiKaRaAnRnUlasSFGWnaBTwcaXTse2Lz6K5/88Lsb1WpXnPbGRR6pa8yTm8R7IZqqir7yTS/mU599F/Vkg6o0u4o25Zm64gzZ3/S50XdYcaBA765lNAsbuWX7Fm7b8UNSqRSuXcNpTOI6s1JCYCB7OR0dWd71Tp03/M6lNBoBRpBGc7IEdoKGP8tUeYLiqE9tppt6uZu6I1PqCXYHDe7Keuw5Y4DWGSmQrLfo0XNzg2xRmvoBLdPAs0TTq4ItdN9rF5MqGxjjOskxDfbl6e3W2ZTqYHlgsjQNWQ36nAaDJ7ZIXODx8COb+cY//ztjh0cV/VTMTqWFy85SLFaZjOKPV0WhCDrxUlLUtMrlcqUPfOQTXzn53HP3EUqyV2K1bWEvlJ0tqXtI7GwYOAtULo9pPZ6OBYl/R8m0x11ezUXEopMOEZ9qQEbUMPVYEVOj87p/+8rFN333m68XoM1vd7U13+J6iTTHWg7L1g1zzY/+noHBBI+hs7zukMpXKUwWKBdqVCt1DtVbNPNV/OmA8sFzGJnq4bqHHsPo6CGoj1OpPEyt9SiuM8HizIVkrQHWLKvxqX94Bf1DWYIgieFn0JyMKnaV3Skmp6bIT3qUZzKUS2lu376PR/ZsJ6NrpFZtYOySi5g4YwmN4QREDT1VQZVLWVgo1fiLB40W7JkFS4pnnVhjOmccgHNmPHql2Nrn49k+HVMFrNo2OhebrL90BeOVcb7+xW/yyAOPkRSWZTUWo1hKohGJaOVzXgc1THNVcBKOU/32m6649s3veu9dYjmEg11UHFRFSKMeiNI2tITBMDBx2qTHIlKXeMLziCmkObt/TAtyrFiknMaQJl7gYtmQFMEh3yMtlJm6FunaaXT6nt/1ub/+kzfufPjB80Ife2ThLAaNHAoh9/+7z/8Zb3jzC9lKnZRrs7pcpzhTpDheoFJsUKzUqJcblCsNSuUatZkhpveexvVbf8FkbSctRcordYgadjBDd7CIbnM5uVSa8y7J8DcfemnUzEtiBBnwkkp1aiY/yejILNOTLgdGWmzePk6+YWO3XPo7ukl3DJJYsp5HTuxjV66K7xngBFjCt+75pCs1MlPTmHXhnJeRVAMLk+F0F2u6elmc6yNpGtRNnZoL3c39HHz8TsYKFS47+3TOeel6Kk6dL/7T13nsse2kpfCmahxRZVlNkIWNOjmj7cMOYkg2nnnmfX/1mc9/Wzf0knItInsahK5FN2jIxFgCWpqJI3IfnQ28SLww3kw5auxxXBfTBpAnWRFRpPI8rFrIkiRzMOnAIC2uxhfxIU+5ms781NjAp//Xe98zMzGxTEl3RjMh4T8eltSaLYc165fxHz+6kmxfhp1Bk5PqVbxKleJkgfxkgUqppch1y+UmtUqdckXcjknp4Cau3/JDRmplWgO/jWnYGNP3Y9d3I7q1WYbptQZpmaN8/h9fy/nnrlYS7KYutBKWGk8oTpfYv2+cAwcrbH68RFkUtTFwWj5GQpToNZKJPpb0DfB4OmC/nqaY0CilUgSGFY4Xalb4t4kBEP/mBSxq1jjVaTJs6Qz5AUsq0rL3qGeL1ErjPLjzAEs7B3nJi06ib2Mvu/ZM8PnPXE2xUMC0rLDuEdGbq2kCmbkx2jhANI2+ocGRj3zxS1/uH1wyLeDQDCp6QDUQ3lOPhgSmMvWQJXQtbTLsT8t6PKWLOVosIkZARhLbA1Y9IOHZpDyDlObPxSM5kaDzfDofv/8Xa66+8qPvrFbKPWFtWKqJUVweQLVa54o/fA0f+/T7KNGg4TZZVCtRLVfIj82Qny5TLrUolapUKy31++VSk1rRpTa7khsfuIfJqoeeHKTRHMO2hZ25gRHUyDBEv76YbG+Lt77lTF77ytMwEhaGYSpJMCGRmZ4os2fnKI89XuLxAy3caKM00E1slYgJYYzFcI9QMdSZatRU46ylJu6FPCdQpDSqd6TLaKFBMmkh+7V9mSQd2QRZ0yATQNqQOdgWtVIFz2vRqHsM93ax7swh/GyCW255kG9/+0dKMybOXtQEmYpD4mEQgaxOtjNXePdf/s1VZ1xwwR7hOvUDFXcocAQ6dcOjKQ05XxI3HVvEk9sC03hx5imtx9MCyNN1NZZNKtCRS07k27MSj4glESmzO66/7tRrr/rC77VarUxISj0/3FKvN/nMVX/DK1/7Yg5QJeuU6K9WKBfKzI7NUJiuUCw1KJfqitC/Ki6m2KRcbFErDHLftr0cmpmi5ZXQg5zq0VeDPK4/Q4ZFLLaWcM4FfQwtSfOq3zqDdWvDnVzTlKtU4/D+PDu2jfLAo0X2jNYYXtxJS0uzd8IjmdBoiI5NENCbSrM6Z9C0a6rLqtiaI4IZR9UpRE9AJ2mYpBNJ9aOm13MmqZRo1IWjLk7LU/LvQvMmYYVnewwOdrLy1AFGpqtcffX32bv3AEkFkvAmdZBw4C7st6RSqfqb/vCPvvmiV73qUQlGxXJI3GFEjTjNp+EkaP4yruVpuZgFVuSorsa2MeOsRqwIXggSXXjeBSQaHWJNfvDv/3r+jd/95ut91wu5+RRxnEe6I8O/XPVBejsSzPgOa5YP0p8xyU/MMDM6rdiXSxJ7FBvUSg1K1SbFQp1CIaCU7+LA2CQP7N9MwuggY/ZRdyq0gjpNr0RG6+WEgUVsPKWPWqvFxrUr+cO3v0CNO5qmqWKGrQ+NsuXhSXY8UeL2rXfxsQ+8igNTnfzsoTw9PRb5UotA1xUXW4+lsTplqn6I41pU3RRe0IVlZtFEKNmQTMRQQDHMFmmzgZWYxNDrJKxARfa1UplmQ0BmkkobVEtFElYXp5+9goLdZM+hw3zv2hswrPnxTJW9KM1gxEI5r3jzW6593e//wb2R1aiouCMCBwYNsR5x1iIUbc/GtTwjgBzNinQ9gR67GslqjECR8iU9h5TEIwRkPAlcQ5Aozd3vffULF9/2n999jed5hkTpEn+ceeZa3vvuF6KZGarlKrt37OL8i05nzYphpg9PMDtdpliUmKNOpSwBapOZ2QblgkF+JqXWFO7adR+poI+WL1q4AY4vsgVl+o1uhrt7WHVCN+WipBxJrvzESxnol4wm5Ce57da93HPfBDO1Orc+eDP/+KG34Qb9/PC23WQTdtRcE4CYmIGF5WqKDC+X7WSylmL3WJ11g0IpIRKlCXSJbxTTEZhOicOjW9i0dpihxRlMS1yFo3Z6Zip1EgmDZLmppNgWrx7CyGmYPT5f/eoPqFQqSuVCXZWqAK1GHrzf+t3XXvem97zvLnEr4lKU5ZBah0Zd4g7DoukFtDwNW7KW2LWU1uKfOb8yfVzX8mwBEluRudqIZDVODRMXS+IRSX3NGCRt7kZZE8hd89lPvvgXN9/4Ms93DVG9fMkrzuXTX/oQ6UwH5UqeR+97kCcefISVy4ZZvnyQ6dEC5XKNiliPUkO5GwFIMZ+jMBuQSGncv2cX+XwRR2+Q1HqoeXlaQZUevYehbBcD3YsplpLsbTzMP3/89bzoeZtoOQ66bnHLTXt4YMskY8UCN2y5mY+8+wpOWnEC37n+AbKpUHxQBMRECUbXEjh+SqXLZjJNxUuxN68xmEgzm0iSzw6oVciuSp0h3SYZVMlPbuOsdf1090G9VVNVrnTKouW4pJMJGjN5nIJJx/Aghm6w+FSdb//Hrex6Yj+WMNREMxm6brrPf/nlP3n7n//FrejEVmPerXg0XEsN3bck7pCRNSuLe7SsJcooj5zumnNoRz54yjR34X/TNi+ijJ7URjIZ9Hod085gSuqr+yScFsnY3WhGKCuiMpywTtLxna9+4ZI7b7juleVi2fqdN1/KlV/6Wzy3SuDUMdMG06Mj3HDNzZx5ygnUZBO/WKUkqW6pSalYY3raZna6m0ajSSaVYMfhQzx66DFVQZUZzppXEftEp97JUGIZgdbBgeY2Gn6eP3nLK/jTt71YrUmI/NetN+3j3vsOU6HOaP0JXn7xxXgVjV17p1XAqYjsjDSVzkXYRhqvlaSiZdXRn+nuYzbTTTbfYrInhXduTtSF0Ucc+m4co29pjo7uNL2tMmvcgyxtjmMGLTX4ZMjooidrpU2CkkGut4tKyWDZaXDrzx7ijvseUCuXchZN3XRe/Lu/+8M3v++9YjlUjUMFo1AT+rPYrVhJWr6OLSltoo4rBbF6HX/Dhog0LZ6kPZpuyHMBkIWuJtqjUQW0chlZC7GCDFYjIGE2SfoijOiTFpCIy4lBIpbkR1//2vnX/5+vv/rSy89Iv/P/eyEP37GZUr3C2//yneSSAXddfy+5ZBK32SI/U1XqU8VCjWKhwfhEkvy0FIlcrESCfLXAndsewtK6qXklRU4no3wdRo6c2c+EM0bLq6OT4dxTl/KvH3uzIr0zEwkeeWCSUrPFxtMWMzyUZetj03zzew9gdw4zsWg56dEJGvUmjy9fS0sYyKerikwGNdhkwKkb4OT10O/DyAQ8XIPn98FouIZBjwN376enVOH0/D4GnVm6cxbZRUNkUyZdbhE9KUteGvtun2bDpUvZenAvP77j56TTFkbCbLzitW/4wWve/a5728GhimAedSGM1IVCO0UrrWFrdRxJaTs78aI1hrl6x7H6LcfAxpz1eqr3n/TeAiuiXI3EI6kUutRHJGh9GiCRqnPuv667dtPBbT97/SsuXdUbtAwG1w1z1qWbSNhNdj14iPFDBTIpg3KpRn62ysx0i4kJGJ1w8eymUnuS2MAwE9y7czf7p0bUFSejlrrm0KH3KNqXkpfH0jOYvsmSQZOvfOIKFi3qVK6jXLEZXtVNNmPSrDZ59KEJrrxjgoeWn8LynVOUHJsxYQIZ6IcVvZCLUhIpo5pJWCnqAh2ouvLmUdjRBFHifOlS2N6A1QY8egDV9nUdtKlZTpyYYmlHN8ty3SzzJsjlZDrco3VIZll19jLOT+94gL6h7vzr3vEH177oVb/zuFQEdLEYUbxxLHDEQWmzib8w7ngmruUZxyDtSDkWSCRozUWWxPexGqK6JcNVkSVB0uB5SyIgyR7c9eDqc85IvH7FqqXLZXawVZ/Gr1SY2TfJnu3T3HLzNvp6F5NJZZicDauorXqToOkr2impLSasLCP5aW57/D4kPrbJq0KTAKTuNxTlpaWnGM5l6Upp/PEg5Rq0AAAQXklEQVT7X8Dpp6xQ9YtGK6B7KEdndwK3bvPYwxP8082TjHX3sXr3Th4Yn6Gi69iZHEFHJ14ui2al1Y5EkPDxN26E558PUyUQeY7/GoPlOThtEPY0YJkGP3sEo15Hl2praZKlpUk6Gw6LUgYbh5fR02WQ6wno6jCpTzjctXU3T0xMHnrnn//ptadfdNE+cSXt4JBh1thy+GCnwZY+i4Cj2okn9Y7nAhxx/POMLMgxUt85S/JUIPE9UqauyvLiblRsInbftNy+3uSBVw4vzp6bP/SItm/bflYtW87Ox0f5h7/7KRdesp7hxUkKeZtCvkWp4COZomQVkjXo0hzRdG7aej/TxQqONo0ZJEnrWWpBCYIkPakcJ/YNcmDmMO/+/Qt52YtPV+S6nqOR7UvTM5jGbbg8/tAkX//P3eiOy+NWHw+nl4UMLZ1ZSPREyzPiXky1esFQDs5dAjMzkDXDyfe0Bw+0YFUORmx48Imwb5NwoVqDqTGoF+jW67ym02KpadA7lGRwOE2j6gc7R+zNF77hd3+0aPGSWUR0O7QcdVOj7vo0dIOmuJUYHLoeupXnGhy/FEDa4pG5QHsLaO3pb4eNKZaklsKSmMTVSQoDgsQlyE8Um3gRWDL23uf1GTte2jtkdT64eYRWoclD9x6kfyCL6zjMzLgUCw6FkseeA3mQ9LC7l8HOLkUPsW1ijLt3/wJPr9CrLVKT4UW3iBYk6UtL9d+laTd5zxXn86qXna0qqRKupDoyDCzpwLd9HntolK//514c12HCzzGW6MJyAtzuNFnLxBShZ8vHNzPYHf3Usn3MdPZTO2sIyuWQH6TpIVITZsVj0V3b6PaaWLqNJdtZmBTKTYoll8DVuUyb4KRkg4El3XQvSpVzgyfeOHTaefdG6WtdYg2p0IuirFgNN9wzb0nMkW3iCDgqCdwF6Wy8tBOtFx29Efd0LMMzymKO9oFtYwHytowpzoFE3E17TGI0SOjSu9FJiTVR/kCAEpARSyJWxWyNLz9hzdTL77jh9k0drvREHCYnKuRnpf7hUC56NJrSAQ6YzttkzKwi4NVcg0Ktzo+236jkPvrMThp+hYbjkTO6wmokPn05kze/5nQuv/SUcBRHyuOpJItX9eC7Pju3jvP1/5zAblRJCL2R8KzLdHkgo4YGetpSmxUNx8LRUwSpHkpGLw+tX4e3YRgqdrhDFSQ4fe8u1h58kKTXwAxs0hZ0d5kkdB+3Gg47G1oCK22xdMOyx1dfcOEN2f4lh8RaiOVQ4NBpIH2V2GpIjSONHQekR3ErMTjUNXy0IaCnA4xfKgZ5injkKUESeFgtKajZJD2pSmvzQFHZTkBGyvVB4GeN6iPn6xPbX1gYn+0fHy8xNd1kZsahXHZkBUW5Fc9NkiWHqWoVBrV6i9t3bWa6nqfLypB3JtG0JAPJPqpuhY5MkvXL07z0Radw1mlrwRAuDxM9mWTJSlmh8Dm0a5arfjSmKpyia9sSYURb0rMUCTNB5+JOHh2ts2XHDJqVIpPtoCvTzdSyIWZPW4MmNfeGj54wWFkqkLz9RxQmD2KZXQwPD3POusUMDwT4Tks1cAzLmhnccNLP1l5y8b2aodekTC4AEWsRA8MLaOpm6FKSkqkYOJKtHA8czyYoXQieX9qCHMXVHBMkblrOKjI+JcvvSQOSnhsCJQhIBxopEYMMNGVV0qadHyruvOOysV07z5yZbKbGpxqUy65iDZLJXt9NqlqHFJhkd6ZYqfPAvoeo2LWIF1kIX3SSUuDCobc7wZLeFG999YWcuG6xKoLploGRTjG8vEsxEU3ta3HzjWXyh53wc6UlEPjsKh2kP53B8nRmXZ+7x2fpzKRYnLXIJgxMK4WeSqr02dIlsEoo0cFU0CRfKPHzRw6TyyzilStOYVlXmonefc1F6xdtWfu882/JDA5OotHQAhrRfVPTaAgwDJOW0JRYAS0hL5BGs9nA/XWA45eOQZ6uJZEUWOokUkzzJC5xMaXqKj0cWSERoIjLCXRSyqr4pCTjCeReI10Z2bVy7713P//wrgMn10peUnTvAl9XFqRDCwEi094zlQq3776XxZ3dTNfy1O0qg1YPY40CiWSSFYMZVizt4C2vuYjuXBrTEroonUQuTd9AB7WKR2HMZ/+tJq2pLHpCo+CUuG7/DWwe38PlJ17Cut4+Rae9q1wmnfZFV1GR61crFVr1hpI57e7MMF0qqxHK4aF+1q5ZysQUPPZolcuWbWr1rO14zLq4445VZ514gEDFFsKu2dB1VSZvaj5NcSkKGFGGItVR3cQ1ErhSBJM6R1sqe4RbeS4sx3PmYo4DkiPqJAKSRgpDQJJxMSV4lbhEyEF1oS0VtXIhWPBJ+WJVdFK6T0pZFp/U+I5tq3fcc9/5B3bs29SstHKWl6I3I/Na4b7uTKXArpmdipN1qlik6hToNweY9ar0dmToTOpcftlGXvg82ZYKSCYTsqtGMp3E0hK0qgb5gzC6WUrhOvePP8zm6QeoeQ3W9ZzISYOrBQ0cLs6QSgWKNsIJfOXiJmaKFKo11g0PsLiviwPjE0zl82xas5YNq4bp7OiujswkHj/90rPvHThnaB86TS2g6cu9AEKAoSs30jICWr6leDcdiTckGK1H4Eg38RaAo70QFha3nkGl9HjxyHPiYo4BkthCKZCkt6NJWV56N40KRqaB0e5yZNzGEasCCQUUl6QvbigMaJMCEk0jKUDZ9dDWJff85Gdn7nhox2nrM8sHVw8sox60eGxiBzP1gyzJDXD//u0U7SnSegeBJoGhzjknL+Xtb7yQdMrAFDooGcyxDDq7pYSuU95nML7NYGzE466Rh8jbRYZywtMXMFud4pQVy8k3fayUT0faUBPyTc/DF2YDpWqlkUyaZNImliGCjB69Q31Ty05a/ciyM0/akl68eEyAEQhRgMQVBi0vBIcUaRUwAlnwkEab7GW2uZR6Gi/dgSe9FSmfNzYQtDff5q745xAcz6mLWYjEhcW0uCwvIJlNokuG00iG1kRcjp/AjK2JJixOTpjxCGDkuKvsxyMpIAlkFlYjWSiWsntufuSk9Li7cerQxPpd+e2djx64n/7sEIemJpiqH1aLA4u6BjjlhCGueM3F9HSKMXIxraRqy6c7UnT0pWjO6hz+BRx+wmW8WWeqUqJYqjJdH8MzWizuG2Sgs0eE5ejMWopBsWmHfKxScNM1A0s38QOXVCZRHli9eOeS9Su3DZ+5cYeZTtYUKITyLKAlwPDlPgKEPDYt7EDDlkA0MHB0Gzd2KekWntQ4+lr4bb2VuaGf59pqtJ/L59yCPIXLUeNZcRoscUneQhdrIvWSVkLW6bAELATzJAtuWJ9UIJH7Jz32wtfsUr27fnjvSVu3bD5hy/1blh0+PDrg+Q09kzA4+6RVnHzSMMuWDZNIp/D9sI2vyT6NDp19Scq7Mow+6jNZblExmkzPVCgUiwwOpMlm04pXTHiUJLMROjfPE81gXZHze4HvJ3Pp6VRvbqR/9fDuZWet39kx2C3q1rZuhNZAPY4A0f5YKM6E/U5ZDA1HQCGBaNLGk/qGWI1eB39BvPFrAcev1ILEQFlgSebcTtwJbrcm0l6R2MRLYPoeZhCEGY+rIfodITOH3GskInYwAYeqUcrrQg2GjqW7jY7pkf2949u3r6xNjq3sz5kDpuZ07T2wp/Ok9SuNxQOiG+OTlFUDYWQv61S39zOVb1Bu1aGokc8WSVlgSddV1Kww1Y8jZEBWqmyksqVER3Y6u6TvYPeaoQPZRV2zyZ6stJEdGRxTS7chMNS9HgWb8noMBlM2t3UcTYBh4Bo2rsQaiRTecayGSh5/lZbjVxKkHivgaQPJHECOZU0kNrFlOyFyO0m5Fx5dXwFBipoyNG5pch/Tucjj8LmyPiLIGUgnLvrRA99sFqe6tm7f2jXcZXUvyrDErtQG0xadnT1B58SDZia/J7D25Wes1E6DVbN9zgMX7XE605l6stMsJ7Md5XR3z1RucGDM6ukqZro7SslF3SVNSrPRj3osfNwhMOR19ViBQSyEPHdxrPB9R4ChC9O4iRu7k0QLL441jmc1fh3g+LVYkONlOQtjk3QBvZJAPxZQArEsZgiECAQCiCOfB5iBgan7quFrBrpauJfRSFleM+Re5OvUumvESTGnKxB9YcXhG27MqpEQRRcmpVhdDa0Jx4wwM0iz2JWMWxNZiBAsYhFCgISvzT3XXFzNwD0WMDpsfMlQRGH2KLHGr81q/NpikKNZlKeyJnGmI25HgCIpcaKGLhYlaWOI63Edpaph+ham3Ft+CAYBgMzhCFjksREDw8cIdEyhJxWgKOIeqXCHuoFqt75dpKLtOyvCJOE+UqQ9IRew58u9UMCH964m4BBNZgFMBBpNjx57SllefsfVRRRCxzUtPHElrQSeWAw7iy+pa6MHPw5CowylPc6Ym/56LlPY46W4v3YL8nSsiQSxC4HSblEsA92xMSRGsUwMz8XwzBA0plgKAY+PYQh/XAgOAYXhi7Sd3AtbtlgQAUgEDgFIJCo29xVlCD1i1FInStRfRapOLIlYDF32wSNw6BKzChGyPNdxRUNA7g1RBzEVN44nMYaVwHM8/NiViMU4DjD+W6zGf6sFOU463F47OSpQkiZ6oo4uWY/VRHcsDLEqAhbXQTcj0PjCiOljeDq6WBbZbxJgeF606yTLCyHNunIIc/qC0RdUlGlmCBIj0iUQMW5ZpxGgyGPdwBOiQlFv1b0QDFIWiUEh1sJy8JwUvmQldga/5eL/JgDj1xqkHs+UHcXtHBUosqkgqXGyiF400CROaYisiokuYGkZ6K6lNg6EMlUX6yL3roDDQRewCBB0D92NwNHGEC6NW5X2m+EoaCgkHlkSU+pgsmslgBHrYeGbAo4IEHLvJvFNBy/p4QsoHBc/7eBL4NntEbS68SX4jGOMo7iSOYvx6wpCj3dufqV1kOP9409hTdrd31z9RFxPIoEmQJE4xdLRYrDElqUhYDHQWy1lMTTTQLdtJauiwGHL9oCjJF6E9009l39MHrd/n1jlJBFy5ylhcc/Cl+cCEldcRUJJ0YhFCZJJfHEfaRc/thQxKByfQOILAYZtE/wmAON/lAV5msHsk6xKDJbYspizaBKvCFecyKiIK6rqaGJhhP1ab6A1ImCI+qqAohnpyOvNBQCRvrLo3UfKZrHCmcji+emwsi4WIucTCCCk2i4UZuI+3D6C2FL8JoLif1QMcjwr8xTuRwEmDmrbwTJpoIl1EcAYBpq4oxg0RiV8TYAjHyBAeqrvICde3hcgiOye16HkcBQYxELIawIIsRJD8lgGxY5uKdrdx39bVnK8473w/f9RLuZ4X34BWJ7khuSFGDDyeCFo5LUYOAocIcGzugmI2v99OfnxcwGBPI6BII8XgkFea3MdMRjizzhiSenXnaoe77g+1fu/UQBp/0OeAiwLgaNAIy9KDBMDR+7FNbV/ZvxcLED76/FziR9iIMj9mVG5e06cZf55u7VQH/WbBIr2v/03FiBHQ/1xQNMOnIWP1cfFQGo78Udgsu3JwrXF31gLcTzr8v8rgBzrjz0KcBb+6rGOw1Pur/6mWoXjgaL9/f8LItduoFASdkIAAAAASUVORK5CYII=",Ma=ae(92310),Mh=ae.n(Ma),Fd=ae(10148),vl=Object.defineProperty,iu=Object.getOwnPropertySymbols,oh=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable,Vf=(he,Ae,Ie)=>Ae in he?vl(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):he[Ae]=Ie,lf=(he,Ae)=>{for(var Ie in Ae||(Ae={}))oh.call(Ae,Ie)&&Vf(he,Ie,Ae[Ie]);if(iu)for(var Ie of iu(Ae))sf.call(Ae,Ie)&&Vf(he,Ie,Ae[Ie]);return he},uf=(he,Ae,Ie)=>new Promise((He,rt)=>{var ct=cn=>{try{Dt(Ie.next(cn))}catch(On){rt(On)}},St=cn=>{try{Dt(Ie.throw(cn))}catch(On){rt(On)}},Dt=cn=>cn.done?He(cn.value):Promise.resolve(cn.value).then(ct,St);Dt((Ie=Ie.apply(he,Ae)).next())});const mg=({title:he,description:Ae,placeholder:Ie,hideUpload:He,hideInputBox:rt,aiIcon:ct,userIcon:St,children:Dt,taskData:cn,user:On,name:an,code:Xn,globalSetting:Vn,authority:Nn,isShowComponent:yr=!0,DrawerProps:ie={},FetchUrl:oe="https://ai-data.educoder.net/v1/chat-messages",FetchData:ge={},defaultGetData:pe=!1,extraEdit:ye=()=>null,isShowDefuatTips:Oe=!0,isReview:Ve,onOpen:Xe,loadingOption:et,isIntelligentAssistant:wt=!1,intelligentAssistantItems:Jt=[],showEditableBox:Nt=!1,showPreference:Bn=!1,initMessage:Sn="",customRequest:ti})=>{var gi,bi,Gi,lr,rr,Cr,wn,or,Eo,_n,Oa;const[Ta,Gs]=(0,Ee.useState)([]),[Hs,wa]=(0,Ee.useState)(null),[Ds,Es]=(0,Ee.useState)(!1),[Bo,Yo]=(0,Ee.useState)([]),[Xa,As]=(0,Ee.useState)(!1),[Ka,tl]=(0,Ee.useState)([]),Zo=(0,Ee.useRef)(Ka),ru=(0,Ee.useRef)(),Ba=(0,Ee.useRef)(),[jl,kl]=(0,Ee.useState)(""),[ou,Ul]=(0,Ee.useState)([`${(gi=cn==null?void 0:cn.challenge)==null?void 0:gi.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`]),Ra=jl==null?void 0:jl.split(`
`).length,[nl,Hi]=(0,Ee.useState)(!1),[Or,va]=(0,Ee.useState)(0),[zo,Qa]=(0,Ee.useState)(null),[il,Cu]=(0,Ee.useState)(""),au=(0,Ee.useRef)(null),nc=!!cn,ic=[{img:af,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:Ug,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:(bi=cn==null?void 0:cn.challenge)==null?void 0:bi.task_pass},{img:Kf,name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:(Gi=cn==null?void 0:cn.challenge)==null?void 0:Gi.task_pass}],su={maxCount:1,showUploadList:!1,withCredentials:!0,accept:".doc,.docx,.md,.txt,.pdf,.jpg,.png",beforeUpload:nr=>{var jo,Ls,oa,cl;const Sc=(cl=(oa=(Ls=(jo=nr==null?void 0:nr.name)==null?void 0:jo.split("."))==null?void 0:Ls.slice(-1))==null?void 0:oa[0])==null?void 0:cl.toLowerCase(),qr=["doc","docx","md","pdf","txt","jpg","png"].includes(Sc);return nr.size==0?(Re.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),je.default.LIST_IGNORE):qr||(Re.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001jpg\u3001png\u6587\u4EF6"),je.default.LIST_IGNORE)},onChange:({fileList:nr})=>{Yo((nr==null?void 0:nr.filter(jo=>(jo==null?void 0:jo.status)==="done"))||[])},action:`${(lr=Fd.Z)==null?void 0:lr.API_SERVER}/api/intelligent_imports/upload_file.json`},rc={maxCount:1,showUploadList:!1,accept:".doc,.docx,.md,.txt,.pdf",beforeUpload:nr=>{var jo,Ls,oa,cl;const Sc=(cl=(oa=(Ls=(jo=nr==null?void 0:nr.name)==null?void 0:jo.split("."))==null?void 0:Ls.slice(-1))==null?void 0:oa[0])==null?void 0:cl.toLowerCase(),qr=["doc","docx","md","pdf","txt"].includes(Sc);return nr.size==0?(Re.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),je.default.LIST_IGNORE):qr||(Re.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u6587\u4EF6"),je.default.LIST_IGNORE)},onChange:({fileList:nr})=>{Yo((nr==null?void 0:nr.filter(jo=>(jo==null?void 0:jo.status)==="done"))||[])},action:`${(rr=Fd.Z)==null?void 0:rr.API_SERVER}/api/attachments.json`};(0,Ee.useEffect)(()=>{var nr;if(au.current&&zo!==null){au.current.focus();const jo=(nr=au.current.resizableTextArea)==null?void 0:nr.textArea;jo&&(jo.selectionStart=jo.selectionEnd=jo.value.length)}},[zo]),(0,Ee.useEffect)(()=>{Ra<5&&Hi(!1)},[Ra]),(0,Ee.useEffect)(()=>{wt&&Ds&&Hg()},[Ds]),(0,Ee.useEffect)(()=>{Zo.current=Ka},[Ka]),(0,Ee.useEffect)(()=>{var nr;Vn!=null&&Vn.setting&&Gs([...Ta,...((nr=Vn==null?void 0:Vn.setting)==null?void 0:nr.big_model_users)||[]])},[Vn==null?void 0:Vn.setting]),(0,Ee.useEffect)(()=>{var nr;Ul([`${(nr=cn==null?void 0:cn.challenge)==null?void 0:nr.task_pass}`,`${Xn}`,`${Xn}`])},[Xn]),(0,Ee.useEffect)(()=>{if(pe&&(ie!=null&&ie.open||Ds)&&(ge!=null&&ge.student_work_id)){if(Hs!==(ge==null?void 0:ge.student_work_id))tl([{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]);else{if(Ka.length)return;tl([...Ka,{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}])}Zf(),wa(ge==null?void 0:ge.student_work_id)}},[pe,Ds,Ka,ie==null?void 0:ie.open,ge==null?void 0:ge.student_work_id]),(0,Ee.useEffect)(()=>{ie!=null&&ie.open&&Sn&&(tl([{text:Sn,done:!1,key:Date.now(),sender:"user",fileList:Bo[0]},{text:jl,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),As(!0),setTimeout(()=>Zf(Sn),300))},[ie==null?void 0:ie.open]);const Pu=()=>{Es(!0)},yc=()=>{Es(!1)},lu=()=>{Hi(!nl)},Hg=()=>uf(void 0,null,function*(){const nr=yield(0,Wf.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(nr==null?void 0:nr.status)===0&&va(nr==null?void 0:nr.number)}),Lm=()=>{Ze.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:Ee.createElement("div",null,Ee.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ee.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"))})},Zf=(nr="")=>uf(void 0,null,function*(){var jo,Ls;if(ti){yield ti({mes:nr,chatData:Ka,setChatData:tl,chatDataRef:Zo.current,fileList:Bo}),As(!1);return}const oa=(Bo==null?void 0:Bo.map(oc=>{var qr,cf;return((qr=oc==null?void 0:oc.response)==null?void 0:qr.id)||((cf=oc==null?void 0:oc.response)==null?void 0:cf.file_id)}))||[],cl={};if(wt){oa!=null&&oa[0]&&(cl.file_id=oa==null?void 0:oa[0]),cl.prompt=nr;const oc=Ka.reduce((qr,cf)=>{if(cf.sender==="user"){const Rp=Ka.find(Wg=>Wg.key===cf.key&&Wg.sender==="AI");Rp&&qr.push({question:cf.text,answer:Rp.text})}return qr},[]);cl.history=oc}const Sc=yield(0,Wf.ZP)(oe,{method:"post",body:lf(lf({inputs:{description:"",name:an},query:nr,response_mode:"blocking",conversation_id:ru.current||"",user:((jo=On==null?void 0:On.userInfo)==null?void 0:jo.login)||"\u672A\u77E5",files:oa},ge),cl),mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB"}});wt&&Hg(),As(!1),Zo.current[Zo.current.length-1].text=Sc==null?void 0:Sc.answer,Zo.current[Zo.current.length-1].loading=!1,Zo.current[Zo.current.length-1].response=Sc,ru.current=Sc==null?void 0:Sc.conversation_id,wt&&(Zo.current[Zo.current.length-1].text=(Ls=Sc==null?void 0:Sc.data)==null?void 0:Ls.content),tl([...Zo.current])}),$f=(nr,jo)=>uf(void 0,null,function*(){var Ls;if(Xa)return;As(!0),tl([...Ka,{text:jl,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0,name:nr==null?void 0:nr.name}]),setTimeout(()=>{Ba.current.scrollTo({top:Ba.current.scrollHeight,behavior:"smooth"})});const oa=yield(0,Wf.ZP)(oe,{method:"post",body:{inputs:{description:nr==null?void 0:nr.inputs,name:nr==null?void 0:nr.name},query:ou[jo],response_mode:"blocking",user:((Ls=On==null?void 0:On.userInfo)==null?void 0:Ls.login)||"\u672A\u77E5",files:[]},mode:"cors",headers:{"Content-Type":"application/json",Authorization:nr==null?void 0:nr.Authorization}});oa!=null&&oa.answer&&(As(!1),Zo.current[Zo.current.length-1].text=oa==null?void 0:oa.answer,Zo.current[Zo.current.length-1].loading=!1,Zo.current[Zo.current.length-1].response=oa,ru.current=oa==null?void 0:oa.conversation_id,tl([...Zo.current]))}),Np=nr=>{kl(nr.target.value)},Ip=(nr,jo)=>{var Ls;if(nr==="edit"&&il.trim()!==""&&(Zo.current.splice(jo),kl(""),Yo([]),tl([...Zo.current,{text:il,done:!1,key:Date.now(),sender:"user",fileList:Bo[0]},{text:jl,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),As(!0),setTimeout(()=>{Zf(il),Ba.current.scrollTo({top:Ba.current.scrollHeight,behavior:"smooth"})},300),Cu(""),Qa(null)),nr==="redraw"){const oa=Zo.current.splice(jo-1),cl=(Ls=oa==null?void 0:oa[0])==null?void 0:Ls.text;kl(""),Yo([]),tl([...Zo.current,{text:cl,done:!1,key:Date.now(),sender:"user",fileList:Bo[0]},{text:jl,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),As(!0),setTimeout(()=>{Zf(cl),Ba.current.scrollTo({top:Ba.current.scrollHeight,behavior:"smooth"})},300),Cu(""),Qa(null)}},Mp=()=>{jl.trim()!==""&&(Cu(""),Qa(null),kl(""),Yo([]),tl([...Ka,{text:jl,done:!1,key:Date.now(),sender:"user",fileList:Bo[0]},{text:jl,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),As(!0),setTimeout(()=>{Zf(jl),Ba.current.scrollTo({top:Ba.current.scrollHeight,behavior:"smooth"})},300))},Op=nr=>{var jo;if(nr.shiftKey){if(nr.key==="Enter")return}else if(nr.key==="Enter"){if(nr.preventDefault(),Bo!=null&&Bo.length&&((jo=Bo==null?void 0:Bo[0])==null?void 0:jo.status)!=="done"||Xa)return;Mp()}},yg=(nr,jo)=>{var Ls,oa,cl,Sc,oc;return Ee.createElement("div",{className:Ia.editable},jo===zo?Ee.createElement(Ee.Fragment,null,Ee.createElement(we.default.TextArea,{value:il,ref:au,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:qr=>Cu(qr.target.value)}),Ee.createElement("div",{className:Ia.action,style:{bottom:-52}},Ee.createElement(it.ZP,{onClick:()=>{Cu(""),Qa(null)},size:"small"},"\u53D6\u6D88"),Ee.createElement(it.ZP,{disabled:!il.trim(),onClick:()=>Ip("edit",jo),type:"primary",size:"small"},"\u786E\u8BA4"))):Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:Ia.text},nr==null?void 0:nr.text),Ee.createElement("div",{className:Ia.action},Ee.createElement(Uf.CopyToClipboard,{text:(nr==null?void 0:nr.text)||"",onCopy:()=>Re.ZP.success("\u590D\u5236\u6210\u529F")},Ee.createElement(Je.Z,{title:"\u590D\u5236"},Ee.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),!Xa&&Ee.createElement(Je.Z,{title:"\u7F16\u8F91"},Ee.createElement("i",{onClick:()=>{Qa(jo),Cu((nr==null?void 0:nr.text)||"")},className:"iconfot icon-bianji10 font14"})))),(nr==null?void 0:nr.fileList)&&Ee.createElement("div",{className:Ia.file},Ee.createElement("img",{src:ae(90034)(`./${((cl=(oa=(Ls=nr==null?void 0:nr.fileList)==null?void 0:Ls.name)==null?void 0:oa.split("."))==null?void 0:cl.pop())||"txt"}.png`),width:20,className:"mr10"}),Ee.createElement("div",{className:"c-black"},Ee.createElement("div",null,(0,qc.tP)((Sc=nr==null?void 0:nr.fileList)==null?void 0:Sc.name,20)),Ee.createElement("div",null,(0,qc.RD)((oc=nr==null?void 0:nr.fileList)==null?void 0:oc.size)))))},_g=(nr,jo,Ls)=>{tl(oa=>(oa[Ls][nr]=jo,jo&&(oa[Ls][nr==="like"?"boring":"like"]=!1),[...oa]))};if(nc&&!Ta.includes((Cr=(0,Ih.eY)())==null?void 0:Cr.login)){if(!(cn!=null&&cn.chatgpt))return Ee.createElement(Ee.Fragment,null)}else if(!yr||!(Nn||Ta.includes((wn=(0,Ih.eY)())==null?void 0:wn.login)))return Ee.createElement(Ee.Fragment,null);return wt&&!Ta.includes((or=(0,Ih.eY)())==null?void 0:or.login)?Ee.createElement(Ee.Fragment,null):Ee.createElement("div",null,Dt?Ee.createElement("div",{onClick:Xe||Pu},Ee.createElement(ht.Outlet,null),Dt):Ee.createElement(pg,{src:wt?Gg:"",onClick:Xe||Pu}),Ee.createElement(Ye.Z,{className:`${ie!=null&&ie.open||Ds?"body-overflow-hidden":""} ${Ia.answerWrp}`,width:(ie==null?void 0:ie.width)||880,title:Ee.createElement("span",{className:Ia.title},he||"\u5934\u6B4CAI"),onClose:(ie==null?void 0:ie.onClose)||yc,open:(ie==null?void 0:ie.open)||Ds,afterOpenChange:nr=>{nr||(Cu(""),Qa(null))}},Ee.createElement("div",{className:Ia["ai-wrp"]},Ee.createElement("div",{ref:Ba,className:Ia["chat-container"]},Oe&&Ee.createElement("div",{className:Ia.li},Ee.createElement("img",{className:Ia.img,src:ct||"/images/ai_icon.png"}),Ee.createElement("div",{className:Ia.content},Ee.createElement("div",{className:"c-grey-333 font22"},Ee.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F",wt?"":"\u5934\u6B4C",nc?he:"\u667A\u80FD\u52A9\u6559",wt?"\u5C0F\u6B4C":"","\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),Ee.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},Ae||"\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"),!wt&&Ee.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"),nc&&Ee.createElement("div",{className:Ia.container},ic.map((nr,jo)=>Ee.createElement("div",{onClick:()=>$f(nr,jo),key:jo,className:Ia.item},Ee.createElement(st.Z,{align:"middle"},Ee.createElement("img",{className:"mr10",src:nr.img}),Ee.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},nr.name)),Ee.createElement("div",{className:"mt10",style:{color:"#434D6C"}},nr.des)))),wt&&Ee.createElement("div",{className:Ia.container},Jt==null?void 0:Jt.map((nr,jo)=>Ee.createElement("div",{key:jo,onClick:()=>{var Ls,oa;if(nr.show){if(Or>9){Lm();return}(oa=(Ls=nr.ref)==null?void 0:Ls.current)==null||oa.onClick()}},className:Mh()(Ia.itemMask,(nr==null?void 0:nr.show)&&Ia.show)},Ee.createElement(st.Z,{align:"middle"},Ee.createElement("img",{className:"mr10",src:nr.img,width:24}),Ee.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},nr.name)),Ee.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},nr.des),!(nr!=null&&nr.show)&&Ee.createElement("div",{className:Ia.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(nr!=null&&nr.show)&&Ee.createElement("div",{onClick:Ls=>Ls.stopPropagation()}," ",Ee.createElement(nr.element,{ref:nr.ref,onUpdateNum:Hg,onClose:yc}))))))),Ka==null?void 0:Ka.map((nr,jo)=>{var Ls;return Ee.createElement("div",{key:jo,className:Ia.li,style:{marginBottom:nr.sender==="AI"&&((Ls=Ka[jo+1])==null?void 0:Ls.sender)!=="user"||Nt?50:20}},Ee.createElement("img",{className:Ia.img,src:nr.sender==="AI"?ct||"/images/ai_icon.png":St||"/images/ai_user.png"}),Ee.createElement("div",{style:{marginTop:Nt&&nr.sender==="user"&&(nr!=null&&nr.fileList)?64:0},className:`${Ia.content} ${nr.sender==="AI"||Nt?"":Ia.user}`},nr.loading?Ee.createElement("div",null,Ee.createElement("div",{className:Ia["loading-wanx"]},Ee.createElement("div",{className:Ia["dot-flashing"]}),Ee.createElement("div",{className:Ia["dot-flashing"]}),Ee.createElement("div",{className:Ia["dot-flashing"]})),Ee.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(et==null?void 0:et.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")):Ee.createElement(Ee.Fragment,null,!!nr.name&&Ee.createElement("div",{className:"mb10 font18",style:{color:"#232B40",fontWeight:600}},nr==null?void 0:nr.name),nr.sender==="user"&&Nt?yg(nr,jo):Ee.createElement(_f,{showEditableBox:Nt,onRedraw:()=>Ip("redraw",jo),scrollBox:Ba,Data:nr,extraEdit:ye,loading:Xa,showPreference:Bn,onPreference:(oa,cl)=>_g(oa,cl,jo)}))))})),!rt&&Ee.createElement("div",{className:`${Ia["footer-container"]} ${nl?Ia.full:""} ${Bo.length>=1&&Ia["has-file"]}`},!!Bo.length&&Ee.createElement(st.Z,{align:"middle",className:"pb5 pt5"},Ee.createElement("span",{title:(Eo=Bo==null?void 0:Bo[0])==null?void 0:Eo.name,className:"mr10"},(0,qc.tP)((_n=Bo==null?void 0:Bo[0])==null?void 0:_n.name,40)),Ee.createElement("i",{onClick:()=>Yo([]),className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font14"})),Ee.createElement(Je.Z,{title:Or>9?Ee.createElement("div",null,Ee.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ee.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u752810\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002")):""},Ee.createElement("div",{style:Bo.length?{paddingLeft:0}:{},className:`${Ia["input-container"]} ${Ra>4?Ia.lineFour:""} ${Or>9?Ia.disabledNumClass:""}`},!He&&Ee.createElement("div",{className:Ia["footer-container-upload"]},Ee.createElement(je.default,lf({},Ve?rc:su),Bo!=null&&Bo.length?null:Ee.createElement(it.ZP,{className:Ia["upload-btn"],icon:Ee.createElement("i",{className:"iconfont icon-shangchuan4 c-white"})}))),Ee.createElement(we.default.TextArea,{rows:Ra>4?4:Ra,placeholder:Ie||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:jl,bordered:!1,style:He?{paddingLeft:0,marginLeft:0}:{},onChange:Np,onKeyPress:Op}),Ee.createElement(it.ZP,{className:Ia["send-btn"],icon:Ee.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:!!(Bo!=null&&Bo.length)&&((Oa=Bo==null?void 0:Bo[0])==null?void 0:Oa.status)!=="done"||Xa,onClick:Mp}),Ra>4&&Ee.createElement("span",{className:Ia.fullIcon,onClick:lu},nl&&Ee.createElement("span",{className:"iconfont icon-shousuo"}),!nl&&Ee.createElement("span",{className:"iconfont icon-zhankai"}))))))))};var vg=(0,ht.connect)(({globalSetting:he,user:Ae})=>({globalSetting:he,user:Ae}))(mg)},23744:function(Ge,xe,ae){"use strict";ae.d(xe,{t:function(){return ht}});var de=ae(59301),Te=ae(3113),Ee={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Re=ae(92310),je=ae.n(Re),Ze=Object.defineProperty,we=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ye=(Lt,ze,ee)=>ze in Lt?Ze(Lt,ze,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Lt[ze]=ee,st=(Lt,ze)=>{for(var ee in ze||(ze={}))it.call(ze,ee)&&Ye(Lt,ee,ze[ee]);if(we)for(var ee of we(ze))Je.call(ze,ee)&&Ye(Lt,ee,ze[ee]);return Lt};const ht=({cancelText:Lt="\u53D6\u6D88",okText:ze="\u786E\u5B9A",loading:ee=!1,hasOkBtn:ne=!0,hasCancelBtn:fe=!0,okButtonProps:le={},onCancel:me=()=>{},onOk:Se=()=>{},className:ke=""})=>de.createElement("div",{className:je()(Ee.buttonFixed,ke)},de.createElement("div",{className:Ee.buttonWrap},fe&&de.createElement(Te.ZP,{size:"middle",className:`${Ee.button} mr20`,onClick:me},Lt),ne&&de.createElement(Te.ZP,st({size:"middle",type:"primary",className:`${Ee.button} mr20`,loading:ee,onClick:Se},le),ze)))},65983:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return ft}});var de=ae(59301),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ee=ae(92310),Re=ae.n(Ee),je=ae(71418);var Ze=function(_e,Pe){return(Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,Ue){be.__proto__=Ue}||function(be,Ue){for(var Qe in Ue)Object.prototype.hasOwnProperty.call(Ue,Qe)&&(be[Qe]=Ue[Qe])})(_e,Pe)};function we(_e,Pe){function be(){this.constructor=_e}Ze(_e,Pe),_e.prototype=Pe===null?Object.create(Pe):(be.prototype=Pe.prototype,new be)}function it(_e,Pe,be,Ue){return new(be||(be=Promise))(function(Qe,Fe){function gt(bt){try{yn(Ue.next(bt))}catch(Wt){Fe(Wt)}}function tn(bt){try{yn(Ue.throw(bt))}catch(Wt){Fe(Wt)}}function yn(bt){var Wt;bt.done?Qe(bt.value):(Wt=bt.value,Wt instanceof be?Wt:new be(function(fn){fn(Wt)})).then(gt,tn)}yn((Ue=Ue.apply(_e,Pe||[])).next())})}function Je(_e,Pe){var be,Ue,Qe,Fe,gt={label:0,sent:function(){if(1&Qe[0])throw Qe[1];return Qe[1]},trys:[],ops:[]};return Fe={next:tn(0),throw:tn(1),return:tn(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function tn(yn){return function(bt){return function(Wt){if(be)throw new TypeError("Generator is already executing.");for(;gt;)try{if(be=1,Ue&&(Qe=2&Wt[0]?Ue.return:Wt[0]?Ue.throw||((Qe=Ue.return)&&Qe.call(Ue),0):Ue.next)&&!(Qe=Qe.call(Ue,Wt[1])).done)return Qe;switch(Ue=0,Qe&&(Wt=[2&Wt[0],Qe.value]),Wt[0]){case 0:case 1:Qe=Wt;break;case 4:return gt.label++,{value:Wt[1],done:!1};case 5:gt.label++,Ue=Wt[1],Wt=[0];continue;case 7:Wt=gt.ops.pop(),gt.trys.pop();continue;default:if(Qe=gt.trys,!((Qe=Qe.length>0&&Qe[Qe.length-1])||Wt[0]!==6&&Wt[0]!==2)){gt=0;continue}if(Wt[0]===3&&(!Qe||Wt[1]>Qe[0]&&Wt[1]<Qe[3])){gt.label=Wt[1];break}if(Wt[0]===6&&gt.label<Qe[1]){gt.label=Qe[1],Qe=Wt;break}if(Qe&&gt.label<Qe[2]){gt.label=Qe[2],gt.ops.push(Wt);break}Qe[2]&&gt.ops.pop(),gt.trys.pop();continue}Wt=Pe.call(_e,gt)}catch(fn){Wt=[6,fn],Ue=0}finally{be=Qe=0}if(5&Wt[0])throw Wt[1];return{value:Wt[0]?Wt[1]:void 0,done:!0}}([yn,bt])}}}function Ye(){for(var _e=0,Pe=0,be=arguments.length;Pe<be;Pe++)_e+=arguments[Pe].length;var Ue=Array(_e),Qe=0;for(Pe=0;Pe<be;Pe++)for(var Fe=arguments[Pe],gt=0,tn=Fe.length;gt<tn;gt++,Qe++)Ue[Qe]=Fe[gt];return Ue}var st=function(){function _e(){}return _e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},_e.setAttributes=function(Pe,be){for(var Ue=0,Qe=be;Ue<Qe.length;Ue++){var Fe=Qe[Ue],gt=Fe[0],tn=Fe[1];Pe.setAttribute(gt,tn)}},_e.createRect=function(Pe,be,Ue){var Qe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Qe.setAttribute("width",Pe.toString()),Qe.setAttribute("height",be.toString()),Ue&&_e.setAttributes(Qe,Ue),Qe},_e.createLine=function(Pe,be,Ue,Qe,Fe){var gt=document.createElementNS("http://www.w3.org/2000/svg","line");return gt.setAttribute("x1",Pe.toString()),gt.setAttribute("y1",be.toString()),gt.setAttribute("x2",Ue.toString()),gt.setAttribute("y2",Qe.toString()),Fe&&_e.setAttributes(gt,Fe),gt},_e.createPolygon=function(Pe,be){var Ue=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ue.setAttribute("points",Pe),be&&_e.setAttributes(Ue,be),Ue},_e.createCircle=function(Pe,be){var Ue=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ue.setAttribute("cx",(Pe/2).toString()),Ue.setAttribute("cy",(Pe/2).toString()),Ue.setAttribute("r",Pe.toString()),be&&_e.setAttributes(Ue,be),Ue},_e.createEllipse=function(Pe,be,Ue){var Qe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Qe.setAttribute("cx",(Pe/2).toString()),Qe.setAttribute("cy",(be/2).toString()),Qe.setAttribute("rx",(Pe/2).toString()),Qe.setAttribute("ry",(be/2).toString()),Ue&&_e.setAttributes(Qe,Ue),Qe},_e.createGroup=function(Pe){var be=document.createElementNS("http://www.w3.org/2000/svg","g");return Pe&&_e.setAttributes(be,Pe),be},_e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},_e.createMarker=function(Pe,be,Ue,Qe,Fe,gt,tn){var yn=document.createElementNS("http://www.w3.org/2000/svg","marker");return _e.setAttributes(yn,[["id",Pe],["orient",be],["markerWidth",Ue.toString()],["markerHeight",Qe.toString()],["refX",Fe.toString()],["refY",gt.toString()]]),yn.appendChild(tn),yn},_e.createText=function(Pe){var be=document.createElementNS("http://www.w3.org/2000/svg","text");return be.setAttribute("x","0"),be.setAttribute("y","0"),Pe&&_e.setAttributes(be,Pe),be},_e.createTSpan=function(Pe,be){var Ue=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ue.textContent=Pe,be&&_e.setAttributes(Ue,be),Ue},_e.createImage=function(Pe){var be=document.createElementNS("http://www.w3.org/2000/svg","image");return Pe&&_e.setAttributes(be,Pe),be},_e.createPoint=function(Pe,be){var Ue=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ue.x=Pe,Ue.y=be,Ue},_e.createPath=function(Pe,be){var Ue=document.createElementNS("http://www.w3.org/2000/svg","path");return Ue.setAttribute("d",Pe),be&&_e.setAttributes(Ue,be),Ue},_e}(),ht=function(){function _e(){}return _e.addKey=function(Pe){_e.key=Pe},Object.defineProperty(_e,"isLicensed",{get:function(){return!!_e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(_e.key)},enumerable:!1,configurable:!0}),_e}(),Lt=function(){function _e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return _e.prototype.rasterize=function(Pe,be,Ue){var Qe=this;return new Promise(function(Fe){var gt=Ue!==void 0?Ue:document.createElement("canvas");Pe===null&&(Qe.markersOnly=!0,Qe.naturalSize=!1);var tn=document.createElementNS("http://www.w3.org/2000/svg","svg");tn.setAttribute("xmlns","http://www.w3.org/2000/svg"),tn.setAttribute("width",be.width.baseVal.valueAsString),tn.setAttribute("height",be.height.baseVal.valueAsString),tn.setAttribute("viewBox","0 0 "+be.viewBox.baseVal.width.toString()+" "+be.viewBox.baseVal.height.toString()),tn.innerHTML=be.innerHTML,Qe.naturalSize===!0?(tn.width.baseVal.value=Pe.naturalWidth,tn.height.baseVal.value=Pe.naturalHeight):Qe.width!==void 0&&Qe.height!==void 0&&(tn.width.baseVal.value=Qe.width,tn.height.baseVal.value=Qe.height),gt.width=tn.width.baseVal.value,gt.height=tn.height.baseVal.value;var yn=tn.outerHTML,bt=gt.getContext("2d");Qe.markersOnly!==!0&&bt.drawImage(Pe,0,0,gt.width,gt.height);var Wt=window.URL,fn=new Image(gt.width,gt.height);fn.setAttribute("crossOrigin","anonymous");var zn=new Blob([yn],{type:"image/svg+xml"}),ni=Wt.createObjectURL(zn);fn.onload=function(){bt.drawImage(fn,0,0),Wt.revokeObjectURL(ni);var di=gt.toDataURL(Qe.imageType,Qe.imageQuality);Fe(di)},fn.src=ni})},_e}(),ze=function(){},ee=function(){function _e(Pe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Pe+"_"}return Object.defineProperty(_e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(_e.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(_e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),_e.prototype.addClass=function(Pe){return this.styleSheet===void 0&&this.addStyleSheet(),Pe.name=""+this.classNamePrefix+Pe.localName,this.classes.push(Pe),this.styleSheet.sheet.insertRule("."+Pe.name+" {"+Pe.style+"}",this.styleSheet.sheet.cssRules.length),Pe},_e.prototype.addRule=function(Pe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Pe),this.styleSheet.sheet.insertRule(Pe.selector+" {"+Pe.style+"}",this.styleSheet.sheet.cssRules.length)},_e.prototype.addStyleSheet=function(){var Pe;this.styleSheet=document.createElement("style"),((Pe=this.styleSheetRoot)!==null&&Pe!==void 0?Pe: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 fe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new fe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},_e.prototype.removeStyleSheet=function(){var Pe;this.styleSheet&&(((Pe=this.styleSheetRoot)!==null&&Pe!==void 0?Pe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},_e}(),ne=function(_e,Pe){this.selector=_e,this.style=Pe},fe=function(_e,Pe){this.localName=_e,this.style=Pe},le=function(){function _e(Pe,be,Ue,Qe,Fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Pe,this.displayMode=be,this.markerItems=Ue,this.uiStyleSettings=Qe,this.styles=Fe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return _e.prototype.show=function(Pe){var be=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ue=document.createElement("div");Ue.className=this.toolbarBlockStyleClass.name,Ue.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ue),this.addActionButton(Ue,'<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(Ue,'<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(Ue,'<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(Ue,'<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(Ue,'<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(Ue,'<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(Ue,'<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(Ue,'<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(Fe){var gt=document.createElement("div");gt.className=""+be.toolbarButtonStyleClass.name,gt.setAttribute("data-type-name",Fe.typeName),gt.innerHTML=Fe.icon,gt.addEventListener("click",function(){be.markerToolbarButtonClicked(gt,Fe)}),be.buttons.push(gt),be.markerButtons.push(gt)}),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()},_e.prototype.addButtonClickListener=function(Pe){this.buttonClickListeners.push(Pe)},_e.prototype.removeButtonClickListener=function(Pe){this.buttonClickListeners.indexOf(Pe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Pe),1)},_e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},_e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Pe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var be=0;be<this.markerButtons.length;be++)be<Pe||be===Pe&&this.markerButtons.length-1===Pe?this.markerButtonBlock.appendChild(this.markerButtons[be]):(be===Pe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[be]))}},_e.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")},_e.prototype.resetButtonStyles=function(){var Pe=this;this.buttons.forEach(function(be){be.className=be.className.replace(Pe.uiStyleSettings.toolbarButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarButtonStyleColorsClassName:Pe.toolbarButtonStyleColorsClass.name,"").trim(),be.className=be.className.replace(Pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Pe.toolbarActiveButtonStyleColorsClass.name,"").trim(),be.className+=" "+(Pe.uiStyleSettings.toolbarButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarButtonStyleColorsClassName:Pe.toolbarButtonStyleColorsClass.name)})},_e.prototype.addActionButton=function(Pe,be,Ue){var Qe=this,Fe=document.createElement("div");switch(Fe.className=""+this.toolbarButtonStyleClass.name,Fe.innerHTML=be,Fe.setAttribute("data-action",Ue),Fe.addEventListener("click",function(){Qe.actionToolbarButtonClicked(Fe,Ue)}),Ue){case"select":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Fe.style.fill=this.uiStyleSettings.closeButtonColor}Pe.appendChild(Fe),this.buttons.push(Fe)},_e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fe("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 fe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new fe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new fe("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 fe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Pe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
padding: `+Pe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fe("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+`
`))},_e.prototype.markerToolbarButtonClicked=function(Pe,be){this.setActiveButton(Pe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ue){return Ue("marker",be)}),this.markerButtonOverflowBlock.style.display="none"},_e.prototype.actionToolbarButtonClicked=function(Pe,be){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ue){return Ue("action",be)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},_e.prototype.setActiveButton=function(Pe){this.resetButtonStyles(),Pe.className=Pe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Pe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},_e.prototype.setActiveMarkerButton=function(Pe){var be=this.markerButtons.find(function(Ue){return Ue.getAttribute("data-type-name")===Pe});be&&this.setActiveButton(be)},_e.prototype.setCurrentMarker=function(Pe){var be=this;this.currentMarker=Pe,this.buttons.filter(function(Ue){return/delete|notes/.test(Ue.getAttribute("data-action"))}).forEach(function(Ue){be.currentMarker===void 0?(Ue.style.fillOpacity="0.4",Ue.style.pointerEvents="none"):(Ue.style.fillOpacity="1",Ue.style.pointerEvents="all")})},_e}(),me=function(){function _e(Pe,be,Ue,Qe){this.panels=[],this.panelButtons=[],this.markerjsContainer=Pe,this.displayMode=be,this.uiStyleSettings=Ue,this.styles=Qe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return _e.prototype.addStyles=function(){var Pe;this.toolboxStyleClass=this.styles.addClass(new fe("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 fe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var be=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new fe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new fe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new fe("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 fe("toolbox-panel-row_colors",`
background-color: `+((Pe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Pe!==void 0?Pe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new fe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
padding: `+be+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new fe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new fe("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;
`))},_e.prototype.show=function(Pe){var be;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((be=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},_e.prototype.setPanelButtons=function(Pe){var be,Ue,Qe=this;this.panels=Pe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((be=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ue=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ue!==void 0?Ue:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Fe){var gt;Fe.uiStyleSettings=Qe.uiStyleSettings;var tn=document.createElement("div");tn.className=Qe.toolboxButtonStyleClass.name+" "+((gt=Qe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&gt!==void 0?gt:Qe.toolboxButtonStyleColorsClass.name),tn.innerHTML=Fe.icon,tn.title=Fe.title,tn.addEventListener("click",function(){Qe.panelButtonClick(Fe)}),Qe.panelButtons.push(tn),Qe.buttonRow.appendChild(tn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},_e.prototype.panelButtonClick=function(Pe){var be=this,Ue=-1;if(Pe!==this.activePanel){Ue=this.panels.indexOf(Pe),this.panelRow.innerHTML="";var Qe=Pe.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=Pe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){be.displayMode==="inline"?be.panelRow.style.display="none":be.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Fe,gt){var tn,yn;Fe.className=be.toolboxButtonStyleClass.name+" "+(gt===Ue?""+((tn=be.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tn!==void 0?tn:be.toolboxActiveButtonStyleColorsClass.name):""+((yn=be.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&yn!==void 0?yn:be.toolboxButtonStyleColorsClass.name))})},_e}(),Se=function(_e,Pe){this.title=_e,this.icon=Pe},ke=function(_e){function Pe(be,Ue,Qe,Fe){var gt=_e.call(this,be,Fe||'<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 gt.colors=[],gt.addTransparent=!1,gt.colorBoxes=[],gt.colors=Ue,gt.currentColor=Qe,gt.setCurrentColor=gt.setCurrentColor.bind(gt),gt.getColorBox=gt.getColorBox.bind(gt),gt}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");return Ue.style.overflow="hidden",Ue.style.whiteSpace="nowrap",this.colors.forEach(function(Qe){var Fe=be.getColorBox(Qe);Ue.appendChild(Fe),be.colorBoxes.push(Fe)}),Ue},Pe.prototype.getColorBox=function(be){var Ue=this,Qe=this.uiStyleSettings.toolbarHeight/4,Fe=this.uiStyleSettings.toolbarHeight-Qe,gt=document.createElement("div");gt.style.display="inline-block",gt.style.boxSizing="content-box",gt.style.width=Fe-2+"px",gt.style.height=Fe-2+"px",gt.style.padding="1px",gt.style.marginRight="2px",gt.style.marginBottom="2px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderRadius=(Fe+2)/2+"px",gt.style.borderColor=be===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){Ue.setCurrentColor(be,gt)});var tn=document.createElement("div");return tn.style.display="inline-block",tn.style.width=Fe-2+"px",tn.style.height=Fe-2+"px",tn.style.backgroundColor=be,tn.style.borderRadius=Fe/2+"px",be==="transparent"&&(tn.style.fill=this.uiStyleSettings.toolboxAccentColor,tn.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>`),gt.appendChild(tn),gt},Pe.prototype.setCurrentColor=function(be,Ue){var Qe=this;this.currentColor=be,this.colorBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(be)},Pe}(Se),Be=function(){function _e(Pe,be,Ue){this._state="new",this._isSelected=!1,this._container=Pe,this._overlayContainer=be,this.globalSettings=Ue,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(_e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Pe){return!1},Object.defineProperty(_e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),_e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},_e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},_e.prototype.pointerDown=function(Pe,be){},_e.prototype.dblClick=function(Pe,be){},_e.prototype.manipulate=function(Pe){},_e.prototype.pointerUp=function(Pe){this.stateChanged()},_e.prototype.dispose=function(){},_e.prototype.addMarkerVisualToContainer=function(Pe){this.container.childNodes.length>0?this.container.insertBefore(Pe,this.container.childNodes[0]):this.container.appendChild(Pe)},_e.prototype.getState=function(){return{typeName:_e.typeName,state:this.state,notes:this.notes}},_e.prototype.restoreState=function(Pe){this._state=Pe.state,this.notes=Pe.notes},_e.prototype.scale=function(Pe,be){},_e.prototype.colorChanged=function(Pe){this.onColorChanged&&this.onColorChanged(Pe),this.stateChanged()},_e.prototype.fillColorChanged=function(Pe){this.onFillColorChanged&&this.onFillColorChanged(Pe),this.stateChanged()},_e.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Pe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Pe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Pe)&&this.onStateChanged(this)}},_e.typeName="MarkerBase",_e}(),Ne=function(){function _e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return _e.prototype.findGripByVisual=function(Pe){return this.topLeft.ownsTarget(Pe)?this.topLeft:this.topCenter.ownsTarget(Pe)?this.topCenter:this.topRight.ownsTarget(Pe)?this.topRight:this.centerLeft.ownsTarget(Pe)?this.centerLeft:this.centerRight.ownsTarget(Pe)?this.centerRight:this.bottomLeft.ownsTarget(Pe)?this.bottomLeft:this.bottomCenter.ownsTarget(Pe)?this.bottomCenter:this.bottomRight.ownsTarget(Pe)?this.bottomRight:void 0},_e}(),Ke=function(){function _e(){this.GRIP_SIZE=10,this.visual=st.createGroup(),this.visual.appendChild(st.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(st.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return _e.prototype.ownsTarget=function(Pe){return Pe===this.visual||Pe===this.visual.childNodes[0]||Pe===this.visual.childNodes[1]},_e}(),$e=function(){function _e(){}return _e.toITransformMatrix=function(Pe){return{a:Pe.a,b:Pe.b,c:Pe.c,d:Pe.d,e:Pe.e,f:Pe.f}},_e.toSVGMatrix=function(Pe,be){return Pe.a=be.a,Pe.b=be.b,Pe.c=be.c,Pe.d=be.d,Pe.e=be.e,Pe.f=be.f,Pe},_e}(),at=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.left=0,Fe.top=0,Fe.width=0,Fe.height=0,Fe.defaultSize={x:50,y:20},Fe.offsetX=0,Fe.offsetY=0,Fe.rotationAngle=0,Fe.CB_DISTANCE=10,Fe._suppressMarkerCreateEvent=!1,Fe.container.transform.baseVal.appendItem(st.createTransform()),Fe.setupControlBox(),Fe}return we(Pe,_e),Object.defineProperty(Pe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"visual",{get:function(){return this._visual},set:function(be){this._visual=be;var Ue=st.createTransform();this._visual.transform.baseVal.appendItem(Ue)},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(be){return!!_e.prototype.ownsTarget.call(this,be)||!!(this.controlGrips.findGripByVisual(be)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(be))},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="new"&&(this.left=be.x,this.top=be.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Qe=this.unrotatePoint(be);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(Ue),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ue)){this.activeGrip=this.rotatorGrip;var Fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Fe.x-this.width/2,this.top=Fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var gt=this.container.transform.baseVal.getItem(0);gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(gt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Pe.prototype.pointerUp=function(be){var Ue=this.state;_e.prototype.pointerUp.call(this,be),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(be),this._state="select",Ue==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Pe.prototype.moveVisual=function(be){this.visual.style.transform="translate("+be.x+"px, "+be.y+"px)"},Pe.prototype.manipulate=function(be){var Ue=this.unrotatePoint(be);this.state==="creating"?this.resize(be):this.state==="move"?(this.left=this.manipulationStartLeft+(Ue.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ue.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ue):this.state==="rotate"&&this.rotate(be)},Pe.prototype.resize=function(be){var Ue=this.manipulationStartLeft,Qe=this.manipulationStartWidth,Fe=this.manipulationStartTop,gt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ue=this.manipulationStartLeft+be.x-this.manipulationStartX,Qe=this.manipulationStartWidth+this.manipulationStartLeft-Ue;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Qe=this.manipulationStartWidth+be.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Fe=this.manipulationStartTop+be.y-this.manipulationStartY,gt=this.manipulationStartHeight+this.manipulationStartTop-Fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:gt=this.manipulationStartHeight+be.y-this.manipulationStartY}Qe>=0?(this.left=Ue,this.width=Qe):(this.left=Ue+Qe,this.width=-Qe),gt>=0?(this.top=Fe,this.height=gt):(this.top=Fe+gt,this.height=-gt),this.setSize()},Pe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Pe.prototype.rotate=function(be){if(Math.abs(be.x-this.centerX)>.1){var Ue=Math.sign(be.x-this.centerX);this.rotationAngle=180*Math.atan((be.y-this.centerY)/(be.x-this.centerX))/Math.PI+90*Ue,this.applyRotation()}},Pe.prototype.applyRotation=function(){var be=this.container.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(be,0)},Pe.prototype.rotatePoint=function(be){if(this.rotationAngle===0)return be;var Ue=this.container.getCTM(),Qe=st.createPoint(be.x,be.y);return{x:(Qe=Qe.matrixTransform(Ue)).x,y:Qe.y}},Pe.prototype.unrotatePoint=function(be){if(this.rotationAngle===0)return be;var Ue=this.container.getCTM();Ue=Ue.inverse();var Qe=st.createPoint(be.x,be.y);return{x:(Qe=Qe.matrixTransform(Ue)).x,y:Qe.y}},Pe.prototype.select=function(){_e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pe.prototype.deselect=function(){_e.prototype.deselect.call(this),this.controlBox.style.display="none"},Pe.prototype.setupControlBox=function(){this.controlBox=st.createGroup();var be=st.createTransform();be.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(be),this.container.appendChild(this.controlBox),this.controlRect=st.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=st.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 Ne,this.addControlGrips(),this.controlBox.style.display="none"},Pe.prototype.adjustControlBox=function(){var be=this.controlBox.transform.baseVal.getItem(0);be.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(be,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()},Pe.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()},Pe.prototype.createGrip=function(){var be=new Ke;return be.visual.transform.baseVal.appendItem(st.createTransform()),this.controlBox.appendChild(be.visual),be},Pe.prototype.positionGrips=function(){var be=this.controlGrips.topLeft.GRIP_SIZE,Ue=-be/2,Qe=Ue,Fe=(this.width+this.CB_DISTANCE)/2-be/2,gt=(this.height+this.CB_DISTANCE)/2-be/2,tn=this.height+this.CB_DISTANCE-be/2,yn=this.width+this.CB_DISTANCE-be/2;this.positionGrip(this.controlGrips.topLeft.visual,Ue,Qe),this.positionGrip(this.controlGrips.topCenter.visual,Fe,Qe),this.positionGrip(this.controlGrips.topRight.visual,yn,Qe),this.positionGrip(this.controlGrips.centerLeft.visual,Ue,gt),this.positionGrip(this.controlGrips.centerRight.visual,yn,gt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ue,tn),this.positionGrip(this.controlGrips.bottomCenter.visual,Fe,tn),this.positionGrip(this.controlGrips.bottomRight.visual,yn,tn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Fe,Qe-3*this.CB_DISTANCE)},Pe.prototype.positionGrip=function(be,Ue,Qe){var Fe=be.transform.baseVal.getItem(0);Fe.setTranslate(Ue,Qe),be.transform.baseVal.replaceItem(Fe,0)},Pe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Pe.prototype.showControlBox=function(){this.controlBox.style.display=""},Pe.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)},_e.prototype.getState.call(this))},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be);var Ue=be;this.left=Ue.left,this.top=Ue.top,this.width=Ue.width,this.height=Ue.height,this.rotationAngle=Ue.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix($e.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ue.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix($e.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ue.containerTransformMatrix))},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue);var Qe=this.rotatePoint({x:this.left,y:this.top}),Fe=this.unrotatePoint({x:Qe.x*be,y:Qe.y*Ue});this.left=Fe.x,this.top=Fe.y,this.width=this.width*be,this.height=this.height*Ue,this.adjustControlBox()},Pe}(Be),lt=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual)},Pe.prototype.createVisual=function(){this.visual=st.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)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},Pe.prototype.manipulate=function(be){_e.prototype.manipulate.call(this,be)},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),this.setSize()},Pe.prototype.setSize=function(){_e.prototype.setSize.call(this),st.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Pe.prototype.pointerUp=function(be){_e.prototype.pointerUp.call(this,be),this.setSize()},Pe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&st.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},Pe.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&st.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Pe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&st.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&st.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},_e.prototype.getState.call(this))},Pe.prototype.restoreState=function(be){var Ue=be;this.fillColor=Ue.fillColor,this.strokeColor=Ue.strokeColor,this.strokeWidth=Ue.strokeWidth,this.strokeDasharray=Ue.strokeDasharray,this.opacity=Ue.opacity,this.createVisual(),_e.prototype.restoreState.call(this,be),this.setSize()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.setSize()},Pe.title="Rectangle marker",Pe}(at),Tt=function(_e){function Pe(be,Ue,Qe,Fe){var gt=_e.call(this,be,Fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return gt.widths=[],gt.widthBoxes=[],gt.widths=Ue,gt.currentWidth=Qe,gt.setCurrentWidth=gt.setCurrentWidth.bind(gt),gt}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");return Ue.style.display="flex",Ue.style.overflow="hidden",Ue.style.flexGrow="2",this.widths.forEach(function(Qe){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.flexGrow="2",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=Qe===be.currentWidth?be.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){be.setCurrentWidth(Qe,Fe)}),Ue.appendChild(Fe);var gt=document.createElement("div");gt.innerText=Qe.toString(),gt.style.marginRight="5px",Fe.appendChild(gt);var tn=document.createElement("div");tn.style.minHeight="20px",tn.style.flexGrow="2",tn.style.display="flex",tn.style.alignItems="center";var yn=document.createElement("hr");yn.style.minWidth="20px",yn.style.border="0px",yn.style.borderTop=Qe+"px solid "+be.uiStyleSettings.toolboxColor,yn.style.flexGrow="2",tn.appendChild(yn),Fe.appendChild(tn),be.widthBoxes.push(Fe)}),Ue},Pe.prototype.setCurrentWidth=function(be,Ue){var Qe=this;this.currentWidth=be,this.widthBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Pe}(Se),nt=function(_e){function Pe(be,Ue,Qe,Fe){var gt=_e.call(this,be,Fe||'<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 gt.styles=[],gt.styleBoxes=[],gt.styles=Ue,gt.currentStyle=Qe,gt.setCurrentStyle=gt.setCurrentStyle.bind(gt),gt}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");return Ue.style.display="flex",Ue.style.overflow="hidden",Ue.style.flexGrow="2",this.styles.forEach(function(Qe){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/be.styles.length-5+"%",Fe.style.borderColor=Qe===be.currentStyle?be.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){be.setCurrentStyle(Qe,Fe)}),Ue.appendChild(Fe);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.overflow="hidden";var tn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+be.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Qe!==""?'stroke-dasharray="'+Qe+'"':"")+` />
</svg>`;gt.innerHTML=tn,Fe.appendChild(gt),be.styleBoxes.push(Fe)}),Ue},Pe.prototype.setCurrentStyle=function(be,Ue){var Qe=this;this.currentStyle=be,this.styleBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Pe}(Se),Ut=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.strokeColor=Qe.defaultColor,Fe.strokeWidth=Qe.defaultStrokeWidth,Fe.strokeDasharray=Qe.defaultStrokeDasharray,Fe.strokePanel=new ke("Line color",Qe.defaultColorSet,Qe.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return we(Pe,_e),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=_e.prototype.getState.call(this);return be.typeName=Pe.typeName,be},Pe.typeName="FrameMarker",Pe.title="Frame marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Pe}(lt),kt=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(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.x1=0,Fe.y1=0,Fe.x2=0,Fe.y2=0,Fe.defaultLength=50,Fe.manipulationStartX=0,Fe.manipulationStartY=0,Fe.manipulationStartX1=0,Fe.manipulationStartY1=0,Fe.manipulationStartX2=0,Fe.manipulationStartY2=0,Fe.setupControlBox(),Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!!_e.prototype.ownsTarget.call(this,be)||!(!this.grip1.ownsTarget(be)&&!this.grip2.ownsTarget(be))},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.manipulationStartX=be.x,this.manipulationStartY=be.y,this.state==="new"&&(this.x1=be.x,this.y1=be.y,this.x2=be.x,this.y2=be.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(Ue)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ue)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Pe.prototype.pointerUp=function(be){var Ue=this.state;_e.prototype.pointerUp.call(this,be),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(be),this._state="select",Ue==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Pe.prototype.adjustVisual=function(){},Pe.prototype.manipulate=function(be){this.state==="creating"?this.resize(be):this.state==="move"?(this.x1=this.manipulationStartX1+be.x-this.manipulationStartX,this.y1=this.manipulationStartY1+be.y-this.manipulationStartY,this.x2=this.manipulationStartX2+be.x-this.manipulationStartX,this.y2=this.manipulationStartY2+be.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(be)},Pe.prototype.resize=function(be){switch(this.activeGrip){case this.grip1:this.x1=be.x,this.y1=be.y;break;case this.grip2:case void 0:this.x2=be.x,this.y2=be.y}this.adjustVisual(),this.adjustControlBox()},Pe.prototype.select=function(){_e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pe.prototype.deselect=function(){_e.prototype.deselect.call(this),this.controlBox.style.display="none"},Pe.prototype.setupControlBox=function(){this.controlBox=st.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Pe.prototype.adjustControlBox=function(){this.positionGrips()},Pe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Pe.prototype.createGrip=function(){var be=new Ke;return be.visual.transform.baseVal.appendItem(st.createTransform()),this.controlBox.appendChild(be.visual),be},Pe.prototype.positionGrips=function(){var be=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-be/2,this.y1-be/2),this.positionGrip(this.grip2.visual,this.x2-be/2,this.y2-be/2)},Pe.prototype.positionGrip=function(be,Ue,Qe){var Fe=be.transform.baseVal.getItem(0);Fe.setTranslate(Ue,Qe),be.transform.baseVal.replaceItem(Fe,0)},Pe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},_e.prototype.getState.call(this))},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be);var Ue=be;this.x1=Ue.x1,this.y1=Ue.y1,this.x2=Ue.x2,this.y2=Ue.y2},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.x1=this.x1*be,this.y1=this.y1*Ue,this.x2=this.x2*be,this.y2=this.y2*Ue,this.adjustVisual(),this.adjustControlBox()},Pe}(Be),nn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.strokeColor=Qe.defaultColor,Fe.strokeWidth=Qe.defaultStrokeWidth,Fe.strokeDasharray=Qe.defaultStrokeDasharray,Fe.strokePanel=new ke("Line color",Qe.defaultColorSet,Qe.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorLine&&be!==this.visibleLine)},Pe.prototype.createVisual=function(){this.visual=st.createGroup(),this.selectorLine=st.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=st.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)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Pe.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()),st.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),st.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),st.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},Pe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},Pe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be);var Ue=be;this.strokeColor=Ue.strokeColor,this.strokeWidth=Ue.strokeWidth,this.strokeDasharray=Ue.strokeDasharray,this.createVisual(),this.adjustVisual()},Pe.typeName="LineMarker",Pe.title="Line marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Pe}(dn),qt=function(_e){function Pe(be,Ue,Qe,Fe){var gt=_e.call(this,be,Fe||'<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 gt.fonts=[],gt.fontBoxes=[],gt.fonts=Ue,gt.currentFont=Qe,gt.setCurrentFont=gt.setCurrentFont.bind(gt),gt}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");return Ue.style.overflow="hidden",Ue.style.flexGrow="2",this.fonts.forEach(function(Qe){var Fe=document.createElement("div");Fe.style.display="inline-block",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/be.fonts.length-5+"%",Fe.style.borderColor=Qe===be.currentFont?be.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){be.setCurrentFont(Qe,Fe)}),Ue.appendChild(Fe);var gt=document.createElement("div");gt.style.display="flex",gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.fontFamily=Qe,gt.style.overflow="hidden";var tn=document.createElement("div");tn.style.whiteSpace="nowrap",tn.style.overflow="hidden",tn.style.textOverflow="ellipsis",tn.innerHTML="The quick brown fox jumps over the lazy dog",gt.appendChild(tn),Fe.appendChild(gt),be.fontBoxes.push(Fe)}),Ue},Pe.prototype.setCurrentFont=function(be,Ue){var Qe=this;this.currentFont=be,this.fontBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Pe}(Se),un=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.color="transparent",Fe.padding=5,Fe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Fe.text=Fe.DEFAULT_TEXT,Fe.isMoved=!1,Fe.color=Qe.defaultColor,Fe.fontFamily=Qe.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setColor=Fe.setColor.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.renderText=Fe.renderText.bind(Fe),Fe.sizeText=Fe.sizeText.bind(Fe),Fe.textEditDivClicked=Fe.textEditDivClicked.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.setSize=Fe.setSize.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.colorPanel=new ke("Color",Qe.defaultColorSet,Qe.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.fontFamilyPanel=new qt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){if(_e.prototype.ownsTarget.call(this,be)||be===this.visual||be===this.textElement||be===this.bgRectangle)return!0;var Ue=!1;return this.textElement.childNodes.forEach(function(Qe){Qe===be&&(Ue=!0)}),Ue},Pe.prototype.createVisual=function(){this.visual=st.createGroup(),this.bgRectangle=st.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=st.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(st.createTransform()),this.textElement.transform.baseVal.appendItem(st.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},Pe.prototype.renderText=function(){var be=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(Ue){be.textElement.appendChild(st.createTSpan(Ue.trim()===""?" ":Ue.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Pe.prototype.getTextScale=function(){var be=this.textElement.getBBox(),Ue=1;if(be.width>0&&be.height>0){var Qe=(1*this.width-this.width*this.padding*2/100)/be.width,Fe=(1*this.height-this.height*this.padding*2/100)/be.height;Ue=Math.min(Qe,Fe)}return Ue},Pe.prototype.getTextPosition=function(be){var Ue=this.textElement.getBBox(),Qe=0,Fe=0;return Ue.width>0&&Ue.height>0&&(Qe=(this.width-Ue.width*be)/2,Fe=this.height/2-Ue.height*be/2),{x:Qe,y:Fe}},Pe.prototype.sizeText=function(){var be=this.textElement.getBBox(),Ue=this.getTextScale(),Qe=this.getTextPosition(Ue);Qe.y-=be.y*Ue,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Qe.x+"px, "+Qe.y+"px) scale("+Ue+", "+Ue+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Qe.x,Qe.y),this.textElement.transform.baseVal.getItem(1).setScale(Ue,Ue))},Pe.prototype.manipulate=function(be){_e.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),this.isMoved=!0,this.setSize(),this.sizeText()},Pe.prototype.setSize=function(){_e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(st.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),st.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Pe.prototype.pointerUp=function(be){var Ue=this.state;Ue==="creating"&&(this._suppressMarkerCreateEvent=!0),_e.prototype.pointerUp.call(this,be),this.setSize(),(Ue==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Pe.prototype.showTextEditor=function(){var be=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(Ue){Ue.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ue=Number.parseFloat(be.textEditor.style.fontSize);be.textEditor.clientWidth>=Number.parseInt(be.textEditor.style.maxWidth)&&Ue>.9;)Ue-=.1,be.textEditor.style.fontSize=Math.max(Ue,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ue){Ue.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ue){if(Ue.clipboardData){var Qe=Ue.clipboardData.getData("text"),Fe=window.getSelection();if(!Fe.rangeCount)return!1;Fe.deleteFromDocument(),Fe.getRangeAt(0).insertNode(document.createTextNode(Qe)),Ue.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){be.textEditDivClicked(be.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Pe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var be=this.getTextScale(),Ue=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Qe=this.textElement.getBBox(),Fe={x:Qe.width*be,y:Qe.height*be};Ue.x-=Fe.x/2,Ue.y-=Fe.y/2,this.textEditor.style.top=Ue.y+"px",this.textEditor.style.left=Ue.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ue.x+"px",this.textEditor.style.fontSize=Math.max(16*be,12)+"px",this.textElement.style.display="none"}},Pe.prototype.textEditDivClicked=function(be){this.text=be.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Pe.prototype.select=function(){_e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Pe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),_e.prototype.deselect.call(this)},Pe.prototype.dblClick=function(be,Ue){_e.prototype.dblClick.call(this,be,Ue),this.showTextEditor()},Pe.prototype.setColor=function(be){this.textElement&&st.setAttributes(this.textElement,[["fill",be]]),this.color=be,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(be)},Pe.prototype.setFont=function(be){this.textElement&&st.setAttributes(this.textElement,[["font-family",be]]),this.fontFamily=be,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Pe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Pe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){var Ue=be;this.color=Ue.color,this.fontFamily=Ue.fontFamily,this.padding=Ue.padding,this.text=Ue.text,this.createVisual(),_e.prototype.restoreState.call(this,be),this.setSize()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.setSize(),this.sizeText(),this.positionTextEditor()},Pe.typeName="TextMarker",Pe.title="Text marker",Pe.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>',Pe}(at),mn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.color="transparent",Fe.lineWidth=3,Fe.drawing=!1,Fe.pixelRatio=1,Fe.color=Qe.defaultColor,Fe.lineWidth=Qe.defaultStrokeWidth,Fe.pixelRatio=Qe.freehandPixelRatio,Fe.setColor=Fe.setColor.bind(Fe),Fe.addCanvas=Fe.addCanvas.bind(Fe),Fe.finishCreation=Fe.finishCreation.bind(Fe),Fe.setLineWidth=Fe.setLineWidth.bind(Fe),Fe.colorPanel=new ke("Color",Qe.defaultColorSet,Qe.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.lineWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.lineWidthPanel.onWidthChanged=Fe.setLineWidth,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.drawingImage)},Pe.prototype.createVisual=function(){this.visual=st.createGroup(),this.drawingImage=st.createImage(),this.visual.appendChild(this.drawingImage);var be=st.createTransform();this.visual.transform.baseVal.appendItem(be),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(be,Ue){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(be.x,be.y),this.drawing=!0):_e.prototype.pointerDown.call(this,be,Ue)},Pe.prototype.manipulate=function(be){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(be.x,be.y),this.canvasContext.stroke()):_e.prototype.manipulate.call(this,be)},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),st.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),st.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Pe.prototype.pointerUp=function(be){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):_e.prototype.pointerUp.call(this,be)},Pe.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)},Pe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),_e.prototype.select.call(this)},Pe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),_e.prototype.deselect.call(this)},Pe.prototype.finishCreation=function(){for(var be=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ue=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Qe=Ue[0],Fe=Ue[1],gt=Ue[2],tn=Ue[3],yn=!1,bt=0;bt<this.canvasElement.height;bt++)for(var Wt=0;Wt<this.canvasElement.width;Wt++)be.data[bt*this.canvasElement.width*4+4*Wt+3]>0&&(yn=!0,bt<Fe&&(Fe=bt),Wt<Qe&&(Qe=Wt),bt>tn&&(tn=bt),Wt>gt&&(gt=Wt));if(yn){this.left=Qe/this.pixelRatio,this.top=Fe/this.pixelRatio,this.width=(gt-Qe)/this.pixelRatio,this.height=(tn-Fe)/this.pixelRatio;var fn=document.createElement("canvas");fn.width=gt-Qe,fn.height=tn-Fe,fn.getContext("2d").putImageData(this.canvasContext.getImageData(Qe,Fe,gt-Qe,tn-Fe),0,0),this.drawingImgUrl=fn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Pe.prototype.setDrawingImage=function(){st.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),st.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Pe.prototype.setColor=function(be){this.color=be,this.colorChanged(be)},Pe.prototype.setLineWidth=function(be){this.lineWidth=be},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({drawingImgUrl:this.drawingImgUrl},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){this.createVisual(),_e.prototype.restoreState.call(this,be),this.drawingImgUrl=be.drawingImgUrl,this.setDrawingImage()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.setDrawingImage()},Pe.typeName="FreehandMarker",Pe.title="Freehand marker",Pe.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>',Pe}(at),Ct=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Qe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Fe.typeBoxes=[],Fe.currentType=Ue,Fe.setCurrentType=Fe.setCurrentType.bind(Fe),Fe}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");Ue.style.display="flex",Ue.style.overflow="hidden",Ue.style.flexGrow="2";for(var Qe=function(tn){var yn="both";switch(tn){case 0:yn="both";break;case 1:yn="start";break;case 2:yn="end";break;case 3:yn="none"}var bt=document.createElement("div");if(bt.style.display="flex",bt.style.flexGrow="2",bt.style.alignItems="center",bt.style.justifyContent="space-between",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderColor=yn===Fe.currentType?Fe.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){be.setCurrentType(yn,bt)}),Ue.appendChild(bt),yn==="both"||yn==="start"){var Wt=document.createElement("div");Wt.style.display="flex",Wt.style.alignItems="center",Wt.style.minHeight="20px",Wt.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Wt.style.marginLeft="5px",bt.appendChild(Wt)}var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.style.flexGrow="2";var zn=document.createElement("hr");if(zn.style.minWidth="20px",zn.style.border="0px",zn.style.borderTop="3px solid "+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee"),zn.style.flexGrow="2",fn.appendChild(zn),bt.appendChild(fn),yn==="both"||yn==="end"){var ni=document.createElement("div");ni.style.display="flex",ni.style.alignItems="center",ni.style.minHeight="20px",ni.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ni.style.marginRight="5px",bt.appendChild(ni)}Fe.typeBoxes.push(bt)},Fe=this,gt=0;gt<4;gt++)Qe(gt);return Ue},Pe.prototype.setCurrentType=function(be,Ue){var Qe=this;this.currentType=be,this.typeBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings!==void 0?Qe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Pe}(Se),qe=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.arrowType="end",Fe.arrowBaseHeight=10,Fe.arrowBaseWidth=10,Fe.getArrowPoints=Fe.getArrowPoints.bind(Fe),Fe.setArrowType=Fe.setArrowType.bind(Fe),Fe.arrowTypePanel=new Ct("Arrow type","end"),Fe.arrowTypePanel.onArrowTypeChanged=Fe.setArrowType,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.arrow1&&be!==this.arrow2)},Pe.prototype.getArrowPoints=function(be,Ue){var Qe=this.arrowBaseWidth+2*this.strokeWidth,Fe=this.arrowBaseHeight+2*this.strokeWidth;return be-Qe/2+","+(Ue+Fe/2)+" "+be+","+(Ue-Fe/2)+" "+(be+Qe/2)+","+(Ue+Fe/2)},Pe.prototype.createTips=function(){this.arrow1=st.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(st.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=st.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(st.createTransform()),this.visual.appendChild(this.arrow2)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="creating"&&this.createTips()},Pe.prototype.adjustVisual=function(){if(_e.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",st.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),st.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var be=0;Math.abs(this.x1-this.x2)>.1&&(be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ue=this.arrow1.transform.baseVal.getItem(0);Ue.setRotate(be,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ue,0);var Qe=this.arrow2.transform.baseVal.getItem(0);Qe.setRotate(be+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Qe,0)}},Pe.prototype.setArrowType=function(be){this.arrowType=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({arrowType:this.arrowType},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be);var Ue=be;this.arrowType=Ue.arrowType,this.createTips(),this.adjustVisual()},Pe.typeName="ArrowMarker",Pe.title="Arrow marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Pe}(nn),Bt=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.fillColor=Qe.defaultFillColor,Fe.strokeWidth=0,Fe.fillPanel=new ke("Color",Qe.defaultColorSet,Qe.defaultFillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe}return we(Pe,_e),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=_e.prototype.getState.call(this);return be.typeName=Pe.typeName,be},Pe.typeName="CoverMarker",Pe.title="Cover marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Pe}(lt),Cn=function(_e){function Pe(be,Ue,Qe,Fe){var gt=_e.call(this,be,Fe||'<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 gt.opacities=[],gt.opacityBoxes=[],gt.opacities=Ue,gt.currentOpacity=Qe,gt.setCurrentOpacity=gt.setCurrentOpacity.bind(gt),gt}return we(Pe,_e),Pe.prototype.getUi=function(){var be=this,Ue=document.createElement("div");return Ue.style.display="flex",Ue.style.overflow="hidden",Ue.style.flexGrow="2",Ue.style.justifyContent="space-between",this.opacities.forEach(function(Qe){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="center",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=Qe===be.currentOpacity?be.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){be.setCurrentOpacity(Qe,Fe)}),Ue.appendChild(Fe);var gt=document.createElement("div");gt.innerText=100*Qe+"%",Fe.appendChild(gt),be.opacityBoxes.push(Fe)}),Ue},Pe.prototype.setCurrentOpacity=function(be,Ue){var Qe=this;this.currentOpacity=be,this.opacityBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ue?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Pe}(Se),Zn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.fillColor=Qe.defaultHighlightColor,Fe.strokeWidth=0,Fe.opacity=Qe.defaultHighlightOpacity,Fe.fillPanel=new ke("Color",Qe.defaultColorSet,Fe.fillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.opacityPanel=new Cn("Opacity",Qe.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return we(Pe,_e),Pe.prototype.setOpacity=function(be){this.opacity=be,this.visual&&st.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=_e.prototype.getState.call(this);return be.typeName=Pe.typeName,be},Pe.typeName="HighlightMarker",Pe.title="Highlight marker",Pe.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>',Pe}(Bt),zt='<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>',sn='<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>',Mn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.bgColor="transparent",Fe.tipPosition={x:0,y:0},Fe.tipBase1Position={x:0,y:0},Fe.tipBase2Position={x:0,y:0},Fe.tipMoving=!1,Fe.color=Qe.defaultStrokeColor,Fe.bgColor=Qe.defaultFillColor,Fe.fontFamily=Qe.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setBgColor=Fe.setBgColor.bind(Fe),Fe.getTipPoints=Fe.getTipPoints.bind(Fe),Fe.positionTip=Fe.positionTip.bind(Fe),Fe.setTipPoints=Fe.setTipPoints.bind(Fe),Fe.colorPanel=new ke("Text color",Qe.defaultColorSet,Fe.color,zt),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.bgColorPanel=new ke("Fill color",Qe.defaultColorSet,Fe.bgColor,sn),Fe.bgColorPanel.onColorChanged=Fe.setBgColor,Fe.fontFamilyPanel=new qt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.tipGrip=new Ke,Fe.tipGrip.visual.transform.baseVal.appendItem(st.createTransform()),Fe.controlBox.appendChild(Fe.tipGrip.visual),Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return _e.prototype.ownsTarget.call(this,be)||this.tipGrip.ownsTarget(be)||this.tip===be},Pe.prototype.createTip=function(){st.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=st.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Pe.prototype.pointerDown=function(be,Ue){this.state==="new"&&_e.prototype.pointerDown.call(this,be,Ue),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ue)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):_e.prototype.pointerDown.call(this,be,Ue)},Pe.prototype.pointerUp=function(be){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,_e.prototype.pointerUp.call(this,be);else{var Ue=this.state==="creating";_e.prototype.pointerUp.call(this,be),this.setTipPoints(Ue),this.positionTip()}},Pe.prototype.manipulate=function(be){if(this.tipMoving){var Ue=this.unrotatePoint(be);this.tipPosition={x:Ue.x-this.manipulationStartLeft,y:Ue.y-this.manipulationStartTop},this.positionTip()}else _e.prototype.manipulate.call(this,be)},Pe.prototype.setBgColor=function(be){this.bgRectangle&&this.tip&&(st.setAttributes(this.bgRectangle,[["fill",be]]),st.setAttributes(this.tip,[["fill",be]])),this.bgColor=be,this.fillColorChanged(be)},Pe.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},Pe.prototype.setTipPoints=function(be){be===void 0&&(be=!1);var Ue=Math.min(this.height/2,15),Qe=this.height/5;be&&(this.tipPosition={x:Ue+Qe/2,y:this.height+20});var Fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,Ue=Math.min(this.width/2,15),this.tipBase1Position={x:Ue,y:0},this.tipBase2Position={x:Ue+Qe,y:0}):(this.tipBase1Position={x:0,y:Ue},this.tipBase2Position={x:0,y:Ue+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,Ue=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ue-Qe,y:0},this.tipBase2Position={x:this.width-Ue,y:0}):(this.tipBase1Position={x:this.width,y:Ue},this.tipBase2Position={x:this.width,y:Ue+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,Ue=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ue-Qe,y:this.height},this.tipBase2Position={x:this.width-Ue,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ue-Qe},this.tipBase2Position={x:this.width,y:this.height-Ue}):Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,Ue=Math.min(this.width/2,15),this.tipBase1Position={x:Ue,y:this.height},this.tipBase2Position={x:Ue+Qe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ue},this.tipBase2Position={x:0,y:this.height-Ue-Qe})},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),this.positionTip()},Pe.prototype.positionTip=function(){st.setAttributes(this.tip,[["points",this.getTipPoints()]]);var be=this.tipGrip.visual.transform.baseVal.getItem(0);be.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(be,0)},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pe.prototype.select=function(){this.positionTip(),_e.prototype.select.call(this)},Pe.prototype.getState=function(){var be=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){var Ue=be;this.bgColor=Ue.bgColor,this.tipPosition=Ue.tipPosition,_e.prototype.restoreState.call(this,be),this.createTip(),this.setTipPoints()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.tipPosition={x:this.tipPosition.x*be,y:this.tipPosition.y*Ue},this.positionTip()},Pe.typeName="CalloutMarker",Pe.title="Callout marker",Pe.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>',Pe}(un),fi=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.strokeColor=Qe.defaultColor,Fe.strokeWidth=Qe.defaultStrokeWidth,Fe.strokeDasharray=Qe.defaultStrokeDasharray,Fe.fillColor=Qe.defaultFillColor,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.strokePanel=new ke("Line color",Ye(Qe.defaultColorSet,["transparent"]),Qe.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ke("Fill color",Ye(Qe.defaultColorSet,["transparent"]),Fe.fillColor,sn),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.opacityPanel=new Cn("Opacity",Qe.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual)},Pe.prototype.createVisual=function(){this.visual=st.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)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},Pe.prototype.manipulate=function(be){_e.prototype.manipulate.call(this,be)},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),this.setSize()},Pe.prototype.setSize=function(){_e.prototype.setSize.call(this),st.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Pe.prototype.pointerUp=function(be){_e.prototype.pointerUp.call(this,be),this.setSize()},Pe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&st.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},Pe.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&st.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},Pe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&st.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&st.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pe.prototype.setOpacity=function(be){this.opacity=be,this.visual&&st.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){var Ue=be;this.fillColor=Ue.fillColor,this.strokeColor=Ue.strokeColor,this.strokeWidth=Ue.strokeWidth,this.strokeDasharray=Ue.strokeDasharray,this.opacity=Ue.opacity,this.createVisual(),_e.prototype.restoreState.call(this,be),this.setSize()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.setSize()},Pe.typeName="EllipseMarker",Pe.title="Ellipse marker",Pe.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>',Pe}(at),Rn=function(_e){function Pe(be,Ue,Qe){return _e.call(this,be,Ue,Qe)||this}return we(Pe,_e),Object.defineProperty(Pe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.tip1&&be!==this.tip2)},Pe.prototype.createTips=function(){this.tip1=st.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(st.createTransform()),this.visual.appendChild(this.tip1),this.tip2=st.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(st.createTransform()),this.visual.appendChild(this.tip2)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.state==="creating"&&this.createTips()},Pe.prototype.adjustVisual=function(){if(_e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(st.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()]]),st.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 be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ue=this.tip1.transform.baseVal.getItem(0);Ue.setRotate(be,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ue,0);var Qe=this.tip2.transform.baseVal.getItem(0);Qe.setRotate(be+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Qe,0)}},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=_e.prototype.getState.call(this);return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be),this.createTips(),this.adjustVisual()},Pe.typeName="MeasurementMarker",Pe.title="Measurement marker",Pe.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>',Pe}(nn),li=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.strokePanel.colors=Qe.defaultColorSet,Fe.fillColor="transparent",Fe}return we(Pe,_e),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=_e.prototype.getState.call(this);return be.typeName=Pe.typeName,be},Pe.typeName="EllipseFrameMarker",Pe.title="Ellipse frame marker",Pe.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>',Pe}(fi),Ot=function(){function _e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(_e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),_e.prototype.addUndoStep=function(Pe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Pe)||(this.undoStack.push(Pe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Pe)&&this.redoStack.splice(0,this.redoStack.length))},_e.prototype.replaceLastUndoStep=function(Pe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Pe)},_e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},_e.prototype.undo=function(){if(this.undoStack.length>1){var Pe=this.undoStack.pop();return Pe!==void 0&&this.redoStack.push(Pe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},_e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},_e}(),kn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.curveX=0,Fe.curveY=0,Fe.manipulationStartCurveX=0,Fe.manipulationStartCurveY=0,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.positionGrips=Fe.positionGrips.bind(Fe),Fe.addControlGrips=Fe.addControlGrips.bind(Fe),Fe.adjustVisual=Fe.adjustVisual.bind(Fe),Fe.setupControlBox=Fe.setupControlBox.bind(Fe),Fe.resize=Fe.resize.bind(Fe),Fe.strokeColor=Qe.defaultColor,Fe.strokeWidth=Qe.defaultStrokeWidth,Fe.strokeDasharray=Qe.defaultStrokeDasharray,Fe.strokePanel=new ke("Line color",Qe.defaultColorSet,Qe.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorCurve&&be!==this.visibleCurve&&!this.curveGrip.ownsTarget(be))},Pe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Pe.prototype.createVisual=function(){this.visual=st.createGroup(),this.selectorCurve=st.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=st.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)},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=be.x,this.curveY=be.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ue)&&(this.activeGrip=this.curveGrip,this._state="resize")},Pe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),st.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),st.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),st.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pe.prototype.setupControlBox=function(){_e.prototype.setupControlBox.call(this),this.curveControlLine1=st.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=st.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)},Pe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,_e.prototype.addControlGrips.call(this)},Pe.prototype.positionGrips=function(){_e.prototype.positionGrips.call(this);var be=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-be/2,this.curveY-be/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()))},Pe.prototype.manipulate=function(be){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+be.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+be.y-this.manipulationStartY),_e.prototype.manipulate.call(this,be)},Pe.prototype.resize=function(be){this.activeGrip===this.curveGrip&&(this.curveX=be.x,this.curveY=be.y),_e.prototype.resize.call(this,be),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Pe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},Pe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},Pe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual()},Pe.prototype.scale=function(be,Ue){this.curveX=this.curveX*be,this.curveY=this.curveY*Ue,_e.prototype.scale.call(this,be,Ue)},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},_e.prototype.getState.call(this));return be.typeName=Pe.typeName,be},Pe.prototype.restoreState=function(be){_e.prototype.restoreState.call(this,be);var Ue=be;this.strokeColor=Ue.strokeColor,this.strokeWidth=Ue.strokeWidth,this.strokeDasharray=Ue.strokeDasharray,this.curveX=Ue.curveX,this.curveY=Ue.curveY,this.createVisual(),this.adjustVisual()},Pe.typeName="CurveMarker",Pe.title="Curve marker",Pe.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>',Pe}(dn),$n=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,Ue,Qe)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.textColor="transparent",Fe.fontSize="1rem",Fe.isMoved=!1,Fe.captionText="Caption",Fe.PADDING=5,Fe.captionBoxWidth=0,Fe.captionBoxHeight=0,Fe.strokeColor=Qe.defaultColor,Fe.strokeWidth=Qe.defaultStrokeWidth,Fe.strokeDasharray=Qe.defaultStrokeDasharray,Fe.fillColor=Qe.defaultFillColor,Fe.textColor=Qe.defaultStrokeColor,Fe.fontFamily=Qe.defaultFontFamily,Fe.fontSize=Qe.defaultCaptionFontSize,Fe.captionText=Qe.defaultCaptionText,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.sizeCaption=Fe.sizeCaption.bind(Fe),Fe.setCaptionText=Fe.setCaptionText.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.finishTextEditing=Fe.finishTextEditing.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.setTextColor=Fe.setTextColor.bind(Fe),Fe.strokePanel=new ke("Line color",Ye(Qe.defaultColorSet,["transparent"]),Fe.strokeColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ke("Fill color",Ye(Qe.defaultColorSet,["transparent"]),Fe.fillColor,sn),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Tt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.fontFamilyPanel=new qt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.textColorPanel=new ke("Text color",Qe.defaultColorSet,Fe.textColor,zt),Fe.textColorPanel.onColorChanged=Fe.setTextColor,Fe}return we(Pe,_e),Pe.prototype.ownsTarget=function(be){return!(!_e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.frame&&be!==this.captionBg&&be!==this.captionElement)},Pe.prototype.createVisual=function(){this.visual=st.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=st.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=st.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=st.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()},Pe.prototype.setCaptionText=function(be){this.captionText=be,this.captionElement.textContent=this.captionText,this.sizeCaption()},Pe.prototype.pointerDown=function(be,Ue){_e.prototype.pointerDown.call(this,be,Ue),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},Pe.prototype.manipulate=function(be){_e.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},Pe.prototype.resize=function(be){_e.prototype.resize.call(this,be),this.setSize()},Pe.prototype.sizeCaption=function(){var be=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=be.width+2*this.PADDING,this.captionBoxHeight=be.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),st.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')"]]),st.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')"]])},Pe.prototype.showTextEditor=function(){var be=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(Ue){Ue.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ue){Ue.key==="Enter"&&be.finishTextEditing(be.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ue){Ue.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){be.finishTextEditing(be.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){be.finishTextEditing(be.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Pe.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"))},Pe.prototype.finishTextEditing=function(be){this.setCaptionText(be.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Pe.prototype.setFont=function(be){this.captionElement&&st.setAttributes(this.captionElement,[["font-family",be]]),this.fontFamily=be,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Pe.prototype.setTextColor=function(be){this.captionElement&&st.setAttributes(this.captionElement,[["fill",be]]),this.textColor=be,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Pe.prototype.setSize=function(){_e.prototype.setSize.call(this),st.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Pe.prototype.pointerUp=function(be){_e.prototype.pointerUp.call(this,be),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Pe.prototype.dblClick=function(be,Ue){_e.prototype.dblClick.call(this,be,Ue),this.showTextEditor()},Pe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.frame&&st.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},Pe.prototype.setFillColor=function(be){this.fillColor=be,this.captionBg&&st.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},Pe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.frame&&st.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.frame&&st.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var be=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},_e.prototype.getState.call(this));return be.typeName=this.typeName,be},Pe.prototype.restoreState=function(be){var Ue=be;this.fillColor=Ue.fillColor,this.strokeColor=Ue.strokeColor,this.strokeWidth=Ue.strokeWidth,this.strokeDasharray=Ue.strokeDasharray,this.textColor=Ue.textColor,this.fontFamily=Ue.fontFamily,this.captionText=Ue.captionText,this.fontSize=Ue.fontSize,this.createVisual(),_e.prototype.restoreState.call(this,be),this.setSize()},Pe.prototype.scale=function(be,Ue){_e.prototype.scale.call(this,be,Ue),this.setSize()},Pe.typeName="CaptionFrameMarker",Pe.title="Caption frame marker",Pe.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>',Pe}(at),xi=function(){function _e(Pe,be){be===void 0&&(be=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Pe,this.cancelable=be}return Object.defineProperty(_e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),_e.prototype.preventDefault=function(){this._defaultPrevented=!0},_e}(),xn=function(_e){function Pe(be,Ue,Qe){var Fe=_e.call(this,be,!1)||this;return Fe.dataUrl=Ue,Fe.state=Qe,Fe}return we(Pe,_e),Pe}(xi),Gt=function(_e){function Pe(be,Ue,Qe){Qe===void 0&&(Qe=!1);var Fe=_e.call(this,be,Qe)||this;return Fe.marker=Ue,Fe}return we(Pe,_e),Pe}(xi),jt=function(){function _e(){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 _e.prototype.addEventListener=function(Pe,be){this[Pe].push(be)},_e.prototype.removeEventListener=function(Pe,be){var Ue=this[Pe].indexOf(be);Ue>-1&&this[Pe].splice(Ue,1)},_e}(),It=function(){function _e(Pe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new kt,this._isOpen=!1,this.undoRedoManager=new Ot,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 jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=_e.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Pe,this.targetRoot=document.body,this.width=Pe.clientWidth,this.height=Pe.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(_e.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ut,mn,qe,un,li,fi,Zn,Mn,Rn,Bt,nn,kn,$n]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ut,mn,qe,un,fi,Zn,Mn]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ut,mn,qe,un,Zn]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Pe){var be=this;this._availableMarkerTypes.splice(0),Pe.forEach(function(Ue){if(typeof Ue=="string"){var Qe=be.ALL_MARKER_TYPES.find(function(Fe){return Fe.typeName===Ue});Qe!==void 0&&be._availableMarkerTypes.push(Qe)}else be._availableMarkerTypes.push(Ue)})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Pe){this._zoomLevel=Pe,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(_e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),_e.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},_e.prototype.show=function(){var Pe=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(be){return be(new xi(Pe))})},_e.prototype.render=function(){return it(this,void 0,void 0,function(){var Pe;return Je(this,function(be){switch(be.label){case 0:return this.setCurrentMarker(),(Pe=new Lt).naturalSize=this.renderAtNaturalSize,Pe.imageType=this.renderImageType,Pe.imageQuality=this.renderImageQuality,Pe.markersOnly=this.renderMarkersOnly,Pe.width=this.renderWidth,Pe.height=this.renderHeight,[4,Pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return be.sent(),[4,Pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,be.sent()]}})})},_e.prototype.close=function(Pe){var be=this;if(Pe===void 0&&(Pe=!1),this.isOpen){var Ue=!1;Pe||this.eventListeners.beforeclose.forEach(function(Qe){var Fe=new xi(be,!0);Qe(Fe),Fe.defaultPrevented&&(Ue=!0)}),Ue||(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 xi(be))}),this.detachEvents(),this._isOpen=!1)}},_e.prototype.addMarkersToToolbar=function(){for(var Pe,be=[],Ue=0;Ue<arguments.length;Ue++)be[Ue]=arguments[Ue];(Pe=this._availableMarkerTypes).push.apply(Pe,be)},_e.prototype.addRenderEventListener=function(Pe){this.addEventListener("render",function(be){Pe(be.dataUrl,be.state)})},_e.prototype.removeRenderEventListener=function(Pe){},_e.prototype.addCloseEventListener=function(Pe){this.addEventListener("close",function(){Pe()})},_e.prototype.removeCloseEventListener=function(Pe){},_e.prototype.setupResizeObserver=function(){var Pe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Pe.resize(Pe.target.clientWidth,Pe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Pe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},_e.prototype.onPopupTargetResize=function(){var Pe=1*this.target.clientWidth/this.target.clientHeight,be=this.editorCanvas.clientWidth/Pe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Pe:this.editorCanvas.clientWidth,Ue=be<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Pe;this.resize(be,Ue)},_e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},_e.prototype.resize=function(Pe,be){this._isResizing=!0;var Ue=Pe/this.imageWidth,Qe=be/this.imageHeight;this.imageWidth=Math.round(Pe),this.imageHeight=Math.round(be),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(Ue,Qe),this._isResizing=!1},_e.prototype.scaleMarkers=function(Pe,be){var Ue,Qe=this;this._currentMarker&&this._currentMarker instanceof un?this._currentMarker.scale(Pe,be):(Ue=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Fe){Fe!==Qe._currentMarker&&Fe.scale(Pe,be)}),Ue!==void 0&&this.setCurrentMarker(Ue)},_e.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"},_e.prototype.setTopLeft=function(){var Pe=this.editingTarget.getBoundingClientRect(),be=this.editorCanvas.getBoundingClientRect();this.left=Pe.left-be.left,this.top=Pe.top-be.top},_e.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)},_e.prototype.addDefs=function(){for(var Pe,be=[],Ue=0;Ue<arguments.length;Ue++)be[Ue]=arguments[Ue];this.defs=st.createDefs(),this.addDefsToImage(),(Pe=this.defs).append.apply(Pe,be)},_e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},_e.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)},_e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},_e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},_e.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)},_e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},_e.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)},_e.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 Pe=document.createElement("a");Pe.href="https://markerjs.com/",Pe.target="_blank",Pe.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>',Pe.title="Powered by marker.js",Pe.style.display="grid",Pe.style.alignItems="center",Pe.style.justifyItems="center",Pe.style.padding="3px",Pe.style.width="20px",Pe.style.height="20px",this.logoUI.appendChild(Pe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},_e.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")},_e.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"},_e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},_e.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 Pe=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=Pe+"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 le(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")},_e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},_e.prototype.removeMarker=function(Pe){this.markerImage.removeChild(Pe.container),this.markers.indexOf(Pe)>-1&&this.markers.splice(this.markers.indexOf(Pe),1),Pe.dispose()},_e.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())},_e.prototype.toolbarButtonClicked=function(Pe,be){if(Pe==="marker"&&be!==void 0)this.createNewMarker(be);else if(Pe==="action")switch(be){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()}},_e.prototype.deleteSelectedMarker=function(){var Pe=this;if(this._currentMarker!==void 0){var be=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Qe){var Fe=new Gt(Pe,Pe._currentMarker,!0);Qe(Fe),Fe.defaultPrevented&&(be=!0)}),!be){var Ue=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 Gt(Pe,Ue))})}}},_e.prototype.clear=function(){var Pe=this,be=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(gt){var tn=new Gt(Pe,void 0,!0);gt(tn),tn.defaultPrevented&&(be=!0)}),!be)){this.setCurrentMarker();for(var Ue=function(gt){var tn=Qe.markers[gt];Qe.setCurrentMarker(Qe.markers[gt]),Qe._currentMarker.dispose(),Qe.markerImage.removeChild(Qe._currentMarker.container),Qe.markers.splice(Qe.markers.indexOf(Qe._currentMarker),1),Qe.eventListeners.markerdelete.forEach(function(yn){return yn(new Gt(Pe,tn))})},Qe=this,Fe=this.markers.length-1;Fe>=0;Fe--)Ue(Fe);this.addUndoStep()}},Object.defineProperty(_e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),_e.prototype.showNotesEditor=function(){var Pe;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=(Pe=this._currentMarker.notes)!==null&&Pe!==void 0?Pe:"",this.overlayContainer.appendChild(this.notesArea))},_e.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)},_e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},_e.prototype.addUndoStep=function(){var Pe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var be=this.getState(),Ue=this.undoRedoManager.getLastUndoStep();if(!Ue||Ue.width===be.width&&Ue.height===be.height){var Qe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(be),Qe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Fe){return Fe(new xi(Pe))})}else this.undoRedoManager.replaceLastUndoStep(be),this.eventListeners.statechange.forEach(function(Fe){return Fe(new xi(Pe))})}},_e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},_e.prototype.undoStep=function(){var Pe=this,be=this.undoRedoManager.undo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ue){return Ue(new xi(Pe))}))},_e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},_e.prototype.redoStep=function(){var Pe=this,be=this.undoRedoManager.redo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ue){return Ue(new xi(Pe))}))},_e.prototype.stepZoom=function(){var Pe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Pe<this.zoomSteps.length-1?this.zoomSteps[Pe+1]:this.zoomSteps[0]},_e.prototype.panTo=function(Pe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Pe.x,top:this.prevPanPoint.y-Pe.y}),this.prevPanPoint=Pe},_e.prototype.startRenderAndClose=function(){return it(this,void 0,void 0,function(){var Pe,be,Ue=this;return Je(this,function(Qe){switch(Qe.label){case 0:return[4,this.render()];case 1:return Pe=Qe.sent(),be=this.getState(),this.eventListeners.render.forEach(function(Fe){return Fe(new xn(Ue,Pe,be))}),this.close(!0),[2]}})})},_e.prototype.getState=function(Pe){Pe===!0&&this.setCurrentMarker();var be={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ue){return be.markers.push(Ue.getState())}),be},_e.prototype.restoreState=function(Pe){var be=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Pe.markers.forEach(function(Ue){var Qe=be._availableMarkerTypes.find(function(gt){return gt.typeName===Ue.typeName});if(Qe!==void 0){var Fe=be.addNewMarker(Qe);Fe.restoreState(Ue),be.markers.push(Fe)}}),Pe.width&&Pe.height&&(Pe.width!==this.imageWidth||Pe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Pe.width,this.imageHeight/Pe.height),this.eventListeners.restorestate.forEach(function(Ue){return Ue(new xi(be))})},_e.prototype.addNewMarker=function(Pe){var be=st.createGroup();return this.markerImage.appendChild(be),new Pe(be,this.overlayContainer,this.settings)},_e.prototype.createNewMarker=function(Pe){var be,Ue=this;(be=typeof Pe=="string"?this._availableMarkerTypes.find(function(Qe){return Qe.typeName===Pe}):Pe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(be),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(be.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Qe){return Qe(new Gt(Ue,Ue._currentMarker))}))},_e.prototype.markerCreated=function(Pe){var be=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Pe),this.setCurrentMarker(Pe),Pe instanceof mn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(mn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ue){return Ue(new Gt(be,be._currentMarker))})},_e.prototype.colorChanged=function(Pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Pe,this.settings.defaultStrokeColor=Pe)},_e.prototype.fillColorChanged=function(Pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Pe)},_e.prototype.markerStateChanged=function(Pe){var be=this;this.eventListeners.markerchange.forEach(function(Ue){return Ue(new Gt(be,Pe))})},_e.prototype.setCurrentMarker=function(Pe){var be=this;this._currentMarker!==Pe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ue){return Ue(new Gt(be,be._currentMarker))})),this._currentMarker=Pe,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(Ue){return Ue(new Gt(be,be._currentMarker))}))},_e.prototype.onPointerDown=function(Pe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Pe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var be=this.markers.find(function(Ue){return Ue.ownsTarget(Pe.target)});be!==void 0?(this.setCurrentMarker(be),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY),Pe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Pe.clientX,y:Pe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY))},_e.prototype.onDblClick=function(Pe){if(this._isFocused||this.focus(),this.mode==="select"){var be=this.markers.find(function(Ue){return Ue.ownsTarget(Pe.target)});be!==void 0&&be!==this._currentMarker&&this.setCurrentMarker(be),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY),Pe.target):this.setCurrentMarker()}},_e.prototype.onPointerMove=function(Pe){this.touchPoints!==1&&Pe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Pe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY)):this.zoomLevel>1&&this.panTo({x:Pe.clientX,y:Pe.clientY}))},_e.prototype.onPointerUp=function(Pe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY)),this.isDragging=!1,this.addUndoStep()},_e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},_e.prototype.onKeyUp=function(Pe){this._currentMarker===void 0||this.notesArea!==void 0||Pe.key!=="Delete"&&Pe.key!=="Backspace"||this.deleteSelectedMarker()},_e.prototype.clientToLocalCoordinates=function(Pe,be){var Ue=this.markerImage.getBoundingClientRect();return{x:(Pe-Ue.left)/this.zoomLevel,y:(be-Ue.top)/this.zoomLevel}},_e.prototype.onWindowResize=function(){this.positionUI()},_e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Pe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Pe+"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()},_e.prototype.addLicenseKey=function(Pe){ht.addKey(Pe)},_e.prototype.addEventListener=function(Pe,be){this.eventListeners.addEventListener(Pe,be)},_e.prototype.removeEventListener=function(Pe,be){this.eventListeners.removeEventListener(Pe,be)},_e.prototype.renderState=function(Pe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Pe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(_e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),_e.prototype.focus=function(){var Pe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(be){return be(new xi(Pe))}))},_e.prototype.blur=function(){var Pe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(be){return be(new xi(Pe))}))},_e.instanceCounter=0,_e}(),vt=ae(70635),Xt=ae(58130),Zt=(_e,Pe,be)=>new Promise((Ue,Qe)=>{var Fe=yn=>{try{tn(be.next(yn))}catch(bt){Qe(bt)}},gt=yn=>{try{tn(be.throw(yn))}catch(bt){Qe(bt)}},tn=yn=>yn.done?Ue(yn.value):Promise.resolve(yn.value).then(Fe,gt);tn((be=be.apply(_e,Pe)).next())}),ft=({data:_e,className:Pe,fullWidth:be,style:Ue={},onClose:Qe,onOk:Fe,showFullTools:gt,noAssociationId:tn})=>{const yn=(0,de.useRef)(null),bt=(0,de.useRef)(null),Wt=(0,de.useRef)(null),fn=(0,de.useRef)(null),[zn,ni]=(0,de.useState)(!1),[di,wi]=(0,de.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,de.useEffect)(()=>{Wt.current||(Wt.current=document.createElement("style"),document.head.appendChild(Wt.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),Wt.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&hi()):(document.body.removeAttribute("data-custom"),Wt.current&&(document.head.removeChild(Wt.current),Wt.current=null))},[_e==null?void 0:_e.visible]);const hi=()=>Zt(void 0,null,function*(){ni(!0),wi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xi=yield(0,Xt.ZJ)(_e==null?void 0:_e.src);yn.current.src="",yn.current.src=Xi,yn.current.onload=function(){Ji()},ni(!1),wi("")}),Li=Xi=>Zt(void 0,null,function*(){ni(!0),wi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const dr=yield(0,vt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:Xi.dataUrl}});dr!=null&&dr.id&&!tn?(yield(0,vt.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:dr==null?void 0:dr.id,settings:JSON.stringify(Xi.state)}})).status===0&&Fe():dr!=null&&dr.id&&Fe(dr),ni(!1),wi("")}),Yi=()=>{const Xi=document.querySelector('a[href="https://markerjs.com/"]');Xi&&Xi.parentNode&&(Xi.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(Ir=>{const Wi=document.querySelector(Ir.name);Wi&&Wi.setAttribute("title",Ir.title)})},Ji=()=>{bt.current=new It(yn.current),bt.current.targetRoot=fn.current,bt.current.addEventListener("render",Li),bt.current.addEventListener("beforeclose",Qe),gt&&(bt.current.availableMarkerTypes=bt.current.ALL_MARKER_TYPES,bt.current.uiStyleSettings.redoButtonVisible=!0,bt.current.uiStyleSettings.notesButtonVisible=!0,bt.current.uiStyleSettings.zoomButtonVisible=!0,bt.current.uiStyleSettings.zoomOutButtonVisible=!0,bt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=bt.current.uiStyleSettings,bt.current.show(),_e!=null&&_e.snapshotData&&bt.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Yi()},300)};return de.createElement(de.Fragment,null,(_e==null?void 0:_e.visible)&&de.createElement(je.Z,{spinning:zn,tip:di,style:{position:"absolute"}},de.createElement("div",{ref:fn,className:Re()(Te.imageDimensions,Pe,be?Te.fullWidth:""),style:Ue},de.createElement("img",{className:Te.img,ref:yn}))))}},75890:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(95237),Ee=ae(43604),Re=ae(99313),je=ae(3113),Ze=ae(25711),we=ae(93938),it=ae(48136),Je=ae(59301);const Ye=(0,de.forwardRef)(({callback:st,showSaveButton:ht,value:Lt=""},ze)=>{const ee=(0,de.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 "}]}]}],fe=[{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}`}]}]}],le=ke=>{ee.current.setValue(ee.current.getValue()+" "+ke.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Je.createElement(Te.Z,{className:we.Z.lists,gutter:[10,10]},ne.map((ke,Be)=>Je.createElement(Ee.Z,{flex:"110px",className:we.Z.item},Je.createElement("div",null,Je.createElement(Ze.Z,{value:`$$${ke.value}$$`}),ke.name),Je.createElement("div",{className:we.Z.children},ke.children.map((Ne,Ke)=>Je.createElement("div",{key:Ke},Je.createElement("h1",null,Ne.name),Je.createElement(Te.Z,{gutter:[10,10]},Ne.data.map(($e,at)=>Je.createElement(Ee.Z,{key:at,onClick:()=>le($e),className:we.Z.diamond},Je.createElement(Ze.Z,{value:"`$$"+$e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Je.createElement(Te.Z,{className:we.Z.lists,gutter:[10,10]},fe.map((ke,Be)=>Je.createElement(Ee.Z,{flex:"110px",className:we.Z.item},Je.createElement("div",null,Je.createElement(Ze.Z,{value:"`$$"+ke.value+"$$`"}),ke.name),Je.createElement("div",{className:we.Z.children},ke.children.map((Ne,Ke)=>Je.createElement("div",{key:Ke},Ne.name&&Je.createElement("h1",null,Ne.name),Je.createElement(Te.Z,{gutter:[10,10]},Ne.data.map(($e,at)=>Je.createElement(Ee.Z,{key:at,onClick:()=>le($e),className:we.Z.diamond},Je.createElement(Ze.Z,{value:"`$$"+$e.value+"$$`"}))))))))))}],Se=()=>{var ke=document.createElement("div");ke.innerHTML=ee.current.getValue();var Be=ke.innerText;return st&&st(Be),Be};return(0,de.useImperativeHandle)(ze,()=>({getData:Se})),Je.createElement("div",{className:we.Z.mathWrap},Je.createElement(Re.default,{defaultActiveKey:"1",items:me}),Je.createElement("math-field",{locale:"zh_cn",className:we.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ee,style:{width:800,marginTop:30,fontSize:18}},Lt||""),ht&&Je.createElement("div",{className:we.Z.button},Je.createElement(je.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});xe.Z=Ye},97267:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(93314),Ee=ae(3113),Re=Object.defineProperty,je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ye=(ze,ee,ne)=>ee in ze?Re(ze,ee,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ze[ee]=ne,st=(ze,ee)=>{for(var ne in ee||(ee={}))it.call(ee,ne)&&Ye(ze,ne,ee[ne]);if(we)for(var ne of we(ee))Je.call(ee,ne)&&Ye(ze,ne,ee[ne]);return ze},ht=(ze,ee)=>je(ze,Ze(ee));const Lt=({img:ze,buttonProps:ee={},styles:ne={},customText:fe,ButtonText:le,ButtonClick:me,Buttonclass:Se,ButtonTwo:ke,imgStyles:Be,loading:Ne=!1})=>de.createElement("section",{className:"tc animated fadeIn",style:st(st({},{color:"#999",margin:"100px auto",visibility:Ne?"hidden":"visible"}),ne)},de.createElement("img",{src:ze||Te,style:ht(st({},Be),{pointerEvents:"none",userSelect:"none"})}),de.createElement("p",{className:"mt20 font14"},fe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&de.createElement(Ee.ZP,st({className:Se,onClick:me},ee),le),ke&&ke);xe.Z=Lt},79646:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Se}});var de=ae(59301),Te={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ee=ae(3113),Re=ae(63093),je=ae(48551),Ze=ae(6848),we=ae(58130),it=ae(79124),Je=ae(97267),Ye=ae(10148),st=ae(63486),ht=ae(59301),Lt=Object.defineProperty,ze=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,fe=(ke,Be,Ne)=>Be in ke?Lt(ke,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):ke[Be]=Ne,le=(ke,Be)=>{for(var Ne in Be||(Be={}))ee.call(Be,Ne)&&fe(ke,Ne,Be[Ne]);if(ze)for(var Ne of ze(Be))ne.call(Be,Ne)&&fe(ke,Ne,Be[Ne]);return ke},me=(ke,Be,Ne)=>new Promise((Ke,$e)=>{var at=nt=>{try{Tt(Ne.next(nt))}catch(Ut){$e(Ut)}},lt=nt=>{try{Tt(Ne.throw(nt))}catch(Ut){$e(Ut)}},Tt=nt=>nt.done?Ke(nt.value):Promise.resolve(nt.value).then(at,lt);Tt((Ne=Ne.apply(ke,Be)).next())}),Se=({editOffice:ke="view",data:Be,theme:Ne,type:Ke,filename:$e,monacoEditor:at,className:lt,style:Tt,close:nt,onClose:Ut,hasMask:kt,disabledDownload:dn,onImgDimensions:nn,showNodata:qt,recordInfo:un})=>{const[mn,Ct]=(0,de.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[qe,Bt]=(0,de.useState)(""),[Cn,Zn]=(0,de.useState)(),zt=window.ENV==="build"?"/react/build":"",sn=location.host.startsWith("localhost")?Ye.Z.PROXY_SERVER:Ye.Z.API_SERVER,fi=10*(1024*1024),Rn=(0,de.useRef)();Be!=null&&Be.startsWith("/api")&&Ke!=="txt"&&(Be=Ye.Z.API_SERVER+Be);const li=xi=>xi.substring(xi.lastIndexOf("/")+1).split(".").pop();$e&&at&&(at.filename=$e),(0,de.useEffect)(()=>{var xi,xn;const Gt=(xn=(xi=document.cookie)==null?void 0:xi.replace(/\s/g,""))==null?void 0:xn.split(";");Gt==null||Gt.map(jt=>{let It=jt.split("=");It[0]==="_educoder_session"&&Bt(It[1])})},[]),(0,de.useEffect)(()=>{Ke==="office"&&(Be.indexOf("bigfilescdn.")>-1||Be.indexOf("bigfiles1")>-1?Zn({url:Be,fileType:li(Be),model:Be.indexOf("model=edit")?"edit":"view"}):Ot())},[Ke,Be]);const Ot=()=>me(void 0,null,function*(){console.log("data:",Be);let xi=Be;Be.startsWith("http")||(xi=location.origin+xi);let xn=new URL(xi).pathname.split("/").pop();const Gt=yield(0,it.gJ)({attachment_id:xn});Gt.url=sn+Gt.url,Zn(Gt)}),kn=()=>{if(Be.startsWith("http")||Be.startsWith("blob:")){$n();return}(0,we.Sv)($e||"educoder",Be,$e)},$n=()=>{un&&(0,st.fc)({id:un==null?void 0:un.id,watch_type:1,course_id:un==null?void 0:un.course_id}),(0,we.Nd)($e||"educoder",decodeURIComponent(Be))};return ht.createElement("div",{style:le({},Tt||{}),className:`${kt&&Te.bgBlack} ${Ke?Te.wrp:"hide"}`},nt&&ht.createElement("div",{className:Te.close,ref:Rn},!!nn&&ht.createElement(Ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Rn.current},ht.createElement("span",{onClick:()=>{Ut(),nn()}},ht.createElement("i",{className:"icon-yulanpizhu"}))),!dn&&ht.createElement(Ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Rn.current},ht.createElement("span",{onClick:$n},ht.createElement("i",{className:"icon-quxiaozhiding"}))),ht.createElement(Ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Rn.current},ht.createElement("span",{className:"",onClick:Ut},ht.createElement("i",{className:"icon-guanbi1"})))),ht.createElement("div",{className:`${Te[lt]} ${lt} ${Te.monaco} ${Ke==="txt"?"show":"hide"}`},Ke==="txt"&&ht.createElement(ht.Fragment,null,ht.createElement(je.ZP,le({},at)))),Ke==="audio"&&ht.createElement("audio",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Be}`,autoPlay:!0}),Ke==="video"&&ht.createElement(ht.Fragment,null,(Be==null?void 0:Be.indexOf("http"))>-1?ht.createElement("video",{controls:!0,src:`${Be}`,autoPlay:!0}):ht.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Be}`,autoPlay:!0})),Ke==="office"&&Cn&&ht.createElement("iframe",{src:`${zt}/office.html?key=${Cn.key}&url=${btoa(Cn.url)}&callbackUrl=${sn+(Cn.callbackUrl||"")}&fileType=${Cn.fileType}&title=${Cn.title||""}&model=${ke}&officeServer=${Ye.Z.ONLYOFFICE}&disabledDownload=${!!dn}`}),Ke==="html"&&ht.createElement("iframe",{src:Be+"&disposition=inline"}),Ke==="pdf"&&ht.createElement("iframe",{src:`${zt}/js/pdfview/index.html?filename=${$e||"educoder.pdf"}&url=${encodeURIComponent(Be)}&disabledDownload=${!!dn}`}),Ke==="image"&&ht.createElement("img",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Be}`}),(Ke==="other"||Ke==="download")&&ht.createElement(ht.Fragment,null,qt?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(Ee.ZP,{icon:ht.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:kn,disabled:dn},"\u4E0B\u8F7D")}):ht.createElement(Ee.ZP,{type:"primary",size:"middle",onClick:kn,disabled:dn},ht.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Ge,xe,ae){"use strict";ae.d(xe,{z:function(){return Ke},Z:function(){return $e}});var de=ae(59301),Te=ae(1751),Ee=ae(31087),Re=ae(64018),je=ae(37312),Ze=ae(10148),we=ae(58130),it=ae(15342),Je=ae(1012),Ye=ae(79646),st=ae(59301),Lt=({html:at})=>{const lt=(0,de.useRef)(null),Tt=(0,de.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,de.useEffect)(()=>{const Ut=lt.current.attachShadow({mode:"open"});Tt.current=document.createElement("div"),Tt.current.className="markdown-body",Tt.current.innerHTML=at,Ut.appendChild(Tt.current);const kt=document.createElement("style");return kt.textContent=nt,Ut.appendChild(kt),()=>{Ut.innerHTML=""}},[]),(0,de.useEffect)(()=>{Tt.current&&(Tt.current.innerHTML=at)},[at]),st.createElement("div",{ref:lt})},ze=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,le=(at,lt,Tt)=>lt in at?ze(at,lt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):at[lt]=Tt,me=(at,lt)=>{for(var Tt in lt||(lt={}))ne.call(lt,Tt)&&le(at,Tt,lt[Tt]);if(ee)for(var Tt of ee(lt))fe.call(lt,Tt)&&le(at,Tt,lt[Tt]);return at};const Se="@\u2581\u2581@",ke="@\u2581@",Be=/<pre[^>]*>/g;function Ne(at){let lt=document.createElement("div");return lt.innerHTML=at,lt.childNodes.length===0?"":lt.childNodes[0].nodeValue}const Ke=(at,lt)=>{at=at||"";const Tt=/(?: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,Ut=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,kt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return lt?at.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Tt,(dn,nn,qt,un,mn,Ct,qe)=>{const Bt=nn||un||Ct,Cn=qt||mn||qe||"?";return Ze.Z.API_SERVER+"/api/attachments/"+Bt+Cn+"&t="+(0,we.Jn)(Bt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(at=at.replace(kt,(dn,nn,qt,un,mn,Ct,qe)=>{const Bt=nn||un||Ct,Cn=qt||mn||qe||"?";return Ze.Z.API_SERVER+"/attachments/download/"+Bt+Cn+"&t="+(0,we.Jn)(Bt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replace(Tt,(dn,nn,qt,un,mn,Ct,qe)=>{const Bt=nn||un||Ct,Cn=qt||mn||qe||"?";return Ze.Z.API_SERVER+"/api/attachments/"+Bt+Cn+"&t="+(0,we.Jn)(Bt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replace(nt,(dn,nn,qt,un,mn)=>{const Ct=nn||un,qe=qt||mn||"";return'"'+Ze.Z.API_SERVER+"/api/attachments/"+Ct+qe+Ct+qe+"&t="+(0,we.Jn)(Ct,Date.now())}).replace(Ut,(dn,nn,qt,un,mn)=>{const Ct=nn||un,qe=qt||mn||"";return"("+Ze.Z.API_SERVER+"/files/uploads/"+Ct+qe+Ct+qe+"&t="+(0,we.Jn)(Ct,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,`
`),at)};var $e=({value:at="",className:lt,showTextOnly:Tt,showLines:nt,style:Ut={},stylesPrev:kt={},highlightKeywords:dn,showProgramFill:nn,isProgramFill:qt,disabledFill:un=!1,programFillValue:mn,onFillChange:Ct=Cn=>{},onFillBlur:qe=()=>{},onFillFocus:Bt=()=>{}})=>{let Cn=String(at);const[Zn,zt]=(0,de.useState)(""),[sn,Mn]=(0,de.useState)("office"),[fi,Rn]=(0,de.useState)([]),li=(0,de.useRef)("a"+(0,Je.Z)()),Ot={},kn=(_e,Pe,be)=>{const Ue=document.createElement(_e===ke?"input":"textarea");Ue.style.width="100%",Ue.style.height=_e===ke?"40px":"151px",Ue.rows=5,Ue.spellcheck=!1,Ue.name="edu-program-fill",Ue.placeholder="\u8BF7\u8F93\u5165",Ue.dataset.id=Pe;const Qe=Object.keys(Ot).length;return Ot[Qe]=Ue,`<span class="edu-program-fill-wrap ${_e===ke?"":"show"}" style="width:${_e===ke?"400px":"100%"}" title=${be||""}><span>${Ue.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $n(_e){return _e=_e.replace(/!\[.*?\]\(.*?\)/g,""),_e=_e.replace(/\[.*?\]\(.*?\)/g,""),_e=_e.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_e=_e.replace(/<embed.*?>/g,""),_e=_e.replace(/<img.*?>/g,""),_e=_e.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_e=_e.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_e=_e.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_e=_e.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_e}const xi=_e=>_e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Pe,be){let Ue=be.replace(/(\n|\r)/g,"").split("}"),Qe=[];return Ue.map(Fe=>{Fe!=""&&Qe.push(`.${li.current} ${Fe}`)}),`<style>${Qe.join("}")}</style>`}),xn=(0,de.useMemo)(()=>{try{const Ue=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Fe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,gt=/\(\/attachments\/download\//g;Cn=Cn.replace(gt,"("+Ze.Z.API_SERVER+"/attachments/download/").replace(Ue,"("+Ze.Z.API_SERVER+"/api/attachments/").replace(Qe,'"'+Ze.Z.API_SERVER+"/api/attachments/").replace(Fe,'"'+Ze.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(Ue){}if(nn){let Ue=-1;return Cn=Cn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Qe,Fe,gt){var tn;return++Ue,kn(Qe,Ue,(tn=mn==null?void 0:mn[Ue])==null?void 0:tn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${xi(Cn||"")}</pre>`}let _e=xi(Cn);_e=(0,Ee.ZP)(_e);const Pe=(0,Ee.ez)();Cn.match(/\[TOC\]/)&&(_e=_e.replace("<p>[TOC]</p>",(0,Ee.Qv)()),(0,Ee.Iy)()),_e=_e.replace(/(__special_katext_id_\d+__)/g,(Ue,Qe)=>{const{type:Fe,expression:gt}=Pe[Qe];return(0,it.renderToString)(Ne(gt)||"",{displayMode:Fe==="block",throwOnError:!1,output:"html"})}),_e=_e.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ee.AL)();const be=document.createElement("div");if(be.innerHTML=_e,Tt)return be.innerText;if(dn){const Ue=dn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return vt(be,Ue),be.innerHTML}return setTimeout(()=>yt(),500),be.innerHTML},[Cn,dn]);(0,de.useEffect)(()=>{Xt.current&&Xt.current.querySelectorAll(["input","textarea"]).forEach(Pe=>{Pe.oninput=Gt,Pe.onblur=jt,Pe.onfocus=It})},[fi]),(0,de.useEffect)(()=>{var _e,Pe,be,Ue,Qe;if(mn!=null&&mn.length)try{const Fe=Xt.current.querySelectorAll(".edu-program-fill-score"),gt=Xt.current.querySelectorAll('[name="edu-program-fill"]');for(const[tn,yn]of gt.entries())yn.value=((_e=mn==null?void 0:mn[tn])==null?void 0:_e.value)||"",((Pe=mn==null?void 0:mn[tn])==null?void 0:Pe.type)==="warning"?yn.className="program-fill-warning":((be=mn==null?void 0:mn[tn])==null?void 0:be.type)==="success"?yn.className="program-fill-success":yn.className="";for(const[tn,yn]of Fe.entries())yn.innerHTML=(Ue=mn==null?void 0:mn[tn])!=null&&Ue.score?`${(Qe=mn==null?void 0:mn[tn])==null?void 0:Qe.score}\u5206`:"";Rn(mn)}catch(Fe){console.log(Fe,"error")}},[mn]);const Gt=_e=>{fi[_e.target.dataset.id]=fi[_e.target.dataset.id]||{},fi[_e.target.dataset.id].value=_e.target.value,Rn([...fi]),Ct(fi,_e.target.dataset.id)},jt=_e=>{fi[_e.target.dataset.id]=fi[_e.target.dataset.id]||{},fi[_e.target.dataset.id].value=_e.target.value,Rn([...fi]),qe(fi,_e.target.dataset.id)},It=_e=>{fi[_e.target.dataset.id]=fi[_e.target.dataset.id]||{},fi[_e.target.dataset.id].value=_e.target.value,Rn([...fi]),Bt(fi,_e.target.dataset.id)};function vt(_e,Pe){return _e.childNodes.forEach(be=>{var Ue;if(be.childNodes.length>0)vt(be,Pe);else if(be.nodeName!=="IMG")if(be.innerHTML)be.innerHTML=(Ue=be.innerHTML)==null?void 0:Ue.replace(new RegExp(Pe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Qe=document.createElement("span");Qe.innerHTML=be.textContent.replace(new RegExp(Pe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),be.replaceWith(Qe)}})}const Xt=(0,de.useRef)();Ee.jb.WebkitLineClamp=nt,nt&&(Ut=me(me({},Ut),Ee.jb));function Zt(_e){let Pe=_e.target;if(Pe.tagName.toUpperCase()==="A"){let be=Pe.getAttribute("href");if(be.indexOf("office")>-1)_e.preventDefault(),zt(be),Mn("office");else if(be.indexOf("application/pdf")>-1)_e.preventDefault(),zt(be),Mn("pdf");else if(be.indexOf("text/html")>-1)_e.preventDefault(),zt(be),Mn("html");else if(be.startsWith("#")){_e.preventDefault();let Ue=document.getElementById(be.replace("#",""));Ue&&Ue.scrollIntoView(!0)}}}const yt=()=>{var _e;const Pe=(_e=Xt.current)==null?void 0:_e.querySelectorAll("video");Pe==null||Pe.forEach(be=>{if(be.oncontextmenu=()=>!1,be.src.indexOf(".m3u8")>-1&&!be.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var Ue=new je.ZP;Ue.loadSource(be.src),Ue.attachMedia(be)}}})};(0,de.useEffect)(()=>{if(Xt.current&&xn&&xn.match(Be)&&window.PR.prettyPrint(),Xt.current)return Xt.current.addEventListener("click",Zt),()=>{var _e;(_e=Xt.current)==null||_e.removeEventListener("click",Zt),(0,Ee.AL)(),(0,Ee.Iy)()}},[xn,Xt.current,Zt]),(0,de.useEffect)(()=>{var _e;const Pe=be=>{be.preventDefault(),be.clipboardData.setData("text",window.getSelection().toString())};return(_e=Xt.current)==null||_e.addEventListener("copy",Pe),()=>{var be;(be=Xt.current)==null||be.removeEventListener("copy",Pe)}},[Xt.current]);const ft=_e=>/<style[\s\S]*?>/i.test(_e||"");return de.createElement(de.Fragment,null,Tt&&de.createElement("div",{ref:Xt},xn),!Tt&&!ft(xn)&&de.createElement("div",{ref:Xt,style:me({},Ut),className:`${lt||""} ${un?"disabled-fill":""} markdown-body ${li.current}`,dangerouslySetInnerHTML:{__html:xn}}),!Tt&&ft(xn)&&de.createElement(Lt,{html:xn}),de.createElement(Ye.Z,{close:!0,data:Zn,type:Zn!=null&&Zn.length?sn:"",style:me({},kt),onClose:()=>zt("")}))}},36866:function(Ge,xe,ae){"use strict";ae.d(xe,{h:function(){return ke},Z:function(){return Se}});var de=ae(59301),Te=ae(57809),Ee=ae(78241),Re=ae(3113),je=ae(89780),Ze=ae.n(je),we=ae(79906),it=Object.defineProperty,Je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,ze=(Be,Ne,Ke)=>Ne in Be?it(Be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Be[Ne]=Ke,ee=(Be,Ne)=>{for(var Ke in Ne||(Ne={}))ht.call(Ne,Ke)&&ze(Be,Ke,Ne[Ke]);if(st)for(var Ke of st(Ne))Lt.call(Ne,Ke)&&ze(Be,Ke,Ne[Ke]);return Be},ne=(Be,Ne)=>Je(Be,Ye(Ne));const fe=Te.default.Option,le={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:Be,onCancel:Ne})=>{const[Ke,$e]=(0,de.useState)("python");function at(Tt){$e(me[Tt][1])}function lt(Tt){Be(Tt)}return de.createElement(Ee.default,ne(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:lt,style:{width:500}}),de.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},de.createElement(Te.default,{getPopupContainer:Tt=>Tt.parentNode,onChange:at},Object.keys(me).map(Tt=>de.createElement(fe,{key:Tt,value:Tt},me[Tt][0])))),de.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},de.createElement(ke,{mode:Ke})),de.createElement("div",{className:"flex-container flex-end"},de.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Re.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))};function ke({value:Be,onChange:Ne,mode:Ke,options:$e={}}){const at=(0,de.useRef)(),[lt,Tt]=(0,de.useState)();return(0,de.useEffect)(()=>{if(lt){let nt=function(Ut){const kt=Ut.getValue();Ne&&Ne(kt)};return lt.on("change",nt),()=>{lt.off("change",nt)}}},[lt,Ne]),(0,de.useEffect)(()=>{lt&&lt.setOption("mode",Ke)},[lt,Ke]),(0,de.useEffect)(()=>{lt&&(Be!==lt.getValue()||Be==="")&&setTimeout(()=>{lt.setValue(Be||"")},300)},[lt,Be]),(0,de.useEffect)(()=>{if(at.current&&!lt){const nt=Ze().fromTextArea(at.current,ee({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$e));Tt(nt)}},[at.current,lt]),de.createElement("div",{className:"my-codemirror-container"},de.createElement("textarea",{ref:at}))}},23469:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return so}});var de=ae(59301),Te=ae(89780),Ee=ae.n(Te),Re=ae(76374),je=ae(79906),Ze=ae(6313),we=ae(25717),it=ae(99498),Je=ae(25419),Ye=ae(67549),st=ae(25711),ht=({value:En="",className:Tn,showTextOnly:on,showLines:At,style:Dn={}})=>{const Qn=(0,de.useMemo)(()=>"",[En]);return de.createElement(de.Fragment,null,de.createElement("div",{dangerouslySetInnerHTML:{__html:Qn}}))},Lt=ae(59301),ze=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Se=(En,Tn,on)=>Tn in En?ze(En,Tn,{enumerable:!0,configurable:!0,writable:!0,value:on}):En[Tn]=on,ke=(En,Tn)=>{for(var on in Tn||(Tn={}))le.call(Tn,on)&&Se(En,on,Tn[on]);if(fe)for(var on of fe(Tn))me.call(Tn,on)&&Se(En,on,Tn[on]);return En},Be=(En,Tn)=>ee(En,ne(Tn));let Ne=[{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 Ke({onActionCallback:En,title:Tn,icon:on,actionName:At,className:Dn="",children:Qn}){function Kt(){En(At)}return Lt.createElement("a",{title:Tn,className:Dn,onClick:Kt},Lt.createElement("i",{className:`${on}`}),Qn)}var $e=({watch:En,showNullButton:Tn,showNullProgramButton:on,onActionCallback:At,fullScreen:Dn,insertTemp:Qn,hidetoolBar:Kt,extraUse:Et})=>{const Ln=[...Ne,{title:`${En?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${En?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Lt.createElement("ul",{className:"markdown-toolbar-container"},!Kt&&Ln.map((Jn,Ci)=>Lt.createElement("li",{key:Ci},Jn.actionName?Lt.createElement(Ke,Be(ke({},Jn),{onActionCallback:At})):Lt.createElement("span",{className:"v-line"}))),Tn?Lt.createElement("li",null,Lt.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:At},Lt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,on?Lt.createElement(Lt.Fragment,null,Lt.createElement("li",null,Lt.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:At},Lt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Lt.createElement("li",null,Lt.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:At},Lt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qn&&Lt.createElement("li",null,Lt.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qn}`,onActionCallback:At},Lt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Et&&Lt.createElement("li",null,Et),Lt.createElement("li",{className:"btn-full-screen"},Lt.createElement(Ke,{icon:`${Dn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Dn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:At})))},at=ae(50474),lt=ae(78241),Tt=ae(92832),nt=ae(3113),Ut=Object.defineProperty,kt=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,mn=(En,Tn,on)=>Tn in En?Ut(En,Tn,{enumerable:!0,configurable:!0,writable:!0,value:on}):En[Tn]=on,Ct=(En,Tn)=>{for(var on in Tn||(Tn={}))qt.call(Tn,on)&&mn(En,on,Tn[on]);if(nn)for(var on of nn(Tn))un.call(Tn,on)&&mn(En,on,Tn[on]);return En},qe=(En,Tn)=>kt(En,dn(Tn));const Bt={labelCol:{span:4},wrapperCol:{span:20}};var Cn=({callback:En,onCancel:Tn})=>{function on(At){En(At)}return de.createElement(lt.default,qe(Ct({},Bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:on,style:{width:500}}),de.createElement(lt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},de.createElement(Tt.default,null)),de.createElement(lt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},de.createElement(Tt.default,null)),de.createElement("div",{className:"flex-container flex-end"},de.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(nt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Zn=ae(36866),zt=ae(56701),sn=ae(43418),Mn=ae(95237),fi=ae(65983),Rn=ae(59301),li=({callback:En,onCancel:Tn})=>{const on=document.createElement("canvas"),At=on.getContext("2d");on.width=1e3,on.height=800,At.fillStyle="#ffffff",At.fillRect(0,0,on.width,on.height);const Dn=on.toDataURL("image/png");return Rn.createElement(sn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Rn.createElement(Mn.Z,{style:{height:"100vh"}},Rn.createElement(fi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Dn,visible:!0,title:String(Date.now())},onOk:Qn=>{En({src:Qn.url})},onClose:Tn})))},Ot=ae(12378);function kn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(kn,go.CommandHandler),kn.prototype.canAlignSelection=function(){var En=this.diagram;return!(En===null||En.isReadOnly||En.isModelReadOnly||En.selection.count<2)},kn.prototype.alignLeft=function(){var En=this.diagram;En.startTransaction("aligning left");var Tn=1/0;En.selection.each(function(on){on instanceof go.Link||(Tn=Math.min(on.position.x,Tn))}),En.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(Tn,on.position.y))}),En.commitTransaction("aligning left")},kn.prototype.alignRight=function(){var En=this.diagram;En.startTransaction("aligning right");var Tn=-1/0;En.selection.each(function(on){if(!(on instanceof go.Link)){var At=on.actualBounds.x+on.actualBounds.width;Tn=Math.max(At,Tn)}}),En.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(Tn-on.actualBounds.width,on.position.y))}),En.commitTransaction("aligning right")},kn.prototype.alignTop=function(){var En=this.diagram;En.startTransaction("alignTop");var Tn=1/0;En.selection.each(function(on){on instanceof go.Link||(Tn=Math.min(on.position.y,Tn))}),En.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(on.position.x,Tn))}),En.commitTransaction("alignTop")},kn.prototype.alignBottom=function(){var En=this.diagram;En.startTransaction("aligning bottom");var Tn=-1/0;En.selection.each(function(on){if(!(on instanceof go.Link)){var At=on.actualBounds.y+on.actualBounds.height;Tn=Math.max(At,Tn)}}),En.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(on.actualBounds.x,Tn-on.actualBounds.height))}),En.commitTransaction("aligning bottom")},kn.prototype.alignCenterX=function(){var En=this.diagram,Tn=En.selection.first();if(Tn){En.startTransaction("aligning Center X");var on=Tn.actualBounds.x+Tn.actualBounds.width/2;En.selection.each(function(At){At instanceof go.Link||At.move(new go.Point(on-At.actualBounds.width/2,At.actualBounds.y))}),En.commitTransaction("aligning Center X")}},kn.prototype.alignCenterY=function(){var En=this.diagram,Tn=En.selection.first();if(Tn){En.startTransaction("aligning Center Y");var on=Tn.actualBounds.y+Tn.actualBounds.height/2;En.selection.each(function(At){At instanceof go.Link||At.move(new go.Point(At.actualBounds.x,on-At.actualBounds.height/2))}),En.commitTransaction("aligning Center Y")}},kn.prototype.alignColumn=function(En){var Tn=this.diagram;Tn.startTransaction("align Column"),En===void 0&&(En=0),En=parseFloat(En);var on=new Array;Tn.selection.each(function(Et){Et instanceof go.Link||on.push(Et)});for(var At=0;At<on.length-1;At++){var Dn=on[At],Qn=Dn.actualBounds.y+Dn.actualBounds.height+En,Kt=on[At+1];Kt.move(new go.Point(Dn.actualBounds.x,Qn))}Tn.commitTransaction("align Column")},kn.prototype.alignRow=function(En){En===void 0&&(En=0),En=parseFloat(En);var Tn=this.diagram;Tn.startTransaction("align Row");var on=new Array;Tn.selection.each(function(Et){Et instanceof go.Link||on.push(Et)});for(var At=0;At<on.length-1;At++){var Dn=on[At],Qn=Dn.actualBounds.x+Dn.actualBounds.width+En,Kt=on[At+1];Kt.move(new go.Point(Qn,Dn.actualBounds.y))}Tn.commitTransaction("align Row")},kn.prototype.canRotate=function(En){var Tn=this.diagram;return!(Tn===null||Tn.isReadOnly||Tn.isModelReadOnly||Tn.selection.count<1)},kn.prototype.rotate=function(En){En===void 0&&(En=90);var Tn=this.diagram;Tn.startTransaction("rotate "+En.toString());var Tn=this.diagram;Tn.selection.each(function(on){on instanceof go.Link||on instanceof go.Group||(on.angle+=En)}),Tn.commitTransaction("rotate "+En.toString())},kn.prototype.pullToFront=function(){var En=this.diagram;En.startTransaction("pullToFront");var Tn=new go.Map;En.selection.each(function(on){Tn.set(on.layer,0)}),Tn.iteratorKeys.each(function(on){var At=0;on.parts.each(function(Dn){if(!Dn.isSelected){var Qn=Dn.zOrder;isNaN(Qn)?Dn.zOrder=0:At=Math.max(At,Qn)}}),Tn.set(on,At)}),En.selection.each(function(on){kn._assignZOrder(on,Tn.get(on.layer)+1)}),En.commitTransaction("pullToFront")},kn.prototype.pushToBack=function(){var En=this.diagram;En.startTransaction("pushToBack");var Tn=new go.Map;En.selection.each(function(on){Tn.set(on.layer,0)}),Tn.iteratorKeys.each(function(on){var At=0;on.parts.each(function(Dn){if(!Dn.isSelected){var Qn=Dn.zOrder;isNaN(Qn)?Dn.zOrder=0:At=Math.min(At,Qn)}}),Tn.set(on,At)}),En.selection.each(function(on){kn._assignZOrder(on,Tn.get(on.layer)-1-kn._findGroupDepth(on))}),En.commitTransaction("pushToBack")},kn._assignZOrder=function(En,Tn,on){on===void 0&&(on=En),En.layer===on.layer&&(En.zOrder=Tn),En instanceof go.Group&&En.memberParts.each(function(At){kn._assignZOrder(At,Tn+1,on)})},kn._findGroupDepth=function(En){if(En instanceof go.Group){var Tn=0;return En.memberParts.each(function(on){Tn=Math.max(Tn,kn._findGroupDepth(on))}),Tn+1}else return 0},kn.prototype.doKeyDown=function(){var En=this.diagram;if(En!==null){var Tn=En.lastInput;if(Tn.key==="Up"||Tn.key==="Down"||Tn.key==="Left"||Tn.key==="Right"){var on=this.arrowKeyBehavior;if(on==="none")return;if(on==="select"){this._arrowKeySelect();return}else if(on==="move"){this._arrowKeyMove();return}else if(on==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},kn.prototype._getAllParts=function(){var En=new Array;return this.diagram.nodes.each(function(Tn){En.push(Tn)}),this.diagram.parts.each(function(Tn){En.push(Tn)}),En},kn.prototype._arrowKeyMove=function(){var En=this.diagram,Tn=En.lastInput,on=0,At=0;if(Tn.control||Tn.meta)on=1,At=1;else if(En.grid!==null){var Dn=En.grid.gridCellSize;At=Dn.width,on=Dn.height}En.startTransaction("arrowKeyMove"),En.selection.each(function(Qn){Tn.key==="Up"?Qn.move(new go.Point(Qn.actualBounds.x,Qn.actualBounds.y-on)):Tn.key==="Down"?Qn.move(new go.Point(Qn.actualBounds.x,Qn.actualBounds.y+on)):Tn.key==="Left"?Qn.move(new go.Point(Qn.actualBounds.x-At,Qn.actualBounds.y)):Tn.key==="Right"&&Qn.move(new go.Point(Qn.actualBounds.x+At,Qn.actualBounds.y))}),En.commitTransaction("arrowKeyMove")},kn.prototype._arrowKeySelect=function(){var En=this.diagram,Tn=En.lastInput,on=null;Tn.key==="Up"?on=this._findNearestPartTowards(270):Tn.key==="Down"?on=this._findNearestPartTowards(90):Tn.key==="Left"?on=this._findNearestPartTowards(180):Tn.key==="Right"&&(on=this._findNearestPartTowards(0)),on!==null&&(Tn.shift?on.isSelected=!0:Tn.control||Tn.meta?on.isSelected=!on.isSelected:En.select(on))},kn.prototype._findNearestPartTowards=function(En){var Tn=this.diagram.selection.first();if(Tn===null)return null;for(var on=Tn.actualBounds.center,At=this._getAllParts(),Dn=1/0,Qn=Tn,Kt=0;Kt<At.length;Kt++){var Et=At[Kt];if(Et!==Tn&&Et.canSelect()){var Ln=Et.actualBounds.center,Jn=on.directionPoint(Ln),Ci=this._angleCloseness(Jn,En);if(Ci<=45){var Pn=on.distanceSquaredPoint(Ln);Pn*=1+Math.sin(Ci*Math.PI/180),Pn<Dn&&(Dn=Pn,Qn=Et)}}}return Qn},kn.prototype._angleCloseness=function(En,Tn){return Math.min(Math.abs(Tn-En),Math.min(Math.abs(Tn+360-En),Math.abs(Tn-360-En)))},kn.prototype._arrowKeyTree=function(){var En=this.diagram,Tn=En.selection.first();if(Tn instanceof go.Node){var on=En.lastInput;if(on.key==="Right"){if(!Tn.isTreeLeaf)if(!Tn.isTreeExpanded)En.commandHandler.canExpandTree(Tn)&&En.commandHandler.expandTree(Tn);else{var At=this._sortTreeChildrenByY(Tn).first();At!==null&&En.select(At)}}else if(on.key==="Left")if(!Tn.isTreeLeaf&&Tn.isTreeExpanded)En.commandHandler.canCollapseTree(Tn)&&En.commandHandler.collapseTree(Tn);else{var Dn=Tn.findTreeParentNode();Dn!==null&&En.select(Dn)}else if(on.key==="Up"){var Dn=Tn.findTreeParentNode();if(Dn!==null){var Qn=this._sortTreeChildrenByY(Dn),Kt=Qn.indexOf(Tn);if(Kt>0){for(var Et=Qn.elt(Kt-1);Et!==null&&Et.isTreeExpanded&&!Et.isTreeLeaf;){var Ln=this._sortTreeChildrenByY(Et);Et=Ln.last()}Et!==null&&En.select(Et)}else En.select(Dn)}}else if(on.key==="Down")if(Tn.isTreeExpanded&&!Tn.isTreeLeaf){var At=this._sortTreeChildrenByY(Tn).first();At!==null&&En.select(At)}else for(;Tn!==null;){var Dn=Tn.findTreeParentNode();if(Dn===null)break;var Qn=this._sortTreeChildrenByY(Dn),Kt=Qn.indexOf(Tn);if(Kt<Qn.length-1){En.select(Qn.elt(Kt+1));break}else Tn=Dn}var Jn=En.selection.first();Jn!==null&&En.scrollToRect(Jn.actualBounds)}},kn.prototype._sortTreeChildrenByY=function(En){var Tn=new go.List().addAll(En.findTreeChildrenNodes());return Tn.sort(function(on,At){var Dn=on.location,Qn=At.location;return Dn.y<Qn.y?-1:Dn.y>Qn.y?1:Dn.x<Qn.x?-1:Dn.x>Qn.x?1:0}),Tn},kn.prototype.copyToClipboard=function(En){go.CommandHandler.prototype.copyToClipboard.call(this,En),this._lastPasteOffset.set(this.pasteOffset)},kn.prototype.pasteFromClipboard=function(){var En=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(En,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),En},Object.defineProperty(kn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(En){if(En!=="move"&&En!=="select"&&En!=="scroll"&&En!=="tree"&&En!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+En);this._arrowKeyBehavior=En}}),Object.defineProperty(kn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(En){if(!(En instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+En);this._pasteOffset.set(En)}});var $n=kn,xi=ae(37404),xn=ae(43604),Gt=ae(70635),jt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},It=ae(59301),vt=(En,Tn,on)=>new Promise((At,Dn)=>{var Qn=Ln=>{try{Et(on.next(Ln))}catch(Jn){Dn(Jn)}},Kt=Ln=>{try{Et(on.throw(Ln))}catch(Jn){Dn(Jn)}},Et=Ln=>Ln.done?At(Ln.value):Promise.resolve(Ln.value).then(Qn,Kt);Et((on=on.apply(En,Tn)).next())});function Xt({onCancel:En,callback:Tn}){let on=(0,de.useRef)(),At=(0,de.useRef)(),Dn=(0,de.useRef)(),Qn=(0,de.useRef)(!1);const Kt=(0,de.useRef)(!1),[Et,Ln]=(0,de.useState)(0);function Jn(){const Pn=Ot.bx.make,Rt={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"};on.current=new Ot.S0(At.current,{padding:20,grid:Pn(Ot.s_,"Grid",Pn(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ht=>{var Pi=Ht.diagram.commandHandler.addTopLevelParts(Ht.diagram.selection,!0);Pi||Ht.diagram.currentTool.doCancel()},commandHandler:Pn($n),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ht=>{var Pi=Ht.subject;Pi.location=Pi.location.copy().snapToGridPoint(Ht.diagram.grid.gridOrigin,Ht.diagram.grid.gridCellSize),setTimeout(()=>{Ht.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ht=>{var Pi=Ht.subject;setTimeout(()=>{Ht.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ht=>{var Pi=Ht.parameter.part;Pi.invalidateConnectedLinks();var zi=Ht.subject;Ht.diagram.toolManager.linkingTool.isForwards?zi.toNode.invalidateConnectedLinks():zi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),on.current.nodeTemplate=Pn(Ot.NB,"Auto",{locationSpot:Ot.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ot.$u(120,60),minSize:new Ot.$u(40,40),resizable:!0,resizeCellSize:new Ot.$u(10,10),rotatable:!0},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),new Ot.KX("desiredSize","size",Ot.$u.parse).makeTwoWay(Ot.$u.stringify),Pn(Ot.bn,{name:"SHAPE",fill:Rt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("figure"),new Ot.KX("fill"),new Ot.KX("stroke","borderColor"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Pn(Ot.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pn(Ot.al,{margin:1,textAlign:"center",overflow:Ot.al.OverflowEllipsis,editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),on.current.nodeTemplate.toolTip=Pn("ToolTip",Pn(Ot.s_,"Vertical",{maxSize:new Ot.$u(200,NaN)},Pn(Ot.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ot.KX("text")),Pn(Ot.al,{font:"10pt sans-serif",textAlign:"center"},new Ot.KX("text","details"))));function Yn(Ht,Pi){var zi=(Ti,er)=>{Ti.handled=!0,Ti.diagram.model.commit(cr=>{var Tr=er.part.adornedPart,Qi=new Ot.E9().setRectSpot(Tr.actualBounds,Ht);Qi.subtract(Tr.location),Qi.scale(2,2),Qi.x+=Math.sign(Qi.x)*130,Qi.y+=Math.sign(Qi.y)*130,Qi.add(Tr.location),Qi.snapToGridPoint(Ti.diagram.grid.gridOrigin,Ti.diagram.grid.gridCellSize);var Fi=cr.copyNodeData(Tr.data);cr.setGroupKeyForNodeData(Fi,cr.getGroupKeyForNodeData(Tr.data)),cr.addNodeData(Fi);var Rr={from:Tr.key,to:cr.getKeyForNodeData(Fi)};cr.addLinkData(Rr);var ln=Ti.diagram.findNodeForData(Fi);ln.location=Qi,Ti.diagram.select(ln),setTimeout(()=>{Ti.diagram.commandHandler.editTextBlock()},20)})};return Pn(Ot.bn,{figure:Pi,alignment:Ht,alignmentFocus:Ht.opposite(),width:Ht.equals(Ot.z6.Top)||Ht.equals(Ot.z6.Bottom)?25:18,height:Ht.equals(Ot.z6.Top)||Ht.equals(Ot.z6.Bottom)?18:25,fill:"orange",stroke:Rt.white,strokeWidth:4,mouseEnter:(Ti,er)=>er.fill="dodgerblue",mouseLeave:(Ti,er)=>er.fill="orange",isActionable:!0,click:zi,contextClick:zi})}function vi(Ht){return Pn(Ot.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:(Pi,zi)=>zi.fill="dodgerblue",mouseLeave:(Pi,zi)=>zi.fill="orange",click:(Pi,zi)=>{Pi.diagram.commandHandler.showContextMenu(zi.part.adornedPart)}},Ht||{})}on.current.nodeTemplate.selectionAdornmentTemplate=Pn(Ot.uz,"Spot",Pn(Ot.Vm,{padding:10}),Yn(Ot.z6.Top,"TriangleUp"),Yn(Ot.z6.Left,"TriangleLeft"),Yn(Ot.z6.Right,"TriangleRight"),Yn(Ot.z6.Bottom,"TriangleDown"),vi({alignment:new Ot.z6(.75,0)}));function Oi(Ht,Pi){return(zi,Ti)=>{zi.handled=!0,zi.diagram.model.commit(er=>{er.set(Ti.part.adornedPart.data,Ht,Pi)})}}function Yt(Ht,Pi){return Pi||(Pi="color"),Pn(Ot.bn,{width:16,height:16,stroke:"lightgray",fill:Ht,margin:1,background:"transparent",mouseEnter:(zi,Ti)=>Ti.stroke="dodgerblue",mouseLeave:(zi,Ti)=>Ti.stroke="lightgray",click:Oi(Pi,Ht),contextClick:Oi(Pi,Ht)})}function Fn(){return[Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",Yt(Rt.white,"fill"),Yt(Rt.beige,"fill"),Yt(Rt.extralightblue,"fill"),Yt(Rt.extralightred,"fill"))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",Yt(Rt.lightgray,"fill"),Yt(Rt.lightgreen,"fill"),Yt(Rt.lightblue,"fill"),Yt(Rt.lightred,"fill")))]}function $t(){return[Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",Yt(Rt.black),Yt(Rt.green),Yt(Rt.blue),Yt(Rt.red))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",Yt(Rt.white),Yt(Rt.magenta),Yt(Rt.purple),Yt(Rt.orange)))]}function pn(Ht,Pi){return Pi||(Pi="thickness"),Pn(Ot.bn,"LineH",{width:16,height:16,strokeWidth:Ht,margin:1,background:"transparent",mouseEnter:(zi,Ti)=>Ti.background="dodgerblue",mouseLeave:(zi,Ti)=>Ti.background="transparent",click:Oi(Pi,Ht),contextClick:Oi(Pi,Ht)})}function An(Ht,Pi){return Pi||(Pi="dash"),Pn(Ot.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ht,margin:1,background:"transparent",mouseEnter:(zi,Ti)=>Ti.background="dodgerblue",mouseLeave:(zi,Ti)=>Ti.background="transparent",click:Oi(Pi,Ht),contextClick:Oi(Pi,Ht)})}function gn(){return[Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",pn(1),pn(2),pn(3),pn(4))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",An(null),An([2,4]),An([4,4])))]}function In(Ht,Pi){return Pi||(Pi="figure"),Pn(Ot.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ht,margin:1,background:"transparent",mouseEnter:(zi,Ti)=>Ti.fill="dodgerblue",mouseLeave:(zi,Ti)=>Ti.fill="lightgray",click:Oi(Pi,Ht),contextClick:Oi(Pi,Ht)})}on.current.nodeTemplate.contextMenu=Pn("ContextMenu",Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",In("Rectangle"),In("RoundedRectangle"),In("Ellipse"),In("Diamond"))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",In("Parallelogram2"),In("ManualOperation"),In("Procedure"),In("Cylinder1"))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",In("Terminator"),In("CreateRequest"),In("Document"),In("TriangleDown"))),Fn(),$t(),gn()),on.current.groupTemplate=Pn(Ot.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ot.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ht,Pi)=>{var zi=Pi.addMembers(Pi.diagram.selection,!0);zi||Pi.diagram.currentTool.doCancel()},avoidable:!1},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),Pn(Ot.s_,"Auto",{name:"BODY"},Pn(Ot.bn,{parameter1:10,fill:Rt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("fill"),new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Pn(Ot.Vm,{background:"transparent",margin:20})),Pn(Ot.al,{alignment:Ot.z6.Top,alignmentFocus:Ot.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ot.KX("text"),new Ot.KX("stroke","color"))),on.current.groupTemplate.selectionAdornmentTemplate=Pn(Ot.uz,"Spot",Pn(Ot.s_,"Auto",Pn(Ot.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pn(Ot.Vm,{margin:1.5})),vi({alignment:Ot.z6.TopRight,alignmentFocus:Ot.z6.BottomRight})),on.current.groupTemplate.contextMenu=Pn("ContextMenu",Fn(),$t(),gn()),on.current.linkTemplate=Pn(Ot.rU,{layerName:"Foreground",routing:Ot.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ot.KX("fromSpot","fromSpot",Ot.z6.parse),new Ot.KX("toSpot","toSpot",Ot.z6.parse),new Ot.KX("fromShortLength","dir",Ht=>Ht>=1?10:0),new Ot.KX("toShortLength","dir",Ht=>Ht>=1?10:0),new Ot.KX("points").makeTwoWay(),Pn(Ot.bn,{strokeWidth:2},new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Pn(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,0),segmentOrientation:Ot.rU.OrientAlong,alignmentFocus:Ot.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Ht=>Ht===1)),Pn(Ot.bn,{segmentIndex:-1,segmentOffset:new Ot.E9(-10,6),segmentOrientation:Ot.rU.OrientPlus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Ht=>Ht>=1),new Ot.KX("width","thickness",Ht=>7+3*Ht),new Ot.KX("height","thickness",Ht=>7+3*Ht),new Ot.KX("segmentOffset","thickness",Ht=>new Ot.E9(-15,4+1.5*Ht))),Pn(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,-6),segmentOrientation:Ot.rU.OrientMinus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Ht=>Ht===2),new Ot.KX("width","thickness",Ht=>7+3*Ht),new Ot.KX("height","thickness",Ht=>7+3*Ht),new Ot.KX("segmentOffset","thickness",Ht=>new Ot.E9(-15,4+1.5*Ht))),Pn(Ot.al,{alignmentFocus:new Ot.z6(0,1,-4,0),editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),on.current.linkTemplate.selectionAdornmentTemplate=Pn(Ot.uz,Pn(Ot.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Gn(2)},new Ot.KX("pathPattern","thickness",Gn)),vi({alignmentFocus:new Ot.z6(0,0,-6,-4)}));function Gn(Ht){return Pn(Ot.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ht+4).toString()+" H3"})}function qn(Ht){var Pi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ht===0?Pi="M0 0 M16 16 M0 8 L16 8":Ht===2&&(Pi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pn(Ot.bn,{geometryString:Pi,margin:2,background:"transparent",mouseEnter:(zi,Ti)=>Ti.background="dodgerblue",mouseLeave:(zi,Ti)=>Ti.background="transparent",click:Oi("dir",Ht),contextClick:Oi("dir",Ht)})}function oi(Ht){var Pi=(zi,Ti)=>{zi.handled=!0,zi.diagram.model.commit(er=>{var cr=Ti.part.adornedPart;er.set(cr.data,Ht?"toSpot":"fromSpot",Ot.z6.stringify(Ot.z6.AllSides)),(Ht?cr.toNode:cr.fromNode).invalidateConnectedLinks()})};return Pn(Ot.bn,{width:12,height:12,fill:"transparent",mouseEnter:(zi,Ti)=>Ti.background="dodgerblue",mouseLeave:(zi,Ti)=>Ti.background="transparent",click:Pi,contextClick:Pi})}function Hn(Ht,Pi){var zi=0,Ti=Ot.z6.RightSide;Ht.equals(Ot.z6.Top)?(zi=270,Ti=Ot.z6.TopSide):Ht.equals(Ot.z6.Left)?(zi=180,Ti=Ot.z6.LeftSide):Ht.equals(Ot.z6.Bottom)&&(zi=90,Ti=Ot.z6.BottomSide),Pi||(zi-=180);var er=(cr,Tr)=>{cr.handled=!0,cr.diagram.model.commit(Qi=>{var Fi=Tr.part.adornedPart;Qi.set(Fi.data,Pi?"toSpot":"fromSpot",Ot.z6.stringify(Ti)),(Pi?Fi.toNode:Fi.fromNode).invalidateConnectedLinks()})};return Pn(Ot.bn,{alignment:Ht,alignmentFocus:Ht.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:zi,background:"transparent",mouseEnter:(cr,Tr)=>Tr.background="dodgerblue",mouseLeave:(cr,Tr)=>Tr.background="transparent",click:er,contextClick:er})}on.current.linkTemplate.contextMenu=Pn("ContextMenu",$t(),gn(),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",qn(0),qn(1),qn(2))),Pn("ContextMenuButton",Pn(Ot.s_,"Horizontal",Pn(Ot.s_,"Spot",oi(!1),Hn(Ot.z6.Top,!1),Hn(Ot.z6.Left,!1),Hn(Ot.z6.Right,!1),Hn(Ot.z6.Bottom,!1)),Pn(Ot.s_,"Spot",{margin:new Ot.Zt(0,0,0,2)},oi(!0),Hn(Ot.z6.Top,!0),Hn(Ot.z6.Left,!0),Hn(Ot.z6.Right,!0),Hn(Ot.z6.Bottom,!0)))));const ui=`{ "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 Ki=["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 Er(Ht){return console.log("shapeName:",Ht),Ki.indexOf(Ht)>=0}var Vi=new Ot.YI(Dn.current,{maxSelectionCount:1,linkTemplate:Pn(Ot.rU,{locationSpot:Ot.z6.Center,selectionAdornmentTemplate:Pn(Ot.uz,"Link",{locationSpot:Ot.z6.Center},Pn(Ot.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pn(Ot.bn,{toArrow:"Standard",stroke:null}))},{routing:Ot.rU.AvoidsNodes,curve:Ot.rU.JumpOver,corner:5,toShortLength:4},new Ot.KX("points"),Pn(Ot.bn,{isPanelMain:!0,strokeWidth:2}),Pn(Ot.bn,{toArrow:"Standard",stroke:null})),model:new Ot.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ot.bn.getFigureGenerators().toArray().map(Ht=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ht.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return on.current.addDiagramListener("TextEdited",function(Ht){var Pi;const zi=Ht.subject.part;var Ti=(Pi=document.activeElement)==null?void 0:Pi.value;typeof Ti=="string"&&Ti.trim()===""&&on.current.model.commit(function(er){er.set(zi.data,"text","\u672A\u547D\u540D"),on.current.commandHandler.stopCommand()},"increment")}),Vi.nodeTemplate=Pn(Ot.NB,"Auto",{locationSpot:Ot.z6.Center},new Ot.KX("location","location",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),Pn(Ot.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 Ot.KX("stroke").makeTwoWay(),new Ot.KX("fill").makeTwoWay(),new Ot.KX("figure")),Pn(Ot.al,{margin:new Ot.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ot.$u(16,16),maxSize:new Ot.$u(10,NaN),textAlign:"center",editable:!0},new Ot.KX("key").makeTwoWay())),setTimeout(()=>{on.current.grid=Pn(Ot.s_,"Grid",Pn(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),on.current.grid.visible=!0,on.current.grid.gridCellStroke="darkgray",on.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=on.current,on.current}const Ci=()=>vt(this,null,function*(){var Pn=on.current.makeImage();const Rt=yield(0,Gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pn.src}});Tn({src:Rt.url})});return(0,de.useEffect)(()=>(setTimeout(()=>{Jn()},500),Ln(Et+1),()=>{on.current=null}),[]),It.createElement("div",{ref:Kt,className:Qn.current?`${jt.maxH60} body-overflow-initial`:"body-overflow-initial"},It.createElement(sn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Et,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:It.createElement(Mn.Z,null,It.createElement(xn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),It.createElement(xn.Z,{onClick:()=>{var Pn,Rt,Yn=on.current.selection.first();if(Qn.current=!Qn.current,document.activeElement&&Yn){let vi=(Rt=(Pn=document.activeElement)==null?void 0:Pn.value)==null?void 0:Rt.trim();typeof vi=="string"&&on.current.model.commit(function(Oi){Oi.set(Yn.data,"text",vi||"\u672A\u547D\u540D"),on.current.commandHandler.stopCommand()},"increment")}Ln(Et+1)}},It.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:En},It.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:jt.flowChartWrp},It.createElement("div",{style:{display:"flex",height:"100%"}},It.createElement("div",{style:{width:"300px",height:"100%"}},It.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),It.createElement("div",{style:{height:"calc(100% - 50px)"},className:jt.myPaletteDiv,ref:Dn})),It.createElement("div",{style:{flex:1,position:"relative"}},It.createElement("div",{ref:At,style:{height:"80vh"}}))),It.createElement("div",{className:"tr"},It.createElement(nt.ZP,{size:"large",onClick:Ci,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Zt=Xt,yt=ae(5112),ft=ae(88897);const _e=yt.ZP.Group,Pe={margin:"0 8px"};var be=({callback:En,onCancel:Tn})=>{function on(At){En(At)}return de.createElement(lt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:on},de.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},de.createElement("span",{style:Pe},"\u5355\u5143\u683C\u6570\uFF1A"),de.createElement("span",{style:Pe},"\u884C\u6570"),de.createElement(lt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},de.createElement(ft.Z,null)),de.createElement("span",{style:Pe},"\u5217\u6570"),de.createElement(lt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},de.createElement(ft.Z,null))),de.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},de.createElement("span",{style:Pe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),de.createElement(lt.default.Item,{name:"align"},de.createElement(_e,null,de.createElement(yt.ZP,{value:"default"},de.createElement("i",{className:"fa fa-align-justify"})),de.createElement(yt.ZP,{value:"left"},de.createElement("i",{className:"fa fa-align-left"})),de.createElement(yt.ZP,{value:"center"},de.createElement("i",{className:"fa fa-align-center"})),de.createElement(yt.ZP,{value:"right"},de.createElement("i",{className:"fa fa-align-right"}))))),de.createElement("div",{className:"flex-container flex-end"},de.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(nt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Ue=ae(78673),Qe=ae(98598),Fe=ae.n(Qe),tn=(0,de.forwardRef)(({use3d:En,width:Tn,height:on,callback:At,showSaveButton:Dn},Qn)=>{const Kt=(0,de.useRef)(),Et=(0,de.useRef)(),[Ln,Jn]=(0,de.useState)(!1),Ci=(0,de.useRef)({id:Kt,appName:"graphing",width:Tn||1e3,height:on||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,de.useEffect)(()=>{Et.current=new(Fe())(Ci.current,!0),window.onload=function(){Et.current.inject("applet_container")}},[]);const Pn=()=>{var Rt=window.ggbApplet.getPNGBase64(1,!0,72);return At&&At(Rt),Rt};return(0,de.useEffect)(()=>{Ci.current.appName=Ln?"3D":"graphing",Et.current.inject("applet_container")},[Ln]),(0,de.useEffect)(()=>{Jn(En)},[En]),(0,de.useImperativeHandle)(Qn,()=>({getImgData:Pn})),de.createElement(de.Fragment,null,de.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Kt}),de.createElement(Mn.Z,{align:"middle"},de.createElement(xn.Z,{flex:1},de.createElement(Ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ln,onChange:Rt=>Jn(Rt)})),de.createElement(xn.Z,null,de.createElement(nt.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yn=ae(75890),bt=ae(8591);const Wt="link",fn="upload-image",zn="add-flowchart",ni="draw-image",di="add-flowchart",wi="code-block",hi="add-table",Li="------------",Yi={default:Li,left:`:${Li}`,center:`:${Li}:`,right:`${Li}:`};var Ji=ae(91300);function Xi(){}let dr=0;const Ir=1e4,Wi="\u2581",Dr="@\u2581\u2581@",_i="@\u2581@",De=`
**\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`,jr=["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 hr(En){return/^\d+$/.test(En)?`${En}px`:En}const Oo=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Do={[Oo+"-B"]:"bold",[Oo+"-I"]:"italic"},Co={[Wt]:"\u6DFB\u52A0\u94FE\u63A5",[wi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[fn]:"\u6DFB\u52A0\u56FE\u7247",[ni]:"\u6DFB\u52A0\u753B\u56FE",[zn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[hi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var so=({defaultValue:En="",onChange:Tn,width:on="100%",height:At=400,miniToolbar:Dn=!1,isFocus:Qn=!1,watch:Kt,insertTemp:Et,mode:Ln="markdown",id:Jn="markdown-editor-id",showResizeBar:Ci=!1,noStorage:Pn=!1,showNullButton:Rt=!1,showNullProgramButton:Yn=!1,hidetoolBar:vi=!1,fullScreen:Oi=!1,onBlur:Yt,onCMBeforeChange:Fn,onFullScreen:$t,className:pn="",disablePaste:An=!1,disabled:gn=!1,disabledFill:In=!1,placeholder:Gn="",values:qn="",extraUse:oi})=>{const[Hn,ui]=(0,de.useState)(null),[Ki,Er]=(0,de.useState)(En),[Vi,Ht]=(0,de.useState)(Kt),[Pi,zi]=(0,de.useState)(Oi),[Ti,er]=(0,de.useState)(""),[cr,Tr]=(0,de.useState)(0),[Qi,Fi]=(0,de.useState)(At),[Rr,ln]=(0,de.useState)(!1),[Ur,bn]=(0,de.useState)(0),[Mr,Ho]=(0,de.useState)(0),Fr=(0,de.useRef)(),vo=(0,de.useRef)(),Ro=(0,de.useRef)(),ir=(0,de.useRef)();(0,de.useEffect)(()=>{const tr=window.scrollY||window.pageYOffset;Er(qn),Hn==null||Hn.setValue(qn),window.scrollTo(0,tr)},[qn]),(0,de.useEffect)(()=>{$t==null||$t(Pi)},[Pi]),(0,de.useEffect)(()=>{if(Fr.current){let tr=function(Pr,ai){var xo;if(An){ai.preventDefault();return}const _o=ai.clipboardData;if(_o){const Wo=_o.types.toString(),ea=_o.items;if(Wo==="Files"||_o.types.indexOf("Files")>-1){if(ai.preventDefault(),Ln=="stex")return;try{let ka=ea[1];((xo=ea[0])==null?void 0:xo.kind)==="file"&&(ka=ea[0]);const Ja=ka.getAsFile(),cs=Ja.name.split(".").pop();(0,zt.I)(Ja,Ts=>{var al,Js,vn;Ts.id?((al=Ja==null?void 0:Ja.type)==null?void 0:al.indexOf("image"))>-1?Zi.replaceSelection(`![,](/api/attachments/${Ts.id}?type=${Ts.content_type})`):((Js=Ja==null?void 0:Ja.type)==null?void 0:Js.indexOf("video"))>-1?Zi.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ts.id}"></video>`):((vn=Ja==null?void 0:Ja.type)==null?void 0:vn.indexOf("pdf"))>-1?Zi.replaceSelection(`<a href="/api/attachments/${Ts.id}?type=${Ja.type}&disposition=inline" target="_blank">${Ja.name}</a>`):jr.includes(cs)?Zi.replaceSelection(`<a href="/api/attachments/${Ts.id}?type=office&disposition=inline" target="_blank">${Ja.name}</a>`):Zi.replaceSelection(`[${Ja.name}](/api/attachments/${Ts.id}?type=${Ts.content_type})`):(Ts==null?void 0:Ts.status)===401&&(document.location.href="/user/login")})}catch(ka){bt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Zi=Ee().fromTextArea(Fr.current,{mode:Ln,lineNumbers:!Dn,lineWrapping:!0,value:En,autoCloseTags:!0,autoCloseBrackets:!0});return Zi.on("keyup",function(Pr,ai){ai.keyCode===8&&(Pr.getValue()==""?Zi.setOption("placeholder",Gn):Zi.setOption("placeholder",null))}),Zi.on("keydown",function(Pr,ai){if(ai.keyCode===8){var xo=Vr(Pr);xo&&ai.preventDefault()}}),Qn&&Zi.focus(),Zi.on("paste",tr),gn&&Zi.on("beforeChange",function(Pr,ai){(ai.origin==="paste"||ai.origin==="+input")&&ai.cancel()}),ui(Zi),()=>{Zi.off("paste",tr)}}},[]);const qi=(0,de.useCallback)(()=>{if(vo.current)try{}catch(tr){console.log(tr,"---- to set md editor body height")}},[Qi,vo,Pi]);(0,de.useEffect)(()=>{function tr(){let Zi=new Re.Z(Pr=>{for(let ai of Pr)(ai.target.offsetHeight>0||ai.target.offsetWidth>0)&&(qi(),Hn.setSize("100%","100%"),Hn.refresh())});return Zi.observe(Fr.current.parentElement),Zi}if(Hn){const Zi=tr();return()=>{var Pr,ai;(Pr=Fr.current)!=null&&Pr.parentElement&&Zi.unobserve((ai=Fr.current)==null?void 0:ai.parentElement)}}},[Hn,qi]),(0,de.useEffect)(()=>{if(Hn){let tr=[];for(const[Zi,Pr]of Object.entries(Do)){let ai={[Zi]:()=>{lo(Pr)}};tr.push(ai),Hn.addKeyMap(ai)}return()=>{for(let Zi of tr)Hn.removeKeyMap(Zi)}}},[Hn]),(0,de.useEffect)(()=>{Oi!==Pi&&zi(Oi)},[Oi]),(0,Ji.Z)(()=>{if(!Pn&&cr>0){let tr=new Date().getTime(),Zi=window.sessionStorage.getItem(Jn);tr>=cr+Ir&&(!Zi||Zi!==Ki)&&(window.sessionStorage.setItem(Jn,Ki),ln(!0))}},Ir),(0,de.useEffect)(()=>{Ht(Kt)},[Hn,Kt]),(0,de.useEffect)(()=>{Hn&&Qn&&Hn.focus()},[Hn,Qn]),(0,de.useEffect)(()=>{if(Vi&&Hn){let tr=function(Pr){let ai=Pr.target;if(ir.current){let xo=ai.scrollTop/ai.scrollHeight;ir.current.scrollTop=ir.current.scrollHeight*xo}};const Zi=Hn.getScrollerElement();return Zi.addEventListener("scroll",tr),()=>{Zi.removeEventListener("scroll",tr)}}},[Hn,Vi]),(0,de.useEffect)(()=>{if(Hn&&Fn){let tr=function(Zi,Pr){Fn(Zi,Pr)};return Hn.on("beforeChange",tr),()=>{Hn.off("beforeChange",tr)}}},[Hn,Fn]),(0,de.useEffect)(()=>{if(Hn&&Yt){let tr=function(){Yt(Hn.getValue())};return Hn.on("blur",tr),()=>{Hn.off("blur",tr)}}},[Hn,Yt]);function Vr(tr,Zi){var Pr=tr.getDoc(),ai=Pr.getCursor(),xo=Pr.getLine(ai.line),_o=xo.charAt(ai.ch-1),Wo=xo.lastIndexOf("@\u2581@",ai.ch),ea=xo.lastIndexOf("@\u2581\u2581@",ai.ch),ka=Wo>ea?Wo:ea,Ja=Wo>ea?3:4;if(Dr.indexOf(_o)===-1)return null;if(console.log("change1:",Zi,tr,xo,ai,ka,Wo,ea,_o),ka>=0&&ai.ch-ka<5){var cs=ka+Ja;return Pr.replaceRange("",{line:ai.line,ch:ka},{line:ai.line,ch:cs}),{line:ai.line,ch:cs}}return null}(0,de.useEffect)(()=>{if(Hn){let tr=function(Zi,Pr){const ai=Zi.getValue();Er(ai),Tr(new Date().getTime()),Zi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tn&&(Yn?Tn(ai,fr(ai)):Tn(ai))};return Hn.on("change",tr),()=>{Hn.off("change",tr)}}},[Hn,Tn]),(0,de.useEffect)(()=>{if(Hn)if(En==null)Hn.setValue(""),Er("");else{const tr=window.scrollY||window.pageYOffset;En!==Hn.getValue()&&(Hn.setValue(En),Er(En),Hn.setCursor(gn?1:Hn.lineCount(),0),window.scrollTo(0,tr))}},[Hn,En]);const lo=(0,de.useCallback)(tr=>{const Zi=Hn.getCursor(),Pr=Hn.getSelection();let ai=Pr.split(`
`);switch(tr){case"bold":return Hn.replaceSelection("**"+Pr+"**"),Pr===""&&Hn.setCursor(Zi.line,Zi.ch+2),Hn.focus();case"italic":return Hn.replaceSelection("*"+Pr+"*"),Pr===""&&Hn.setCursor(Zi.line,Zi.ch+1),Hn.focus();case"code":return Hn.replaceSelection("`"+Pr+"`"),Pr===""&&Hn.setCursor(Zi.line,Zi.ch+1),Hn.focus();case"inline-latex":return er("inline-latex"),Hn.focus();case"latex":return Hn.replaceSelection("```latex\n"+Pr+"\n```"),Hn.setCursor(Zi.line+1,Pr.length+1),Hn.focus();case"line-break":return Hn.replaceSelection(`<br/>
`),Hn.focus();case"list-ul":return Pr===""?Hn.replaceSelection("- "+Pr):Hn.replaceSelection(ai.map(xo=>xo===""?"":`- ${xo}`).join(`
`)),Hn.focus();case"list-ol":return Pr===""?Hn.replaceSelection("1. "+Pr):Hn.replaceSelection(ai.map((xo,_o)=>xo===""?"":`${_o+1}. ${xo}`).join(`
`)),Hn.focus();case"add-null-ch":return Pr===""&&Hn.setCursor(Zi.line,Zi.ch),Hn.replaceSelection(Wi),Hn.focus();case"add-signal":return Pr===""&&Hn.setCursor(Zi.line,Zi.ch),Hn.replaceSelection(_i),Hn.focus();case"add-multiple":return Pr===""&&Hn.setCursor(Zi.line,Zi.ch),Hn.replaceSelection(Dr),Hn.focus();case"inster-template-1":return Pr===""&&Hn.setCursor(Zi.line,Zi.ch),Hn.replaceSelection(De),Hn.focus();case"eraser":return Hn.setValue(""),Hn.focus();case"trigger-watch":return Ht(!Vi),Hn.focus();case"trigger-full-screen":return zi(!Pi),Hn.focus();case Wt:er(Wt);return;case wi:er(wi);return;case fn:er(fn);return;case ni:er(ni);return;case"maths-latex":er("maths-latex");return;case zn:er(zn);return;case hi:er(hi);return;default:throw new Error}},[Hn,Vi,Pi]),ki=(0,de.useCallback)((tr,Zi)=>{var Pr,ai,xo,_o,Wo,ea;switch(er(""),Ti){case Wt:const{title:al,link:Js}=tr;return Hn.replaceSelection(`[${al}](${Js})`),Hn.focus();case wi:const{language:vn,content:Ms}=tr;return Hn.replaceSelection(["```"+vn,Ms,"```"].join(`
`)),Hn.focus();case"maths-latex":for(var ka=atob(tr),Ja=new Uint8Array(ka.length),cs=0;cs<ka.length;cs++)Ja[cs]=ka.charCodeAt(cs);var Ts=new Blob([Ja],{type:"image/png"});(0,zt.I)(Ts,xs=>{xs.id?Hn.replaceSelection(`![,](/api/attachments/${xs.id}?type=${xs.content_type})`):(xs==null?void 0:xs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Hn.replaceSelection("`$$"+tr+"$$`");break;case fn:case ni:case di:const{src:fu,alt:gu}=tr,ho=Zi,ia=(xo=(ai=(Pr=ho==null?void 0:ho.name)==null?void 0:Pr.split("."))==null?void 0:ai.pop)==null?void 0:xo.call(ai);return((_o=ho==null?void 0:ho.type)==null?void 0:_o.indexOf("image"))>-1||!(ho!=null&&ho.type)?gu?Hn.replaceSelection(`![ ${gu} ]( ${fu} "${gu}" )`):Hn.replaceSelection(`![,](${fu})`):((Wo=ho==null?void 0:ho.type)==null?void 0:Wo.indexOf("video"))>-1?Hn.replaceSelection(`<video width="100%" controls src="${fu}"></video>`):((ea=ho==null?void 0:ho.type)==null?void 0:ea.indexOf("pdf"))>-1?Hn.replaceSelection(`<a href="${fu}?type=${ho.type}&disposition=inline" target="_blank">${ho.name}</a>`):jr.includes(ia)?Hn.replaceSelection(`<a href="${fu}?type=office&disposition=inline" target="_blank">${ho.name}</a>`):Hn.replaceSelection(`[${ho.name}](${fu})`),Hn.focus();case hi:const{row:ja,col:Ko,align:ao}=tr;let Jo=`
`;for(let xs=0;xs<ja;xs++){let Kr=[],To=[];for(let bo=0;bo<Ko;bo++)xs===1&&To.push(Yi[ao]),Kr.push(" ");xs===1&&(Jo+=`| ${To.join(" | ")} |
`),Jo+=`| ${Kr.join(Ko===1?"":" | ")} |
`}return Hn.replaceSelection(Jo+`
`),Hn.focus();default:throw new Error}},[Hn,Ti]),ot=(0,de.useMemo)(()=>{switch(Ti){case Wt:return de.createElement(Cn,{callback:ki,onCancel:Gr});case wi:return de.createElement(Zn.Z,{callback:ki,onCancel:Gr});case fn:return de.createElement(zt.Z,{callback:ki,onCancel:Gr});case zn:return de.createElement(Zt,{callback:ki,onCancel:Gr});case hi:return de.createElement(be,{callback:ki,onCancel:Gr});case"maths-latex":return de.createElement(tn,{showSaveButton:!0,callback:ki});case"inline-latex":return de.createElement(yn.Z,{showSaveButton:!0,callback:ki});default:return null}},[Ti]);function Gr(){er("")}(0,de.useEffect)(()=>{if(Ro.current){let tr=function(Wo){xo=!0,_o=Wo.pageY},Zi=function(){xo=!1},Pr=function(Wo){if(xo){let ea=Wo.pageY-_o;ea<0&&(ea=0),ea>300&&(ea=300);let ka=At+ea+"px";Fi(ka)}},ai=Ro.current,xo=!1,_o=0;return ai.addEventListener("mousedown",tr),document.addEventListener("mousemove",Pr),document.addEventListener("mouseup",Zi),()=>{ai.removeEventListener("mousedown",tr),document.removeEventListener("mousemove",Pr),document.removeEventListener("mouseup",Zi)}}},[Hn,Ro]),(0,de.useEffect)(()=>{Fi(At)},[At]);const ta=hr(on),Hr=hr(Qi),Uo={width:ta,height:Hr},kr=(0,de.useMemo)(()=>{if(cr){let tr=new Date(cr),Zi=tr.getHours(),Pr=tr.getMinutes(),ai=tr.getSeconds();return Zi=Zi<10?"0"+Zi:Zi,Pr=Pr<10?"0"+Pr:Pr,ai=ai<10?"0"+ai:ai,`${Zi}:${Pr}:${ai}`}return 0},[cr]),fr=tr=>{const Zi=[];if(Yn){let Pr=-1;tr=tr.replace(/(@▁▁@|@▁@)/g,function(ai,xo,_o){Zi.push({multiLine:ai!==_i})})}return Zi};function no(){window.sessionStorage.removeItem(Jn),ln(!1),Tr(0)}function Po(){ln(!1),Tr(0),Hn.setValue(window.sessionStorage.getItem(Jn))}(0,de.useEffect)(()=>{Co[Ti]&&Ti!==ni&&Ti!==zn&&setTimeout(()=>{const tr=document.getElementsByClassName("markdown-popup-form")[0],Zi=window.innerWidth/2-tr.offsetWidth/2,Pr=window.innerHeight/2-tr.offsetHeight/2;bn(Zi),Ho(Pr)},0)},[Ti]);const Wr=tr=>{tr.preventDefault();const Zi=tr.clientX-Ur,Pr=tr.clientY-Mr;document.body.onmousemove=ai=>{let xo=ai.clientX-Zi,_o=ai.clientY-Pr;const Wo=document.getElementsByClassName("markdown-popup-form")[0],ea=window.innerWidth-Wo.offsetWidth,ka=window.innerHeight-Wo.offsetHeight;xo=Math.max(0,Math.min(xo,ea)),_o=Math.max(0,Math.min(_o,ka)),na(ai.clientX,ai.clientY,Zi,Pr)&&(bn(xo),Ho(_o))},document.body.onmouseup=function(){document.body.onmousemove=null}},na=(tr,Zi,Pr,ai)=>{const xo=document.body.clientHeight,_o=document.body.clientWidth;return tr<20&&Pr>tr||tr>_o-20&&Pr<tr||Zi<20&&ai>Zi||Zi>xo-20&&ai<Zi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return de.createElement(de.Fragment,null,de.createElement("div",{className:"markdown-editor-wrapper",ref:vo},de.createElement("div",{className:`markdown-editor-container ${pn} ${Vi?"on-preview":""} ${Dn?"mini":""} ${Pi?"full-screen":""}`,style:Uo},de.createElement($e,{insertTemp:Et,watch:Vi,fullScreen:Pi,showNullButton:Rt,showNullProgramButton:Yn,onActionCallback:lo,hidetoolBar:vi,extraUse:oi}),de.createElement("div",{className:"markdown-editor-body"},de.createElement("div",{className:"codemirror-container"},de.createElement("textarea",{ref:Fr,placeholder:Gn})),Vi?de.createElement("div",{ref:ir,className:"preview-container"},Ln==="stex"&&de.createElement(ht,{value:Ki}),Ln!=="stex"&&de.createElement(st.Z,{disabledFill:In,showProgramFill:Yn,value:Ki})):null))),Ci?de.createElement("a",{ref:Ro,className:"editor-resize"}):null,Ti===ni&&de.createElement(li,{callback:ki,onCancel:Gr}),Ti===zn&&de.createElement(Zt,{callback:ki,onCancel:Gr}),de.createElement(at.Z,null,Co[Ti]&&Ti!==ni&&Ti!==zn?de.createElement(sn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ur,top:Mr},title:de.createElement("div",{style:{cursor:"move"},onMouseDown:Wr},Co[Ti]),open:!0,onCancel:Gr,footer:null,destroyOnClose:!0,width:Ti===zn?"1200px":null,height:Ti===zn?"80vh":null,className:"markdown-popup-form"},ot):null))}},56701:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Se},I:function(){return Be}});var de=ae(78241),Te=ae(8591),Ee=ae(92832),Re=ae(3113),je=ae(58788),Ze=ae(59301),we=ae(59301),it=Object.defineProperty,Je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,ze=(Ne,Ke,$e)=>Ke in Ne?it(Ne,Ke,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ne[Ke]=$e,ee=(Ne,Ke)=>{for(var $e in Ke||(Ke={}))ht.call(Ke,$e)&&ze(Ne,$e,Ke[$e]);if(st)for(var $e of st(Ke))Lt.call(Ke,$e)&&ze(Ne,$e,Ke[$e]);return Ne},ne=(Ne,Ke)=>Je(Ne,Ye(Ke));const{useForm:fe}=de.default,le={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:Ne,onCancel:Ke})=>{const[$e]=fe();let at=(0,Ze.useRef)();function lt(Ut){Ne(Ut,at.current)}function Tt(Ut,kt){if(Ut.status===-1){Te.ZP.error(Ut.message);return}$e.setFieldsValue({src:`/api/attachments/${Ut.id}`,type:kt.type})}function nt(Ut){let kt=Ut.target.files[0];at.current=kt,Be(kt,Tt)}return we.createElement(de.default,ne(ee({form:$e},me),{className:"upload-image-panel",onFinish:lt,style:{width:470,overflow:"hidden"}}),we.createElement(de.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},we.createElement("div",{className:"flex-container"},we.createElement(de.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},we.createElement(Ee.default,{style:le})),we.createElement(ke,{onFileChange:nt}))),we.createElement(de.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},we.createElement(Ee.default,{style:{width:264}})),we.createElement(de.default.Item,{style:{textAlign:"right"}},we.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),we.createElement(Re.ZP,{type:"default",onClick:Ke},"\u53D6\u6D88")))};function ke({onFileChange:Ne}){return we.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",we.createElement("input",{type:"file",onChange:Ne}))}function Be(Ne,Ke){if(!Ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let $e=new FormData;$e.append("editormd-image-file",Ne),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(lt){Ke(JSON.parse(lt.target.responseText),Ne)},!1),at.addEventListener("error",function(lt){console.error(lt)},!1),at.open("POST",`${je.KI}/api/attachments.json`),at.send($e)}},50474:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Ee}});var de=ae(59301),Te=ae(4676);class Ee extends de.Component{constructor(je){super(je);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Te.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Ge,xe,ae){"use strict";ae.d(xe,{SV:function(){return Xt},ZP:function(){return vt}});var de=ae(59301),Te=ae(76374);const Ee={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"]},Re={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"]},je={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(`
`)}]},Ze={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(`
`)}]},we={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 it=ae(86061),Je=ae.n(it),Ye=Object.defineProperty,st=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Zt,yt,ft)=>yt in Zt?Ye(Zt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Zt[yt]=ft,fe=(Zt,yt)=>{for(var ft in yt||(yt={}))ze.call(yt,ft)&&ne(Zt,ft,yt[ft]);if(Lt)for(var ft of Lt(yt))ee.call(yt,ft)&&ne(Zt,ft,yt[ft]);return Zt},le=(Zt,yt)=>st(Zt,ht(yt)),me=(Zt,yt,ft)=>new Promise((_e,Pe)=>{var be=Fe=>{try{Qe(ft.next(Fe))}catch(gt){Pe(gt)}},Ue=Fe=>{try{Qe(ft.throw(Fe))}catch(gt){Pe(gt)}},Qe=Fe=>Fe.done?_e(Fe.value):Promise.resolve(Fe.value).then(be,Ue);Qe((ft=ft.apply(Zt,yt)).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"]}},ke=(Zt,yt)=>yt.map(ft=>({label:ft,kind:Zt.languages.CompletionItemKind.Keyword,insertText:ft})),Be=Zt=>Object.keys(Se.tables).map(yt=>({label:yt,kind:Zt.languages.CompletionItemKind.Variable,insertText:yt})),Ne=(Zt,yt)=>{const ft=Se.tables[Zt];return ft?ft.map(_e=>({label:_e,kind:yt.languages.CompletionItemKind.Field,insertText:_e})):[]};function Ke(Zt,yt,ft,_e,Pe){let be=yt.getWordUntilPosition(ft),Ue={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:be.startColumn,endColumn:be.endColumn},Qe=_e.map(Fe=>({label:Fe,kind:Zt.languages.CompletionItemKind.Keyword,insertText:Fe,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}));return Pe.map(Fe=>{Qe.push(le(fe({},Fe),{range:Ue}))}),Qe}var $e=Zt=>{Se.languages.map(Pe=>(Zt.languages.registerDocumentFormattingEditProvider(Pe,{provideDocumentFormattingEdits(be,Ue,Qe){return me(this,null,function*(){const Fe=Je()(be.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:be.getFullModelRange(),text:Fe}]})}}),Pe));const yt=je.quickKey.map(Pe=>({label:Pe.label,kind:Zt.languages.CompletionItemKind.Method,insertText:Pe.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ft=Ze.quickKey.map(Pe=>({label:Pe.label,kind:Zt.languages.CompletionItemKind.Method,insertText:Pe.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_e=Re.quickKey.map(Pe=>({label:Pe.label,kind:Zt.languages.CompletionItemKind.Method,insertText:Pe.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Zt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Pe,be){var Ue=Pe.getWordUntilPosition(be),Qe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Fe=Pe.getLineContent(be.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...je.keywords.map(gt=>({label:gt,kind:Zt.languages.CompletionItemKind.Function,documentation:gt,insertText:gt,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...je.quickKey.map(gt=>({label:gt.label,kind:Zt.languages.CompletionItemKind.Function,documentation:gt.content,insertText:Fe.startsWith("#")?gt.content.replace(/#/,""):gt.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Zt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Pe,be){var Ue=Pe.getWordUntilPosition(be),Qe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn};return{suggestions:[...Ee.keywords.map(Fe=>({label:Fe,kind:Zt.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Zt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Pe,be){var Ue=Pe.getWordUntilPosition(be),Qe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Fe=Pe.getLineContent(be.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Re.keywords.map(gt=>({label:gt,kind:Zt.languages.CompletionItemKind.Function,documentation:gt,insertText:gt,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...Re.quickKey.map(gt=>({label:gt.label,kind:Zt.languages.CompletionItemKind.Function,documentation:gt.content,insertText:Fe.startsWith("#")?gt.content.replace(/#/,""):gt.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Zt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Pe,be){var Ue=Pe.getWordUntilPosition(be),Qe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Fe=Pe.getLineContent(be.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...we.keywords.map(gt=>({label:gt,kind:Zt.languages.CompletionItemKind.Function,documentation:gt,insertText:gt,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...we.quickKey.map(gt=>({label:gt.label,kind:Zt.languages.CompletionItemKind.Function,documentation:gt.content,insertText:Fe.startsWith("#")?gt.content.replace(/#/,""):gt.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Zt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Pe,be){var Ue=Pe.getWordUntilPosition(be),Qe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Fe=Pe.getLineContent(be.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Ze.keywords.map(gt=>({label:gt,kind:Zt.languages.CompletionItemKind.Function,documentation:gt,insertText:gt,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...Ze.quickKey.map(gt=>({label:gt.label,kind:Zt.languages.CompletionItemKind.Function,documentation:gt.content,insertText:Fe.startsWith("#")?gt.content.replace(/#/,""):gt.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}})};const at="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var lt=Object.defineProperty,Tt=(Zt,yt,ft)=>yt in Zt?lt(Zt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Zt[yt]=ft,nt=(Zt,yt,ft)=>Tt(Zt,typeof yt!="symbol"?yt+"":yt,ft);const Ut=class r1{constructor(yt,ft,_e){this.placeholder=yt,this.editor=ft,this.monaco=_e,ft.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return r1.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(Ut,"ID","editor.widget.placeholderHint");var dn=Ut,nn=ae(96236),qt=ae(8591),un=ae(6848),mn=ae(89392),Ct=ae(86766),qe=ae(56102),Bt=Object.defineProperty,Cn=Object.defineProperties,Zn=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,fi=(Zt,yt,ft)=>yt in Zt?Bt(Zt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Zt[yt]=ft,Rn=(Zt,yt)=>{for(var ft in yt||(yt={}))sn.call(yt,ft)&&fi(Zt,ft,yt[ft]);if(zt)for(var ft of zt(yt))Mn.call(yt,ft)&&fi(Zt,ft,yt[ft]);return Zt},li=(Zt,yt)=>Cn(Zt,Zn(yt)),Ot=(Zt,yt)=>{var ft={};for(var _e in Zt)sn.call(Zt,_e)&&yt.indexOf(_e)<0&&(ft[_e]=Zt[_e]);if(Zt!=null&&zt)for(var _e of zt(Zt))yt.indexOf(_e)<0&&Mn.call(Zt,_e)&&(ft[_e]=Zt[_e]);return ft},kn=(Zt,yt,ft)=>new Promise((_e,Pe)=>{var be=Fe=>{try{Qe(ft.next(Fe))}catch(gt){Pe(gt)}},Ue=Fe=>{try{Qe(ft.throw(Fe))}catch(gt){Pe(gt)}},Qe=Fe=>Fe.done?_e(Fe.value):Promise.resolve(Fe.value).then(be,Ue);Qe((ft=ft.apply(Zt,yt)).next())});function $n(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}function xi(){}let xn=!1;const Gt={"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 jt(Zt=[]){let yt=Zt;if(Array.isArray(Zt)){for(let ft=0;ft<Zt.length;ft++){let _e=Gt[Zt[ft]];if(_e)return _e}return yt[0]}return Gt[yt]||yt}let It=null;var vt=Zt=>{var yt=Zt,{width:ft="100%",height:_e="100%",value:Pe,language:be="javascript",style:Ue={},options:Qe={},overrideServices:Fe={},theme:gt="vs-dark",onEditBlur:tn,isCopy:yn=!1,onSave:bt,autoHeight:Wt=!1,forbidCopy:fn=!1,onChange:zn=xi,editorDidMount:ni=xi,onFocus:di=xi,onBreakPoint:wi=xi,breakPointValue:hi=[],filename:Li="educoder.txt",errorLine:Yi,errorContent:Ji="",highlightLine:Xi,openBreakPoint:dr=!1,placeholder:Ir=""}=yt,Wi=Ot(yt,["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 Dr=(0,de.useRef)(),_i=(0,de.useRef)({}),De=(0,de.useRef)(),jr=(0,de.useRef)(),hr=(0,de.useRef)([]),oo=(0,de.useRef)(!1),Oo=(0,de.useRef)(),Do=(0,de.useRef)(),Co=(0,de.useRef)(!1),[so,En]=(0,de.useState)(!1);function Tn(){let Yt;return Dr.current&&(Yt=new Te.Z(Fn=>{for(let $t of Fn)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&_i.current.instance.layout()}),Yt.observe(Dr.current)),Yt}function on(){qt.ZP.warning({content:decodeURIComponent(at),key:"monaco-editor-tip"})}const At=()=>{let Yt=_i.current.instance;if(Pe!=null&&Yt&&so){const Fn=Yt.getModel();Fn&&Pe!==Fn.getValue()&&(xn=!0,Fn.setValue(Pe),Yt.layout(),xn=!1)}};(0,de.useEffect)(()=>{const Yt=Ct.Z.subscribe("formatDocument",Fn=>{var $t;let pn=_i.current.instance;($t=pn==null?void 0:pn.getAction)==null||$t.call(pn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Fn=>{zn(Fn)},Yt},[]),(0,de.useEffect)(()=>{var Yt;let Fn=_i.current.instance;jr.current&&clearTimeout(jr.current),jr.current=setTimeout(()=>{At()},500),Pe&&(Pe!=null&&Pe.length)&&((Yt=Fn==null?void 0:Fn.updateOptions)==null||Yt.call(Fn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pe,so,_i.current]),(0,de.useEffect)(()=>{if(Yi&&_i.current&&_i.current.instance){let Fn=_i.current.instance;Fn.changeViewZones(function($t){var pn=document.createElement("div");pn.style.padding="10px 20px",pn.style.width="calc(100% - 20px)",pn.className="my-error-line-wrp",pn.innerHTML=Ji,$t.addZone({afterLineNumber:Yi||11,heightInLines:3,domNode:pn})});var Yt={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}};Fn.addOverlayWidget(Yt),Fn.revealPositionInCenter({lineNumber:20,column:1})}},[Yi,_i.current,so]);const Dn=(Yt="",Fn)=>{if(!Yt||Yt.trim()==="")return!0;const pn=_i.current.instance.getModel().getLineTokens(Fn);let An=!1;for(let gn=0;gn<2;gn++)pn.getStandardTokenType(gn)===1&&(An=!0);return An};(0,de.useEffect)(()=>{var Yt;const Fn=(Yt=_i.current)==null?void 0:Yt.instance;if(Fn&&so&&fn){const $t=Fn.onDidBlurEditorWidget(()=>{Co.current=!1}),pn=Fn.onDidFocusEditorText(()=>{Co.current=!0});return()=>{$t.dispose(),pn.dispose()}}},[_i.current,so,fn]),(0,de.useEffect)(()=>{var Yt;if((Yt=_i.current)!=null&&Yt.instance&&so&&dr){let Fn=_i.current.instance,$t=Fn.getModel();if(!$t)return;(()=>{var Vi;let Ht=[],Pi=[];const zi=$t.getAllDecorations();for(let er of zi)er.options.className==="highlighted-line"&&(Ht.push((Vi=er==null?void 0:er.range)==null?void 0:Vi.startLineNumber),Pi.push(er==null?void 0:er.id));if(Xi===Ht[0])return;$t.deltaDecorations(Pi,[]);const Ti=$t.getLineCount();Xi&&Xi<=Ti&&(Fn.deltaDecorations([],[{range:new It.Range(Xi,1,Xi,$t.getLineMaxColumn(Xi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Fn.revealLineInCenter(Xi))})();const An=(Vi=!1)=>{var Ht;let Pi=[],zi=[];const Ti=$t.getAllDecorations();for(let er of Ti)er.options.linesDecorationsClassName==="breakpoints-select"&&(Pi.push((Ht=er==null?void 0:er.range)==null?void 0:Ht.startLineNumber),zi.push(er==null?void 0:er.id));if(Vi)return{lines:Pi,ids:zi};wi(Pi)},gn=Vi=>kn(void 0,null,function*(){let Ht={range:new It.Range(Vi,1,Vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $t.deltaDecorations([],[Ht]),An()}),In=Vi=>kn(void 0,null,function*(){let Ht=[];const Pi=Fn.getLineDecorations(Vi);for(let zi of Pi)zi.options.linesDecorationsClassName==="breakpoints-select"&&Ht.push(zi.id);yield $t.deltaDecorations(Ht,[]),An()}),Gn=Vi=>{let Ht=Fn.getLineDecorations(Vi);for(let Pi of Ht)if(Pi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,mn.isEqual)(hi,An(!0).lines)){$t.deltaDecorations(An(!0).ids,[]);const Vi=hi.map(Ht=>({range:new It.Range(Ht,1,Ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$t.deltaDecorations([],Vi)}const qn=Fn.onDidChangeModelContent(Vi=>{let Ht=Fn.getPosition();if(Ht){let Pi=Ht.lineNumber;clearTimeout(Do.current),Do.current=setTimeout(()=>{Dn($t.getLineContent(Pi),Pi)?In(Pi):Gn(Pi)?(In(Pi),gn(Pi)):An()},100)}}),oi=Fn.onMouseDown(Vi=>{var Ht,Pi,zi;if(Vi.target.detail&&((zi=(Pi=(Ht=Vi.target)==null?void 0:Ht.element)==null?void 0:Pi.className)!=null&&zi.includes("line-numbers"))){let Ti=Vi.target.position.lineNumber;if(Dn($t.getLineContent(Ti),Ti))return;Gn(Ti)?In(Ti):gn(Ti)}}),Hn=Vi=>{let Ht={range:new It.Range(Vi,1,Vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};hr.current=Fn.deltaDecorations(hr.current,[Ht])},ui=()=>{hr.current=Fn.deltaDecorations(hr.current,[])},Ki=Fn.onMouseMove(Vi=>{var Ht,Pi,zi;if(ui(),Vi.target.detail&&((zi=(Pi=(Ht=Vi.target)==null?void 0:Ht.element)==null?void 0:Pi.className)!=null&&zi.includes("line-numbers"))){let Ti=Vi.target.position.lineNumber;if(Dn($t.getLineContent(Ti),Ti))return;Hn(Ti)}}),Er=Fn.onMouseLeave(()=>{ui()});return()=>{qn.dispose(),oi.dispose(),Ki.dispose(),Er.dispose()}}},[_i.current,so,hi,Xi,dr,be]),(0,de.useEffect)(()=>{var Yt;(Yt=_i.current)!=null&&Yt.instance&&dr&&_i.current.instance.setPosition({lineNumber:0,column:0})},[Xi]);function Qn(){let Yt=_i.current.instance;if(Yt){const Fn=Yt.getSelection(),$t=_i.current.pastePos||{},pn=new It.Range($t.startLineNumber||Fn.endLineNumber,$t.startColumn||Fn.endColumn,$t.endLineNumber||Fn.endLineNumber,$t.endColumn||Fn.endColumn);setTimeout(()=>{Yt.executeEdits("",[{range:pn,text:""}])},300)}}function Kt(Yt){(window.navigator.platform.match("Mac")?Yt.metaKey:Yt.ctrlKey)&&Yt.keyCode==83&&(Yt.preventDefault(),bt())}const Et=()=>{if(Wt&&_i.current.instance){const Yt=_i.current.instance.getContentHeight();vi(Yt<_e?_e:Yt)}else vi(_e)};function Ln(Yt){var Fn=document.createEvent("MouseEvents");Fn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Yt.dispatchEvent(Fn)}const Jn=Yt=>{if(!Co.current)return;const{keyCode:Fn,ctrlKey:$t,metaKey:pn,target:An,type:gn}=Yt;return(gn==="paste"||(Fn===67||Fn===86)&&(pn||$t))&&An.nodeName==="TEXTAREA"&&(on(),Yt.preventDefault()),!1};function Ci(Yt,Fn){var $t=window.URL||window.webkitURL||window,pn=new Blob([Fn]),An=document.createElementNS("http://www.w3.org/1999/xhtml","a");An.href=$t.createObjectURL(pn),An.download=Yt,Ln(An)}(0,de.useEffect)(()=>{Et()},[Et]),(0,de.useEffect)(()=>{Dr.current&&!so&&Promise.all([ae.e(8909),ae.e(1810)]).then(ae.bind(ae,71448)).then(Yt=>{try{It=Yt,_i.current.instance=It.editor.create(Dr.current,{value:Pe,language:jt(be),theme:gt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Fe);const Fn=_i.current.instance;let An=[...nn.BH._menuItems].find(qn=>qn[0]._debugName=="EditorContext")[1],gn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],In=(qn,oi)=>{var Hn,ui;let Ki=qn._first;do oi.includes((ui=(Hn=Ki.element)==null?void 0:Hn.command)==null?void 0:ui.id)&&qn._remove(Ki);while(Ki=Ki.next)};if(ni(Fn,It),setTimeout(()=>{Et(),_i.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ci(Li||"educoder.txt",Fn.getValue())}})},500),_i.current.subscription=Fn.onDidChangeModelContent(qn=>{oo.current?clearTimeout(Oo.current):(Et(),zn(Fn.getValue(),qn)),Oo.current=setTimeout(()=>{oo.current=!1},500)}),window.Monaco||$e(It,jt(be)),fn&&(In(An,gn),Dr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Jn),window.removeEventListener("paste",Jn),window.addEventListener("keydown",Jn),window.addEventListener("paste",Jn)),window.Monaco=It,tn&&Fn.onDidBlurEditorWidget(()=>{tn(Fn.getValue())}),di&&Fn.onDidFocusEditorText(()=>{di(Fn.getValue())}),fn)try{Fn.onDidPaste(qn=>{const oi=Fn.getSelection(),Hn=_i.current.pastePos||{},ui=new It.Range(Hn.startLineNumber||oi.endLineNumber,Hn.startColumn||oi.endColumn,Hn.endLineNumber||oi.endLineNumber,Hn.endColumn||oi.endColumn);Fn.executeEdits("",[{range:qn.range,text:""}])})}catch(qn){}let Gn=Tn();return Ir&&typeof Ir=="string"&&new dn(Ir,Fn,It),En(!0),()=>{const qn=_i.current.instance;qn.dispose();const oi=qn.getModel();oi&&oi.dispose(),_i.current.subscription&&_i.current.subscription.dispose(),Gn.unobserve(Dr.current)}}catch(Fn){}})},[]),(0,de.useEffect)(()=>{if(_i.current.instance&&so)return document.addEventListener("keydown",Kt,!1),()=>{document.removeEventListener("keydown",Kt)}},[bt,so]),(0,de.useEffect)(()=>{let Yt=_i.current.instance;if(Yt&&so){let Fn=jt(be);It.editor.setModelLanguage(Yt.getModel(),Fn)}},[be,so]),(0,de.useEffect)(()=>{_i.current.instance&&so&&It.editor.setTheme(gt)},[gt,so]),(0,de.useEffect)(()=>{let Yt=_i.current.instance;De.current=Qe,Yt&&so&&(Yt.updateOptions(Rn({},Qe)),setTimeout(()=>{Yt.getModel().updateOptions(Rn({},Qe))},200))},[JSON.stringify(Qe),so]),(0,de.useEffect)(()=>{let Yt=_i.current.instance;Yt&&so&&Yt.layout()},[ft,_e,so]);const[Pn,Rt]=(0,de.useState)($n(ft)),[Yn,vi]=(0,de.useState)($n(_e)),Oi=li(Rn({},Ue),{width:Pn,height:Yn,position:"relative"});return de.createElement("div",{className:"my-monaco-editor",ref:Dr,style:Oi},yn&&de.createElement(qe.CopyToClipboard,{text:Pe,onCopy:()=>qt.ZP.success("\u590D\u5236\u6210\u529F")},de.createElement(un.Z,{title:"\u590D\u5236\u4EE3\u7801"},de.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},de.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Xt({width:Zt="100%",height:yt="100%",original:ft,modified:_e,language:Pe,options:be={}}){const Ue=(0,de.useRef)(),[Qe,Fe]=(0,de.useState)(null);function gt(Wt){let fn;return Ue.current&&(fn=new Te.Z(zn=>{for(let ni of zn)(ni.target.offsetHeight>0||ni.target.offsetWidth>0)&&Wt.layout()}),fn.observe(Ue.current)),fn}(0,de.useEffect)(()=>(Ue.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(Wt=>{It=Wt;const fn=It.editor.createDiffEditor(Ue.current,li(Rn({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},be),{wordWrap:!0}));Fe(fn);let zn=gt(fn);return()=>{fn.dispose();const ni=fn.getModel();ni&&ni.dispose(),zn.unobserve(Ue.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,de.useEffect)(()=>{Qe&&Qe.setModel({original:It.editor.createModel(ft,Pe),modified:It.editor.createModel(_e,Pe)})},[ft,_e,Pe,Qe]);const tn=$n(Zt),yn=$n(yt),bt={width:tn,height:yn};return de.createElement("div",{className:"my-diff-editor",ref:Ue,style:bt})}},91300:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Te}});var de=ae(59301);function Te(Ee,Re){const je=(0,de.useRef)();(0,de.useEffect)(()=>{je.current=Ee}),(0,de.useEffect)(()=>{function Ze(){je.current()}if(Re!==null){let we=setInterval(Ze,Re);return()=>clearInterval(we)}},[Re])}},15084:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return je}});var de=ae(59301),Te=ae(71418),Ee={loading:"loading___lueiN"},je=({loading:Ze})=>Ze?de.createElement("div",{className:Ee.loading},de.createElement(Te.Z,null)):de.createElement(de.Fragment,null)},86342:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(43418),Ee=ae(2595),Re=ae(70635),je=ae(97267),Ze=ae(61186),we=ae.n(Ze),it=ae(23469),Je=Object.defineProperty,Ye=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Lt=(fe,le,me)=>le in fe?Je(fe,le,{enumerable:!0,configurable:!0,writable:!0,value:me}):fe[le]=me,ze=(fe,le)=>{for(var me in le||(le={}))st.call(le,me)&&Lt(fe,me,le[me]);if(Ye)for(var me of Ye(le))ht.call(le,me)&&Lt(fe,me,le[me]);return fe},ee=(fe,le,me)=>new Promise((Se,ke)=>{var Be=$e=>{try{Ke(me.next($e))}catch(at){ke(at)}},Ne=$e=>{try{Ke(me.throw($e))}catch(at){ke(at)}},Ke=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Be,Ne);Ke((me=me.apply(fe,le)).next())});const ne=({visible:fe,identifier:le,challenge_id:me,onCancle:Se,onOK:ke})=>{const[Be,Ne]=(0,de.useState)(0),[Ke,$e]=(0,de.useState)([]),[at,lt]=(0,de.useState)(!1),[Tt,nt]=(0,de.useState)({page:1,limit:10}),Ut=()=>ee(void 0,null,function*(){var kt,dn;lt(!0);const nn=yield(0,Re.ZP)(`/api/shixuns/${le}/challenges/${me}/task_pass_histories.json`,{method:"get",params:ze({},Tt)});(nn==null?void 0:nn.status)===0&&(Ne((kt=nn==null?void 0:nn.data)==null?void 0:kt.size),$e(((dn=nn==null?void 0:nn.data)==null?void 0:dn.list)||[])),lt(!1)});return(0,de.useEffect)(()=>{fe&&Ut()},[fe]),de.createElement(Te.default,{centered:!0,destroyOnClose:!0,open:fe,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{Tt.page=1,Tt.limit=10,nt(ze({},Tt)),Se()}},de.createElement(Ee.default,{scroll:{y:47*10},loading:at,dataSource:Ke,locale:{emptyText:de.createElement(je.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(kt,dn,nn)=>we()(kt).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:kt=>kt},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(kt,dn,nn){return de.createElement("div",null,de.createElement("a",{onClick:()=>{Te.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:de.createElement("div",{className:"mb10"},de.createElement(it.Z,{key:me||"3",watch:!0,defaultValue:dn==null?void 0:dn.task_pass})),footer:null})}},"\u67E5\u770B"),de.createElement("a",{onClick:()=>ee(this,null,function*(){Te.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:de.createElement("div",null,de.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",we()(dn==null?void 0:dn.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),de.createElement("div",null,"\u7248\u672C\u5207\u6362\u4F1A\u5C06\u5F53\u524D\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5B8C\u5168\u8986\u76D6\uFF0C\u5EFA\u8BAE\u5C06\u6700\u65B0\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u4FDD\u5B58\u540E\uFF0C\u518D\u8FDB\u884C\u5207\u6362\u3002")),okText:"\u786E\u8BA4\u5207\u6362",cancelText:"\u53D6\u6D88",onOk:()=>ee(this,null,function*(){yield ke(dn==null?void 0:dn.task_pass),Se()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:kt=>{Tt.page=kt==null?void 0:kt.current,Tt.limit=kt==null?void 0:kt.pageSize,Ut(),nt(ze({},Tt))},pagination:{pageSize:Tt.limit,total:Be,current:Tt.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:kt=>de.createElement("span",{className:"mr10"},"\u5171",de.createElement("span",{className:"c-orange"},kt),"\u6761\u6570\u636E")}}))};xe.Z=ne},54517:function(Ge,xe,ae){"use strict";ae.d(xe,{S:function(){return Ze},m:function(){return we}});var de=ae(58130),Te=ae(8591),Ee=ae(43418),Re=ae(59301),je=(it,Je,Ye)=>new Promise((st,ht)=>{var Lt=ne=>{try{ee(Ye.next(ne))}catch(fe){ht(fe)}},ze=ne=>{try{ee(Ye.throw(ne))}catch(fe){ht(fe)}},ee=ne=>ne.done?st(ne.value):Promise.resolve(ne.value).then(Lt,ze);ee((Ye=Ye.apply(it,Je)).next())});const Ze=it=>{let Je=document.createElement("textarea");return Je.value=it,Je.value},we=(it,Je,Ye,st,ht)=>je(void 0,null,function*(){var Lt,ze;const ee=yield it({type:"shixunsDetail/saveCopyForExercise",payload:{id:Ye,save_type:st}});st===1?((ee==null?void 0:ee.status)==0&&Te.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Lt=ee==null?void 0:ee.data)!=null&&Lt.exists_same_shixun_name?it({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(ze=ee==null?void 0:ee.data)==null?void 0:ze.shixun_name}}):it({type:"classroomList/setActionTabs",payload:{}})):(it({type:"classroomList/setActionTabs",payload:{}}),(ee==null?void 0:ee.status)===0&&Ee.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Re.createElement("div",null,Re.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var ne,fe;(0,de.xg)(`/shixuns/${(fe=(ne=Je==null?void 0:Je.detail)==null?void 0:ne.fork_from)==null?void 0:fe.fork_identifier}/challenges`)}}))})},31087:function(Ge,xe,ae){"use strict";ae.d(xe,{AL:function(){return ke},Iy:function(){return st},Qv:function(){return ze},ez:function(){return Se},jb:function(){return ht}});var de=ae(32834),Te=ae.n(de),Ee=ae(11690),Re=ae.n(Ee);let je=1;function Ze(at,lt){const Tt=at.match(/^(\s+)(?:```)/);if(Tt===null)return lt;const nt=Tt[1];return lt.split(`
`).map(Ut=>{const kt=Ut.match(/^\s+/);if(kt===null)return Ut;const[dn]=kt;return dn.length>=nt.length?Ut.slice(nt.length):Ut}).join(`
`)}let we=[],it=["<ul>"];const Je=new(Te()).Renderer,Ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function st(){we.length=0,it=["<ul>"]}const ht={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Lt(at,lt,Tt,nt){if(lt>=at.length||at[lt].level<=Tt)return lt;var Ut=at[lt];nt.push("<li><a href='#"+je+Ut.anchor+"'>"+Ut.text+"</a>"),lt++;var kt=[];return lt=Lt(at,lt,Ut.level,kt),kt.length>0&&(nt.push("<ul>"),kt.forEach(function(dn){nt.push(dn)}),nt.push("</ul>")),nt.push("</li>"),lt=Lt(at,lt,Tt,nt),lt}function ze(){return Lt(we,0,0,it),it.push("</ul>"),it.join("")}const ee={heading(at){const lt=Ye.exec(at);if(je+=1,lt)return{type:"heading",raw:lt[0],depth:lt[1].length,text:lt[2]}},fences(at){const lt=this.rules.block.fences.exec(at);if(lt){const Tt=lt[0];let nt=Ze(Tt,lt[3]||"");const Ut=lt[2]?lt[2].trim():lt[2];if(["latex","katex","math"].indexOf(Ut)>=0){const kt=le(),dn=nt;nt=kt,me[kt]={type:"block",expression:dn}}return{type:"code",raw:Tt,lang:Ut,text:nt}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let fe=0;const le=()=>`__special_katext_id_${fe++}__`;let me={};function Se(){return me}function ke(){fe=0,me={}}function Be(at){return at=at.replace(ne,(lt,Tt)=>{const nt=le();return me[nt]={type:"inline",expression:Tt},nt}),at}const Ne=Je.listitem;Je.listitem=function(at){return Ne(Be(at))};const Ke=Je.paragraph;Je.paragraph=function(at){return Ke(Be(at))};const $e=Je.tablecell;Je.tablecell=function(at,lt){return $e(Be(at),lt)},Je.code=function(at,lt,Tt){const nt=(lt||"").match(/\S*/)[0];return nt?["latex","katex","math"].indexOf(nt)>=0?`<p class='editormd-tex'>${at}</p>`:`<pre class="prettyprint linenums"><code class="language-${lt}">${Tt?at:(0,Ee.escape)(at,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Tt?at:(0,Ee.escape)(at,!0))+"</code></pre>"},Je.heading=function(at,lt,Tt){let nt=this.options.headerPrefix+Tt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return we.push({anchor:nt,level:lt,text:at}),"<h"+lt+' id="'+je+nt+'">'+at+"</h"+lt+">"},Te().setOptions({silent:!0,gfm:!0,pedantic:!1}),Te().use({tokenizer:ee,renderer:Je}),xe.ZP=Te()},50371:function(Ge,xe){"use strict";function ae(){const de=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Te=1;Te<arguments.length;Te++){const Ee=Te<0||arguments.length<=Te?void 0:arguments[Te];Ee&&Object.keys(Ee).forEach(Re=>{const je=Ee[Re];je!==void 0&&(de[Re]=je)})}return de}xe.Z=ae},13845:function(Ge,xe,ae){"use strict";ae.d(xe,{F:function(){return de},Z:function(){return Te}});function de(Ee){return Ee!=null&&Ee===Ee.window}function Te(Ee,Re){var je,Ze;if(typeof window=="undefined")return 0;const we=Re?"scrollTop":"scrollLeft";let it=0;return de(Ee)?it=Ee[Re?"pageYOffset":"pageXOffset"]:Ee instanceof Document?it=Ee.documentElement[we]:(Ee instanceof HTMLElement||Ee)&&(it=Ee[we]),Ee&&!de(Ee)&&typeof it!="number"&&(it=(Ze=((je=Ee.ownerDocument)!==null&&je!==void 0?je:Ee).documentElement)===null||Ze===void 0?void 0:Ze[we]),it}},56762:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Te}});var de=ae(59301);function Te(){const[,Ee]=de.useReducer(Re=>Re+1,0);return Ee}},68031:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Re}});var de=ae(23073);function Te(je,Ze,we,it){const Je=we-Ze;return je/=it/2,je<1?Je/2*je*je*je+Ze:Je/2*((je-=2)*je*je+2)+Ze}var Ee=ae(13845);function Re(je){let Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:we=()=>window,callback:it,duration:Je=450}=Ze,Ye=we(),st=(0,Ee.Z)(Ye,!0),ht=Date.now(),Lt=()=>{const ee=Date.now()-ht,ne=Te(ee>Je?Je:ee,st,je,Je);(0,Ee.F)(Ye)?Ye.scrollTo(window.pageXOffset,ne):Ye instanceof Document||Ye.constructor.name==="HTMLDocument"?Ye.documentElement.scrollTop=ne:Ye.scrollTop=ne,ee<Je?(0,de.Z)(Lt):typeof it=="function"&&it()};(0,de.Z)(Lt)}},24905:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return Ke}});var de=ae(92310),Te=ae.n(de),Ee=ae(5630),Re=ae(59301),je=ae(36355),Ze=ae(1684),we=ae(32441),Je=Re.createContext(null),Ye=ae(98447),st=ae(14088),ht=ae(4572),Lt=function($e,at){var lt={};for(var Tt in $e)Object.prototype.hasOwnProperty.call($e,Tt)&&at.indexOf(Tt)<0&&(lt[Tt]=$e[Tt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Tt=Object.getOwnPropertySymbols($e);nt<Tt.length;nt++)at.indexOf(Tt[nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Tt[nt])&&(lt[Tt[nt]]=$e[Tt[nt]]);return lt};const ze=($e,at)=>{var lt;const{prefixCls:Tt,className:nt,rootClassName:Ut,children:kt,indeterminate:dn=!1,style:nn,onMouseEnter:qt,onMouseLeave:un,skipGroup:mn=!1,disabled:Ct}=$e,qe=Lt($e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Bt,direction:Cn,checkbox:Zn}=Re.useContext(je.E_),zt=Re.useContext(Je),{isFormItemInput:sn}=Re.useContext(we.aM),Mn=Re.useContext(Ze.Z),fi=(lt=(zt==null?void 0:zt.disabled)||Ct)!==null&&lt!==void 0?lt:Mn,Rn=Re.useRef(qe.value);Re.useEffect(()=>{zt==null||zt.registerValue(qe.value)},[]),Re.useEffect(()=>{if(!mn)return qe.value!==Rn.current&&(zt==null||zt.cancelValue(Rn.current),zt==null||zt.registerValue(qe.value),Rn.current=qe.value),()=>zt==null?void 0:zt.cancelValue(qe.value)},[qe.value]);const li=Bt("checkbox",Tt),[Ot,kn]=(0,Ye.ZP)(li),$n=Object.assign({},qe);zt&&!mn&&($n.onChange=function(){qe.onChange&&qe.onChange.apply(qe,arguments),zt.toggleOption&&zt.toggleOption({label:kt,value:qe.value})},$n.name=zt.name,$n.checked=zt.value.includes(qe.value));const xi=Te()(`${li}-wrapper`,{[`${li}-rtl`]:Cn==="rtl",[`${li}-wrapper-checked`]:$n.checked,[`${li}-wrapper-disabled`]:fi,[`${li}-wrapper-in-form-item`]:sn},Zn==null?void 0:Zn.className,nt,Ut,kn),xn=Te()({[`${li}-indeterminate`]:dn},ht.A,kn),Gt=dn?"mixed":void 0;return Ot(Re.createElement(st.Z,{component:"Checkbox",disabled:fi},Re.createElement("label",{className:xi,style:Object.assign(Object.assign({},Zn==null?void 0:Zn.style),nn),onMouseEnter:qt,onMouseLeave:un},Re.createElement(Ee.Z,Object.assign({"aria-checked":Gt},$n,{prefixCls:li,className:xn,disabled:fi,ref:at})),kt!==void 0&&Re.createElement("span",null,kt))))};var ne=Re.forwardRef(ze),fe=ae(26390),le=ae(64002),me=function($e,at){var lt={};for(var Tt in $e)Object.prototype.hasOwnProperty.call($e,Tt)&&at.indexOf(Tt)<0&&(lt[Tt]=$e[Tt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Tt=Object.getOwnPropertySymbols($e);nt<Tt.length;nt++)at.indexOf(Tt[nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Tt[nt])&&(lt[Tt[nt]]=$e[Tt[nt]]);return lt};const Se=($e,at)=>{const{defaultValue:lt,children:Tt,options:nt=[],prefixCls:Ut,className:kt,rootClassName:dn,style:nn,onChange:qt}=$e,un=me($e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:mn,direction:Ct}=Re.useContext(je.E_),[qe,Bt]=Re.useState(un.value||lt||[]),[Cn,Zn]=Re.useState([]);Re.useEffect(()=>{"value"in un&&Bt(un.value||[])},[un.value]);const zt=Re.useMemo(()=>nt.map(jt=>typeof jt=="string"||typeof jt=="number"?{label:jt,value:jt}:jt),[nt]),sn=jt=>{Zn(It=>It.filter(vt=>vt!==jt))},Mn=jt=>{Zn(It=>[].concat((0,fe.Z)(It),[jt]))},fi=jt=>{const It=qe.indexOf(jt.value),vt=(0,fe.Z)(qe);It===-1?vt.push(jt.value):vt.splice(It,1),"value"in un||Bt(vt),qt==null||qt(vt.filter(Xt=>Cn.includes(Xt)).sort((Xt,Zt)=>{const yt=zt.findIndex(_e=>_e.value===Xt),ft=zt.findIndex(_e=>_e.value===Zt);return yt-ft}))},Rn=mn("checkbox",Ut),li=`${Rn}-group`,[Ot,kn]=(0,Ye.ZP)(Rn),$n=(0,le.Z)(un,["value","disabled"]),xi=nt.length?zt.map(jt=>Re.createElement(ne,{prefixCls:Rn,key:jt.value.toString(),disabled:"disabled"in jt?jt.disabled:un.disabled,value:jt.value,checked:qe.includes(jt.value),onChange:jt.onChange,className:`${li}-item`,style:jt.style,title:jt.title},jt.label)):Tt,xn={toggleOption:fi,value:qe,disabled:un.disabled,name:un.name,registerValue:Mn,cancelValue:sn},Gt=Te()(li,{[`${li}-rtl`]:Ct==="rtl"},kt,dn,kn);return Ot(Re.createElement("div",Object.assign({className:Gt,style:nn},$n,{ref:at}),Re.createElement(Je.Provider,{value:xn},xi)))},ke=Re.forwardRef(Se);var Be=Re.memo(ke);const Ne=ne;Ne.Group=Be,Ne.__ANT_CHECKBOX=!0;var Ke=Ne},98447:function(Ge,xe,ae){"use strict";ae.d(xe,{C2:function(){return je}});var de=ae(17313),Te=ae(37613),Ee=ae(83116);const Re=Ze=>{const{checkboxCls:we}=Ze,it=`${we}-wrapper`;return[{[`${we}-group`]:Object.assign(Object.assign({},(0,de.Wf)(Ze)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ze.marginXS,[`> ${Ze.antCls}-row`]:{flex:1}}),[it]:Object.assign(Object.assign({},(0,de.Wf)(Ze)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${it}`]:{marginInlineStart:0},[`&${it}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[we]:Object.assign(Object.assign({},(0,de.Wf)(Ze)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ze.borderRadiusSM,alignSelf:"center",[`${we}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${we}-inner`]:Object.assign({},(0,de.oN)(Ze))},[`${we}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ze.checkboxSize,height:Ze.checkboxSize,direction:"ltr",backgroundColor:Ze.colorBgContainer,border:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`,borderRadius:Ze.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ze.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ze.checkboxSize/14*5,height:Ze.checkboxSize/14*8,border:`${Ze.lineWidthBold}px solid ${Ze.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ze.motionDurationFast} ${Ze.motionEaseInBack}, opacity ${Ze.motionDurationFast}`}},"& + span":{paddingInlineStart:Ze.paddingXS,paddingInlineEnd:Ze.paddingXS}})},{[`
${it}:not(${it}-disabled),
${we}:not(${we}-disabled)
`]:{[`&:hover ${we}-inner`]:{borderColor:Ze.colorPrimary}},[`${it}:not(${it}-disabled)`]:{[`&:hover ${we}-checked:not(${we}-disabled) ${we}-inner`]:{backgroundColor:Ze.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${we}-checked:not(${we}-disabled):after`]:{borderColor:Ze.colorPrimaryHover}}},{[`${we}-checked`]:{[`${we}-inner`]:{backgroundColor:Ze.colorPrimary,borderColor:Ze.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ze.motionDurationMid} ${Ze.motionEaseOutBack} ${Ze.motionDurationFast}`}}},[`
${it}-checked:not(${it}-disabled),
${we}-checked:not(${we}-disabled)
`]:{[`&:hover ${we}-inner`]:{backgroundColor:Ze.colorPrimaryHover,borderColor:"transparent"}}},{[we]:{"&-indeterminate":{[`${we}-inner`]:{backgroundColor:Ze.colorBgContainer,borderColor:Ze.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ze.fontSizeLG/2,height:Ze.fontSizeLG/2,backgroundColor:Ze.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${it}-disabled`]:{cursor:"not-allowed"},[`${we}-disabled`]:{[`&, ${we}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${we}-inner`]:{background:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,"&:after":{borderColor:Ze.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ze.colorTextDisabled},[`&${we}-indeterminate ${we}-inner::after`]:{background:Ze.colorTextDisabled}}}]};function je(Ze,we){const it=(0,Te.TS)(we,{checkboxCls:`.${Ze}`,checkboxSize:we.controlInteractiveSize});return[Re(it)]}xe.ZP=(0,Ee.Z)("Checkbox",(Ze,we)=>{let{prefixCls:it}=we;return[je(it,Ze)]})},93891:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(36355),Ee=ae(64165);const Re=je=>{const{componentName:Ze}=je,{getPrefixCls:we}=(0,de.useContext)(Te.E_),it=we("empty");switch(Ze){case"Table":case"List":return de.createElement(Ee.Z,{image:Ee.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Ee.Z,{image:Ee.Z.PRESENTED_IMAGE_SIMPLE,className:`${it}-small`});default:return de.createElement(Ee.Z,null)}};xe.Z=Re},43428:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Ot}});var de=ae(92310),Te=ae.n(de),Ee=ae(57259),Re=ae(29043),je=ae(43403),Ze=ae(28800),we=ae(59301),it=we.createContext(null),Je=we.createContext({}),Ye=it,st=ae(80962),ht=ae(5891),Lt=ae(43469),ze=ae(85108),ee=ae(36994),ne=ae(80764),fe=function($n){var xi=$n.prefixCls,xn=$n.className,Gt=$n.style,jt=$n.children,It=$n.containerRef,vt=$n.id,Xt=$n.onMouseEnter,Zt=$n.onMouseOver,yt=$n.onMouseLeave,ft=$n.onClick,_e=$n.onKeyDown,Pe=$n.onKeyUp,be={onMouseEnter:Xt,onMouseOver:Zt,onMouseLeave:yt,onClick:ft,onKeyDown:_e,onKeyUp:Pe},Ue=we.useContext(Je),Qe=Ue.panel,Fe=(0,ne.useComposeRef)(Qe,It);return we.createElement(we.Fragment,null,we.createElement("div",(0,ht.Z)({id:vt,className:Te()("".concat(xi,"-content"),xn),style:(0,Ee.Z)({},Gt),"aria-modal":"true",role:"dialog",ref:Fe},be),jt))},le=fe,me=ae(51395);function Se(kn){return typeof kn=="string"&&String(Number(kn))===kn?((0,me.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(kn)):kn}function ke(kn){warning(!("wrapperClassName"in kn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!kn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Be={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ne(kn,$n){var xi,xn,Gt,jt,It=kn.prefixCls,vt=kn.open,Xt=kn.placement,Zt=kn.inline,yt=kn.push,ft=kn.forceRender,_e=kn.autoFocus,Pe=kn.keyboard,be=kn.rootClassName,Ue=kn.rootStyle,Qe=kn.zIndex,Fe=kn.className,gt=kn.id,tn=kn.style,yn=kn.motion,bt=kn.width,Wt=kn.height,fn=kn.children,zn=kn.contentWrapperStyle,ni=kn.mask,di=kn.maskClosable,wi=kn.maskMotion,hi=kn.maskClassName,Li=kn.maskStyle,Yi=kn.afterOpenChange,Ji=kn.onClose,Xi=kn.onMouseEnter,dr=kn.onMouseOver,Ir=kn.onMouseLeave,Wi=kn.onClick,Dr=kn.onKeyDown,_i=kn.onKeyUp,De=we.useRef(),jr=we.useRef(),hr=we.useRef();we.useImperativeHandle($n,function(){return De.current});var oo=function(Pn){var Rt=Pn.keyCode,Yn=Pn.shiftKey;switch(Rt){case ze.Z.TAB:{if(Rt===ze.Z.TAB){if(!Yn&&document.activeElement===hr.current){var vi;(vi=jr.current)===null||vi===void 0||vi.focus({preventScroll:!0})}else if(Yn&&document.activeElement===jr.current){var Oi;(Oi=hr.current)===null||Oi===void 0||Oi.focus({preventScroll:!0})}}break}case ze.Z.ESC:{Ji&&Pe&&(Pn.stopPropagation(),Ji(Pn));break}}};we.useEffect(function(){if(vt&&_e){var Ci;(Ci=De.current)===null||Ci===void 0||Ci.focus({preventScroll:!0})}},[vt]);var Oo=we.useState(!1),Do=(0,Re.Z)(Oo,2),Co=Do[0],so=Do[1],En=we.useContext(Ye),Tn;yt===!1?Tn={distance:0}:yt===!0?Tn={}:Tn=yt||{};var on=(xi=(xn=(Gt=Tn)===null||Gt===void 0?void 0:Gt.distance)!==null&&xn!==void 0?xn:En==null?void 0:En.pushDistance)!==null&&xi!==void 0?xi:180,At=we.useMemo(function(){return{pushDistance:on,push:function(){so(!0)},pull:function(){so(!1)}}},[on]);we.useEffect(function(){if(vt){var Ci;En==null||(Ci=En.push)===null||Ci===void 0||Ci.call(En)}else{var Pn;En==null||(Pn=En.pull)===null||Pn===void 0||Pn.call(En)}},[vt]),we.useEffect(function(){return function(){var Ci;En==null||(Ci=En.pull)===null||Ci===void 0||Ci.call(En)}},[]);var Dn=ni&&we.createElement(Lt.default,(0,ht.Z)({key:"mask"},wi,{visible:vt}),function(Ci,Pn){var Rt=Ci.className,Yn=Ci.style;return we.createElement("div",{className:Te()("".concat(It,"-mask"),Rt,hi),style:(0,Ee.Z)((0,Ee.Z)({},Yn),Li),onClick:di&&vt?Ji:void 0,ref:Pn})}),Qn=typeof yn=="function"?yn(Xt):yn,Kt={};if(Co&&on)switch(Xt){case"top":Kt.transform="translateY(".concat(on,"px)");break;case"bottom":Kt.transform="translateY(".concat(-on,"px)");break;case"left":Kt.transform="translateX(".concat(on,"px)");break;default:Kt.transform="translateX(".concat(-on,"px)");break}Xt==="left"||Xt==="right"?Kt.width=Se(bt):Kt.height=Se(Wt);var Et={onMouseEnter:Xi,onMouseOver:dr,onMouseLeave:Ir,onClick:Wi,onKeyDown:Dr,onKeyUp:_i},Ln=we.createElement(Lt.default,(0,ht.Z)({key:"panel"},Qn,{visible:vt,forceRender:ft,onVisibleChanged:function(Pn){Yi==null||Yi(Pn)},removeOnLeave:!1,leavedClassName:"".concat(It,"-content-wrapper-hidden")}),function(Ci,Pn){var Rt=Ci.className,Yn=Ci.style;return we.createElement("div",(0,ht.Z)({className:Te()("".concat(It,"-content-wrapper"),Rt),style:(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Kt),Yn),zn)},(0,ee.Z)(kn,{data:!0})),we.createElement(le,(0,ht.Z)({id:gt,containerRef:Pn,prefixCls:It,className:Fe,style:tn},Et),fn))}),Jn=(0,Ee.Z)({},Ue);return Qe&&(Jn.zIndex=Qe),we.createElement(Ye.Provider,{value:At},we.createElement("div",{className:Te()(It,"".concat(It,"-").concat(Xt),be,(jt={},(0,st.Z)(jt,"".concat(It,"-open"),vt),(0,st.Z)(jt,"".concat(It,"-inline"),Zt),jt)),style:Jn,tabIndex:-1,ref:De,onKeyDown:oo},Dn,we.createElement("div",{tabIndex:0,ref:jr,style:Be,"aria-hidden":"true","data-sentinel":"start"}),Ln,we.createElement("div",{tabIndex:0,ref:hr,style:Be,"aria-hidden":"true","data-sentinel":"end"})))}var Ke=we.forwardRef(Ne),$e=Ke,at=function($n){var xi=$n.open,xn=xi===void 0?!1:xi,Gt=$n.prefixCls,jt=Gt===void 0?"rc-drawer":Gt,It=$n.placement,vt=It===void 0?"right":It,Xt=$n.autoFocus,Zt=Xt===void 0?!0:Xt,yt=$n.keyboard,ft=yt===void 0?!0:yt,_e=$n.width,Pe=_e===void 0?378:_e,be=$n.mask,Ue=be===void 0?!0:be,Qe=$n.maskClosable,Fe=Qe===void 0?!0:Qe,gt=$n.getContainer,tn=$n.forceRender,yn=$n.afterOpenChange,bt=$n.destroyOnClose,Wt=$n.onMouseEnter,fn=$n.onMouseOver,zn=$n.onMouseLeave,ni=$n.onClick,di=$n.onKeyDown,wi=$n.onKeyUp,hi=$n.panelRef,Li=we.useState(!1),Yi=(0,Re.Z)(Li,2),Ji=Yi[0],Xi=Yi[1],dr=we.useState(!1),Ir=(0,Re.Z)(dr,2),Wi=Ir[0],Dr=Ir[1];(0,Ze.Z)(function(){Dr(!0)},[]);var _i=Wi?xn:!1,De=we.useRef(),jr=we.useRef();(0,Ze.Z)(function(){_i&&(jr.current=document.activeElement)},[_i]);var hr=function(so){var En;if(Xi(so),yn==null||yn(so),!so&&jr.current&&!((En=De.current)!==null&&En!==void 0&&En.contains(jr.current))){var Tn;(Tn=jr.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}},oo=we.useMemo(function(){return{panel:hi}},[hi]);if(!tn&&!Ji&&!_i&&bt)return null;var Oo={onMouseEnter:Wt,onMouseOver:fn,onMouseLeave:zn,onClick:ni,onKeyDown:di,onKeyUp:wi},Do=(0,Ee.Z)((0,Ee.Z)({},$n),{},{open:_i,prefixCls:jt,placement:vt,autoFocus:Zt,keyboard:ft,width:Pe,mask:Ue,maskClosable:Fe,inline:gt===!1,afterOpenChange:hr,ref:De},Oo);return we.createElement(Je.Provider,{value:oo},we.createElement(je.Z,{open:_i||tn||Ji,autoDestroy:!1,getContainer:gt,autoLock:Ue&&(_i||Ji)},we.createElement($e,Do)))},lt=at,Tt=lt,nt=ae(62892),Ut=ae(36355),kt=ae(32441),dn=ae(47729),qt=kn=>{const{prefixCls:$n,title:xi,footer:xn,extra:Gt,closeIcon:jt,closable:It,onClose:vt,headerStyle:Xt,drawerStyle:Zt,bodyStyle:yt,footerStyle:ft,children:_e}=kn,Pe=we.useCallback(gt=>we.createElement("button",{type:"button",onClick:vt,"aria-label":"Close",className:`${$n}-close`},gt),[vt]),[be,Ue]=(0,dn.Z)(It,jt,Pe,void 0,!0),Qe=we.useMemo(()=>!xi&&!be?null:we.createElement("div",{style:Xt,className:Te()(`${$n}-header`,{[`${$n}-header-close-only`]:be&&!xi&&!Gt})},we.createElement("div",{className:`${$n}-header-title`},Ue,xi&&we.createElement("div",{className:`${$n}-title`},xi)),Gt&&we.createElement("div",{className:`${$n}-extra`},Gt)),[be,Ue,Gt,Xt,$n,xi]),Fe=we.useMemo(()=>{if(!xn)return null;const gt=`${$n}-footer`;return we.createElement("div",{className:gt,style:ft},xn)},[xn,ft,$n]);return we.createElement("div",{className:`${$n}-wrapper-body`,style:Zt},Qe,we.createElement("div",{className:`${$n}-body`,style:yt},_e),Fe)},un=ae(33234),mn=ae(83116),Ct=ae(37613),Bt=kn=>{const{componentCls:$n,motionDurationSlow:xi}=kn,xn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xi}`}}};return{[$n]:{[`${$n}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xi}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${$n}-panel-motion`]:{"&-left":[xn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[xn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[xn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[xn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Cn=kn=>{const{componentCls:$n,zIndexPopup:xi,colorBgMask:xn,colorBgElevated:Gt,motionDurationSlow:jt,motionDurationMid:It,padding:vt,paddingLG:Xt,fontSizeLG:Zt,lineHeightLG:yt,lineWidth:ft,lineType:_e,colorSplit:Pe,marginSM:be,colorIcon:Ue,colorIconHover:Qe,colorText:Fe,fontWeightStrong:gt,footerPaddingBlock:tn,footerPaddingInline:yn}=kn,bt=`${$n}-content-wrapper`;return{[$n]:{position:"fixed",inset:0,zIndex:xi,pointerEvents:"none","&-pure":{position:"relative",background:Gt,[`&${$n}-left`]:{boxShadow:kn.boxShadowDrawerLeft},[`&${$n}-right`]:{boxShadow:kn.boxShadowDrawerRight},[`&${$n}-top`]:{boxShadow:kn.boxShadowDrawerUp},[`&${$n}-bottom`]:{boxShadow:kn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${$n}-mask`]:{position:"absolute",inset:0,zIndex:xi,background:xn,pointerEvents:"auto"},[bt]:{position:"absolute",zIndex:xi,maxWidth:"100vw",transition:`all ${jt}`,"&-hidden":{display:"none"}},[`&-left > ${bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:kn.boxShadowDrawerLeft},[`&-right > ${bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:kn.boxShadowDrawerRight},[`&-top > ${bt}`]:{top:0,insetInline:0,boxShadow:kn.boxShadowDrawerUp},[`&-bottom > ${bt}`]:{bottom:0,insetInline:0,boxShadow:kn.boxShadowDrawerDown},[`${$n}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Gt,pointerEvents:"auto"},[`${$n}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${$n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${vt}px ${Xt}px`,fontSize:Zt,lineHeight:yt,borderBottom:`${ft}px ${_e} ${Pe}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${$n}-extra`]:{flex:"none"},[`${$n}-close`]:{display:"inline-block",marginInlineEnd:be,color:Ue,fontWeight:gt,fontSize:Zt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${It}`,textRendering:"auto","&:focus, &:hover":{color:Qe,textDecoration:"none"}},[`${$n}-title`]:{flex:1,margin:0,color:Fe,fontWeight:kn.fontWeightStrong,fontSize:Zt,lineHeight:yt},[`${$n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Xt,overflow:"auto"},[`${$n}-footer`]:{flexShrink:0,padding:`${tn}px ${yn}px`,borderTop:`${ft}px ${_e} ${Pe}`},"&-rtl":{direction:"rtl"}}}};var Zn=(0,mn.Z)("Drawer",kn=>{const $n=(0,Ct.TS)(kn,{});return[Cn($n),Bt($n)]},kn=>({zIndexPopup:kn.zIndexPopupBase,footerPaddingBlock:kn.paddingXS,footerPaddingInline:kn.padding})),zt=ae(11575),sn=function(kn,$n){var xi={};for(var xn in kn)Object.prototype.hasOwnProperty.call(kn,xn)&&$n.indexOf(xn)<0&&(xi[xn]=kn[xn]);if(kn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,xn=Object.getOwnPropertySymbols(kn);Gt<xn.length;Gt++)$n.indexOf(xn[Gt])<0&&Object.prototype.propertyIsEnumerable.call(kn,xn[Gt])&&(xi[xn[Gt]]=kn[xn[Gt]]);return xi};const Mn=null,fi={distance:180},Rn=kn=>{var $n;const{rootClassName:xi,width:xn,height:Gt,size:jt="default",mask:It=!0,push:vt=fi,open:Xt,afterOpenChange:Zt,onClose:yt,prefixCls:ft,getContainer:_e,style:Pe,className:be,visible:Ue,afterVisibleChange:Qe}=kn,Fe=sn(kn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:gt,getPrefixCls:tn,direction:yn,drawer:bt}=we.useContext(Ut.E_),Wt=tn("drawer",ft),[fn,zn]=Zn(Wt),ni=_e===void 0&&gt?()=>gt(document.body):_e,di=Te()({"no-mask":!It,[`${Wt}-rtl`]:yn==="rtl"},xi,zn),wi=we.useMemo(()=>xn!=null?xn:jt==="large"?736:378,[xn,jt]),hi=we.useMemo(()=>Gt!=null?Gt:jt==="large"?736:378,[Gt,jt]),Li={motionName:(0,nt.m)(Wt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Yi=Xi=>({motionName:(0,nt.m)(Wt,`panel-motion-${Xi}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ji=(0,zt.H)();return fn(we.createElement(un.BR,null,we.createElement(kt.Ux,{status:!0,override:!0},we.createElement(Tt,Object.assign({prefixCls:Wt,onClose:yt,maskMotion:Li,motion:Yi},Fe,{open:Xt!=null?Xt:Ue,mask:It,push:vt,width:wi,height:hi,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Pe),className:Te()(bt==null?void 0:bt.className,be),rootClassName:di,getContainer:ni,afterOpenChange:Zt!=null?Zt:Qe,panelRef:Ji}),we.createElement(qt,Object.assign({prefixCls:Wt},Fe,{onClose:yt}))))))},li=kn=>{const{prefixCls:$n,style:xi,className:xn,placement:Gt="right"}=kn,jt=sn(kn,["prefixCls","style","className","placement"]),{getPrefixCls:It}=we.useContext(Ut.E_),vt=It("drawer",$n),[Xt,Zt]=Zn(vt),yt=Te()(vt,`${vt}-pure`,`${vt}-${Gt}`,Zt,xn);return Xt(we.createElement("div",{className:yt,style:xi},we.createElement(qt,Object.assign({prefixCls:vt},jt))))};Rn._InternalPanelDoNotUseOrYouWillBeFired=li;var Ot=Rn},91857:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(53878),Ee=ae(92310),Re=ae.n(Ee),je=ae(31561),Ze=ae(80764),we=ae(35788),it=ae(64002),Je=ae(79676),Ye=ae(53487),st=ae(92343),ht=ae(36355),Lt=ae(20834),ze=ae(40875),ee=ae(88088),ne=ae(47211);const fe=null,le=Be=>{const{menu:Ne,arrow:Ke,prefixCls:$e,children:at,trigger:lt,disabled:Tt,dropdownRender:nt,getPopupContainer:Ut,overlayClassName:kt,rootClassName:dn,open:nn,onOpenChange:qt,visible:un,onVisibleChange:mn,mouseEnterDelay:Ct=.15,mouseLeaveDelay:qe=.1,autoAdjustOverflow:Bt=!0,placement:Cn="",overlay:Zn,transitionName:zt}=Be,{getPopupContainer:sn,getPrefixCls:Mn,direction:fi}=de.useContext(ht.E_),Rn=de.useMemo(()=>{const be=Mn();return zt!==void 0?zt:Cn.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[Mn,Cn,zt]),li=de.useMemo(()=>Cn?Cn.includes("Center")?Cn.slice(0,Cn.indexOf("Center")):Cn:fi==="rtl"?"bottomRight":"bottomLeft",[Cn,fi]),Ot=Mn("dropdown",$e),[kn,$n]=(0,ne.Z)(Ot),[,xi]=(0,ee.Z)(),xn=de.Children.only(at),Gt=(0,st.Tm)(xn,{className:Re()(`${Ot}-trigger`,{[`${Ot}-rtl`]:fi==="rtl"},xn.props.className),disabled:Tt}),jt=Tt?[]:lt;let It;jt&&jt.includes("contextMenu")&&(It=!0);const[vt,Xt]=(0,we.Z)(!1,{value:nn!=null?nn:un}),Zt=(0,Ze.useEvent)(be=>{qt==null||qt(be),mn==null||mn(be),Xt(be)}),yt=Re()(kt,dn,$n,{[`${Ot}-rtl`]:fi==="rtl"}),ft=(0,Je.Z)({arrowPointAtCenter:typeof Ke=="object"&&Ke.pointAtCenter,autoAdjustOverflow:Bt,offset:xi.marginXXS,arrowWidth:Ke?xi.sizePopupArrow:0,borderRadius:xi.borderRadius}),_e=de.useCallback(()=>{Xt(!1)},[]),Pe=()=>{let be;return Ne!=null&&Ne.items?be=de.createElement(Lt.default,Object.assign({},Ne)):typeof Zn=="function"?be=Zn():be=Zn,nt&&(be=nt(be)),be=de.Children.only(typeof be=="string"?de.createElement("span",null,be):be),de.createElement(ze.J,{prefixCls:`${Ot}-menu`,expandIcon:de.createElement("span",{className:`${Ot}-menu-submenu-arrow`},de.createElement(Te.Z,{className:`${Ot}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_e,validator:Ue=>{let{mode:Qe}=Ue}},be)};return kn(de.createElement(je.Z,Object.assign({alignPoint:It},(0,it.Z)(Be,["rootClassName"]),{mouseEnterDelay:Ct,mouseLeaveDelay:qe,visible:vt,builtinPlacements:ft,arrow:!!Ke,overlayClassName:yt,prefixCls:Ot,getPopupContainer:Ut||sn,transitionName:Rn,trigger:jt,overlay:Pe,placement:li,onVisibleChange:Zt}),Gt))};function me(Be){return Object.assign(Object.assign({},Be),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Se=(0,Ye.Z)(le,"dropdown",Be=>Be,me),ke=Be=>de.createElement(Se,Object.assign({},Be),de.createElement("span",null));le._InternalPanelDoNotUseOrYouWillBeFired=ke,xe.Z=le},38854:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return ee}});var de=ae(91857),Te=ae(92310),Ee=ae.n(Te),Re=ae(59301),je=ae(19362),Ze=ae(3113),we=ae(36355),it=ae(81327),Je=ae(33234),Ye=ae(47211),st=function(ne,fe){var le={};for(var me in ne)Object.prototype.hasOwnProperty.call(ne,me)&&fe.indexOf(me)<0&&(le[me]=ne[me]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,me=Object.getOwnPropertySymbols(ne);Se<me.length;Se++)fe.indexOf(me[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,me[Se])&&(le[me[Se]]=ne[me[Se]]);return le};const ht=ne=>{const{getPopupContainer:fe,getPrefixCls:le,direction:me}=Re.useContext(we.E_),{prefixCls:Se,type:ke="default",danger:Be,disabled:Ne,loading:Ke,onClick:$e,htmlType:at,children:lt,className:Tt,menu:nt,arrow:Ut,autoFocus:kt,overlay:dn,trigger:nn,align:qt,open:un,onOpenChange:mn,placement:Ct,getPopupContainer:qe,href:Bt,icon:Cn=Re.createElement(je.Z,null),title:Zn,buttonsRender:zt=Pe=>Pe,mouseEnterDelay:sn,mouseLeaveDelay:Mn,overlayClassName:fi,overlayStyle:Rn,destroyPopupOnHide:li,dropdownRender:Ot}=ne,kn=st(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"]),$n=le("dropdown",Se),xi=`${$n}-button`,[xn,Gt]=(0,Ye.Z)($n),jt={menu:nt,arrow:Ut,autoFocus:kt,align:qt,disabled:Ne,trigger:Ne?[]:nn,onOpenChange:mn,getPopupContainer:qe||fe,mouseEnterDelay:sn,mouseLeaveDelay:Mn,overlayClassName:fi,overlayStyle:Rn,destroyPopupOnHide:li,dropdownRender:Ot},{compactSize:It,compactItemClassnames:vt}=(0,Je.ri)($n,me),Xt=Ee()(xi,vt,Tt,Gt);"overlay"in ne&&(jt.overlay=dn),"open"in ne&&(jt.open=un),"placement"in ne?jt.placement=Ct:jt.placement=me==="rtl"?"bottomLeft":"bottomRight";const Zt=Re.createElement(Ze.ZP,{type:ke,danger:Be,disabled:Ne,loading:Ke,onClick:$e,htmlType:at,href:Bt,title:Zn},lt),yt=Re.createElement(Ze.ZP,{type:ke,danger:Be,icon:Cn}),[ft,_e]=zt([Zt,yt]);return xn(Re.createElement(it.Z.Compact,Object.assign({className:Xt,size:It,block:!0},kn),ft,Re.createElement(de.Z,Object.assign({},jt),_e)))};ht.__ANT_BUTTON=!0;var Lt=ht;const ze=de.Z;ze.Button=Lt;var ee=ze},47211:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return st}});var de=ae(17313),Te=ae(13826),Ee=ae(92899),Re=ae(29878),je=ae(19447),Ze=ae(83116),we=ae(37613),Je=ht=>{const{componentCls:Lt,menuCls:ze,colorError:ee,colorTextLightSolid:ne}=ht,fe=`${ze}-item`;return{[`${Lt}, ${Lt}-menu-submenu`]:{[`${ze} ${fe}`]:{[`&${fe}-danger:not(${fe}-disabled)`]:{color:ee,"&:hover":{color:ne,backgroundColor:ee}}}}}};const Ye=ht=>{const{componentCls:Lt,menuCls:ze,zIndexPopup:ee,dropdownArrowDistance:ne,sizePopupArrow:fe,antCls:le,iconCls:me,motionDurationMid:Se,dropdownPaddingVertical:ke,fontSize:Be,dropdownEdgeChildPadding:Ne,colorTextDisabled:Ke,fontSizeIcon:$e,controlPaddingHorizontal:at,colorBgElevated:lt}=ht;return[{[Lt]:Object.assign(Object.assign({},(0,de.Wf)(ht)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ee,display:"block","&::before":{position:"absolute",insetBlock:-ne+fe/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${le}-btn`]:{[`& > ${me}-down, & > ${le}-btn-icon > ${me}-down`]:{fontSize:$e}},[`${Lt}-wrap`]:{position:"relative",[`${le}-btn > ${me}-down`]:{fontSize:$e},[`${me}-down::before`]:{transition:`transform ${Se}`}},[`${Lt}-wrap-open`]:{[`${me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${le}-slide-down-enter${le}-slide-down-enter-active${Lt}-placement-bottomLeft,
&${le}-slide-down-appear${le}-slide-down-appear-active${Lt}-placement-bottomLeft,
&${le}-slide-down-enter${le}-slide-down-enter-active${Lt}-placement-bottom,
&${le}-slide-down-appear${le}-slide-down-appear-active${Lt}-placement-bottom,
&${le}-slide-down-enter${le}-slide-down-enter-active${Lt}-placement-bottomRight,
&${le}-slide-down-appear${le}-slide-down-appear-active${Lt}-placement-bottomRight`]:{animationName:Te.fJ},[`&${le}-slide-up-enter${le}-slide-up-enter-active${Lt}-placement-topLeft,
&${le}-slide-up-appear${le}-slide-up-appear-active${Lt}-placement-topLeft,
&${le}-slide-up-enter${le}-slide-up-enter-active${Lt}-placement-top,
&${le}-slide-up-appear${le}-slide-up-appear-active${Lt}-placement-top,
&${le}-slide-up-enter${le}-slide-up-enter-active${Lt}-placement-topRight,
&${le}-slide-up-appear${le}-slide-up-appear-active${Lt}-placement-topRight`]:{animationName:Te.Qt},[`&${le}-slide-down-leave${le}-slide-down-leave-active${Lt}-placement-bottomLeft,
&${le}-slide-down-leave${le}-slide-down-leave-active${Lt}-placement-bottom,
&${le}-slide-down-leave${le}-slide-down-leave-active${Lt}-placement-bottomRight`]:{animationName:Te.Uw},[`&${le}-slide-up-leave${le}-slide-up-leave-active${Lt}-placement-topLeft,
&${le}-slide-up-leave${le}-slide-up-leave-active${Lt}-placement-top,
&${le}-slide-up-leave${le}-slide-up-leave-active${Lt}-placement-topRight`]:{animationName:Te.ly}})},(0,je.ZP)(ht,{colorBg:lt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Lt} ${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}},[`${Lt}, ${Lt}-menu-submenu`]:{[ze]:Object.assign(Object.assign({padding:Ne,listStyleType:"none",backgroundColor:lt,backgroundClip:"padding-box",borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary},(0,de.Qy)(ht)),{[`${ze}-item-group-title`]:{padding:`${ke}px ${at}px`,color:ht.colorTextDescription,transition:`all ${Se}`},[`${ze}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ze}-item-icon`]:{minWidth:Be,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:`${ke}px ${at}px`,color:ht.colorText,fontWeight:"normal",fontSize:Be,lineHeight:ht.lineHeight,cursor:"pointer",transition:`all ${Se}`,borderRadius:ht.borderRadiusSM,"&:hover, &-active":{backgroundColor:ht.controlItemBgHover}},(0,de.Qy)(ht)),{"&-selected":{color:ht.colorPrimary,backgroundColor:ht.controlItemBgActive,"&:hover, &-active":{backgroundColor:ht.controlItemBgActiveHover}},"&-disabled":{color:Ke,cursor:"not-allowed","&:hover":{color:Ke,backgroundColor:lt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ht.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ht.colorSplit},[`${Lt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ht.paddingXS,[`${Lt}-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:at+ht.fontSizeSM},[`${ze}-submenu-vertical`]:{position:"relative"},[`${ze}-submenu${ze}-submenu-disabled ${Lt}-menu-submenu-title`]:{[`&, ${Lt}-menu-submenu-arrow-icon`]:{color:Ke,backgroundColor:lt,cursor:"not-allowed"}},[`${ze}-submenu-selected ${Lt}-menu-submenu-title`]:{color:ht.colorPrimary}})}},[(0,Te.oN)(ht,"slide-up"),(0,Te.oN)(ht,"slide-down"),(0,Ee.Fm)(ht,"move-up"),(0,Ee.Fm)(ht,"move-down"),(0,Re._y)(ht,"zoom-big")]]};var st=(0,Ze.Z)("Dropdown",(ht,Lt)=>{let{rootPrefixCls:ze}=Lt;const{marginXXS:ee,sizePopupArrow:ne,controlHeight:fe,fontSize:le,lineHeight:me,paddingXXS:Se,componentCls:ke,borderRadiusLG:Be}=ht,Ne=(fe-le*me)/2,{dropdownArrowOffset:Ke}=(0,je.fS)({contentRadius:Be}),$e=(0,we.TS)(ht,{menuCls:`${ke}-menu`,rootPrefixCls:ze,dropdownArrowDistance:ne/2+ee,dropdownArrowOffset:Ke,dropdownPaddingVertical:Ne,dropdownEdgeChildPadding:Se});return[Ye($e),Je($e)]},ht=>({zIndexPopup:ht.zIndexPopupBase+50}))},64165:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Se}});var de=ae(92310),Te=ae.n(de),Ee=ae(59301),Re=ae(36355),je=ae(9763),Ze=ae(64993),we=ae(88088),Je=()=>{const[,ke]=(0,we.Z)(),Ne=new Ze.C(ke.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ee.createElement("svg",{style:Ne,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ee.createElement("g",{fill:"none",fillRule:"evenodd"},Ee.createElement("g",{transform:"translate(24 31.67)"},Ee.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ee.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"}),Ee.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)"}),Ee.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"}),Ee.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"})),Ee.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"}),Ee.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ee.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ee.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},st=()=>{const[,ke]=(0,we.Z)(),{colorFill:Be,colorFillTertiary:Ne,colorFillQuaternary:Ke,colorBgContainer:$e}=ke,{borderColor:at,shadowColor:lt,contentColor:Tt}=(0,Ee.useMemo)(()=>({borderColor:new Ze.C(Be).onBackground($e).toHexShortString(),shadowColor:new Ze.C(Ne).onBackground($e).toHexShortString(),contentColor:new Ze.C(Ke).onBackground($e).toHexShortString()}),[Be,Ne,Ke,$e]);return Ee.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ee.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ee.createElement("ellipse",{fill:lt,cx:"32",cy:"33",rx:"32",ry:"7"}),Ee.createElement("g",{fillRule:"nonzero",stroke:at},Ee.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"}),Ee.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:Tt}))))},ht=ae(83116),Lt=ae(37613);const ze=ke=>{const{componentCls:Be,margin:Ne,marginXS:Ke,marginXL:$e,fontSize:at,lineHeight:lt}=ke;return{[Be]:{marginInline:Ke,fontSize:at,lineHeight:lt,textAlign:"center",[`${Be}-image`]:{height:ke.emptyImgHeight,marginBottom:Ke,opacity:ke.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Be}-description`]:{color:ke.colorText},[`${Be}-footer`]:{marginTop:Ne},"&-normal":{marginBlock:$e,color:ke.colorTextDisabled,[`${Be}-description`]:{color:ke.colorTextDisabled},[`${Be}-image`]:{height:ke.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:ke.colorTextDisabled,[`${Be}-image`]:{height:ke.emptyImgHeightSM}}}}};var ee=(0,ht.Z)("Empty",ke=>{const{componentCls:Be,controlHeightLG:Ne}=ke,Ke=(0,Lt.TS)(ke,{emptyImgCls:`${Be}-img`,emptyImgHeight:Ne*2.5,emptyImgHeightMD:Ne,emptyImgHeightSM:Ne*.875});return[ze(Ke)]}),ne=function(ke,Be){var Ne={};for(var Ke in ke)Object.prototype.hasOwnProperty.call(ke,Ke)&&Be.indexOf(Ke)<0&&(Ne[Ke]=ke[Ke]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ke=Object.getOwnPropertySymbols(ke);$e<Ke.length;$e++)Be.indexOf(Ke[$e])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ke[$e])&&(Ne[Ke[$e]]=ke[Ke[$e]]);return Ne};const fe=Ee.createElement(Je,null),le=Ee.createElement(st,null),me=ke=>{var{className:Be,rootClassName:Ne,prefixCls:Ke,image:$e=fe,description:at,children:lt,imageStyle:Tt,style:nt}=ke,Ut=ne(ke,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:kt,direction:dn,empty:nn}=Ee.useContext(Re.E_),qt=kt("empty",Ke),[un,mn]=ee(qt),[Ct]=(0,je.Z)("Empty"),qe=typeof at!="undefined"?at:Ct==null?void 0:Ct.description,Bt=typeof qe=="string"?qe:"empty";let Cn=null;return typeof $e=="string"?Cn=Ee.createElement("img",{alt:Bt,src:$e}):Cn=$e,un(Ee.createElement("div",Object.assign({className:Te()(mn,qt,nn==null?void 0:nn.className,{[`${qt}-normal`]:$e===le,[`${qt}-rtl`]:dn==="rtl"},Be,Ne),style:Object.assign(Object.assign({},nn==null?void 0:nn.style),nt)},Ut),Ee.createElement("div",{className:`${qt}-image`,style:Tt},Cn),qe&&Ee.createElement("div",{className:`${qt}-description`},qe),lt&&Ee.createElement("div",{className:`${qt}-footer`},lt)))};me.PRESENTED_IMAGE_DEFAULT=fe,me.PRESENTED_IMAGE_SIMPLE=le;var Se=me},78241:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return on}});var de=ae(26390),Te=ae(92310),Ee=ae.n(Te),Re=ae(43469),je=ae(59301),Ze=ae(62892),we=ae(32441);function it(At){const[Dn,Qn]=je.useState(At);return je.useEffect(()=>{const Kt=setTimeout(()=>{Qn(At)},At.length?0:10);return()=>{clearTimeout(Kt)}},[At]),Dn}var Je=ae(17313),Ye=ae(29878),st=ae(8378),ht=ae(37613),Lt=ae(83116),ee=At=>{const{componentCls:Dn}=At,Qn=`${Dn}-show-help`,Kt=`${Dn}-show-help-item`;return{[Qn]:{transition:`opacity ${At.motionDurationSlow} ${At.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${At.motionDurationSlow} ${At.motionEaseInOut},
opacity ${At.motionDurationSlow} ${At.motionEaseInOut},
transform ${At.motionDurationSlow} ${At.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=At=>({legend:{display:"block",width:"100%",marginBottom:At.marginLG,padding:0,color:At.colorTextDescription,fontSize:At.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${At.lineWidth}px ${At.lineType} ${At.colorBorder}`},label:{fontSize:At.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 ${At.controlOutlineWidth}px ${At.controlOutline}`},output:{display:"block",paddingTop:15,color:At.colorText,fontSize:At.fontSize,lineHeight:At.lineHeight}}),fe=(At,Dn)=>{const{formItemCls:Qn}=At;return{[Qn]:{[`${Qn}-label > label`]:{height:Dn},[`${Qn}-control-input`]:{minHeight:Dn}}}},le=At=>{const{componentCls:Dn}=At;return{[At.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(At)),ne(At)),{[`${Dn}-text`]:{display:"inline-block",paddingInlineEnd:At.paddingSM},"&-small":Object.assign({},fe(At,At.controlHeightSM)),"&-large":Object.assign({},fe(At,At.controlHeightLG))})}},me=At=>{const{formItemCls:Dn,iconCls:Qn,componentCls:Kt,rootPrefixCls:Et,labelRequiredMarkColor:Ln,labelColor:Jn,labelFontSize:Ci,labelHeight:Pn,labelColonMarginInlineStart:Rt,labelColonMarginInlineEnd:Yn,itemMarginBottom:vi}=At;return{[Dn]:Object.assign(Object.assign({},(0,Je.Wf)(At)),{marginBottom:vi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Et}-row`]:{display:"none"},"&-has-warning":{[`${Dn}-split`]:{color:At.colorError}},"&-has-error":{[`${Dn}-split`]:{color:At.colorWarning}},[`${Dn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${At.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Pn,color:Jn,fontSize:Ci,[`> ${Qn}`]:{fontSize:At.fontSize,verticalAlign:"top"},[`&${Dn}-required:not(${Dn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:At.marginXXS,color:Ln,fontSize:At.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Dn}-optional`]:{display:"inline-block",marginInlineStart:At.marginXXS,color:At.colorTextDescription,[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Dn}-tooltip`]:{color:At.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:At.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Rt,marginInlineEnd:Yn},[`&${Dn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Dn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Et}-col-'"]):not([class*="' ${Et}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:At.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Dn]:{"&-explain, &-extra":{clear:"both",color:At.colorTextDescription,fontSize:At.fontSize,lineHeight:At.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:At.controlHeightSM,transition:`color ${At.motionDurationMid} ${At.motionEaseOut}`},"&-explain":{"&-error":{color:At.colorError},"&-warning":{color:At.colorWarning}}},[`&-with-help ${Dn}-explain`]:{height:"auto",opacity:1},[`${Dn}-feedback-icon`]:{fontSize:At.fontSize,textAlign:"center",visibility:"visible",animationName:Ye.kr,animationDuration:At.motionDurationMid,animationTimingFunction:At.motionEaseOutBack,pointerEvents:"none","&-success":{color:At.colorSuccess},"&-error":{color:At.colorError},"&-warning":{color:At.colorWarning},"&-validating":{color:At.colorPrimary}}})}},Se=At=>{const{componentCls:Dn,formItemCls:Qn}=At;return{[`${Dn}-horizontal`]:{[`${Qn}-label`]:{flexGrow:0},[`${Qn}-control`]:{flex:"1 1 0",minWidth:0},[`${Qn}-label[class$='-24'], ${Qn}-label[class*='-24 ']`]:{[`& + ${Qn}-control`]:{minWidth:"unset"}}}}},ke=At=>{const{componentCls:Dn,formItemCls:Qn}=At;return{[`${Dn}-inline`]:{display:"flex",flexWrap:"wrap",[Qn]:{flex:"none",marginInlineEnd:At.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Qn}-label,
> ${Qn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Qn}-label`]:{flex:"none"},[`${Dn}-text`]:{display:"inline-block"},[`${Qn}-has-feedback`]:{display:"inline-block"}}}}},Be=At=>({padding:At.verticalLabelPadding,margin:At.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ne=At=>{const{componentCls:Dn,formItemCls:Qn,rootPrefixCls:Kt}=At;return{[`${Qn} ${Qn}-label`]:Be(At),[Dn]:{[Qn]:{flexWrap:"wrap",[`${Qn}-label, ${Qn}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ke=At=>{const{componentCls:Dn,formItemCls:Qn,rootPrefixCls:Kt}=At;return{[`${Dn}-vertical`]:{[Qn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Dn}-item-control`]:{width:"100%"}}},[`${Dn}-vertical ${Qn}-label,
.${Kt}-col-24${Qn}-label,
.${Kt}-col-xl-24${Qn}-label`]:Be(At),[`@media (max-width: ${At.screenXSMax}px)`]:[Ne(At),{[Dn]:{[`.${Kt}-col-xs-24${Qn}-label`]:Be(At)}}],[`@media (max-width: ${At.screenSMMax}px)`]:{[Dn]:{[`.${Kt}-col-sm-24${Qn}-label`]:Be(At)}},[`@media (max-width: ${At.screenMDMax}px)`]:{[Dn]:{[`.${Kt}-col-md-24${Qn}-label`]:Be(At)}},[`@media (max-width: ${At.screenLGMax}px)`]:{[Dn]:{[`.${Kt}-col-lg-24${Qn}-label`]:Be(At)}}}},$e=(At,Dn)=>(0,ht.TS)(At,{formItemCls:`${At.componentCls}-item`,rootPrefixCls:Dn});var at=(0,Lt.Z)("Form",(At,Dn)=>{let{rootPrefixCls:Qn}=Dn;const Kt=$e(At,Qn);return[le(Kt),me(Kt),ee(Kt),Se(Kt),ke(Kt),Ke(Kt),(0,st.Z)(Kt),Ye.kr]},At=>({labelRequiredMarkColor:At.colorError,labelColor:At.colorTextHeading,labelFontSize:At.fontSize,labelHeight:At.controlHeight,labelColonMarginInlineStart:At.marginXXS/2,labelColonMarginInlineEnd:At.marginXS,itemMarginBottom:At.marginLG,verticalLabelPadding:`0 0 ${At.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const lt=[];function Tt(At,Dn,Qn){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof At=="string"?At:`${Dn}-${Kt}`,error:At,errorStatus:Qn}}var Ut=At=>{let{help:Dn,helpStatus:Qn,errors:Kt=lt,warnings:Et=lt,className:Ln,fieldId:Jn,onVisibleChanged:Ci}=At;const{prefixCls:Pn}=je.useContext(we.Rk),Rt=`${Pn}-item-explain`,[,Yn]=at(Pn),vi=(0,je.useMemo)(()=>(0,Ze.Z)(Pn),[Pn]),Oi=it(Kt),Yt=it(Et),Fn=je.useMemo(()=>Dn!=null?[Tt(Dn,"help",Qn)]:[].concat((0,de.Z)(Oi.map((pn,An)=>Tt(pn,"error","error",An))),(0,de.Z)(Yt.map((pn,An)=>Tt(pn,"warning","warning",An)))),[Dn,Qn,Oi,Yt]),$t={};return Jn&&($t.id=`${Jn}_help`),je.createElement(Re.default,{motionDeadline:vi.motionDeadline,motionName:`${Pn}-show-help`,visible:!!Fn.length,onVisibleChanged:Ci},pn=>{const{className:An,style:gn}=pn;return je.createElement("div",Object.assign({},$t,{className:Ee()(Rt,An,Ln,Yn),style:gn,role:"alert"}),je.createElement(Re.CSSMotionList,Object.assign({keys:Fn},(0,Ze.Z)(Pn),{motionName:`${Pn}-show-help-item`,component:!1}),In=>{const{key:Gn,error:qn,errorStatus:oi,className:Hn,style:ui}=In;return je.createElement("div",{key:Gn,className:Ee()(Hn,{[`${Rt}-${oi}`]:oi}),style:ui},qn)}))})},kt=ae(95013),dn=ae(36355),nn=ae(1684),qt=ae(52946),un=ae(19716),mn=ae(16722);const Ct=["parentNode"],qe="form_item";function Bt(At){return At===void 0||At===!1?[]:Array.isArray(At)?At:[At]}function Cn(At,Dn){if(!At.length)return;const Qn=At.join("_");return Dn?`${Dn}_${Qn}`:Ct.includes(Qn)?`${qe}_${Qn}`:Qn}function Zn(At,Dn,Qn,Kt,Et,Ln){let Jn=Kt;return Ln!==void 0?Jn=Ln:Qn.validating?Jn="validating":At.length?Jn="error":Dn.length?Jn="warning":(Qn.touched||Et&&Qn.validated)&&(Jn="success"),Jn}function zt(At){return Bt(At).join("_")}function sn(At){const[Dn]=(0,kt.useForm)(),Qn=je.useRef({}),Kt=je.useMemo(()=>At!=null?At:Object.assign(Object.assign({},Dn),{__INTERNAL__:{itemRef:Et=>Ln=>{const Jn=zt(Et);Ln?Qn.current[Jn]=Ln:delete Qn.current[Jn]}},scrollToField:function(Et){let Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Jn=Bt(Et),Ci=Cn(Jn,Kt.__INTERNAL__.name),Pn=Ci?document.getElementById(Ci):null;Pn&&(0,mn.Z)(Pn,Object.assign({scrollMode:"if-needed",block:"nearest"},Ln))},getFieldInstance:Et=>{const Ln=zt(Et);return Qn.current[Ln]}}),[At,Dn]);return[Kt]}var Mn=ae(28726),fi=function(At,Dn){var Qn={};for(var Kt in At)Object.prototype.hasOwnProperty.call(At,Kt)&&Dn.indexOf(Kt)<0&&(Qn[Kt]=At[Kt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Kt=Object.getOwnPropertySymbols(At);Et<Kt.length;Et++)Dn.indexOf(Kt[Et])<0&&Object.prototype.propertyIsEnumerable.call(At,Kt[Et])&&(Qn[Kt[Et]]=At[Kt[Et]]);return Qn};const Rn=(At,Dn)=>{const Qn=je.useContext(nn.Z),{getPrefixCls:Kt,direction:Et,form:Ln}=je.useContext(dn.E_),{prefixCls:Jn,className:Ci,rootClassName:Pn,size:Rt,disabled:Yn=Qn,form:vi,colon:Oi,labelAlign:Yt,labelWrap:Fn,labelCol:$t,wrapperCol:pn,hideRequiredMark:An,layout:gn="horizontal",scrollToFirstError:In,requiredMark:Gn,onFinishFailed:qn,name:oi,style:Hn,feedbackIcons:ui}=At,Ki=fi(At,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Er=(0,un.Z)(Rt),Vi=je.useContext(Mn.Z),Ht=(0,je.useMemo)(()=>Gn!==void 0?Gn:Ln&&Ln.requiredMark!==void 0?Ln.requiredMark:!An,[An,Gn,Ln]),Pi=Oi!=null?Oi:Ln==null?void 0:Ln.colon,zi=Kt("form",Jn),[Ti,er]=at(zi),cr=Ee()(zi,`${zi}-${gn}`,{[`${zi}-hide-required-mark`]:Ht===!1,[`${zi}-rtl`]:Et==="rtl",[`${zi}-${Er}`]:Er},er,Ln==null?void 0:Ln.className,Ci,Pn),[Tr]=sn(vi),{__INTERNAL__:Qi}=Tr;Qi.name=oi;const Fi=(0,je.useMemo)(()=>({name:oi,labelAlign:Yt,labelCol:$t,labelWrap:Fn,wrapperCol:pn,vertical:gn==="vertical",colon:Pi,requiredMark:Ht,itemRef:Qi.itemRef,form:Tr,feedbackIcons:ui}),[oi,Yt,$t,pn,gn,Pi,Ht,Tr,ui]);je.useImperativeHandle(Dn,()=>Tr);const Rr=(Ur,bn)=>{if(Ur){let Mr={block:"nearest"};typeof Ur=="object"&&(Mr=Ur),Tr.scrollToField(bn,Mr)}},ln=Ur=>{if(qn==null||qn(Ur),Ur.errorFields.length){const bn=Ur.errorFields[0].name;if(In!==void 0){Rr(In,bn);return}Ln&&Ln.scrollToFirstError!==void 0&&Rr(Ln.scrollToFirstError,bn)}};return Ti(je.createElement(nn.n,{disabled:Yn},je.createElement(qt.q,{size:Er},je.createElement(we.RV,Object.assign({},{validateMessages:Vi}),je.createElement(we.q3.Provider,{value:Fi},je.createElement(kt.default,Object.assign({id:oi},Ki,{name:oi,onFinishFailed:ln,form:Tr,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),Hn),className:cr})))))))};var Ot=je.forwardRef(Rn),kn=ae(12383),$n=ae(20475),xi=ae(92343),xn=ae(38298);function Gt(At){if(typeof At=="function")return At;const Dn=(0,xn.Z)(At);return Dn.length<=1?Dn[0]:Dn}const jt=()=>{const{status:At,errors:Dn=[],warnings:Qn=[]}=(0,je.useContext)(we.aM);return{status:At,errors:Dn,warnings:Qn}};jt.Context=we.aM;var It=jt,vt=ae(23073);function Xt(At){const[Dn,Qn]=je.useState(At),Kt=(0,je.useRef)(null),Et=(0,je.useRef)([]),Ln=(0,je.useRef)(!1);je.useEffect(()=>(Ln.current=!1,()=>{Ln.current=!0,vt.Z.cancel(Kt.current),Kt.current=null}),[]);function Jn(Ci){Ln.current||(Kt.current===null&&(Et.current=[],Kt.current=(0,vt.Z)(()=>{Kt.current=null,Qn(Pn=>{let Rt=Pn;return Et.current.forEach(Yn=>{Rt=Yn(Rt)}),Rt})})),Et.current.push(Ci))}return[Dn,Jn]}function Zt(){const{itemRef:At}=je.useContext(we.q3),Dn=je.useRef({});function Qn(Kt,Et){const Ln=Et&&typeof Et=="object"&&Et.ref,Jn=Kt.join("_");return(Dn.current.name!==Jn||Dn.current.originRef!==Ln)&&(Dn.current.name=Jn,Dn.current.originRef=Ln,Dn.current.ref=(0,$n.sQ)(At(Kt),Ln)),Dn.current.ref}return Qn}var yt=ae(48886),ft=ae(28800),_e=ae(64002),Pe=ae(27382),be=ae(37028);const Ue=At=>{const{formItemCls:Dn}=At;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Dn}-control`]:{display:"flex"}}}};var Qe=(0,Lt.b)(["Form","item-item"],(At,Dn)=>{let{rootPrefixCls:Qn}=Dn;const Kt=$e(At,Qn);return[Ue(Kt)]}),gt=At=>{const{prefixCls:Dn,status:Qn,wrapperCol:Kt,children:Et,errors:Ln,warnings:Jn,_internalItemRender:Ci,extra:Pn,help:Rt,fieldId:Yn,marginBottom:vi,onErrorVisibleChanged:Oi}=At,Yt=`${Dn}-item`,Fn=je.useContext(we.q3),$t=Kt||Fn.wrapperCol||{},pn=Ee()(`${Yt}-control`,$t.className),An=je.useMemo(()=>Object.assign({},Fn),[Fn]);delete An.labelCol,delete An.wrapperCol;const gn=je.createElement("div",{className:`${Yt}-control-input`},je.createElement("div",{className:`${Yt}-control-input-content`},Et)),In=je.useMemo(()=>({prefixCls:Dn,status:Qn}),[Dn,Qn]),Gn=vi!==null||Ln.length||Jn.length?je.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},je.createElement(we.Rk.Provider,{value:In},je.createElement(Ut,{fieldId:Yn,errors:Ln,warnings:Jn,help:Rt,helpStatus:Qn,className:`${Yt}-explain-connected`,onVisibleChanged:Oi})),!!vi&&je.createElement("div",{style:{width:0,height:vi}})):null,qn={};Yn&&(qn.id=`${Yn}_extra`);const oi=Pn?je.createElement("div",Object.assign({},qn,{className:`${Yt}-extra`}),Pn):null,Hn=Ci&&Ci.mark==="pro_table_render"&&Ci.render?Ci.render(At,{input:gn,errorList:Gn,extra:oi}):je.createElement(je.Fragment,null,gn,Gn,oi);return je.createElement(we.q3.Provider,{value:An},je.createElement(be.Z,Object.assign({},$t,{className:pn}),Hn),je.createElement(Qe,{prefixCls:Dn}))},tn=ae(86902),yn=ae(31724),bt=ae(9763),Wt=ae(6848),fn=function(At,Dn){var Qn={};for(var Kt in At)Object.prototype.hasOwnProperty.call(At,Kt)&&Dn.indexOf(Kt)<0&&(Qn[Kt]=At[Kt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Kt=Object.getOwnPropertySymbols(At);Et<Kt.length;Et++)Dn.indexOf(Kt[Et])<0&&Object.prototype.propertyIsEnumerable.call(At,Kt[Et])&&(Qn[Kt[Et]]=At[Kt[Et]]);return Qn};function zn(At){return At?typeof At=="object"&&!je.isValidElement(At)?At:{title:At}:null}var di=At=>{let{prefixCls:Dn,label:Qn,htmlFor:Kt,labelCol:Et,labelAlign:Ln,colon:Jn,required:Ci,requiredMark:Pn,tooltip:Rt}=At;var Yn;const[vi]=(0,bt.Z)("Form"),{vertical:Oi,labelAlign:Yt,labelCol:Fn,labelWrap:$t,colon:pn}=je.useContext(we.q3);if(!Qn)return null;const An=Et||Fn||{},gn=Ln||Yt,In=`${Dn}-item-label`,Gn=Ee()(In,gn==="left"&&`${In}-left`,An.className,{[`${In}-wrap`]:!!$t});let qn=Qn;const oi=Jn===!0||pn!==!1&&Jn!==!1;oi&&!Oi&&typeof Qn=="string"&&Qn.trim()!==""&&(qn=Qn.replace(/[:|]\s*$/,""));const ui=zn(Rt);if(ui){const{icon:Ht=je.createElement(tn.Z,null)}=ui,Pi=fn(ui,["icon"]),zi=je.createElement(Wt.Z,Object.assign({},Pi),je.cloneElement(Ht,{className:`${Dn}-item-tooltip`,title:""}));qn=je.createElement(je.Fragment,null,qn,zi)}const Ki=Pn==="optional",Er=typeof Pn=="function";Er?qn=Pn(qn,{required:!!Ci}):Ki&&!Ci&&(qn=je.createElement(je.Fragment,null,qn,je.createElement("span",{className:`${Dn}-item-optional`,title:""},(vi==null?void 0:vi.optional)||((Yn=yn.Z.Form)===null||Yn===void 0?void 0:Yn.optional))));const Vi=Ee()({[`${Dn}-item-required`]:Ci,[`${Dn}-item-required-mark-optional`]:Ki||Er,[`${Dn}-item-no-colon`]:!oi});return je.createElement(be.Z,Object.assign({},An,{className:Gn}),je.createElement("label",{htmlFor:Kt,className:Vi,title:typeof Qn=="string"?Qn:""},qn))},wi=ae(79999),hi=ae(33130),Li=ae(85404),Yi=ae(50023);const Ji={success:wi.Z,warning:Li.Z,error:hi.Z,validating:Yi.Z};function Xi(At){let{children:Dn,errors:Qn,warnings:Kt,hasFeedback:Et,validateStatus:Ln,prefixCls:Jn,meta:Ci,noStyle:Pn}=At;const Rt=`${Jn}-item`,{feedbackIcons:Yn}=je.useContext(we.q3),vi=Zn(Qn,Kt,Ci,null,!!Et,Ln),{isFormItemInput:Oi,status:Yt}=je.useContext(we.aM),Fn=je.useMemo(()=>{var $t;let pn;if(Et){const In=Et!==!0&&Et.icons||Yn,Gn=vi&&(($t=In==null?void 0:In({status:vi,errors:Qn,warnings:Kt}))===null||$t===void 0?void 0:$t[vi]),qn=vi&&Ji[vi];pn=Gn!==!1&&qn?je.createElement("span",{className:Ee()(`${Rt}-feedback-icon`,`${Rt}-feedback-icon-${vi}`)},Gn||je.createElement(qn,null)):null}let An=!0,gn=vi||"";return Pn&&(An=Oi,gn=(vi!=null?vi:Yt)||""),{status:gn,errors:Qn,warnings:Kt,hasFeedback:!!Et,feedbackIcon:pn,isFormItemInput:An}},[vi,Et,Pn,Oi,Yt]);return je.createElement(we.aM.Provider,{value:Fn},Dn)}var dr=function(At,Dn){var Qn={};for(var Kt in At)Object.prototype.hasOwnProperty.call(At,Kt)&&Dn.indexOf(Kt)<0&&(Qn[Kt]=At[Kt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Kt=Object.getOwnPropertySymbols(At);Et<Kt.length;Et++)Dn.indexOf(Kt[Et])<0&&Object.prototype.propertyIsEnumerable.call(At,Kt[Et])&&(Qn[Kt[Et]]=At[Kt[Et]]);return Qn};function Ir(At){const{prefixCls:Dn,className:Qn,rootClassName:Kt,style:Et,help:Ln,errors:Jn,warnings:Ci,validateStatus:Pn,meta:Rt,hasFeedback:Yn,hidden:vi,children:Oi,fieldId:Yt,required:Fn,isRequired:$t,onSubItemMetaChange:pn}=At,An=dr(At,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),gn=`${Dn}-item`,{requiredMark:In}=je.useContext(we.q3),Gn=je.useRef(null),qn=it(Jn),oi=it(Ci),Hn=Ln!=null,ui=!!(Hn||Jn.length||Ci.length),Ki=!!Gn.current&&(0,yt.Z)(Gn.current),[Er,Vi]=je.useState(null);(0,ft.Z)(()=>{if(ui&&Gn.current){const er=getComputedStyle(Gn.current);Vi(parseInt(er.marginBottom,10))}},[ui,Ki]);const Ht=er=>{er||Vi(null)},zi=function(){let er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const cr=er?qn:Rt.errors,Tr=er?oi:Rt.warnings;return Zn(cr,Tr,Rt,"",!!Yn,Pn)}(),Ti=Ee()(gn,Qn,Kt,{[`${gn}-with-help`]:Hn||qn.length||oi.length,[`${gn}-has-feedback`]:zi&&Yn,[`${gn}-has-success`]:zi==="success",[`${gn}-has-warning`]:zi==="warning",[`${gn}-has-error`]:zi==="error",[`${gn}-is-validating`]:zi==="validating",[`${gn}-hidden`]:vi});return je.createElement("div",{className:Ti,style:Et,ref:Gn},je.createElement(Pe.Z,Object.assign({className:`${gn}-row`},(0,_e.Z)(An,["_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"])),je.createElement(di,Object.assign({htmlFor:Yt},At,{requiredMark:In,required:Fn!=null?Fn:$t,prefixCls:Dn})),je.createElement(gt,Object.assign({},At,Rt,{errors:qn,warnings:oi,prefixCls:Dn,status:zi,help:Ln,marginBottom:Er,onErrorVisibleChanged:Ht}),je.createElement(we.qI.Provider,{value:pn},je.createElement(Xi,{prefixCls:Dn,meta:Rt,errors:Rt.errors,warnings:Rt.warnings,hasFeedback:Yn,validateStatus:zi},Oi)))),!!Er&&je.createElement("div",{className:`${gn}-margin-offset`,style:{marginBottom:-Er}}))}const Wi="__SPLIT__",Dr=null,_i=je.memo(At=>{let{children:Dn}=At;return Dn},(At,Dn)=>At.value===Dn.value&&At.update===Dn.update&&At.childProps.length===Dn.childProps.length&&At.childProps.every((Qn,Kt)=>Qn===Dn.childProps[Kt]));function De(At){return At!=null}function jr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function hr(At){const{name:Dn,noStyle:Qn,className:Kt,dependencies:Et,prefixCls:Ln,shouldUpdate:Jn,rules:Ci,children:Pn,required:Rt,label:Yn,messageVariables:vi,trigger:Oi="onChange",validateTrigger:Yt,hidden:Fn,help:$t}=At,{getPrefixCls:pn}=je.useContext(dn.E_),{name:An}=je.useContext(we.q3),gn=Gt(Pn),In=typeof gn=="function",Gn=je.useContext(we.qI),{validateTrigger:qn}=je.useContext(kt.FieldContext),oi=Yt!==void 0?Yt:qn,Hn=De(Dn),ui=pn("form",Ln),[Ki,Er]=at(ui),Vi=je.useContext(kt.ListContext),Ht=je.useRef(),[Pi,zi]=Xt({}),[Ti,er]=(0,kn.Z)(()=>jr()),cr=bn=>{const Mr=Vi==null?void 0:Vi.getKey(bn.name);if(er(bn.destroy?jr():bn,!0),Qn&&$t!==!1&&Gn){let Ho=bn.name;if(bn.destroy)Ho=Ht.current||Ho;else if(Mr!==void 0){const[Fr,vo]=Mr;Ho=[Fr].concat((0,de.Z)(vo)),Ht.current=Ho}Gn(bn,Ho)}},Tr=(bn,Mr)=>{zi(Ho=>{const Fr=Object.assign({},Ho),Ro=[].concat((0,de.Z)(bn.name.slice(0,-1)),(0,de.Z)(Mr)).join(Wi);return bn.destroy?delete Fr[Ro]:Fr[Ro]=bn,Fr})},[Qi,Fi]=je.useMemo(()=>{const bn=(0,de.Z)(Ti.errors),Mr=(0,de.Z)(Ti.warnings);return Object.values(Pi).forEach(Ho=>{bn.push.apply(bn,(0,de.Z)(Ho.errors||[])),Mr.push.apply(Mr,(0,de.Z)(Ho.warnings||[]))}),[bn,Mr]},[Pi,Ti.errors,Ti.warnings]),Rr=Zt();function ln(bn,Mr,Ho){return Qn&&!Fn?je.createElement(Xi,{prefixCls:ui,hasFeedback:At.hasFeedback,validateStatus:At.validateStatus,meta:Ti,errors:Qi,warnings:Fi,noStyle:!0},bn):je.createElement(Ir,Object.assign({key:"row"},At,{className:Ee()(Kt,Er),prefixCls:ui,fieldId:Mr,isRequired:Ho,errors:Qi,warnings:Fi,meta:Ti,onSubItemMetaChange:Tr}),bn)}if(!Hn&&!In&&!Et)return Ki(ln(gn));let Ur={};return typeof Yn=="string"?Ur.label=Yn:Dn&&(Ur.label=String(Dn)),vi&&(Ur=Object.assign(Object.assign({},Ur),vi)),Ki(je.createElement(kt.Field,Object.assign({},At,{messageVariables:Ur,trigger:Oi,validateTrigger:oi,onMetaChange:cr}),(bn,Mr,Ho)=>{const Fr=Bt(Dn).length&&Mr?Mr.name:[],vo=Cn(Fr,An),Ro=Rt!==void 0?Rt:!!(Ci&&Ci.some(Vr=>{if(Vr&&typeof Vr=="object"&&Vr.required&&!Vr.warningOnly)return!0;if(typeof Vr=="function"){const lo=Vr(Ho);return lo&&lo.required&&!lo.warningOnly}return!1})),ir=Object.assign({},bn);let qi=null;if(Array.isArray(gn)&&Hn)qi=gn;else if(!(In&&(!(Jn||Et)||Hn))){if(!(Et&&!In&&!Hn))if((0,xi.l$)(gn)){const Vr=Object.assign(Object.assign({},gn.props),ir);if(Vr.id||(Vr.id=vo),$t||Qi.length>0||Fi.length>0||At.extra){const ot=[];($t||Qi.length>0)&&ot.push(`${vo}_help`),At.extra&&ot.push(`${vo}_extra`),Vr["aria-describedby"]=ot.join(" ")}Qi.length>0&&(Vr["aria-invalid"]="true"),Ro&&(Vr["aria-required"]="true"),(0,$n.Yr)(gn)&&(Vr.ref=Rr(Fr,gn)),new Set([].concat((0,de.Z)(Bt(Oi)),(0,de.Z)(Bt(oi)))).forEach(ot=>{Vr[ot]=function(){for(var Gr,ta,Hr,Uo,kr,fr=arguments.length,no=new Array(fr),Po=0;Po<fr;Po++)no[Po]=arguments[Po];(Hr=ir[ot])===null||Hr===void 0||(Gr=Hr).call.apply(Gr,[ir].concat(no)),(kr=(Uo=gn.props)[ot])===null||kr===void 0||(ta=kr).call.apply(ta,[Uo].concat(no))}});const ki=[Vr["aria-required"],Vr["aria-invalid"],Vr["aria-describedby"]];qi=je.createElement(_i,{value:ir[At.valuePropName||"value"],update:gn,childProps:ki},(0,xi.Tm)(gn,Vr))}else In&&(Jn||Et)&&!Hn?qi=gn(Ho):qi=gn}return ln(qi,vo,Ro)}))}const oo=hr;oo.useStatus=It;var Oo=oo,Do=function(At,Dn){var Qn={};for(var Kt in At)Object.prototype.hasOwnProperty.call(At,Kt)&&Dn.indexOf(Kt)<0&&(Qn[Kt]=At[Kt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Kt=Object.getOwnPropertySymbols(At);Et<Kt.length;Et++)Dn.indexOf(Kt[Et])<0&&Object.prototype.propertyIsEnumerable.call(At,Kt[Et])&&(Qn[Kt[Et]]=At[Kt[Et]]);return Qn},so=At=>{var{prefixCls:Dn,children:Qn}=At,Kt=Do(At,["prefixCls","children"]);const{getPrefixCls:Et}=je.useContext(dn.E_),Ln=Et("form",Dn),Jn=je.useMemo(()=>({prefixCls:Ln,status:"error"}),[Ln]);return je.createElement(kt.List,Object.assign({},Kt),(Ci,Pn,Rt)=>je.createElement(we.Rk.Provider,{value:Jn},Qn(Ci.map(Yn=>Object.assign(Object.assign({},Yn),{fieldKey:Yn.key})),Pn,{errors:Rt.errors,warnings:Rt.warnings})))};function En(){const{form:At}=(0,je.useContext)(we.q3);return At}const Tn=Ot;Tn.Item=Oo,Tn.List=so,Tn.ErrorList=Ut,Tn.useForm=sn,Tn.useFormInstance=En,Tn.useWatch=kt.useWatch,Tn.Provider=we.RV,Tn.create=()=>{};var on=Tn},8628:function(Ge,xe,ae){"use strict";var de=ae(59301),Te=ae(28800),Ee=ae(56762),Re=ae(69507);function je(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const we=(0,de.useRef)({}),it=(0,Ee.Z)(),Je=(0,Re.ZP)();return(0,Te.Z)(()=>{const Ye=Je.subscribe(st=>{we.current=st,Ze&&it()});return()=>Je.unsubscribe(Ye)},[]),we.current}xe.Z=je},9432:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return me},n:function(){return fe}});var de=ae(33130),Te=ae(92310),Ee=ae.n(Te),Re=ae(93681),je=ae(20475),Ze=ae(59301),we=ae(19080),it=ae(36355),Je=ae(1684),Ye=ae(19716),st=ae(32441),ht=ae(33234),Lt=ae(59412),ze=ae(9937);function ee(Se){return!!(Se.prefix||Se.suffix||Se.allowClear)}var ne=function(Se,ke){var Be={};for(var Ne in Se)Object.prototype.hasOwnProperty.call(Se,Ne)&&ke.indexOf(Ne)<0&&(Be[Ne]=Se[Ne]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ne=Object.getOwnPropertySymbols(Se);Ke<Ne.length;Ke++)ke.indexOf(Ne[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ne[Ke])&&(Be[Ne[Ke]]=Se[Ne[Ke]]);return Be};function fe(Se,ke){if(!Se)return;Se.focus(ke);const{cursor:Be}=ke||{};if(Be){const Ne=Se.value.length;switch(Be){case"start":Se.setSelectionRange(0,0);break;case"end":Se.setSelectionRange(Ne,Ne);break;default:Se.setSelectionRange(0,Ne);break}}}var me=(0,Ze.forwardRef)((Se,ke)=>{var Be;const{prefixCls:Ne,bordered:Ke=!0,status:$e,size:at,disabled:lt,onBlur:Tt,onFocus:nt,suffix:Ut,allowClear:kt,addonAfter:dn,addonBefore:nn,className:qt,style:un,styles:mn,rootClassName:Ct,onChange:qe,classNames:Bt}=Se,Cn=ne(Se,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Zn,direction:zt,input:sn}=Ze.useContext(it.E_),Mn=Zn("input",Ne),fi=(0,Ze.useRef)(null),[Rn,li]=(0,ze.ZP)(Mn),{compactSize:Ot,compactItemClassnames:kn}=(0,ht.ri)(Mn,zt),$n=(0,Ye.Z)(Qe=>{var Fe;return(Fe=at!=null?at:Ot)!==null&&Fe!==void 0?Fe:Qe}),xi=Ze.useContext(Je.Z),xn=lt!=null?lt:xi,{status:Gt,hasFeedback:jt,feedbackIcon:It}=(0,Ze.useContext)(st.aM),vt=(0,we.F)(Gt,$e),Xt=ee(Se)||!!jt,Zt=(0,Ze.useRef)(Xt);(0,Ze.useEffect)(()=>{var Qe;Xt&&Zt.current,Zt.current=Xt},[Xt]);const yt=(0,Lt.Z)(fi,!0),ft=Qe=>{yt(),Tt==null||Tt(Qe)},_e=Qe=>{yt(),nt==null||nt(Qe)},Pe=Qe=>{yt(),qe==null||qe(Qe)},be=(jt||Ut)&&Ze.createElement(Ze.Fragment,null,Ut,jt&&It);let Ue;return typeof kt=="object"&&(kt!=null&&kt.clearIcon)?Ue=kt:kt&&(Ue={clearIcon:Ze.createElement(de.Z,null)}),Rn(Ze.createElement(Re.default,Object.assign({ref:(0,je.sQ)(ke,fi),prefixCls:Mn,autoComplete:sn==null?void 0:sn.autoComplete},Cn,{disabled:xn,onBlur:ft,onFocus:_e,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),un),styles:Object.assign(Object.assign({},sn==null?void 0:sn.styles),mn),suffix:be,allowClear:Ue,className:Ee()(qt,Ct,kn,sn==null?void 0:sn.className),onChange:Pe,addonAfter:dn&&Ze.createElement(ht.BR,null,Ze.createElement(st.Ux,{override:!0,status:!0},dn)),addonBefore:nn&&Ze.createElement(ht.BR,null,Ze.createElement(st.Ux,{override:!0,status:!0},nn)),classNames:Object.assign(Object.assign(Object.assign({},Bt),sn==null?void 0:sn.classNames),{input:Ee()({[`${Mn}-sm`]:$n==="small",[`${Mn}-lg`]:$n==="large",[`${Mn}-rtl`]:zt==="rtl",[`${Mn}-borderless`]:!Ke},!Xt&&(0,we.Z)(Mn,vt),Bt==null?void 0:Bt.input,(Be=sn==null?void 0:sn.classNames)===null||Be===void 0?void 0:Be.input,li)}),classes:{affixWrapper:Ee()({[`${Mn}-affix-wrapper-sm`]:$n==="small",[`${Mn}-affix-wrapper-lg`]:$n==="large",[`${Mn}-affix-wrapper-rtl`]:zt==="rtl",[`${Mn}-affix-wrapper-borderless`]:!Ke},(0,we.Z)(`${Mn}-affix-wrapper`,vt,jt),li),wrapper:Ee()({[`${Mn}-group-rtl`]:zt==="rtl"},li),group:Ee()({[`${Mn}-group-wrapper-sm`]:$n==="small",[`${Mn}-group-wrapper-lg`]:$n==="large",[`${Mn}-group-wrapper-rtl`]:zt==="rtl",[`${Mn}-group-wrapper-disabled`]:xn},(0,we.Z)(`${Mn}-group-wrapper`,vt,jt),li)}})))})},1643:function(Ge,xe,ae){"use strict";var de=ae(33130),Te=ae(92310),Ee=ae.n(Te),Re=ae(9296),je=ae(59301),Ze=ae(19080),we=ae(36355),it=ae(1684),Je=ae(19716),Ye=ae(32441),st=ae(9432),ht=ae(9937),Lt=function(ee,ne){var fe={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ne.indexOf(le)<0&&(fe[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(ee);me<le.length;me++)ne.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[me])&&(fe[le[me]]=ee[le[me]]);return fe};const ze=(0,je.forwardRef)((ee,ne)=>{const{prefixCls:fe,bordered:le=!0,size:me,disabled:Se,status:ke,allowClear:Be,showCount:Ne,classNames:Ke,rootClassName:$e,className:at}=ee,lt=Lt(ee,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Tt,direction:nt}=je.useContext(we.E_),Ut=(0,Je.Z)(me),kt=je.useContext(it.Z),dn=Se!=null?Se:kt,{status:nn,hasFeedback:qt,feedbackIcon:un}=je.useContext(Ye.aM),mn=(0,Ze.F)(nn,ke),Ct=je.useRef(null);je.useImperativeHandle(ne,()=>{var zt;return{resizableTextArea:(zt=Ct.current)===null||zt===void 0?void 0:zt.resizableTextArea,focus:sn=>{var Mn,fi;(0,st.n)((fi=(Mn=Ct.current)===null||Mn===void 0?void 0:Mn.resizableTextArea)===null||fi===void 0?void 0:fi.textArea,sn)},blur:()=>{var sn;return(sn=Ct.current)===null||sn===void 0?void 0:sn.blur()}}});const qe=Tt("input",fe);let Bt;typeof Be=="object"&&(Be!=null&&Be.clearIcon)?Bt=Be:Be&&(Bt={clearIcon:je.createElement(de.Z,null)});const[Cn,Zn]=(0,ht.ZP)(qe);return Cn(je.createElement(Re.default,Object.assign({},lt,{disabled:dn,allowClear:Bt,className:Ee()(at,$e),classes:{affixWrapper:Ee()(`${qe}-textarea-affix-wrapper`,{[`${qe}-affix-wrapper-rtl`]:nt==="rtl",[`${qe}-affix-wrapper-borderless`]:!le,[`${qe}-affix-wrapper-sm`]:Ut==="small",[`${qe}-affix-wrapper-lg`]:Ut==="large",[`${qe}-textarea-show-count`]:Ne},(0,Ze.Z)(`${qe}-affix-wrapper`,mn),Zn)},classNames:Object.assign(Object.assign({},Ke),{textarea:Ee()({[`${qe}-borderless`]:!le,[`${qe}-sm`]:Ut==="small",[`${qe}-lg`]:Ut==="large"},(0,Ze.Z)(qe,mn),Zn,Ke==null?void 0:Ke.textarea)}),prefixCls:qe,suffix:qt&&je.createElement("span",{className:`${qe}-textarea-suffix`},un),showCount:Ne,ref:Ct})))});xe.Z=ze},59412:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Te}});var de=ae(59301);function Te(Ee,Re){const je=(0,de.useRef)([]),Ze=()=>{je.current.push(setTimeout(()=>{var we,it,Je,Ye;!((we=Ee.current)===null||we===void 0)&&we.input&&((it=Ee.current)===null||it===void 0?void 0:it.input.getAttribute("type"))==="password"&&(!((Je=Ee.current)===null||Je===void 0)&&Je.input.hasAttribute("value"))&&((Ye=Ee.current)===null||Ye===void 0||Ye.input.removeAttribute("value"))}))};return(0,de.useEffect)(()=>(Re&&Ze(),()=>je.current.forEach(we=>{we&&clearTimeout(we)})),[]),Ze}},92832:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return Ut}});var de=ae(92310),Te=ae.n(de),Ee=ae(59301),Re=ae(36355),je=ae(32441),Ze=ae(9937),it=kt=>{const{getPrefixCls:dn,direction:nn}=(0,Ee.useContext)(Re.E_),{prefixCls:qt,className:un}=kt,mn=dn("input-group",qt),Ct=dn("input"),[qe,Bt]=(0,Ze.ZP)(Ct),Cn=Te()(mn,{[`${mn}-lg`]:kt.size==="large",[`${mn}-sm`]:kt.size==="small",[`${mn}-compact`]:kt.compact,[`${mn}-rtl`]:nn==="rtl"},Bt,un),Zn=(0,Ee.useContext)(je.aM),zt=(0,Ee.useMemo)(()=>Object.assign(Object.assign({},Zn),{isFormItemInput:!1}),[Zn]);return qe(Ee.createElement("span",{className:Cn,style:kt.style,onMouseEnter:kt.onMouseEnter,onMouseLeave:kt.onMouseLeave,onFocus:kt.onFocus,onBlur:kt.onBlur},Ee.createElement(je.aM.Provider,{value:zt},kt.children)))},Je=ae(9432),Ye=ae(61441),st=ae(30631),ht=ae(64002),Lt=ae(20475),ze=ae(59412),ee=function(kt,dn){var nn={};for(var qt in kt)Object.prototype.hasOwnProperty.call(kt,qt)&&dn.indexOf(qt)<0&&(nn[qt]=kt[qt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,qt=Object.getOwnPropertySymbols(kt);un<qt.length;un++)dn.indexOf(qt[un])<0&&Object.prototype.propertyIsEnumerable.call(kt,qt[un])&&(nn[qt[un]]=kt[qt[un]]);return nn};const ne=kt=>kt?Ee.createElement(st.Z,null):Ee.createElement(Ye.Z,null),fe={click:"onClick",hover:"onMouseOver"};var me=Ee.forwardRef((kt,dn)=>{const{visibilityToggle:nn=!0}=kt,qt=typeof nn=="object"&&nn.visible!==void 0,[un,mn]=(0,Ee.useState)(()=>qt?nn.visible:!1),Ct=(0,Ee.useRef)(null);Ee.useEffect(()=>{qt&&mn(nn.visible)},[qt,nn]);const qe=(0,ze.Z)(Ct),Bt=()=>{const{disabled:xn}=kt;xn||(un&&qe(),mn(Gt=>{var jt;const It=!Gt;return typeof nn=="object"&&((jt=nn.onVisibleChange)===null||jt===void 0||jt.call(nn,It)),It}))},Cn=xn=>{const{action:Gt="click",iconRender:jt=ne}=kt,It=fe[Gt]||"",vt=jt(un),Xt={[It]:Bt,className:`${xn}-icon`,key:"passwordIcon",onMouseDown:Zt=>{Zt.preventDefault()},onMouseUp:Zt=>{Zt.preventDefault()}};return Ee.cloneElement(Ee.isValidElement(vt)?vt:Ee.createElement("span",null,vt),Xt)},{className:Zn,prefixCls:zt,inputPrefixCls:sn,size:Mn}=kt,fi=ee(kt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Rn}=Ee.useContext(Re.E_),li=Rn("input",sn),Ot=Rn("input-password",zt),kn=nn&&Cn(Ot),$n=Te()(Ot,Zn,{[`${Ot}-${Mn}`]:!!Mn}),xi=Object.assign(Object.assign({},(0,ht.Z)(fi,["suffix","iconRender","visibilityToggle"])),{type:un?"text":"password",className:$n,prefixCls:li,suffix:kn});return Mn&&(xi.size=Mn),Ee.createElement(Je.Z,Object.assign({ref:(0,Lt.sQ)(dn,Ct)},xi))}),Se=ae(21970),ke=ae(92343),Be=ae(3113),Ne=ae(19716),Ke=ae(33234),$e=function(kt,dn){var nn={};for(var qt in kt)Object.prototype.hasOwnProperty.call(kt,qt)&&dn.indexOf(qt)<0&&(nn[qt]=kt[qt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,qt=Object.getOwnPropertySymbols(kt);un<qt.length;un++)dn.indexOf(qt[un])<0&&Object.prototype.propertyIsEnumerable.call(kt,qt[un])&&(nn[qt[un]]=kt[qt[un]]);return nn},lt=Ee.forwardRef((kt,dn)=>{const{prefixCls:nn,inputPrefixCls:qt,className:un,size:mn,suffix:Ct,enterButton:qe=!1,addonAfter:Bt,loading:Cn,disabled:Zn,onSearch:zt,onChange:sn,onCompositionStart:Mn,onCompositionEnd:fi}=kt,Rn=$e(kt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:li,direction:Ot}=Ee.useContext(Re.E_),kn=Ee.useRef(!1),$n=li("input-search",nn),xi=li("input",qt),{compactSize:xn}=(0,Ke.ri)($n,Ot),Gt=(0,Ne.Z)(gt=>{var tn;return(tn=mn!=null?mn:xn)!==null&&tn!==void 0?tn:gt}),jt=Ee.useRef(null),It=gt=>{gt&&gt.target&&gt.type==="click"&&zt&&zt(gt.target.value,gt,{source:"clear"}),sn&&sn(gt)},vt=gt=>{var tn;document.activeElement===((tn=jt.current)===null||tn===void 0?void 0:tn.input)&&gt.preventDefault()},Xt=gt=>{var tn,yn;zt&&zt((yn=(tn=jt.current)===null||tn===void 0?void 0:tn.input)===null||yn===void 0?void 0:yn.value,gt,{source:"input"})},Zt=gt=>{kn.current||Cn||Xt(gt)},yt=typeof qe=="boolean"?Ee.createElement(Se.Z,null):null,ft=`${$n}-button`;let _e;const Pe=qe||{},be=Pe.type&&Pe.type.__ANT_BUTTON===!0;be||Pe.type==="button"?_e=(0,ke.Tm)(Pe,Object.assign({onMouseDown:vt,onClick:gt=>{var tn,yn;(yn=(tn=Pe==null?void 0:Pe.props)===null||tn===void 0?void 0:tn.onClick)===null||yn===void 0||yn.call(tn,gt),Xt(gt)},key:"enterButton"},be?{className:ft,size:Gt}:{})):_e=Ee.createElement(Be.ZP,{className:ft,type:qe?"primary":void 0,size:Gt,disabled:Zn,key:"enterButton",onMouseDown:vt,onClick:Xt,loading:Cn,icon:yt},qe),Bt&&(_e=[_e,(0,ke.Tm)(Bt,{key:"addonAfter"})]);const Ue=Te()($n,{[`${$n}-rtl`]:Ot==="rtl",[`${$n}-${Gt}`]:!!Gt,[`${$n}-with-button`]:!!qe},un),Qe=gt=>{kn.current=!0,Mn==null||Mn(gt)},Fe=gt=>{kn.current=!1,fi==null||fi(gt)};return Ee.createElement(Je.Z,Object.assign({ref:(0,Lt.sQ)(jt,dn),onPressEnter:Zt},Rn,{size:Gt,onCompositionStart:Qe,onCompositionEnd:Fe,prefixCls:xi,addonAfter:_e,suffix:Ct,onChange:It,className:Ue,disabled:Zn}))}),Tt=ae(1643);const nt=Je.Z;nt.Group=it,nt.Search=lt,nt.TextArea=Tt.Z,nt.Password=me;var Ut=nt},99580:function(Ge,xe,ae){"use strict";ae.d(xe,{D:function(){return Se},Z:function(){return Ne}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function($e,at){return Te.createElement(je.Z,(0,de.Z)({},$e,{ref:at,icon:Re}))},we=Te.forwardRef(Ze),it=we,Je=ae(16537),Ye=ae(53878),st=ae(92310),ht=ae.n(st),Lt=ae(64002),ee=Ke=>!isNaN(parseFloat(Ke))&&isFinite(Ke),ne=ae(36355),fe=ae(84966),le=function(Ke,$e){var at={};for(var lt in Ke)Object.prototype.hasOwnProperty.call(Ke,lt)&&$e.indexOf(lt)<0&&(at[lt]=Ke[lt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,lt=Object.getOwnPropertySymbols(Ke);Tt<lt.length;Tt++)$e.indexOf(lt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,lt[Tt])&&(at[lt[Tt]]=Ke[lt[Tt]]);return at};const me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Se=Te.createContext({}),ke=(()=>{let Ke=0;return function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ke+=1,`${$e}${Ke}`}})();var Ne=Te.forwardRef((Ke,$e)=>{const{prefixCls:at,className:lt,trigger:Tt,children:nt,defaultCollapsed:Ut=!1,theme:kt="dark",style:dn={},collapsible:nn=!1,reverseArrow:qt=!1,width:un=200,collapsedWidth:mn=80,zeroWidthTriggerStyle:Ct,breakpoint:qe,onCollapse:Bt,onBreakpoint:Cn}=Ke,Zn=le(Ke,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:zt}=(0,Te.useContext)(fe.Gs),[sn,Mn]=(0,Te.useState)("collapsed"in Ke?Ke.collapsed:Ut),[fi,Rn]=(0,Te.useState)(!1);(0,Te.useEffect)(()=>{"collapsed"in Ke&&Mn(Ke.collapsed)},[Ke.collapsed]);const li=(Gt,jt)=>{"collapsed"in Ke||Mn(Gt),Bt==null||Bt(Gt,jt)},Ot=(0,Te.useRef)();Ot.current=Gt=>{Rn(Gt.matches),Cn==null||Cn(Gt.matches),sn!==Gt.matches&&li(Gt.matches,"responsive")},(0,Te.useEffect)(()=>{function Gt(It){return Ot.current(It)}let jt;if(typeof window!="undefined"){const{matchMedia:It}=window;if(It&&qe&&qe in me){jt=It(`(max-width: ${me[qe]})`);try{jt.addEventListener("change",Gt)}catch(vt){jt.addListener(Gt)}Gt(jt)}}return()=>{try{jt==null||jt.removeEventListener("change",Gt)}catch(It){jt==null||jt.removeListener(Gt)}}},[qe]),(0,Te.useEffect)(()=>{const Gt=ke("ant-sider-");return zt.addSider(Gt),()=>zt.removeSider(Gt)},[]);const kn=()=>{li(!sn,"clickTrigger")},{getPrefixCls:$n}=(0,Te.useContext)(ne.E_),xi=()=>{const Gt=$n("layout-sider",at),jt=(0,Lt.Z)(Zn,["collapsed"]),It=sn?mn:un,vt=ee(It)?`${It}px`:String(It),Xt=parseFloat(String(mn||0))===0?Te.createElement("span",{onClick:kn,className:ht()(`${Gt}-zero-width-trigger`,`${Gt}-zero-width-trigger-${qt?"right":"left"}`),style:Ct},Tt||Te.createElement(it,null)):null,ft={expanded:qt?Te.createElement(Ye.Z,null):Te.createElement(Je.Z,null),collapsed:qt?Te.createElement(Je.Z,null):Te.createElement(Ye.Z,null)}[sn?"collapsed":"expanded"],_e=Tt!==null?Xt||Te.createElement("div",{className:`${Gt}-trigger`,onClick:kn,style:{width:vt}},Tt||ft):null,Pe=Object.assign(Object.assign({},dn),{flex:`0 0 ${vt}`,maxWidth:vt,minWidth:vt,width:vt}),be=ht()(Gt,`${Gt}-${kt}`,{[`${Gt}-collapsed`]:!!sn,[`${Gt}-has-trigger`]:nn&&Tt!==null&&!Xt,[`${Gt}-below`]:!!fi,[`${Gt}-zero-width`]:parseFloat(vt)===0},lt);return Te.createElement("aside",Object.assign({className:be},jt,{style:Pe,ref:$e}),Te.createElement("div",{className:`${Gt}-children`},nt),nn||fi&&Xt?_e:null)},xn=Te.useMemo(()=>({siderCollapsed:sn}),[sn]);return Te.createElement(Se.Provider,{value:xn},xi())})},84966:function(Ge,xe,ae){"use strict";ae.d(xe,{VY:function(){return Se},$_:function(){return me},h4:function(){return le},Gs:function(){return Lt},ZP:function(){return ke}});var de=ae(26390),Te=ae(92310),Ee=ae.n(Te),Re=ae(64002),je=ae(59301),Ze=ae(36355),we=ae(83116),Je=Be=>{const{componentCls:Ne,bodyBg:Ke,lightSiderBg:$e,lightTriggerBg:at,lightTriggerColor:lt}=Be;return{[`${Ne}-sider-light`]:{background:$e,[`${Ne}-sider-trigger`]:{color:lt,background:at},[`${Ne}-sider-zero-width-trigger`]:{color:lt,background:at,border:`1px solid ${Ke}`,borderInlineStart:0}}}};const Ye=Be=>{const{antCls:Ne,componentCls:Ke,colorText:$e,triggerColor:at,footerBg:lt,triggerBg:Tt,headerHeight:nt,headerPadding:Ut,headerColor:kt,footerPadding:dn,triggerHeight:nn,zeroTriggerHeight:qt,zeroTriggerWidth:un,motionDurationMid:mn,motionDurationSlow:Ct,fontSize:qe,borderRadius:Bt,bodyBg:Cn,headerBg:Zn,siderBg:zt}=Be;return{[Ke]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Cn,"&, *":{boxSizing:"border-box"},[`&${Ke}-has-sider`]:{flexDirection:"row",[`> ${Ke}, > ${Ke}-content`]:{width:0}},[`${Ke}-header, &${Ke}-footer`]:{flex:"0 0 auto"},[`${Ke}-sider`]:{position:"relative",minWidth:0,background:zt,transition:`all ${mn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ne}-menu${Ne}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:nn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:nn,color:at,lineHeight:`${nn}px`,textAlign:"center",background:Tt,cursor:"pointer",transition:`all ${mn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:nt,insetInlineEnd:-un,zIndex:1,width:un,height:qt,color:at,fontSize:Be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:zt,borderStartStartRadius:0,borderStartEndRadius:Bt,borderEndEndRadius:Bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-un,borderStartStartRadius:Bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Bt}}}}},Je(Be)),{"&-rtl":{direction:"rtl"}}),[`${Ke}-header`]:{height:nt,padding:Ut,color:kt,lineHeight:`${nt}px`,background:Zn,[`${Ne}-menu`]:{lineHeight:"inherit"}},[`${Ke}-footer`]:{padding:dn,color:$e,fontSize:qe,background:lt},[`${Ke}-content`]:{flex:"auto",minHeight:0}}};var st=(0,we.Z)("Layout",Be=>[Ye(Be)],Be=>{const{colorBgLayout:Ne,controlHeight:Ke,controlHeightLG:$e,colorText:at,controlHeightSM:lt,marginXXS:Tt,colorTextLightSolid:nt,colorBgContainer:Ut}=Be,kt=$e*1.25;return{colorBgHeader:"#001529",colorBgBody:Ne,colorBgTrigger:"#002140",bodyBg:Ne,headerBg:"#001529",headerHeight:Ke*2,headerPadding:`0 ${kt}px`,headerColor:at,footerPadding:`${lt}px ${kt}px`,footerBg:Ne,siderBg:"#001529",triggerHeight:$e+Tt*2,triggerBg:"#002140",triggerColor:nt,zeroTriggerWidth:$e,zeroTriggerHeight:$e,lightSiderBg:Ut,lightTriggerBg:Ut,lightTriggerColor:at}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ht=function(Be,Ne){var Ke={};for(var $e in Be)Object.prototype.hasOwnProperty.call(Be,$e)&&Ne.indexOf($e)<0&&(Ke[$e]=Be[$e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,$e=Object.getOwnPropertySymbols(Be);at<$e.length;at++)Ne.indexOf($e[at])<0&&Object.prototype.propertyIsEnumerable.call(Be,$e[at])&&(Ke[$e[at]]=Be[$e[at]]);return Ke};const Lt=je.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ze(Be){let{suffixCls:Ne,tagName:Ke,displayName:$e}=Be;return at=>je.forwardRef((Tt,nt)=>je.createElement(at,Object.assign({ref:nt,suffixCls:Ne,tagName:Ke},Tt)))}const ee=je.forwardRef((Be,Ne)=>{const{prefixCls:Ke,suffixCls:$e,className:at,tagName:lt}=Be,Tt=ht(Be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:nt}=je.useContext(Ze.E_),Ut=nt("layout",Ke),[kt,dn]=st(Ut),nn=$e?`${Ut}-${$e}`:Ut;return kt(je.createElement(lt,Object.assign({className:Ee()(Ke||nn,at,dn),ref:Ne},Tt)))}),ne=je.forwardRef((Be,Ne)=>{const{direction:Ke}=je.useContext(Ze.E_),[$e,at]=je.useState([]),{prefixCls:lt,className:Tt,rootClassName:nt,children:Ut,hasSider:kt,tagName:dn,style:nn}=Be,qt=ht(Be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),un=(0,Re.Z)(qt,["suffixCls"]),{getPrefixCls:mn,layout:Ct}=je.useContext(Ze.E_),qe=mn("layout",lt),[Bt,Cn]=st(qe),Zn=Ee()(qe,{[`${qe}-has-sider`]:typeof kt=="boolean"?kt:$e.length>0,[`${qe}-rtl`]:Ke==="rtl"},Ct==null?void 0:Ct.className,Tt,nt,Cn),zt=je.useMemo(()=>({siderHook:{addSider:sn=>{at(Mn=>[].concat((0,de.Z)(Mn),[sn]))},removeSider:sn=>{at(Mn=>Mn.filter(fi=>fi!==sn))}}}),[]);return Bt(je.createElement(Lt.Provider,{value:zt},je.createElement(dn,Object.assign({ref:Ne,className:Zn,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),nn)},un),Ut)))}),fe=ze({tagName:"div",displayName:"Layout"})(ne),le=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 ke=fe},40875:function(Ge,xe,ae){"use strict";ae.d(xe,{J:function(){return Ze}});var de=ae(59301),Te=ae(33234),Ee=ae(80764),Re=function(we,it){var Je={};for(var Ye in we)Object.prototype.hasOwnProperty.call(we,Ye)&&it.indexOf(Ye)<0&&(Je[Ye]=we[Ye]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ye=Object.getOwnPropertySymbols(we);st<Ye.length;st++)it.indexOf(Ye[st])<0&&Object.prototype.propertyIsEnumerable.call(we,Ye[st])&&(Je[Ye[st]]=we[Ye[st]]);return Je};const je=de.createContext(null),Ze=de.forwardRef((we,it)=>{const{children:Je}=we,Ye=Re(we,["children"]),st=de.useContext(je),ht=de.useMemo(()=>Object.assign(Object.assign({},st),Ye),[st,Ye.prefixCls,Ye.mode,Ye.selectable]);return de.createElement(je.Provider,{value:ht},de.createElement(Te.BR,null,(0,Ee.supportNodeRef)(Je)?de.cloneElement(Je,{ref:it}):Je))});xe.Z=je},20834:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return xn}});var de=ae(22798),Te=ae(59301),Ee=ae(99580),Re=ae(92310),je=ae.n(Re),Ze=ae(36355),we=function(Gt,jt){var It={};for(var vt in Gt)Object.prototype.hasOwnProperty.call(Gt,vt)&&jt.indexOf(vt)<0&&(It[vt]=Gt[vt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,vt=Object.getOwnPropertySymbols(Gt);Xt<vt.length;Xt++)jt.indexOf(vt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,vt[Xt])&&(It[vt[Xt]]=Gt[vt[Xt]]);return It},Je=Gt=>{const{prefixCls:jt,className:It,dashed:vt}=Gt,Xt=we(Gt,["prefixCls","className","dashed"]),{getPrefixCls:Zt}=Te.useContext(Ze.E_),yt=Zt("menu",jt),ft=je()({[`${yt}-item-divider-dashed`]:!!vt},It);return Te.createElement(de.iz,Object.assign({className:ft},Xt))},Ye=ae(38298),st=ae(64002),ht=ae(6848),Lt=ae(92343),ee=(0,Te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),fe=Gt=>{var jt;const{className:It,children:vt,icon:Xt,title:Zt,danger:yt}=Gt,{prefixCls:ft,firstLevel:_e,direction:Pe,disableMenuItemTitleTooltip:be,inlineCollapsed:Ue}=Te.useContext(ee),Qe=Wt=>{const fn=Te.createElement("span",{className:`${ft}-title-content`},vt);return(!Xt||(0,Lt.l$)(vt)&&vt.type==="span")&&vt&&Wt&&_e&&typeof vt=="string"?Te.createElement("div",{className:`${ft}-inline-collapsed-noicon`},vt.charAt(0)):fn},{siderCollapsed:Fe}=Te.useContext(Ee.D);let gt=Zt;typeof Zt=="undefined"?gt=_e?vt:"":Zt===!1&&(gt="");const tn={title:gt};!Fe&&!Ue&&(tn.title=null,tn.open=!1);const yn=(0,Ye.Z)(vt).length;let bt=Te.createElement(de.ck,Object.assign({},(0,st.Z)(Gt,["title","icon","danger"]),{className:je()({[`${ft}-item-danger`]:yt,[`${ft}-item-only-child`]:(Xt?yn+1:yn)===1},It),title:typeof Zt=="string"?Zt:void 0}),(0,Lt.Tm)(Xt,{className:je()((0,Lt.l$)(Xt)?(jt=Xt.props)===null||jt===void 0?void 0:jt.className:"",`${ft}-item-icon`)}),Qe(Ue));return be||(bt=Te.createElement(ht.Z,Object.assign({},tn,{placement:Pe==="rtl"?"left":"right",overlayClassName:`${ft}-inline-collapsed-tooltip`}),bt)),bt},me=Gt=>{var jt;const{popupClassName:It,icon:vt,title:Xt,theme:Zt}=Gt,yt=Te.useContext(ee),{prefixCls:ft,inlineCollapsed:_e,theme:Pe}=yt,be=(0,de.Xl)();let Ue;if(!vt)Ue=_e&&!be.length&&Xt&&typeof Xt=="string"?Te.createElement("div",{className:`${ft}-inline-collapsed-noicon`},Xt.charAt(0)):Te.createElement("span",{className:`${ft}-title-content`},Xt);else{const Fe=(0,Lt.l$)(Xt)&&Xt.type==="span";Ue=Te.createElement(Te.Fragment,null,(0,Lt.Tm)(vt,{className:je()((0,Lt.l$)(vt)?(jt=vt.props)===null||jt===void 0?void 0:jt.className:"",`${ft}-item-icon`)}),Fe?Xt:Te.createElement("span",{className:`${ft}-title-content`},Xt))}const Qe=Te.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]);return Te.createElement(ee.Provider,{value:Qe},Te.createElement(de.Wd,Object.assign({},(0,st.Z)(Gt,["icon"]),{title:Ue,popupClassName:je()(ft,It,`${ft}-${Zt||Pe}`)})))},Se=ae(19362),ke=ae(80764),Be=ae(62892),Ne=ae(40875),Ke=function(Gt,jt){var It={};for(var vt in Gt)Object.prototype.hasOwnProperty.call(Gt,vt)&&jt.indexOf(vt)<0&&(It[vt]=Gt[vt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,vt=Object.getOwnPropertySymbols(Gt);Xt<vt.length;Xt++)jt.indexOf(vt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,vt[Xt])&&(It[vt[Xt]]=Gt[vt[Xt]]);return It};function $e(Gt){return(Gt||[]).map((jt,It)=>{if(jt&&typeof jt=="object"){const vt=jt,{label:Xt,children:Zt,key:yt,type:ft}=vt,_e=Ke(vt,["label","children","key","type"]),Pe=yt!=null?yt:`tmp-${It}`;return Zt||ft==="group"?ft==="group"?Te.createElement(de.BW,Object.assign({key:Pe},_e,{title:Xt}),$e(Zt)):Te.createElement(me,Object.assign({key:Pe},_e,{title:Xt}),$e(Zt)):ft==="divider"?Te.createElement(Je,Object.assign({key:Pe},_e)):Te.createElement(fe,Object.assign({key:Pe},_e),Xt)}return null}).filter(jt=>jt)}function at(Gt){return Te.useMemo(()=>Gt&&$e(Gt),[Gt])}var lt=ae(64993),Tt=ae(17313),nt=ae(8378),Ut=ae(13826),kt=ae(29878),dn=ae(83116),nn=ae(37613),un=Gt=>{const{componentCls:jt,motionDurationSlow:It,horizontalLineHeight:vt,colorSplit:Xt,lineWidth:Zt,lineType:yt,itemPaddingInline:ft}=Gt;return{[`${jt}-horizontal`]:{lineHeight:vt,border:0,borderBottom:`${Zt}px ${yt} ${Xt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${jt}-item, ${jt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ft},[`> ${jt}-item:hover,
> ${jt}-item-active,
> ${jt}-submenu ${jt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${jt}-item, ${jt}-submenu-title`]:{transition:[`border-color ${It}`,`background ${It}`].join(",")},[`${jt}-submenu-arrow`]:{display:"none"}}}},Ct=Gt=>{let{componentCls:jt,menuArrowOffset:It}=Gt;return{[`${jt}-rtl`]:{direction:"rtl"},[`${jt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${jt}-rtl${jt}-vertical,
${jt}-submenu-rtl ${jt}-vertical`]:{[`${jt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${It})`},"&::after":{transform:`rotate(45deg) translateY(${It})`}}}}};const qe=Gt=>Object.assign({},(0,Tt.oN)(Gt));var Cn=(Gt,jt)=>{const{componentCls:It,itemColor:vt,itemSelectedColor:Xt,groupTitleColor:Zt,itemBg:yt,subMenuItemBg:ft,itemSelectedBg:_e,activeBarHeight:Pe,activeBarWidth:be,activeBarBorderWidth:Ue,motionDurationSlow:Qe,motionEaseInOut:Fe,motionEaseOut:gt,itemPaddingInline:tn,motionDurationMid:yn,itemHoverColor:bt,lineType:Wt,colorSplit:fn,itemDisabledColor:zn,dangerItemColor:ni,dangerItemHoverColor:di,dangerItemSelectedColor:wi,dangerItemActiveBg:hi,dangerItemSelectedBg:Li,itemHoverBg:Yi,itemActiveBg:Ji,menuSubMenuBg:Xi,horizontalItemSelectedColor:dr,horizontalItemSelectedBg:Ir,horizontalItemBorderRadius:Wi,horizontalItemHoverBg:Dr,popupBg:_i}=Gt;return{[`${It}-${jt}, ${It}-${jt} > ${It}`]:{color:vt,background:yt,[`&${It}-root:focus-visible`]:Object.assign({},qe(Gt)),[`${It}-item-group-title`]:{color:Zt},[`${It}-submenu-selected`]:{[`> ${It}-submenu-title`]:{color:Xt}},[`${It}-item-disabled, ${It}-submenu-disabled`]:{color:`${zn} !important`},[`${It}-item:not(${It}-item-selected):not(${It}-submenu-selected)`]:{[`&:hover, > ${It}-submenu-title:hover`]:{color:bt}},[`&:not(${It}-horizontal)`]:{[`${It}-item:not(${It}-item-selected)`]:{"&:hover":{backgroundColor:Yi},"&:active":{backgroundColor:Ji}},[`${It}-submenu-title`]:{"&:hover":{backgroundColor:Yi},"&:active":{backgroundColor:Ji}}},[`${It}-item-danger`]:{color:ni,[`&${It}-item:hover`]:{[`&:not(${It}-item-selected):not(${It}-submenu-selected)`]:{color:di}},[`&${It}-item:active`]:{background:hi}},[`${It}-item a`]:{"&, &:hover":{color:"inherit"}},[`${It}-item-selected`]:{color:Xt,[`&${It}-item-danger`]:{color:wi},"a, a:hover":{color:"inherit"}},[`& ${It}-item-selected`]:{backgroundColor:_e,[`&${It}-item-danger`]:{backgroundColor:Li}},[`${It}-item, ${It}-submenu-title`]:{[`&:not(${It}-item-disabled):focus-visible`]:Object.assign({},qe(Gt))},[`&${It}-submenu > ${It}`]:{backgroundColor:Xi},[`&${It}-popup > ${It}`]:{backgroundColor:_i},[`&${It}-horizontal`]:Object.assign(Object.assign({},jt==="dark"?{borderBottom:0}:{}),{[`> ${It}-item, > ${It}-submenu`]:{top:Ue,marginTop:-Ue,marginBottom:0,borderRadius:Wi,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${Pe}px solid transparent`,transition:`border-color ${Qe} ${Fe}`,content:'""'},"&:hover, &-active, &-open":{background:Dr,"&::after":{borderBottomWidth:Pe,borderBottomColor:dr}},"&-selected":{color:dr,backgroundColor:Ir,"&:hover":{backgroundColor:Ir},"&::after":{borderBottomWidth:Pe,borderBottomColor:dr}}}}),[`&${It}-root`]:{[`&${It}-inline, &${It}-vertical`]:{borderInlineEnd:`${Ue}px ${Wt} ${fn}`}},[`&${It}-inline`]:{[`${It}-sub${It}-inline`]:{background:ft},[`${It}-item, ${It}-submenu-title`]:Ue&&be?{width:`calc(100% + ${Ue}px)`}:{},[`${It}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${be}px solid ${Xt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${yn} ${gt}`,`opacity ${yn} ${gt}`].join(","),content:'""'},[`&${It}-item-danger`]:{"&::after":{borderInlineEndColor:wi}}},[`${It}-selected, ${It}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${yn} ${Fe}`,`opacity ${yn} ${Fe}`].join(",")}}}}}};const Zn=Gt=>{const{componentCls:jt,itemHeight:It,itemMarginInline:vt,padding:Xt,menuArrowSize:Zt,marginXS:yt,itemMarginBlock:ft}=Gt,_e=Xt+Zt+yt;return{[`${jt}-item`]:{position:"relative",overflow:"hidden"},[`${jt}-item, ${jt}-submenu-title`]:{height:It,lineHeight:`${It}px`,paddingInline:Xt,overflow:"hidden",textOverflow:"ellipsis",marginInline:vt,marginBlock:ft,width:`calc(100% - ${vt*2}px)`},[`> ${jt}-item,
> ${jt}-submenu > ${jt}-submenu-title`]:{height:It,lineHeight:`${It}px`},[`${jt}-item-group-list ${jt}-submenu-title,
${jt}-submenu-title`]:{paddingInlineEnd:_e}}};var sn=Gt=>{const{componentCls:jt,iconCls:It,itemHeight:vt,colorTextLightSolid:Xt,dropdownWidth:Zt,controlHeightLG:yt,motionDurationMid:ft,motionEaseOut:_e,paddingXL:Pe,itemMarginInline:be,fontSizeLG:Ue,motionDurationSlow:Qe,paddingXS:Fe,boxShadowSecondary:gt,collapsedWidth:tn,collapsedIconSize:yn}=Gt,bt={height:vt,lineHeight:`${vt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[jt]:{"&-inline, &-vertical":Object.assign({[`&${jt}-root`]:{boxShadow:"none"}},Zn(Gt))},[`${jt}-submenu-popup`]:{[`${jt}-vertical`]:Object.assign(Object.assign({},Zn(Gt)),{boxShadow:gt})}},{[`${jt}-submenu-popup ${jt}-vertical${jt}-sub`]:{minWidth:Zt,maxHeight:`calc(100vh - ${yt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${jt}-inline`]:{width:"100%",[`&${jt}-root`]:{[`${jt}-item, ${jt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qe}`,`background ${Qe}`,`padding ${ft} ${_e}`].join(","),[`> ${jt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${jt}-sub${jt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${jt}-submenu > ${jt}-submenu-title`]:bt,[`& ${jt}-item-group-title`]:{paddingInlineStart:Pe}},[`${jt}-item`]:bt}},{[`${jt}-inline-collapsed`]:{width:tn,[`&${jt}-root`]:{[`${jt}-item, ${jt}-submenu ${jt}-submenu-title`]:{[`> ${jt}-inline-collapsed-noicon`]:{fontSize:Ue,textAlign:"center"}}},[`> ${jt}-item,
> ${jt}-item-group > ${jt}-item-group-list > ${jt}-item,
> ${jt}-item-group > ${jt}-item-group-list > ${jt}-submenu > ${jt}-submenu-title,
> ${jt}-submenu > ${jt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ue/2}px - ${be}px)`,textOverflow:"clip",[`
${jt}-submenu-arrow,
${jt}-submenu-expand-icon
`]:{opacity:0},[`${jt}-item-icon, ${It}`]:{margin:0,fontSize:yn,lineHeight:`${vt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${jt}-item-icon, ${It}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${jt}-item-icon, ${It}`]:{display:"none"},"a, a:hover":{color:Xt}},[`${jt}-item-group-title`]:Object.assign(Object.assign({},Tt.vS),{paddingInline:Fe})}}]};const Mn=Gt=>{const{componentCls:jt,motionDurationSlow:It,motionDurationMid:vt,motionEaseInOut:Xt,motionEaseOut:Zt,iconCls:yt,iconSize:ft,iconMarginInlineEnd:_e}=Gt;return{[`${jt}-item, ${jt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${It}`,`background ${It}`,`padding ${It} ${Xt}`].join(","),[`${jt}-item-icon, ${yt}`]:{minWidth:ft,fontSize:ft,transition:[`font-size ${vt} ${Zt}`,`margin ${It} ${Xt}`,`color ${It}`].join(","),"+ span":{marginInlineStart:_e,opacity:1,transition:[`opacity ${It} ${Xt}`,`margin ${It}`,`color ${It}`].join(",")}},[`${jt}-item-icon`]:Object.assign({},(0,Tt.Ro)()),[`&${jt}-item-only-child`]:{[`> ${yt}, > ${jt}-item-icon`]:{marginInlineEnd:0}}},[`${jt}-item-disabled, ${jt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${jt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fi=Gt=>{const{componentCls:jt,motionDurationSlow:It,motionEaseInOut:vt,borderRadius:Xt,menuArrowSize:Zt,menuArrowOffset:yt}=Gt;return{[`${jt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Gt.margin,width:Zt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${It} ${vt}, opacity ${It}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Zt*.6,height:Zt*.15,backgroundColor:"currentcolor",borderRadius:Xt,transition:[`background ${It} ${vt}`,`transform ${It} ${vt}`,`top ${It} ${vt}`,`color ${It} ${vt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${yt})`},"&::after":{transform:`rotate(-45deg) translateY(${yt})`}}}}},Rn=Gt=>{const{antCls:jt,componentCls:It,fontSize:vt,motionDurationSlow:Xt,motionDurationMid:Zt,motionEaseInOut:yt,paddingXS:ft,padding:_e,colorSplit:Pe,lineWidth:be,zIndexPopup:Ue,borderRadiusLG:Qe,subMenuItemBorderRadius:Fe,menuArrowSize:gt,menuArrowOffset:tn,lineType:yn,menuPanelMaskInset:bt,groupTitleLineHeight:Wt,groupTitleFontSize:fn}=Gt;return[{"":{[`${It}`]:Object.assign(Object.assign({},(0,Tt.dF)()),{"&-hidden":{display:"none"}})},[`${It}-submenu-hidden`]:{display:"none"}},{[It]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Tt.Wf)(Gt)),(0,Tt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:vt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Xt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${It}-item`]:{flex:"none"}},[`${It}-item, ${It}-submenu, ${It}-submenu-title`]:{borderRadius:Gt.itemBorderRadius},[`${It}-item-group-title`]:{padding:`${ft}px ${_e}px`,fontSize:fn,lineHeight:Wt,transition:`all ${Xt}`},[`&-horizontal ${It}-submenu`]:{transition:[`border-color ${Xt} ${yt}`,`background ${Xt} ${yt}`].join(",")},[`${It}-submenu, ${It}-submenu-inline`]:{transition:[`border-color ${Xt} ${yt}`,`background ${Xt} ${yt}`,`padding ${Zt} ${yt}`].join(",")},[`${It}-submenu ${It}-sub`]:{cursor:"initial",transition:[`background ${Xt} ${yt}`,`padding ${Xt} ${yt}`].join(",")},[`${It}-title-content`]:{transition:`color ${Xt}`},[`${It}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${It}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Pe,borderStyle:yn,borderWidth:0,borderTopWidth:be,marginBlock:be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Mn(Gt)),{[`${It}-item-group`]:{[`${It}-item-group-list`]:{margin:0,padding:0,[`${It}-item, ${It}-submenu-title`]:{paddingInline:`${vt*2}px ${_e}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ue,borderRadius:Qe,boxShadow:"none",transformOrigin:"0 0",[`&${It}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:Gt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Gt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Gt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Gt.paddingXS},[`> ${It}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qe},Mn(Gt)),fi(Gt)),{[`${It}-item, ${It}-submenu > ${It}-submenu-title`]:{borderRadius:Fe},[`${It}-submenu-title::after`]:{transition:`transform ${Xt} ${yt}`}})}}),fi(Gt)),{[`&-inline-collapsed ${It}-submenu-arrow,
&-inline ${It}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tn})`},"&::after":{transform:`rotate(45deg) translateX(-${tn})`}},[`${It}-submenu-open${It}-submenu-inline > ${It}-submenu-title > ${It}-submenu-arrow`]:{transform:`translateY(-${gt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tn})`},"&::before":{transform:`rotate(45deg) translateX(${tn})`}}})},{[`${jt}-layout-header`]:{[It]:{lineHeight:"inherit"}}}]};var li=(Gt,jt)=>(0,dn.Z)("Menu",vt=>{if(jt===!1)return[];const{colorBgElevated:Xt,colorPrimary:Zt,colorTextLightSolid:yt,controlHeightLG:ft,fontSize:_e,darkItemColor:Pe,darkDangerItemColor:be,darkItemBg:Ue,darkSubMenuItemBg:Qe,darkItemSelectedColor:Fe,darkItemSelectedBg:gt,darkDangerItemSelectedBg:tn,darkItemHoverBg:yn,darkGroupTitleColor:bt,darkItemHoverColor:Wt,darkItemDisabledColor:fn,darkDangerItemHoverColor:zn,darkDangerItemSelectedColor:ni,darkDangerItemActiveBg:di}=vt,wi=_e/7*5,hi=(0,nn.TS)(vt,{menuArrowSize:wi,menuHorizontalHeight:ft*1.15,menuArrowOffset:`${wi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Xt}),Li=(0,nn.TS)(hi,{itemColor:Pe,itemHoverColor:Wt,groupTitleColor:bt,itemSelectedColor:Fe,itemBg:Ue,popupBg:Ue,subMenuItemBg:Qe,itemActiveBg:"transparent",itemSelectedBg:gt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:yn,itemDisabledColor:fn,dangerItemColor:be,dangerItemHoverColor:zn,dangerItemSelectedColor:ni,dangerItemActiveBg:di,dangerItemSelectedBg:tn,menuSubMenuBg:Qe,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:Zt});return[Rn(hi),un(hi),sn(hi),Cn(hi,"light"),Cn(Li,"dark"),Ct(hi),(0,nt.Z)(hi),(0,Ut.oN)(hi,"slide-up"),(0,Ut.oN)(hi,"slide-down"),(0,kt._y)(hi,"zoom-big")]},vt=>{const{colorPrimary:Xt,colorError:Zt,colorTextDisabled:yt,colorErrorBg:ft,colorText:_e,colorTextDescription:Pe,colorBgContainer:be,colorFillAlter:Ue,colorFillContent:Qe,lineWidth:Fe,lineWidthBold:gt,controlItemBgActive:tn,colorBgTextHover:yn,controlHeightLG:bt,lineHeight:Wt,colorBgElevated:fn,marginXXS:zn,padding:ni,fontSize:di,controlHeightSM:wi,fontSizeLG:hi,colorTextLightSolid:Li,colorErrorHover:Yi}=vt,Ji=new lt.C(Li).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:vt.zIndexPopupBase+50,radiusItem:vt.borderRadiusLG,itemBorderRadius:vt.borderRadiusLG,radiusSubMenuItem:vt.borderRadiusSM,subMenuItemBorderRadius:vt.borderRadiusSM,colorItemText:_e,itemColor:_e,colorItemTextHover:_e,itemHoverColor:_e,colorItemTextHoverHorizontal:Xt,horizontalItemHoverColor:Xt,colorGroupTitle:Pe,groupTitleColor:Pe,colorItemTextSelected:Xt,itemSelectedColor:Xt,colorItemTextSelectedHorizontal:Xt,horizontalItemSelectedColor:Xt,colorItemBg:be,itemBg:be,colorItemBgHover:yn,itemHoverBg:yn,colorItemBgActive:Qe,itemActiveBg:tn,colorSubItemBg:Ue,subMenuItemBg:Ue,colorItemBgSelected:tn,itemSelectedBg:tn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:gt,activeBarHeight:gt,colorActiveBarBorderSize:Fe,activeBarBorderWidth:Fe,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:Zt,dangerItemColor:Zt,colorDangerItemTextHover:Zt,dangerItemHoverColor:Zt,colorDangerItemTextSelected:Zt,dangerItemSelectedColor:Zt,colorDangerItemBgActive:ft,dangerItemActiveBg:ft,colorDangerItemBgSelected:ft,dangerItemSelectedBg:ft,itemMarginInline:vt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:Wt,collapsedWidth:bt*2,popupBg:fn,itemMarginBlock:zn,itemPaddingInline:ni,horizontalLineHeight:`${bt*1.15}px`,iconSize:di,iconMarginInlineEnd:wi-di,collapsedIconSize:hi,groupTitleFontSize:di,darkItemDisabledColor:new lt.C(Li).setAlpha(.25).toRgbString(),darkItemColor:Ji,darkDangerItemColor:Zt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Li,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:Zt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ji,darkItemHoverColor:Li,darkDangerItemHoverColor:Yi,darkDangerItemSelectedColor:Li,darkDangerItemActiveBg:Zt}},{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"]]})(Gt),Ot=function(Gt,jt){var It={};for(var vt in Gt)Object.prototype.hasOwnProperty.call(Gt,vt)&&jt.indexOf(vt)<0&&(It[vt]=Gt[vt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,vt=Object.getOwnPropertySymbols(Gt);Xt<vt.length;Xt++)jt.indexOf(vt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,vt[Xt])&&(It[vt[Xt]]=Gt[vt[Xt]]);return It},$n=(0,Te.forwardRef)((Gt,jt)=>{var It,vt;const Xt=Te.useContext(Ne.Z),Zt=Xt||{},{getPrefixCls:yt,getPopupContainer:ft,direction:_e,menu:Pe}=Te.useContext(Ze.E_),be=yt(),{prefixCls:Ue,className:Qe,style:Fe,theme:gt="light",expandIcon:tn,_internalDisableMenuItemTitleTooltip:yn,inlineCollapsed:bt,siderCollapsed:Wt,items:fn,children:zn,rootClassName:ni,mode:di,selectable:wi,onClick:hi,overflowedIndicatorPopupClassName:Li}=Gt,Yi=Ot(Gt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ji=(0,st.Z)(Yi,["collapsedWidth"]),Xi=at(fn)||zn;(It=Zt.validator)===null||It===void 0||It.call(Zt,{mode:di});const dr=(0,ke.useEvent)(function(){var Co;hi==null||hi.apply(void 0,arguments),(Co=Zt.onClick)===null||Co===void 0||Co.call(Zt)}),Ir=Zt.mode||di,Wi=wi!=null?wi:Zt.selectable,Dr=Te.useMemo(()=>Wt!==void 0?Wt:bt,[bt,Wt]),_i={horizontal:{motionName:`${be}-slide-up`},inline:(0,Be.Z)(be),other:{motionName:`${be}-zoom-big`}},De=yt("menu",Ue||Zt.prefixCls),[jr,hr]=li(De,!Xt),oo=je()(`${De}-${gt}`,Pe==null?void 0:Pe.className,Qe);let Oo;if(typeof tn=="function")Oo=tn;else if(tn===null||tn===!1)Oo=null;else if(Zt.expandIcon===null||Zt.expandIcon===!1)Oo=null;else{const Co=tn!=null?tn:Zt.expandIcon;Oo=(0,Lt.Tm)(Co,{className:je()(`${De}-submenu-expand-icon`,(0,Lt.l$)(Co)?(vt=Co.props)===null||vt===void 0?void 0:vt.className:"")})}const Do=Te.useMemo(()=>({prefixCls:De,inlineCollapsed:Dr||!1,direction:_e,firstLevel:!0,theme:gt,mode:Ir,disableMenuItemTitleTooltip:yn}),[De,Dr,_e,yn,gt]);return jr(Te.createElement(Ne.Z.Provider,{value:null},Te.createElement(ee.Provider,{value:Do},Te.createElement(de.ZP,Object.assign({getPopupContainer:ft,overflowedIndicator:Te.createElement(Se.Z,null),overflowedIndicatorPopupClassName:je()(De,`${De}-${gt}`,Li),mode:Ir,selectable:Wi,onClick:dr},Ji,{inlineCollapsed:Dr,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),Fe),className:oo,prefixCls:De,direction:_e,defaultMotions:_i,expandIcon:Oo,ref:jt,rootClassName:je()(ni,hr)}),Xi))))});const xi=(0,Te.forwardRef)((Gt,jt)=>{const It=(0,Te.useRef)(null),vt=Te.useContext(Ee.D);return(0,Te.useImperativeHandle)(jt,()=>({menu:It.current,focus:Xt=>{var Zt;(Zt=It.current)===null||Zt===void 0||Zt.focus(Xt)}})),Te.createElement($n,Object.assign({ref:It},Gt,vt))});xi.Item=fe,xi.SubMenu=me,xi.Divider=Je,xi.ItemGroup=de.BW;var xn=xi},25700:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Zt}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(ft,_e){return Te.createElement(je.Z,(0,de.Z)({},ft,{ref:_e,icon:Re}))},we=Te.forwardRef(Ze),it=we,Je=ae(93343),Ye=ae(16537),st=ae(53878),ht=ae(92310),Lt=ae.n(ht),ze=ae(80962),ee=ae(57259),ne=ae(79545),fe=ae(68550),le=ae(17928),me=ae(7711),Se=ae(36994),ke={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Be=ke,Ne=ae(91735),Ke=function(yt){(0,le.Z)(_e,yt);var ft=(0,me.Z)(_e);function _e(){var Pe;(0,ne.Z)(this,_e);for(var be=arguments.length,Ue=new Array(be),Qe=0;Qe<be;Qe++)Ue[Qe]=arguments[Qe];return Pe=ft.call.apply(ft,[this].concat(Ue)),Pe.state={goInputText:""},Pe.getValidValue=function(){var Fe=Pe.state.goInputText;return!Fe||Number.isNaN(Fe)?void 0:Number(Fe)},Pe.buildOptionText=function(Fe){return"".concat(Fe," ").concat(Pe.props.locale.items_per_page)},Pe.changeSize=function(Fe){Pe.props.changeSize(Number(Fe))},Pe.handleChange=function(Fe){Pe.setState({goInputText:Fe.target.value})},Pe.handleBlur=function(Fe){var gt=Pe.props,tn=gt.goButton,yn=gt.quickGo,bt=gt.rootPrefixCls,Wt=Pe.state.goInputText;tn||Wt===""||(Pe.setState({goInputText:""}),!(Fe.relatedTarget&&(Fe.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Fe.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&yn(Pe.getValidValue()))},Pe.go=function(Fe){var gt=Pe.state.goInputText;gt!==""&&(Fe.keyCode===Be.ENTER||Fe.type==="click")&&(Pe.setState({goInputText:""}),Pe.props.quickGo(Pe.getValidValue()))},Pe}return(0,fe.Z)(_e,[{key:"getPageSizeOptions",value:function(){var be=this.props,Ue=be.pageSize,Qe=be.pageSizeOptions;return Qe.some(function(Fe){return Fe.toString()===Ue.toString()})?Qe:Qe.concat([Ue.toString()]).sort(function(Fe,gt){var tn=Number.isNaN(Number(Fe))?0:Number(Fe),yn=Number.isNaN(Number(gt))?0:Number(gt);return tn-yn})}},{key:"render",value:function(){var be=this,Ue=this.props,Qe=Ue.pageSize,Fe=Ue.locale,gt=Ue.rootPrefixCls,tn=Ue.changeSize,yn=Ue.quickGo,bt=Ue.goButton,Wt=Ue.selectComponentClass,fn=Ue.buildOptionText,zn=Ue.selectPrefixCls,ni=Ue.disabled,di=this.state.goInputText,wi="".concat(gt,"-options"),hi=Wt,Li=null,Yi=null,Ji=null;if(!tn&&!yn)return null;var Xi=this.getPageSizeOptions();if(tn&&hi){var dr=Xi.map(function(Ir,Wi){return Te.createElement(hi.Option,{key:Wi,value:Ir.toString()},(fn||be.buildOptionText)(Ir))});Li=Te.createElement(hi,{disabled:ni,prefixCls:zn,showSearch:!1,className:"".concat(wi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Qe||Xi[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Wi){return Wi.parentNode},"aria-label":Fe.page_size,defaultOpen:!1},dr)}return yn&&(bt&&(Ji=typeof bt=="boolean"?Te.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ni,className:"".concat(wi,"-quick-jumper-button")},Fe.jump_to_confirm):Te.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),Yi=Te.createElement("div",{className:"".concat(wi,"-quick-jumper")},Fe.jump_to,Te.createElement("input",{disabled:ni,type:"text",value:di,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Fe.page}),Fe.page,Ji)),Te.createElement("li",{className:"".concat(wi)},Li,Yi)}}]),_e}(Te.Component);Ke.defaultProps={pageSizeOptions:["10","20","50","100"]};var $e=Ke,at=function(ft){var _e,Pe=ft.rootPrefixCls,be=ft.page,Ue=ft.active,Qe=ft.className,Fe=ft.showTitle,gt=ft.onClick,tn=ft.onKeyPress,yn=ft.itemRender,bt="".concat(Pe,"-item"),Wt=Lt()(bt,"".concat(bt,"-").concat(be),(_e={},(0,ze.Z)(_e,"".concat(bt,"-active"),Ue),(0,ze.Z)(_e,"".concat(bt,"-disabled"),!be),(0,ze.Z)(_e,ft.className,Qe),_e)),fn=function(){gt(be)},zn=function(wi){tn(wi,gt,be)},ni=yn(be,"page",Te.createElement("a",{rel:"nofollow"},be));return ni?Te.createElement("li",{title:Fe?be.toString():null,className:Wt,onClick:fn,onKeyPress:zn,tabIndex:0},ni):null},lt=at;function Tt(){}function nt(yt){var ft=Number(yt);return typeof ft=="number"&&!Number.isNaN(ft)&&isFinite(ft)&&Math.floor(ft)===ft}var Ut=function(ft,_e,Pe){return Pe};function kt(yt,ft,_e){var Pe=typeof yt=="undefined"?ft.pageSize:yt;return Math.floor((_e.total-1)/Pe)+1}var dn=function(yt){(0,le.Z)(_e,yt);var ft=(0,me.Z)(_e);function _e(Pe){var be;(0,ne.Z)(this,_e),be=ft.call(this,Pe),be.paginationNode=Te.createRef(),be.getJumpPrevPage=function(){return Math.max(1,be.state.current-(be.props.showLessItems?3:5))},be.getJumpNextPage=function(){return Math.min(kt(void 0,be.state,be.props),be.state.current+(be.props.showLessItems?3:5))},be.getItemIcon=function(tn,yn){var bt=be.props.prefixCls,Wt=tn||Te.createElement("button",{type:"button","aria-label":yn,className:"".concat(bt,"-item-link")});return typeof tn=="function"&&(Wt=Te.createElement(tn,(0,ee.Z)({},be.props))),Wt},be.isValid=function(tn){var yn=be.props.total;return nt(tn)&&tn!==be.state.current&&nt(yn)&&yn>0},be.shouldDisplayQuickJumper=function(){var tn=be.props,yn=tn.showQuickJumper,bt=tn.total,Wt=be.state.pageSize;return bt<=Wt?!1:yn},be.handleKeyDown=function(tn){(tn.keyCode===Be.ARROW_UP||tn.keyCode===Be.ARROW_DOWN)&&tn.preventDefault()},be.handleKeyUp=function(tn){var yn=be.getValidValue(tn),bt=be.state.currentInputValue;yn!==bt&&be.setState({currentInputValue:yn}),tn.keyCode===Be.ENTER?be.handleChange(yn):tn.keyCode===Be.ARROW_UP?be.handleChange(yn-1):tn.keyCode===Be.ARROW_DOWN&&be.handleChange(yn+1)},be.handleBlur=function(tn){var yn=be.getValidValue(tn);be.handleChange(yn)},be.changePageSize=function(tn){var yn=be.state.current,bt=kt(tn,be.state,be.props);yn=yn>bt?bt:yn,bt===0&&(yn=be.state.current),typeof tn=="number"&&("pageSize"in be.props||be.setState({pageSize:tn}),"current"in be.props||be.setState({current:yn,currentInputValue:yn})),be.props.onShowSizeChange(yn,tn),"onChange"in be.props&&be.props.onChange&&be.props.onChange(yn,tn)},be.handleChange=function(tn){var yn=be.props,bt=yn.disabled,Wt=yn.onChange,fn=be.state,zn=fn.pageSize,ni=fn.current,di=fn.currentInputValue;if(be.isValid(tn)&&!bt){var wi=kt(void 0,be.state,be.props),hi=tn;return tn>wi?hi=wi:tn<1&&(hi=1),"current"in be.props||be.setState({current:hi}),hi!==di&&be.setState({currentInputValue:hi}),Wt(hi,zn),hi}return ni},be.prev=function(){be.hasPrev()&&be.handleChange(be.state.current-1)},be.next=function(){be.hasNext()&&be.handleChange(be.state.current+1)},be.jumpPrev=function(){be.handleChange(be.getJumpPrevPage())},be.jumpNext=function(){be.handleChange(be.getJumpNextPage())},be.hasPrev=function(){return be.state.current>1},be.hasNext=function(){return be.state.current<kt(void 0,be.state,be.props)},be.runIfEnter=function(tn,yn){if(tn.key==="Enter"||tn.charCode===13){for(var bt=arguments.length,Wt=new Array(bt>2?bt-2:0),fn=2;fn<bt;fn++)Wt[fn-2]=arguments[fn];yn.apply(void 0,Wt)}},be.runIfEnterPrev=function(tn){be.runIfEnter(tn,be.prev)},be.runIfEnterNext=function(tn){be.runIfEnter(tn,be.next)},be.runIfEnterJumpPrev=function(tn){be.runIfEnter(tn,be.jumpPrev)},be.runIfEnterJumpNext=function(tn){be.runIfEnter(tn,be.jumpNext)},be.handleGoTO=function(tn){(tn.keyCode===Be.ENTER||tn.type==="click")&&be.handleChange(be.state.currentInputValue)},be.renderPrev=function(tn){var yn=be.props,bt=yn.prevIcon,Wt=yn.itemRender,fn=Wt(tn,"prev",be.getItemIcon(bt,"prev page")),zn=!be.hasPrev();return(0,Te.isValidElement)(fn)?(0,Te.cloneElement)(fn,{disabled:zn}):fn},be.renderNext=function(tn){var yn=be.props,bt=yn.nextIcon,Wt=yn.itemRender,fn=Wt(tn,"next",be.getItemIcon(bt,"next page")),zn=!be.hasNext();return(0,Te.isValidElement)(fn)?(0,Te.cloneElement)(fn,{disabled:zn}):fn};var Ue=Pe.onChange!==Tt,Qe="current"in Pe;Qe&&!Ue&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Fe=Pe.defaultCurrent;"current"in Pe&&(Fe=Pe.current);var gt=Pe.defaultPageSize;return"pageSize"in Pe&&(gt=Pe.pageSize),Fe=Math.min(Fe,kt(gt,void 0,Pe)),be.state={current:Fe,currentInputValue:Fe,pageSize:gt},be}return(0,fe.Z)(_e,[{key:"componentDidUpdate",value:function(be,Ue){var Qe=this.props.prefixCls;if(Ue.current!==this.state.current&&this.paginationNode.current){var Fe=this.paginationNode.current.querySelector(".".concat(Qe,"-item-").concat(Ue.current));if(Fe&&document.activeElement===Fe){var gt;Fe==null||(gt=Fe.blur)===null||gt===void 0||gt.call(Fe)}}}},{key:"getValidValue",value:function(be){var Ue=be.target.value,Qe=kt(void 0,this.state,this.props),Fe=this.state.currentInputValue,gt;return Ue===""?gt=Ue:Number.isNaN(Number(Ue))?gt=Fe:Ue>=Qe?gt=Qe:gt=Number(Ue),gt}},{key:"getShowSizeChanger",value:function(){var be=this.props,Ue=be.showSizeChanger,Qe=be.total,Fe=be.totalBoundaryShowSizeChanger;return typeof Ue!="undefined"?Ue:Qe>Fe}},{key:"render",value:function(){var be=this.props,Ue=be.prefixCls,Qe=be.className,Fe=be.style,gt=be.disabled,tn=be.hideOnSinglePage,yn=be.total,bt=be.locale,Wt=be.showQuickJumper,fn=be.showLessItems,zn=be.showTitle,ni=be.showTotal,di=be.simple,wi=be.itemRender,hi=be.showPrevNextJumpers,Li=be.jumpPrevIcon,Yi=be.jumpNextIcon,Ji=be.selectComponentClass,Xi=be.selectPrefixCls,dr=be.pageSizeOptions,Ir=this.state,Wi=Ir.current,Dr=Ir.pageSize,_i=Ir.currentInputValue;if(tn===!0&&yn<=Dr)return null;var De=kt(void 0,this.state,this.props),jr=[],hr=null,oo=null,Oo=null,Do=null,Co=null,so=Wt&&Wt.goButton,En=fn?1:2,Tn=Wi-1>0?Wi-1:0,on=Wi+1<De?Wi+1:De,At=(0,Se.Z)(this.props,{aria:!0,data:!0}),Dn=ni&&Te.createElement("li",{className:"".concat(Ue,"-total-text")},ni(yn,[yn===0?0:(Wi-1)*Dr+1,Wi*Dr>yn?yn:Wi*Dr]));if(di){so&&(typeof so=="boolean"?Co=Te.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):Co=Te.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},so),Co=Te.createElement("li",{title:zn?"".concat(bt.jump_to).concat(Wi,"/").concat(De):null,className:"".concat(Ue,"-simple-pager")},Co));var Qn=this.renderPrev(Tn);return Te.createElement("ul",(0,de.Z)({className:Lt()(Ue,"".concat(Ue,"-simple"),(0,ze.Z)({},"".concat(Ue,"-disabled"),gt),Qe),style:Fe,ref:this.paginationNode},At),Dn,Qn?Te.createElement("li",{title:zn?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Lt()("".concat(Ue,"-prev"),(0,ze.Z)({},"".concat(Ue,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Qn):null,Te.createElement("li",{title:zn?"".concat(Wi,"/").concat(De):null,className:"".concat(Ue,"-simple-pager")},Te.createElement("input",{type:"text",value:_i,disabled:gt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Te.createElement("span",{className:"".concat(Ue,"-slash")},"/"),De),Te.createElement("li",{title:zn?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Lt()("".concat(Ue,"-next"),(0,ze.Z)({},"".concat(Ue,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(on)),Co)}if(De<=3+En*2){var Kt={locale:bt,rootPrefixCls:Ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:zn,itemRender:wi};De||jr.push(Te.createElement(lt,(0,de.Z)({},Kt,{key:"noPager",page:1,className:"".concat(Ue,"-item-disabled")})));for(var Et=1;Et<=De;Et+=1){var Ln=Wi===Et;jr.push(Te.createElement(lt,(0,de.Z)({},Kt,{key:Et,page:Et,active:Ln})))}}else{var Jn=fn?bt.prev_3:bt.prev_5,Ci=fn?bt.next_3:bt.next_5,Pn=wi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Li,"prev page")),Rt=wi(this.getJumpNextPage(),"jump-next",this.getItemIcon(Yi,"next page"));hi&&(hr=Pn?Te.createElement("li",{title:zn?Jn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Lt()("".concat(Ue,"-jump-prev"),(0,ze.Z)({},"".concat(Ue,"-jump-prev-custom-icon"),!!Li))},Pn):null,oo=Rt?Te.createElement("li",{title:zn?Ci:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Lt()("".concat(Ue,"-jump-next"),(0,ze.Z)({},"".concat(Ue,"-jump-next-custom-icon"),!!Yi))},Rt):null),Do=Te.createElement(lt,{locale:bt,last:!0,rootPrefixCls:Ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:De,page:De,active:!1,showTitle:zn,itemRender:wi}),Oo=Te.createElement(lt,{locale:bt,rootPrefixCls:Ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:zn,itemRender:wi});var Yn=Math.max(1,Wi-En),vi=Math.min(Wi+En,De);Wi-1<=En&&(vi=1+En*2),De-Wi<=En&&(Yn=De-En*2);for(var Oi=Yn;Oi<=vi;Oi+=1){var Yt=Wi===Oi;jr.push(Te.createElement(lt,{locale:bt,rootPrefixCls:Ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Oi,page:Oi,active:Yt,showTitle:zn,itemRender:wi}))}Wi-1>=En*2&&Wi!==3&&(jr[0]=(0,Te.cloneElement)(jr[0],{className:"".concat(Ue,"-item-after-jump-prev")}),jr.unshift(hr)),De-Wi>=En*2&&Wi!==De-2&&(jr[jr.length-1]=(0,Te.cloneElement)(jr[jr.length-1],{className:"".concat(Ue,"-item-before-jump-next")}),jr.push(oo)),Yn!==1&&jr.unshift(Oo),vi!==De&&jr.push(Do)}var Fn=!this.hasPrev()||!De,$t=!this.hasNext()||!De,pn=this.renderPrev(Tn),An=this.renderNext(on);return Te.createElement("ul",(0,de.Z)({className:Lt()(Ue,Qe,(0,ze.Z)({},"".concat(Ue,"-disabled"),gt)),style:Fe,ref:this.paginationNode},At),Dn,pn?Te.createElement("li",{title:zn?bt.prev_page:null,onClick:this.prev,tabIndex:Fn?null:0,onKeyPress:this.runIfEnterPrev,className:Lt()("".concat(Ue,"-prev"),(0,ze.Z)({},"".concat(Ue,"-disabled"),Fn)),"aria-disabled":Fn},pn):null,jr,An?Te.createElement("li",{title:zn?bt.next_page:null,onClick:this.next,tabIndex:$t?null:0,onKeyPress:this.runIfEnterNext,className:Lt()("".concat(Ue,"-next"),(0,ze.Z)({},"".concat(Ue,"-disabled"),$t)),"aria-disabled":$t},An):null,Te.createElement($e,{disabled:gt,locale:bt,rootPrefixCls:Ue,selectComponentClass:Ji,selectPrefixCls:Xi,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Wi,pageSize:Dr,pageSizeOptions:dr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:so}))}}],[{key:"getDerivedStateFromProps",value:function(be,Ue){var Qe={};if("current"in be&&(Qe.current=be.current,be.current!==Ue.current&&(Qe.currentInputValue=Qe.current)),"pageSize"in be&&be.pageSize!==Ue.pageSize){var Fe=Ue.current,gt=kt(be.pageSize,Ue,be);Fe=Fe>gt?gt:Fe,"current"in be||(Qe.current=Fe,Qe.currentInputValue=Fe),Qe.pageSize=be.pageSize}return Qe}}]),_e}(Te.Component);dn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Tt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Tt,locale:Ne.Z,style:{},itemRender:Ut,totalBoundaryShowSizeChanger:50};var nn=dn,qt=ae(22075),un=ae(36355),mn=ae(19716),Ct=ae(8628),qe=ae(9763),Bt=ae(57809);const Cn=yt=>Te.createElement(Bt.default,Object.assign({},yt,{showSearch:!0,size:"small"})),Zn=yt=>Te.createElement(Bt.default,Object.assign({},yt,{showSearch:!0,size:"middle"}));Cn.Option=Bt.default.Option,Zn.Option=Bt.default.Option;var zt=ae(9937),sn=ae(17313),Mn=ae(83116),fi=ae(37613);const Rn=yt=>{const{componentCls:ft}=yt;return{[`${ft}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ft}-item-link`]:{color:yt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ft}-item-link`]:{color:yt.colorTextDisabled,cursor:"not-allowed"}}},[`&${ft}-disabled`]:{cursor:"not-allowed",[`${ft}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:yt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:yt.colorBorder,backgroundColor:yt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:yt.itemActiveBgDisabled},a:{color:yt.itemActiveColorDisabled}}},[`${ft}-item-link`]:{color:yt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ft}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ft}-simple-pager`]:{color:yt.colorTextDisabled},[`${ft}-jump-prev, ${ft}-jump-next`]:{[`${ft}-item-link-icon`]:{opacity:0},[`${ft}-item-ellipsis`]:{opacity:1}}},[`&${ft}-simple`]:{[`${ft}-prev, ${ft}-next`]:{[`&${ft}-disabled ${ft}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},li=yt=>{const{componentCls:ft}=yt;return{[`&${ft}-mini ${ft}-total-text, &${ft}-mini ${ft}-simple-pager`]:{height:yt.itemSizeSM,lineHeight:`${yt.itemSizeSM}px`},[`&${ft}-mini ${ft}-item`]:{minWidth:yt.itemSizeSM,height:yt.itemSizeSM,margin:0,lineHeight:`${yt.itemSizeSM-2}px`},[`&${ft}-mini:not(${ft}-disabled) ${ft}-item:not(${ft}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:yt.colorBgTextHover},"&:active":{backgroundColor:yt.colorBgTextActive}},[`&${ft}-mini ${ft}-prev, &${ft}-mini ${ft}-next`]:{minWidth:yt.itemSizeSM,height:yt.itemSizeSM,margin:0,lineHeight:`${yt.itemSizeSM}px`},[`&${ft}-mini:not(${ft}-disabled)`]:{[`${ft}-prev, ${ft}-next`]:{[`&:hover ${ft}-item-link`]:{backgroundColor:yt.colorBgTextHover},[`&:active ${ft}-item-link`]:{backgroundColor:yt.colorBgTextActive},[`&${ft}-disabled:hover ${ft}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ft}-mini ${ft}-prev ${ft}-item-link,
&${ft}-mini ${ft}-next ${ft}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:yt.itemSizeSM,lineHeight:`${yt.itemSizeSM}px`}},[`&${ft}-mini ${ft}-jump-prev, &${ft}-mini ${ft}-jump-next`]:{height:yt.itemSizeSM,marginInlineEnd:0,lineHeight:`${yt.itemSizeSM}px`},[`&${ft}-mini ${ft}-options`]:{marginInlineStart:yt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:yt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:yt.itemSizeSM,lineHeight:`${yt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,zt.x0)(yt)),{width:yt.paginationMiniQuickJumperInputWidth,height:yt.controlHeightSM})}}}},Ot=yt=>{const{componentCls:ft}=yt;return{[`
&${ft}-simple ${ft}-prev,
&${ft}-simple ${ft}-next
`]:{height:yt.itemSizeSM,lineHeight:`${yt.itemSizeSM}px`,verticalAlign:"top",[`${ft}-item-link`]:{height:yt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:yt.colorBgTextHover},"&:active":{backgroundColor:yt.colorBgTextActive},"&::after":{height:yt.itemSizeSM,lineHeight:`${yt.itemSizeSM}px`}}},[`&${ft}-simple ${ft}-simple-pager`]:{display:"inline-block",height:yt.itemSizeSM,marginInlineEnd:yt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:yt.marginXS,padding:`0 ${yt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:yt.itemInputBg,border:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadius,outline:"none",transition:`border-color ${yt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:yt.colorPrimary},"&:focus":{borderColor:yt.colorPrimaryHover,boxShadow:`${yt.inputOutlineOffset}px 0 ${yt.controlOutlineWidth}px ${yt.controlOutline}`},"&[disabled]":{color:yt.colorTextDisabled,backgroundColor:yt.colorBgContainerDisabled,borderColor:yt.colorBorder,cursor:"not-allowed"}}}}},kn=yt=>{const{componentCls:ft}=yt;return{[`${ft}-jump-prev, ${ft}-jump-next`]:{outline:0,[`${ft}-item-container`]:{position:"relative",[`${ft}-item-link-icon`]:{color:yt.colorPrimary,fontSize:yt.fontSizeSM,opacity:0,transition:`all ${yt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ft}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:yt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:yt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:yt.paginationEllipsisTextIndent,opacity:1,transition:`all ${yt.motionDurationMid}`}},"&:hover":{[`${ft}-item-link-icon`]:{opacity:1},[`${ft}-item-ellipsis`]:{opacity:0}}},[`
${ft}-prev,
${ft}-jump-prev,
${ft}-jump-next
`]:{marginInlineEnd:yt.marginXS},[`
${ft}-prev,
${ft}-next,
${ft}-jump-prev,
${ft}-jump-next
`]:{display:"inline-block",minWidth:yt.itemSize,height:yt.itemSize,color:yt.colorText,fontFamily:yt.fontFamily,lineHeight:`${yt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:yt.borderRadius,cursor:"pointer",transition:`all ${yt.motionDurationMid}`},[`${ft}-prev, ${ft}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:yt.colorText,cursor:"pointer",userSelect:"none"},[`${ft}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:yt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${yt.lineWidth}px ${yt.lineType} transparent`,borderRadius:yt.borderRadius,outline:"none",transition:`all ${yt.motionDurationMid}`},[`&:hover ${ft}-item-link`]:{backgroundColor:yt.colorBgTextHover},[`&:active ${ft}-item-link`]:{backgroundColor:yt.colorBgTextActive},[`&${ft}-disabled:hover`]:{[`${ft}-item-link`]:{backgroundColor:"transparent"}}},[`${ft}-slash`]:{marginInlineEnd:yt.paginationSlashMarginInlineEnd,marginInlineStart:yt.paginationSlashMarginInlineStart},[`${ft}-options`]:{display:"inline-block",marginInlineStart:yt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:yt.controlHeight,marginInlineStart:yt.marginXS,lineHeight:`${yt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,zt.ik)(yt)),{width:yt.controlHeightLG*1.25,height:yt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:yt.marginXS,marginInlineEnd:yt.marginXS})}}}},$n=yt=>{const{componentCls:ft}=yt;return{[`${ft}-item`]:{display:"inline-block",minWidth:yt.itemSize,height:yt.itemSize,marginInlineEnd:yt.marginXS,fontFamily:yt.fontFamily,lineHeight:`${yt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${yt.lineWidth}px ${yt.lineType} transparent`,borderRadius:yt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${yt.paginationItemPaddingInline}px`,color:yt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ft}-item-active)`]:{"&:hover":{transition:`all ${yt.motionDurationMid}`,backgroundColor:yt.colorBgTextHover},"&:active":{backgroundColor:yt.colorBgTextActive}},"&-active":{fontWeight:yt.fontWeightStrong,backgroundColor:yt.itemActiveBg,borderColor:yt.colorPrimary,a:{color:yt.colorPrimary},"&:hover":{borderColor:yt.colorPrimaryHover},"&:hover a":{color:yt.colorPrimaryHover}}}}},xi=yt=>{const{componentCls:ft}=yt;return{[ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(yt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ft}-total-text`]:{display:"inline-block",height:yt.itemSize,marginInlineEnd:yt.marginXS,lineHeight:`${yt.itemSize-2}px`,verticalAlign:"middle"}}),$n(yt)),kn(yt)),Ot(yt)),li(yt)),Rn(yt)),{[`@media only screen and (max-width: ${yt.screenLG}px)`]:{[`${ft}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${yt.screenSM}px)`]:{[`${ft}-options`]:{display:"none"}}}),[`&${yt.componentCls}-rtl`]:{direction:"rtl"}}},xn=yt=>{const{componentCls:ft}=yt;return{[`${ft}${ft}-disabled:not(${ft}-mini)`]:{"&, &:hover":{[`${ft}-item-link`]:{borderColor:yt.colorBorder}},"&:focus-visible":{[`${ft}-item-link`]:{borderColor:yt.colorBorder}},[`${ft}-item, ${ft}-item-link`]:{backgroundColor:yt.colorBgContainerDisabled,borderColor:yt.colorBorder,[`&:hover:not(${ft}-item-active)`]:{backgroundColor:yt.colorBgContainerDisabled,borderColor:yt.colorBorder,a:{color:yt.colorTextDisabled}},[`&${ft}-item-active`]:{backgroundColor:yt.itemActiveBgDisabled}},[`${ft}-prev, ${ft}-next`]:{"&:hover button":{backgroundColor:yt.colorBgContainerDisabled,borderColor:yt.colorBorder,color:yt.colorTextDisabled},[`${ft}-item-link`]:{backgroundColor:yt.colorBgContainerDisabled,borderColor:yt.colorBorder}}},[`${ft}:not(${ft}-mini)`]:{[`${ft}-prev, ${ft}-next`]:{"&:hover button":{borderColor:yt.colorPrimaryHover,backgroundColor:yt.itemBg},[`${ft}-item-link`]:{backgroundColor:yt.itemLinkBg,borderColor:yt.colorBorder},[`&:hover ${ft}-item-link`]:{borderColor:yt.colorPrimary,backgroundColor:yt.itemBg,color:yt.colorPrimary},[`&${ft}-disabled`]:{[`${ft}-item-link`]:{borderColor:yt.colorBorder,color:yt.colorTextDisabled}}},[`${ft}-item`]:{backgroundColor:yt.itemBg,border:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`,[`&:hover:not(${ft}-item-active)`]:{borderColor:yt.colorPrimary,backgroundColor:yt.itemBg,a:{color:yt.colorPrimary}},"&-active":{borderColor:yt.colorPrimary}}}}},Gt=yt=>{const{componentCls:ft}=yt;return{[`${ft}:not(${ft}-disabled)`]:{[`${ft}-item`]:Object.assign({},(0,sn.Qy)(yt)),[`${ft}-jump-prev, ${ft}-jump-next`]:{"&:focus-visible":Object.assign({[`${ft}-item-link-icon`]:{opacity:1},[`${ft}-item-ellipsis`]:{opacity:0}},(0,sn.oN)(yt))},[`${ft}-prev, ${ft}-next`]:{[`&:focus-visible ${ft}-item-link`]:Object.assign({},(0,sn.oN)(yt))}}}};var jt=(0,Mn.Z)("Pagination",yt=>{const ft=(0,fi.TS)(yt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:yt.marginXXS/2,paginationMiniQuickJumperInputWidth:yt.controlHeightLG*1.1,paginationItemPaddingInline:yt.marginXXS*1.5,paginationEllipsisLetterSpacing:yt.marginXXS/2,paginationSlashMarginInlineStart:yt.marginXXS,paginationSlashMarginInlineEnd:yt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,zt.e5)(yt),(0,zt.TM)(yt));return[xi(ft),Gt(ft),yt.wireframe&&xn(ft)]},yt=>({itemBg:yt.colorBgContainer,itemSize:yt.controlHeight,itemSizeSM:yt.controlHeightSM,itemActiveBg:yt.colorBgContainer,itemLinkBg:yt.colorBgContainer,itemActiveColorDisabled:yt.colorTextDisabled,itemActiveBgDisabled:yt.controlItemBgActiveDisabled,itemInputBg:yt.colorBgContainer,miniOptionsSizeChangerTop:0})),It=function(yt,ft){var _e={};for(var Pe in yt)Object.prototype.hasOwnProperty.call(yt,Pe)&&ft.indexOf(Pe)<0&&(_e[Pe]=yt[Pe]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Pe=Object.getOwnPropertySymbols(yt);be<Pe.length;be++)ft.indexOf(Pe[be])<0&&Object.prototype.propertyIsEnumerable.call(yt,Pe[be])&&(_e[Pe[be]]=yt[Pe[be]]);return _e},Xt=yt=>{const{prefixCls:ft,selectPrefixCls:_e,className:Pe,rootClassName:be,style:Ue,size:Qe,locale:Fe,selectComponentClass:gt,responsive:tn,showSizeChanger:yn}=yt,bt=It(yt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Wt}=(0,Ct.Z)(tn),{getPrefixCls:fn,direction:zn,pagination:ni={}}=Te.useContext(un.E_),di=fn("pagination",ft),[wi,hi]=jt(di),Li=yn!=null?yn:ni.showSizeChanger,Yi=Te.useMemo(()=>{const De=Te.createElement("span",{className:`${di}-item-ellipsis`},"\u2022\u2022\u2022"),jr=Te.createElement("button",{className:`${di}-item-link`,type:"button",tabIndex:-1},zn==="rtl"?Te.createElement(st.Z,null):Te.createElement(Ye.Z,null)),hr=Te.createElement("button",{className:`${di}-item-link`,type:"button",tabIndex:-1},zn==="rtl"?Te.createElement(Ye.Z,null):Te.createElement(st.Z,null)),oo=Te.createElement("a",{className:`${di}-item-link`},Te.createElement("div",{className:`${di}-item-container`},zn==="rtl"?Te.createElement(Je.Z,{className:`${di}-item-link-icon`}):Te.createElement(it,{className:`${di}-item-link-icon`}),De)),Oo=Te.createElement("a",{className:`${di}-item-link`},Te.createElement("div",{className:`${di}-item-container`},zn==="rtl"?Te.createElement(it,{className:`${di}-item-link-icon`}):Te.createElement(Je.Z,{className:`${di}-item-link-icon`}),De));return{prevIcon:jr,nextIcon:hr,jumpPrevIcon:oo,jumpNextIcon:Oo}},[zn,di]),[Ji]=(0,qe.Z)("Pagination",qt.Z),Xi=Object.assign(Object.assign({},Ji),Fe),dr=(0,mn.Z)(Qe),Ir=dr==="small"||!!(Wt&&!dr&&tn),Wi=fn("select",_e),Dr=Lt()({[`${di}-mini`]:Ir,[`${di}-rtl`]:zn==="rtl"},ni==null?void 0:ni.className,Pe,be,hi),_i=Object.assign(Object.assign({},ni==null?void 0:ni.style),Ue);return wi(Te.createElement(nn,Object.assign({},Yi,bt,{style:_i,prefixCls:di,selectPrefixCls:Wi,className:Dr,selectComponentClass:gt||(Ir?Cn:Zn),locale:Xi,showSizeChanger:Li})))},Zt=Xt},93948:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return yn}});var de=ae(59301),Te=ae(79999),Ee=ae(10402),Re=ae(33130),je=ae(72119),Ze=ae(92310),we=ae.n(Ze),it=ae(64002),Je=ae(36355),Ye=ae(5891),st=ae(57259),ht=ae(19149),Lt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ze=function(){var Wt=(0,de.useRef)([]),fn=(0,de.useRef)(null);return(0,de.useEffect)(function(){var zn=Date.now(),ni=!1;Wt.current.forEach(function(di){if(di){ni=!0;var wi=di.style;wi.transitionDuration=".3s, .3s, .3s, .06s",fn.current&&zn-fn.current<100&&(wi.transitionDuration="0s, 0s")}}),ni&&(fn.current=Date.now())}),Wt.current},ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(Wt){var fn=(0,st.Z)((0,st.Z)({},Lt),Wt),zn=fn.className,ni=fn.percent,di=fn.prefixCls,wi=fn.strokeColor,hi=fn.strokeLinecap,Li=fn.strokeWidth,Yi=fn.style,Ji=fn.trailColor,Xi=fn.trailWidth,dr=fn.transition,Ir=(0,ht.Z)(fn,ee);delete Ir.gapPosition;var Wi=Array.isArray(ni)?ni:[ni],Dr=Array.isArray(wi)?wi:[wi],_i=ze(),De=Li/2,jr=100-Li/2,hr="M ".concat(hi==="round"?De:0,",").concat(De,`
L `).concat(hi==="round"?jr:100,",").concat(De),oo="0 0 100 ".concat(Li),Oo=0;return de.createElement("svg",(0,Ye.Z)({className:we()("".concat(di,"-line"),zn),viewBox:oo,preserveAspectRatio:"none",style:Yi},Ir),de.createElement("path",{className:"".concat(di,"-line-trail"),d:hr,strokeLinecap:hi,stroke:Ji,strokeWidth:Xi||Li,fillOpacity:"0"}),Wi.map(function(Do,Co){var so=1;switch(hi){case"round":so=1-Li/100;break;case"square":so=1-Li/2/100;break;default:so=1;break}var En={strokeDasharray:"".concat(Do*so,"px, 100px"),strokeDashoffset:"-".concat(Oo,"px"),transition:dr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Tn=Dr[Co]||Dr[Dr.length-1];return Oo+=Do,de.createElement("path",{key:Co,className:"".concat(di,"-line-path"),d:hr,strokeLinecap:hi,stroke:Tn,strokeWidth:Li,fillOpacity:"0",ref:function(At){_i[Co]=At},style:En})}))},fe=ne,le=ae(80665),me=ae(29043),Se=ae(87746),ke=0,Be=(0,Se.Z)();function Ne(){var bt;return Be?(bt=ke,ke+=1):bt="TEST_OR_SSR",bt}var Ke=function(bt){var Wt=de.useState(),fn=(0,me.Z)(Wt,2),zn=fn[0],ni=fn[1];return de.useEffect(function(){ni("rc_progress_".concat(Ne()))},[]),bt||zn},$e=function(Wt){var fn=Wt.bg,zn=Wt.children;return de.createElement("div",{style:{width:"100%",height:"100%",background:fn}},zn)};function at(bt,Wt){return Object.keys(bt).map(function(fn){var zn=parseFloat(fn),ni="".concat(Math.floor(zn*Wt),"%");return"".concat(bt[fn]," ").concat(ni)})}var lt=de.forwardRef(function(bt,Wt){var fn=bt.prefixCls,zn=bt.color,ni=bt.gradientId,di=bt.radius,wi=bt.style,hi=bt.ptg,Li=bt.strokeLinecap,Yi=bt.strokeWidth,Ji=bt.size,Xi=bt.gapDegree,dr=zn&&(0,le.Z)(zn)==="object",Ir=dr?"#FFF":void 0,Wi=Ji/2,Dr=de.createElement("circle",{className:"".concat(fn,"-circle-path"),r:di,cx:Wi,cy:Wi,stroke:Ir,strokeLinecap:Li,strokeWidth:Yi,opacity:hi===0?0:1,style:wi,ref:Wt});if(!dr)return Dr;var _i="".concat(ni,"-conic"),De=Xi?"".concat(180+Xi/2,"deg"):"0deg",jr=at(zn,(360-Xi)/360),hr=at(zn,1),oo="conic-gradient(from ".concat(De,", ").concat(jr.join(", "),")"),Oo="linear-gradient(to ".concat(Xi?"bottom":"top",", ").concat(hr.join(", "),")");return de.createElement(de.Fragment,null,de.createElement("mask",{id:_i},Dr),de.createElement("foreignObject",{x:0,y:0,width:Ji,height:Ji,mask:"url(#".concat(_i,")")},de.createElement($e,{bg:Oo},de.createElement($e,{bg:oo}))))}),Tt=lt,nt=100,Ut=function(Wt,fn,zn,ni,di,wi,hi,Li,Yi,Ji){var Xi=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,dr=zn/100*360*((360-wi)/360),Ir=wi===0?0:{bottom:0,top:180,left:90,right:-90}[hi],Wi=(100-ni)/100*fn;Yi==="round"&&ni!==100&&(Wi+=Ji/2,Wi>=fn&&(Wi=fn-.01));var Dr=nt/2;return{stroke:typeof Li=="string"?Li:void 0,strokeDasharray:"".concat(fn,"px ").concat(Wt),strokeDashoffset:Wi+Xi,transform:"rotate(".concat(di+dr+Ir,"deg)"),transformOrigin:"".concat(Dr,"px ").concat(Dr,"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}},kt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function dn(bt){var Wt=bt!=null?bt:[];return Array.isArray(Wt)?Wt:[Wt]}var nn=function(Wt){var fn=(0,st.Z)((0,st.Z)({},Lt),Wt),zn=fn.id,ni=fn.prefixCls,di=fn.steps,wi=fn.strokeWidth,hi=fn.trailWidth,Li=fn.gapDegree,Yi=Li===void 0?0:Li,Ji=fn.gapPosition,Xi=fn.trailColor,dr=fn.strokeLinecap,Ir=fn.style,Wi=fn.className,Dr=fn.strokeColor,_i=fn.percent,De=(0,ht.Z)(fn,kt),jr=nt/2,hr=Ke(zn),oo="".concat(hr,"-gradient"),Oo=jr-wi/2,Do=Math.PI*2*Oo,Co=Yi>0?90+Yi/2:-90,so=Do*((360-Yi)/360),En=(0,le.Z)(di)==="object"?di:{count:di,space:2},Tn=En.count,on=En.space,At=dn(_i),Dn=dn(Dr),Qn=Dn.find(function(Rt){return Rt&&(0,le.Z)(Rt)==="object"}),Kt=Qn&&(0,le.Z)(Qn)==="object",Et=Kt?"butt":dr,Ln=Ut(Do,so,0,100,Co,Yi,Ji,Xi,Et,wi),Jn=ze(),Ci=function(){var Yn=0;return At.map(function(vi,Oi){var Yt=Dn[Oi]||Dn[Dn.length-1],Fn=Ut(Do,so,Yn,vi,Co,Yi,Ji,Yt,Et,wi);return Yn+=vi,de.createElement(Tt,{key:Oi,color:Yt,ptg:vi,radius:Oo,prefixCls:ni,gradientId:oo,style:Fn,strokeLinecap:Et,strokeWidth:wi,gapDegree:Yi,ref:function(pn){Jn[Oi]=pn},size:nt})}).reverse()},Pn=function(){var Yn=Math.round(Tn*(At[0]/100)),vi=100/Tn,Oi=0;return new Array(Tn).fill(null).map(function(Yt,Fn){var $t=Fn<=Yn-1?Dn[0]:Xi,pn=$t&&(0,le.Z)($t)==="object"?"url(#".concat(oo,")"):void 0,An=Ut(Do,so,Oi,vi,Co,Yi,Ji,$t,"butt",wi,on);return Oi+=(so-An.strokeDashoffset+on)*100/so,de.createElement("circle",{key:Fn,className:"".concat(ni,"-circle-path"),r:Oo,cx:jr,cy:jr,stroke:pn,strokeWidth:wi,opacity:1,style:An,ref:function(In){Jn[Fn]=In}})})};return de.createElement("svg",(0,Ye.Z)({className:we()("".concat(ni,"-circle"),Wi),viewBox:"0 0 ".concat(nt," ").concat(nt),style:Ir,id:zn,role:"presentation"},De),!Tn&&de.createElement("circle",{className:"".concat(ni,"-circle-trail"),r:Oo,cx:jr,cy:jr,stroke:Xi,strokeLinecap:Et,strokeWidth:hi||wi,style:Ln}),Tn?Pn():Ci())},qt=nn,un={Line:fe,Circle:qt},mn=ae(6848),Ct=ae(93398);function qe(bt){return!bt||bt<0?0:bt>100?100:bt}function Bt(bt){let{success:Wt,successPercent:fn}=bt,zn=fn;return Wt&&"progress"in Wt&&(zn=Wt.progress),Wt&&"percent"in Wt&&(zn=Wt.percent),zn}const Cn=bt=>{let{percent:Wt,success:fn,successPercent:zn}=bt;const ni=qe(Bt({success:fn,successPercent:zn}));return[ni,qe(qe(Wt)-ni)]},Zn=bt=>{let{success:Wt={},strokeColor:fn}=bt;const{strokeColor:zn}=Wt;return[zn||Ct.presetPrimaryColors.green,fn||null]},zt=(bt,Wt,fn)=>{var zn,ni,di,wi;let hi=-1,Li=-1;if(Wt==="step"){const Yi=fn.steps,Ji=fn.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?(hi=bt==="small"?2:14,Li=Ji!=null?Ji:8):typeof bt=="number"?[hi,Li]=[bt,bt]:[hi=14,Li=8]=bt,hi*=Yi}else if(Wt==="line"){const Yi=fn==null?void 0:fn.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?Li=Yi||(bt==="small"?6:8):typeof bt=="number"?[hi,Li]=[bt,bt]:[hi=-1,Li=8]=bt}else(Wt==="circle"||Wt==="dashboard")&&(typeof bt=="string"||typeof bt=="undefined"?[hi,Li]=bt==="small"?[60,60]:[120,120]:typeof bt=="number"?[hi,Li]=[bt,bt]:(hi=(ni=(zn=bt[0])!==null&&zn!==void 0?zn:bt[1])!==null&&ni!==void 0?ni:120,Li=(wi=(di=bt[0])!==null&&di!==void 0?di:bt[1])!==null&&wi!==void 0?wi:120));return[hi,Li]},sn=3,Mn=bt=>sn/bt*100;var Rn=bt=>{const{prefixCls:Wt,trailColor:fn=null,strokeLinecap:zn="round",gapPosition:ni,gapDegree:di,width:wi=120,type:hi,children:Li,success:Yi,size:Ji=wi}=bt,[Xi,dr]=zt(Ji,"circle");let{strokeWidth:Ir}=bt;Ir===void 0&&(Ir=Math.max(Mn(Xi),6));const Wi={width:Xi,height:dr,fontSize:Xi*.15+6},Dr=de.useMemo(()=>{if(di||di===0)return di;if(hi==="dashboard")return 75},[di,hi]),_i=ni||hi==="dashboard"&&"bottom"||void 0,De=Object.prototype.toString.call(bt.strokeColor)==="[object Object]",jr=Zn({success:Yi,strokeColor:bt.strokeColor}),hr=we()(`${Wt}-inner`,{[`${Wt}-circle-gradient`]:De}),oo=de.createElement(qt,{percent:Cn(bt),strokeWidth:Ir,trailWidth:Ir,strokeColor:jr,strokeLinecap:zn,trailColor:fn,prefixCls:Wt,gapDegree:Dr,gapPosition:_i});return de.createElement("div",{className:hr,style:Wi},Xi<=20?de.createElement(mn.Z,{title:Li},de.createElement("span",null,oo)):de.createElement(de.Fragment,null,oo,Li))},li=function(bt,Wt){var fn={};for(var zn in bt)Object.prototype.hasOwnProperty.call(bt,zn)&&Wt.indexOf(zn)<0&&(fn[zn]=bt[zn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,zn=Object.getOwnPropertySymbols(bt);ni<zn.length;ni++)Wt.indexOf(zn[ni])<0&&Object.prototype.propertyIsEnumerable.call(bt,zn[ni])&&(fn[zn[ni]]=bt[zn[ni]]);return fn};const Ot=bt=>{let Wt=[];return Object.keys(bt).forEach(fn=>{const zn=parseFloat(fn.replace(/%/g,""));isNaN(zn)||Wt.push({key:zn,value:bt[fn]})}),Wt=Wt.sort((fn,zn)=>fn.key-zn.key),Wt.map(fn=>{let{key:zn,value:ni}=fn;return`${ni} ${zn}%`}).join(", ")},kn=(bt,Wt)=>{const{from:fn=Ct.presetPrimaryColors.blue,to:zn=Ct.presetPrimaryColors.blue,direction:ni=Wt==="rtl"?"to left":"to right"}=bt,di=li(bt,["from","to","direction"]);if(Object.keys(di).length!==0){const wi=Ot(di);return{backgroundImage:`linear-gradient(${ni}, ${wi})`}}return{backgroundImage:`linear-gradient(${ni}, ${fn}, ${zn})`}};var xi=bt=>{const{prefixCls:Wt,direction:fn,percent:zn,size:ni,strokeWidth:di,strokeColor:wi,strokeLinecap:hi="round",children:Li,trailColor:Yi=null,success:Ji}=bt,Xi=wi&&typeof wi!="string"?kn(wi,fn):{backgroundColor:wi},dr=hi==="square"||hi==="butt"?0:void 0,Ir={backgroundColor:Yi||void 0,borderRadius:dr},Wi=ni!=null?ni:[-1,di||(ni==="small"?6:8)],[Dr,_i]=zt(Wi,"line",{strokeWidth:di}),De=Object.assign({width:`${qe(zn)}%`,height:_i,borderRadius:dr},Xi),jr=Bt(bt),hr={width:`${qe(jr)}%`,height:_i,borderRadius:dr,backgroundColor:Ji==null?void 0:Ji.strokeColor},oo={width:Dr<0?"100%":Dr,height:_i};return de.createElement(de.Fragment,null,de.createElement("div",{className:`${Wt}-outer`,style:oo},de.createElement("div",{className:`${Wt}-inner`,style:Ir},de.createElement("div",{className:`${Wt}-bg`,style:De}),jr!==void 0?de.createElement("div",{className:`${Wt}-success-bg`,style:hr}):null)),Li)},Gt=bt=>{const{size:Wt,steps:fn,percent:zn=0,strokeWidth:ni=8,strokeColor:di,trailColor:wi=null,prefixCls:hi,children:Li}=bt,Yi=Math.round(fn*(zn/100)),Ji=Wt==="small"?2:14,Xi=Wt!=null?Wt:[Ji,ni],[dr,Ir]=zt(Xi,"step",{steps:fn,strokeWidth:ni}),Wi=dr/fn,Dr=new Array(fn);for(let _i=0;_i<fn;_i++){const De=Array.isArray(di)?di[_i]:di;Dr[_i]=de.createElement("div",{key:_i,className:we()(`${hi}-steps-item`,{[`${hi}-steps-item-active`]:_i<=Yi-1}),style:{backgroundColor:_i<=Yi-1?De:wi,width:Wi,height:Ir}})}return de.createElement("div",{className:`${hi}-steps-outer`},Dr,Li)},jt=ae(9792),It=ae(17313),vt=ae(83116),Xt=ae(37613);const Zt=bt=>{const Wt=bt?"100%":"-100%";return new jt.Keyframes(`antProgress${bt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Wt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Wt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=bt=>{const{componentCls:Wt,iconCls:fn}=bt;return{[Wt]:Object.assign(Object.assign({},(0,It.Wf)(bt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:bt.fontSize,marginInlineEnd:bt.marginXS,marginBottom:bt.marginXS},[`${Wt}-outer`]:{display:"inline-block",width:"100%"},[`&${Wt}-show-info`]:{[`${Wt}-outer`]:{marginInlineEnd:`calc(-2em - ${bt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${bt.paddingXS}px)`}},[`${Wt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:bt.remainingColor,borderRadius:bt.lineBorderRadius},[`${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:bt.defaultColor}},[`${Wt}-success-bg, ${Wt}-bg`]:{position:"relative",backgroundColor:bt.defaultColor,borderRadius:bt.lineBorderRadius,transition:`all ${bt.motionDurationSlow} ${bt.motionEaseInOutCirc}`},[`${Wt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:bt.colorSuccess},[`${Wt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:bt.marginXS,color:bt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[fn]:{fontSize:bt.fontSize}},[`&${Wt}-status-active`]:{[`${Wt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:bt.colorBgContainer,borderRadius:bt.lineBorderRadius,opacity:0,animationName:Zt(),animationDuration:bt.progressActiveMotionDuration,animationTimingFunction:bt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Wt}-rtl${Wt}-status-active`]:{[`${Wt}-bg::before`]:{animationName:Zt(!0)}},[`&${Wt}-status-exception`]:{[`${Wt}-bg`]:{backgroundColor:bt.colorError},[`${Wt}-text`]:{color:bt.colorError}},[`&${Wt}-status-exception ${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:bt.colorError}},[`&${Wt}-status-success`]:{[`${Wt}-bg`]:{backgroundColor:bt.colorSuccess},[`${Wt}-text`]:{color:bt.colorSuccess}},[`&${Wt}-status-success ${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:bt.colorSuccess}}})}},ft=bt=>{const{componentCls:Wt,iconCls:fn}=bt;return{[Wt]:{[`${Wt}-circle-trail`]:{stroke:bt.remainingColor},[`&${Wt}-circle ${Wt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Wt}-circle ${Wt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:bt.circleTextColor,fontSize:bt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[fn]:{fontSize:`${bt.fontSize/bt.fontSizeSM}em`}},[`${Wt}-circle&-status-exception`]:{[`${Wt}-text`]:{color:bt.colorError}},[`${Wt}-circle&-status-success`]:{[`${Wt}-text`]:{color:bt.colorSuccess}}},[`${Wt}-inline-circle`]:{lineHeight:1,[`${Wt}-inner`]:{verticalAlign:"bottom"}}}},_e=bt=>{const{componentCls:Wt}=bt;return{[Wt]:{[`${Wt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:bt.progressStepMinWidth,marginInlineEnd:bt.progressStepMarginInlineEnd,backgroundColor:bt.remainingColor,transition:`all ${bt.motionDurationSlow}`,"&-active":{backgroundColor:bt.defaultColor}}}}}},Pe=bt=>{const{componentCls:Wt,iconCls:fn}=bt;return{[Wt]:{[`${Wt}-small&-line, ${Wt}-small&-line ${Wt}-text ${fn}`]:{fontSize:bt.fontSizeSM}}}};var be=(0,vt.Z)("Progress",bt=>{const Wt=bt.marginXXS/2,fn=(0,Xt.TS)(bt,{progressStepMarginInlineEnd:Wt,progressStepMinWidth:Wt,progressActiveMotionDuration:"2.4s"});return[yt(fn),ft(fn),_e(fn),Pe(fn)]},bt=>({circleTextColor:bt.colorText,defaultColor:bt.colorInfo,remainingColor:bt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ue=function(bt,Wt){var fn={};for(var zn in bt)Object.prototype.hasOwnProperty.call(bt,zn)&&Wt.indexOf(zn)<0&&(fn[zn]=bt[zn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,zn=Object.getOwnPropertySymbols(bt);ni<zn.length;ni++)Wt.indexOf(zn[ni])<0&&Object.prototype.propertyIsEnumerable.call(bt,zn[ni])&&(fn[zn[ni]]=bt[zn[ni]]);return fn};const Qe=null,Fe=["normal","exception","active","success"];var tn=de.forwardRef((bt,Wt)=>{const{prefixCls:fn,className:zn,rootClassName:ni,steps:di,strokeColor:wi,percent:hi=0,size:Li="default",showInfo:Yi=!0,type:Ji="line",status:Xi,format:dr,style:Ir}=bt,Wi=Ue(bt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Dr=de.useMemo(()=>{var At,Dn;const Qn=Bt(bt);return parseInt(Qn!==void 0?(At=Qn!=null?Qn:0)===null||At===void 0?void 0:At.toString():(Dn=hi!=null?hi:0)===null||Dn===void 0?void 0:Dn.toString(),10)},[hi,bt.success,bt.successPercent]),_i=de.useMemo(()=>!Fe.includes(Xi)&&Dr>=100?"success":Xi||"normal",[Xi,Dr]),{getPrefixCls:De,direction:jr,progress:hr}=de.useContext(Je.E_),oo=De("progress",fn),[Oo,Do]=be(oo),Co=de.useMemo(()=>{if(!Yi)return null;const At=Bt(bt);let Dn;const Qn=dr||(Et=>`${Et}%`),Kt=Ji==="line";return dr||_i!=="exception"&&_i!=="success"?Dn=Qn(qe(hi),qe(At)):_i==="exception"?Dn=Kt?de.createElement(Re.Z,null):de.createElement(je.Z,null):_i==="success"&&(Dn=Kt?de.createElement(Te.Z,null):de.createElement(Ee.Z,null)),de.createElement("span",{className:`${oo}-text`,title:typeof Dn=="string"?Dn:void 0},Dn)},[Yi,hi,Dr,_i,Ji,oo,dr]),so=Array.isArray(wi)?wi[0]:wi,En=typeof wi=="string"||Array.isArray(wi)?wi:void 0;let Tn;Ji==="line"?Tn=di?de.createElement(Gt,Object.assign({},bt,{strokeColor:En,prefixCls:oo,steps:di}),Co):de.createElement(xi,Object.assign({},bt,{strokeColor:so,prefixCls:oo,direction:jr}),Co):(Ji==="circle"||Ji==="dashboard")&&(Tn=de.createElement(Rn,Object.assign({},bt,{strokeColor:so,prefixCls:oo,progressStatus:_i}),Co));const on=we()(oo,`${oo}-status-${_i}`,`${oo}-${Ji==="dashboard"&&"circle"||di&&"steps"||Ji}`,{[`${oo}-inline-circle`]:Ji==="circle"&&zt(Li,"circle")[0]<=20,[`${oo}-show-info`]:Yi,[`${oo}-${Li}`]:typeof Li=="string",[`${oo}-rtl`]:jr==="rtl"},hr==null?void 0:hr.className,zn,ni,Do);return Oo(de.createElement("div",Object.assign({ref:Wt,style:Object.assign(Object.assign({},hr==null?void 0:hr.style),Ir),className:on,role:"progressbar","aria-valuenow":Dr},(0,it.Z)(Wi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Tn))}),yn=tn},57809:function(Ge,xe,ae){"use strict";var de=ae(92310),Te=ae.n(de),Ee=ae(77861),Re=ae(64002),je=ae(59301),Ze=ae(53487),we=ae(62892),it=ae(19080),Je=ae(36355),Ye=ae(1684),st=ae(93891),ht=ae(19716),Lt=ae(32441),ze=ae(33234),ee=ae(14154),ne=ae(58582),fe=ae(84443),le=ae(66339),me=function(Ke,$e){var at={};for(var lt in Ke)Object.prototype.hasOwnProperty.call(Ke,lt)&&$e.indexOf(lt)<0&&(at[lt]=Ke[lt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,lt=Object.getOwnPropertySymbols(Ke);Tt<lt.length;Tt++)$e.indexOf(lt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,lt[Tt])&&(at[lt[Tt]]=Ke[lt[Tt]]);return at};const Se="SECRET_COMBOBOX_MODE_DO_NOT_USE",ke=(Ke,$e)=>{var at,{prefixCls:lt,bordered:Tt=!0,className:nt,rootClassName:Ut,getPopupContainer:kt,popupClassName:dn,dropdownClassName:nn,listHeight:qt=256,placement:un,listItemHeight:mn=24,size:Ct,disabled:qe,notFoundContent:Bt,status:Cn,builtinPlacements:Zn,dropdownMatchSelectWidth:zt,popupMatchSelectWidth:sn,direction:Mn,style:fi,allowClear:Rn}=Ke,li=me(Ke,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ot,getPrefixCls:kn,renderEmpty:$n,direction:xi,virtual:xn,popupMatchSelectWidth:Gt,popupOverflow:jt,select:It}=je.useContext(Je.E_),vt=kn("select",lt),Xt=kn(),Zt=Mn!=null?Mn:xi,{compactSize:yt,compactItemClassnames:ft}=(0,ze.ri)(vt,Zt),[_e,Pe]=(0,ee.Z)(vt),be=je.useMemo(()=>{const{mode:_i}=li;if(_i!=="combobox")return _i===Se?"combobox":_i},[li.mode]),Ue=be==="multiple"||be==="tags",Qe=(0,fe.Z)(li.suffixIcon,li.showArrow),Fe=(at=sn!=null?sn:zt)!==null&&at!==void 0?at:Gt,{status:gt,hasFeedback:tn,isFormItemInput:yn,feedbackIcon:bt}=je.useContext(Lt.aM),Wt=(0,it.F)(gt,Cn);let fn;Bt!==void 0?fn=Bt:be==="combobox"?fn=null:fn=($n==null?void 0:$n("Select"))||je.createElement(st.Z,{componentName:"Select"});const{suffixIcon:zn,itemIcon:ni,removeIcon:di,clearIcon:wi}=(0,le.Z)(Object.assign(Object.assign({},li),{multiple:Ue,hasFeedback:tn,feedbackIcon:bt,showSuffixIcon:Qe,prefixCls:vt,showArrow:li.showArrow,componentName:"Select"})),hi=Rn===!0?{clearIcon:wi}:Rn,Li=(0,Re.Z)(li,["suffixIcon","itemIcon"]),Yi=Te()(dn||nn,{[`${vt}-dropdown-${Zt}`]:Zt==="rtl"},Ut,Pe),Ji=(0,ht.Z)(_i=>{var De;return(De=Ct!=null?Ct:yt)!==null&&De!==void 0?De:_i}),Xi=je.useContext(Ye.Z),dr=qe!=null?qe:Xi,Ir=Te()({[`${vt}-lg`]:Ji==="large",[`${vt}-sm`]:Ji==="small",[`${vt}-rtl`]:Zt==="rtl",[`${vt}-borderless`]:!Tt,[`${vt}-in-form-item`]:yn},(0,it.Z)(vt,Wt,tn),ft,It==null?void 0:It.className,nt,Ut,Pe),Wi=je.useMemo(()=>un!==void 0?un:Zt==="rtl"?"bottomRight":"bottomLeft",[un,Zt]),Dr=(0,ne.Z)(Zn,jt);return _e(je.createElement(Ee.ZP,Object.assign({ref:$e,virtual:xn,showSearch:It==null?void 0:It.showSearch},Li,{style:Object.assign(Object.assign({},It==null?void 0:It.style),fi),dropdownMatchSelectWidth:Fe,builtinPlacements:Dr,transitionName:(0,we.m)(Xt,"slide-up",li.transitionName),listHeight:qt,listItemHeight:mn,mode:be,prefixCls:vt,placement:Wi,direction:Zt,suffixIcon:zn,menuItemSelectedIcon:ni,removeIcon:di,allowClear:hi,notFoundContent:fn,className:Ir,getPopupContainer:kt||Ot,dropdownClassName:Yi,disabled:dr})))},Be=je.forwardRef(ke),Ne=(0,Ze.Z)(Be);Be.SECRET_COMBOBOX_MODE_DO_NOT_USE=Se,Be.Option=Ee.Wx,Be.OptGroup=Ee.Xo,Be._InternalPanelDoNotUseOrYouWillBeFired=Ne,xe.default=Be},14154:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Be}});var de=ae(17313),Te=ae(74207),Ee=ae(37613),Re=ae(83116),je=ae(13826),Ze=ae(92899);const we=Ne=>{const{optionHeight:Ke,optionFontSize:$e,optionLineHeight:at,optionPadding:lt}=Ne;return{position:"relative",display:"block",minHeight:Ke,padding:lt,color:Ne.colorText,fontWeight:"normal",fontSize:$e,lineHeight:at,boxSizing:"border-box"}};var Je=Ne=>{const{antCls:Ke,componentCls:$e}=Ne,at=`${$e}-item`,lt=`&${Ke}-slide-up-enter${Ke}-slide-up-enter-active`,Tt=`&${Ke}-slide-up-appear${Ke}-slide-up-appear-active`,nt=`&${Ke}-slide-up-leave${Ke}-slide-up-leave-active`,Ut=`${$e}-dropdown-placement-`;return[{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,de.Wf)(Ne)),{position:"absolute",top:-9999,zIndex:Ne.zIndexPopup,boxSizing:"border-box",padding:Ne.paddingXXS,overflow:"hidden",fontSize:Ne.fontSize,fontVariant:"initial",backgroundColor:Ne.colorBgElevated,borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary,[`
${lt}${Ut}bottomLeft,
${Tt}${Ut}bottomLeft
`]:{animationName:je.fJ},[`
${lt}${Ut}topLeft,
${Tt}${Ut}topLeft,
${lt}${Ut}topRight,
${Tt}${Ut}topRight
`]:{animationName:je.Qt},[`${nt}${Ut}bottomLeft`]:{animationName:je.Uw},[`
${nt}${Ut}topLeft,
${nt}${Ut}topRight
`]:{animationName:je.ly},"&-hidden":{display:"none"},[`${at}`]:Object.assign(Object.assign({},we(Ne)),{cursor:"pointer",transition:`background ${Ne.motionDurationSlow} ease`,borderRadius:Ne.borderRadiusSM,"&-group":{color:Ne.colorTextDescription,fontSize:Ne.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},de.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${at}-option-disabled)`]:{backgroundColor:Ne.optionActiveBg},[`&-selected:not(${at}-option-disabled)`]:{color:Ne.optionSelectedColor,fontWeight:Ne.optionSelectedFontWeight,backgroundColor:Ne.optionSelectedBg,[`${at}-option-state`]:{color:Ne.colorPrimary}},"&-disabled":{[`&${at}-option-selected`]:{backgroundColor:Ne.colorBgContainerDisabled},color:Ne.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ne.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,je.oN)(Ne,"slide-up"),(0,je.oN)(Ne,"slide-down"),(0,Ze.Fm)(Ne,"move-up"),(0,Ze.Fm)(Ne,"move-down")]};const Ye=2,st=Ne=>{let{controlHeightSM:Ke,controlHeight:$e,lineWidth:at}=Ne;const lt=($e-Ke)/2-at,Tt=Math.ceil(lt/2);return[lt,Tt]};function ht(Ne,Ke){const{componentCls:$e,iconCls:at}=Ne,lt=`${$e}-selection-overflow`,Tt=Ne.multipleSelectItemHeight,[nt]=st(Ne),Ut=Ke?`${$e}-${Ke}`:"";return{[`${$e}-multiple${Ut}`]:{fontSize:Ne.fontSize,[lt]:{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:Ne.borderRadius,[`${$e}-show-search&`]:{cursor:"text"},[`${$e}-disabled&`]:{background:Ne.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ye}px 0`,lineHeight:`${Tt}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${$e}-show-arrow ${$e}-selector,
&${$e}-allow-clear ${$e}-selector
`]:{paddingInlineEnd:Ne.fontSizeIcon+Ne.controlPaddingHorizontal},[`${$e}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Tt,marginTop:Ye,marginBottom:Ye,lineHeight:`${Tt-Ne.lineWidth*2}px`,background:Ne.multipleItemBg,border:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.multipleItemBorderColor}`,borderRadius:Ne.borderRadiusSM,cursor:"default",transition:`font-size ${Ne.motionDurationSlow}, line-height ${Ne.motionDurationSlow}, height ${Ne.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ye*2,paddingInlineStart:Ne.paddingXS,paddingInlineEnd:Ne.paddingXS/2,[`${$e}-disabled&`]:{color:Ne.multipleItemColorDisabled,borderColor:Ne.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ne.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,de.Ro)()),{display:"inline-flex",alignItems:"center",color:Ne.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${at}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ne.colorIconHover}})},[`${lt}-item + ${lt}-item`]:{[`${$e}-selection-search`]:{marginInlineStart:0}},[`${$e}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ne.inputPaddingHorizontalBase-nt,"\n &-input,\n &-mirror\n ":{height:Tt,fontFamily:Ne.fontFamily,lineHeight:`${Tt}px`,transition:`all ${Ne.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:Ne.inputPaddingHorizontalBase,insetInlineEnd:Ne.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ne.motionDurationSlow}`}}}}var ze=Ne=>{const{componentCls:Ke}=Ne,$e=(0,Ee.TS)(Ne,{controlHeight:Ne.controlHeightSM,multipleSelectItemHeight:Ne.controlHeightXS,borderRadius:Ne.borderRadiusSM,borderRadiusSM:Ne.borderRadiusXS}),at=(0,Ee.TS)(Ne,{fontSize:Ne.fontSizeLG,controlHeight:Ne.controlHeightLG,multipleSelectItemHeight:Ne.multipleItemHeightLG,borderRadius:Ne.borderRadiusLG,borderRadiusSM:Ne.borderRadius}),[,lt]=st(Ne);return[ht(Ne),ht($e,"sm"),{[`${Ke}-multiple${Ke}-sm`]:{[`${Ke}-selection-placeholder`]:{insetInline:Ne.controlPaddingHorizontalSM-Ne.lineWidth},[`${Ke}-selection-search`]:{marginInlineStart:lt}}},ht(at,"lg")]};function ee(Ne,Ke){const{componentCls:$e,inputPaddingHorizontalBase:at,borderRadius:lt}=Ne,Tt=Ne.controlHeight-Ne.lineWidth*2,nt=Math.ceil(Ne.fontSize*1.25),Ut=Ke?`${$e}-${Ke}`:"";return{[`${$e}-single${Ut}`]:{fontSize:Ne.fontSize,[`${$e}-selector`]:Object.assign(Object.assign({},(0,de.Wf)(Ne)),{display:"flex",borderRadius:lt,[`${$e}-selection-search`]:{position:"absolute",top:0,insetInlineStart:at,insetInlineEnd:at,bottom:0,"&-input":{width:"100%"}},[`
${$e}-selection-item,
${$e}-selection-placeholder
`]:{padding:0,lineHeight:`${Tt}px`,transition:`all ${Ne.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Tt}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:Ne.colorTextPlaceholder},[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{width:"100%",height:Ne.controlHeight,padding:`0 ${at}px`,[`${$e}-selection-search-input`]:{height:Tt},"&:after":{lineHeight:`${Tt}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 ${at}px`,"&:after":{display:"none"}}}}}}}function ne(Ne){const{componentCls:Ke}=Ne,$e=Ne.controlPaddingHorizontalSM-Ne.lineWidth;return[ee(Ne),ee((0,Ee.TS)(Ne,{controlHeight:Ne.controlHeightSM,borderRadius:Ne.borderRadiusSM}),"sm"),{[`${Ke}-single${Ke}-sm`]:{[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selection-search`]:{insetInlineStart:$e,insetInlineEnd:$e},[`${Ke}-selector`]:{padding:`0 ${$e}px`},[`&${Ke}-show-arrow ${Ke}-selection-search`]:{insetInlineEnd:$e+Ne.fontSize*1.5},[`
&${Ke}-show-arrow ${Ke}-selection-item,
&${Ke}-show-arrow ${Ke}-selection-placeholder
`]:{paddingInlineEnd:Ne.fontSize*1.5}}}},ee((0,Ee.TS)(Ne,{controlHeight:Ne.singleItemHeightLG,fontSize:Ne.fontSizeLG,borderRadius:Ne.borderRadiusLG}),"lg")]}const fe=Ne=>{const{componentCls:Ke,selectorBg:$e}=Ne;return{position:"relative",backgroundColor:$e,border:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorBorder}`,transition:`all ${Ne.motionDurationMid} ${Ne.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ke}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ke}-disabled&`]:{color:Ne.colorTextDisabled,background:Ne.colorBgContainerDisabled,cursor:"not-allowed",[`${Ke}-multiple&`]:{background:Ne.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},le=function(Ne,Ke){let $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:at,borderHoverColor:lt,outlineColor:Tt,antCls:nt}=Ke,Ut=$e?{[`${at}-selector`]:{borderColor:lt}}:{};return{[Ne]:{[`&:not(${at}-disabled):not(${at}-customize-input):not(${nt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ut),{[`${at}-focused& ${at}-selector`]:{borderColor:lt,boxShadow:`0 0 0 ${Ke.controlOutlineWidth}px ${Tt}`,outline:0},[`&:hover ${at}-selector`]:{borderColor:lt}})}}},me=Ne=>{const{componentCls:Ke}=Ne;return{[`${Ke}-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=Ne=>{const{componentCls:Ke,inputPaddingHorizontalBase:$e,iconCls:at}=Ne;return{[Ke]:Object.assign(Object.assign({},(0,de.Wf)(Ne)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ke}-customize-input) ${Ke}-selector`]:Object.assign(Object.assign({},fe(Ne)),me(Ne)),[`${Ke}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},de.vS),[`${Ke}-selection-placeholder`]:Object.assign(Object.assign({},de.vS),{flex:1,color:Ne.colorTextPlaceholder,pointerEvents:"none"}),[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,de.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:Ne.fontSizeIcon,marginTop:-Ne.fontSizeIcon/2,color:Ne.colorTextQuaternary,fontSize:Ne.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[at]:{verticalAlign:"top",transition:`transform ${Ne.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ke}-suffix)`]:{pointerEvents:"auto"}},[`${Ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:Ne.fontSizeIcon,height:Ne.fontSizeIcon,marginTop:-Ne.fontSizeIcon/2,color:Ne.colorTextQuaternary,fontSize:Ne.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ne.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ne.motionDurationMid} ease, opacity ${Ne.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ne.colorTextTertiary}},"&:hover":{[`${Ke}-clear`]:{opacity:1}}}),[`${Ke}-has-feedback`]:{[`${Ke}-clear`]:{insetInlineEnd:$e+Ne.fontSize+Ne.paddingXS}}}},ke=Ne=>{const{componentCls:Ke}=Ne;return[{[Ke]:{[`&-borderless ${Ke}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ke}-in-form-item`]:{width:"100%"}}},Se(Ne),ne(Ne),ze(Ne),Je(Ne),{[`${Ke}-rtl`]:{direction:"rtl"}},le(Ke,(0,Ee.TS)(Ne,{borderHoverColor:Ne.colorPrimaryHover,outlineColor:Ne.controlOutline})),le(`${Ke}-status-error`,(0,Ee.TS)(Ne,{borderHoverColor:Ne.colorErrorHover,outlineColor:Ne.colorErrorOutline}),!0),le(`${Ke}-status-warning`,(0,Ee.TS)(Ne,{borderHoverColor:Ne.colorWarningHover,outlineColor:Ne.colorWarningOutline}),!0),(0,Te.c)(Ne,{borderElCls:`${Ke}-selector`,focusElCls:`${Ke}-focused`})]};var Be=(0,Re.Z)("Select",(Ne,Ke)=>{let{rootPrefixCls:$e}=Ke;const at=(0,Ee.TS)(Ne,{rootPrefixCls:$e,inputPaddingHorizontalBase:Ne.paddingSM-1,multipleSelectItemHeight:Ne.multipleItemHeight});return[ke(at)]},Ne=>{const{fontSize:Ke,lineHeight:$e,controlHeight:at,controlPaddingHorizontal:lt,zIndexPopupBase:Tt,colorText:nt,fontWeightStrong:Ut,controlItemBgActive:kt,controlItemBgHover:dn,colorBgContainer:nn,colorFillSecondary:qt,controlHeightLG:un,controlHeightSM:mn,colorBgContainerDisabled:Ct,colorTextDisabled:qe}=Ne;return{zIndexPopup:Tt+50,optionSelectedColor:nt,optionSelectedFontWeight:Ut,optionSelectedBg:kt,optionActiveBg:dn,optionPadding:`${(at-Ke*$e)/2}px ${lt}px`,optionFontSize:Ke,optionLineHeight:$e,optionHeight:at,selectorBg:nn,clearBg:nn,singleItemHeightLG:un,multipleItemBg:qt,multipleItemBorderColor:"transparent",multipleItemHeight:mn,multipleItemHeightLG:at,multipleSelectorBgDisabled:Ct,multipleItemColorDisabled:qe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Te}});const de=Ee=>{const je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ee==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},je),{points:["br","tr"],offset:[0,-4]})}};function Te(Ee,Re){return Ee||de(Re)}},84443:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return de}});function de(Te,Ee){return Ee!==void 0?Ee:Te!==null}},66339:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});var de=ae(10402),Te=ae(33130),Ee=ae(72119),Re=ae(18290),je=ae(50023),Ze=ae(21970),we=ae(59301);function it(Je){let{suffixIcon:Ye,clearIcon:st,menuItemSelectedIcon:ht,removeIcon:Lt,loading:ze,multiple:ee,hasFeedback:ne,prefixCls:fe,showSuffixIcon:le,feedbackIcon:me,showArrow:Se,componentName:ke}=Je;const Be=st!=null?st:we.createElement(Te.Z,null),Ne=lt=>Ye===null&&!ne&&!Se?null:we.createElement(we.Fragment,null,le!==!1&&lt,ne&&me);let Ke=null;if(Ye!==void 0)Ke=Ne(Ye);else if(ze)Ke=Ne(we.createElement(je.Z,{spin:!0}));else{const lt=`${fe}-suffix`;Ke=Tt=>{let{open:nt,showSearch:Ut}=Tt;return Ne(nt&&Ut?we.createElement(Ze.Z,{className:lt}):we.createElement(Re.Z,{className:lt}))}}let $e=null;ht!==void 0?$e=ht:ee?$e=we.createElement(de.Z,null):$e=null;let at=null;return Lt!==void 0?at=Lt:at=we.createElement(Ee.Z,null),{clearIcon:Be,suffixIcon:Ke,itemIcon:$e,removeIcon:at}}},81327:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return fe}});var de=ae(59301),Te=ae(92310),Ee=ae.n(Te),Re=ae(38298),je=ae(36355),Ze=ae(33234);const we=de.createContext({latestIndex:0}),it=we.Provider;var Ye=le=>{let{className:me,index:Se,children:ke,split:Be,style:Ne}=le;const{latestIndex:Ke}=de.useContext(we);return ke==null?null:de.createElement(de.Fragment,null,de.createElement("div",{className:me,style:Ne},ke),Se<Ke&&Be&&de.createElement("span",{className:`${me}-split`},Be))},st=ae(2856);function ht(le){return["small","middle","large"].includes(le)}function Lt(le){return le?typeof le=="number"&&!Number.isNaN(le):!1}var ze=function(le,me){var Se={};for(var ke in le)Object.prototype.hasOwnProperty.call(le,ke)&&me.indexOf(ke)<0&&(Se[ke]=le[ke]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ke=Object.getOwnPropertySymbols(le);Be<ke.length;Be++)me.indexOf(ke[Be])<0&&Object.prototype.propertyIsEnumerable.call(le,ke[Be])&&(Se[ke[Be]]=le[ke[Be]]);return Se};const ne=de.forwardRef((le,me)=>{var Se,ke;const{getPrefixCls:Be,space:Ne,direction:Ke}=de.useContext(je.E_),{size:$e=(Ne==null?void 0:Ne.size)||"small",align:at,className:lt,rootClassName:Tt,children:nt,direction:Ut="horizontal",prefixCls:kt,split:dn,style:nn,wrap:qt=!1,classNames:un,styles:mn}=le,Ct=ze(le,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[qe,Bt]=Array.isArray($e)?$e:[$e,$e],Cn=ht(Bt),Zn=ht(qe),zt=Lt(Bt),sn=Lt(qe),Mn=(0,Re.Z)(nt,{keepEmpty:!0}),fi=at===void 0&&Ut==="horizontal"?"center":at,Rn=Be("space",kt),[li,Ot]=(0,st.Z)(Rn),kn=Ee()(Rn,Ne==null?void 0:Ne.className,Ot,`${Rn}-${Ut}`,{[`${Rn}-rtl`]:Ke==="rtl",[`${Rn}-align-${fi}`]:fi,[`${Rn}-gap-row-${Bt}`]:Cn,[`${Rn}-gap-col-${qe}`]:Zn},lt,Tt),$n=Ee()(`${Rn}-item`,(Se=un==null?void 0:un.item)!==null&&Se!==void 0?Se:(ke=Ne==null?void 0:Ne.classNames)===null||ke===void 0?void 0:ke.item);let xi=0;const xn=Mn.map((It,vt)=>{var Xt,Zt;It!=null&&(xi=vt);const yt=It&&It.key||`${$n}-${vt}`;return de.createElement(Ye,{className:$n,key:yt,index:vt,split:dn,style:(Xt=mn==null?void 0:mn.item)!==null&&Xt!==void 0?Xt:(Zt=Ne==null?void 0:Ne.styles)===null||Zt===void 0?void 0:Zt.item},It)}),Gt=de.useMemo(()=>({latestIndex:xi}),[xi]);if(Mn.length===0)return null;const jt={};return qt&&(jt.flexWrap="wrap"),!Zn&&sn&&(jt.columnGap=qe),!Cn&&zt&&(jt.rowGap=Bt),li(de.createElement("div",Object.assign({ref:me,className:kn,style:Object.assign(Object.assign(Object.assign({},jt),Ne==null?void 0:Ne.style),nn)},Ct),de.createElement(it,{value:Gt},xn)))});ne.Compact=Ze.ZP;var fe=ne},15969:function(Ge,xe,ae){"use strict";ae.d(xe,{N:function(){return de}});const de=Te=>({color:Te.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Te.motionDurationSlow}`,"&:focus, &:hover":{color:Te.colorLinkHover},"&:active":{color:Te.colorLinkActive}})},78673:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Ut}});var de=ae(50023),Te=ae(92310),Ee=ae.n(Te),Re=ae(5891),je=ae(80962),Ze=ae(29043),we=ae(19149),it=ae(59301),Je=ae(35788),Ye=ae(85108),st=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ht=it.forwardRef(function(kt,dn){var nn,qt=kt.prefixCls,un=qt===void 0?"rc-switch":qt,mn=kt.className,Ct=kt.checked,qe=kt.defaultChecked,Bt=kt.disabled,Cn=kt.loadingIcon,Zn=kt.checkedChildren,zt=kt.unCheckedChildren,sn=kt.onClick,Mn=kt.onChange,fi=kt.onKeyDown,Rn=(0,we.Z)(kt,st),li=(0,Je.Z)(!1,{value:Ct,defaultValue:qe}),Ot=(0,Ze.Z)(li,2),kn=Ot[0],$n=Ot[1];function xi(It,vt){var Xt=kn;return Bt||(Xt=It,$n(Xt),Mn==null||Mn(Xt,vt)),Xt}function xn(It){It.which===Ye.Z.LEFT?xi(!1,It):It.which===Ye.Z.RIGHT&&xi(!0,It),fi==null||fi(It)}function Gt(It){var vt=xi(!kn,It);sn==null||sn(vt,It)}var jt=Ee()(un,mn,(nn={},(0,je.Z)(nn,"".concat(un,"-checked"),kn),(0,je.Z)(nn,"".concat(un,"-disabled"),Bt),nn));return it.createElement("button",(0,Re.Z)({},Rn,{type:"button",role:"switch","aria-checked":kn,disabled:Bt,className:jt,ref:dn,onKeyDown:xn,onClick:Gt}),Cn,it.createElement("span",{className:"".concat(un,"-inner")},it.createElement("span",{className:"".concat(un,"-inner-checked")},Zn),it.createElement("span",{className:"".concat(un,"-inner-unchecked")},zt)))});ht.displayName="Switch";var Lt=ht,ze=ae(14088),ee=ae(36355),ne=ae(1684),fe=ae(19716),le=ae(64993),me=ae(17313),Se=ae(83116),ke=ae(37613);const Be=kt=>{const{componentCls:dn,trackHeightSM:nn,trackPadding:qt,trackMinWidthSM:un,innerMinMarginSM:mn,innerMaxMarginSM:Ct,handleSizeSM:qe}=kt,Bt=`${dn}-inner`;return{[dn]:{[`&${dn}-small`]:{minWidth:un,height:nn,lineHeight:`${nn}px`,[`${dn}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:mn,[`${Bt}-checked`]:{marginInlineStart:`calc(-100% + ${qe+qt*2}px - ${Ct*2}px)`,marginInlineEnd:`calc(100% - ${qe+qt*2}px + ${Ct*2}px)`},[`${Bt}-unchecked`]:{marginTop:-nn,marginInlineStart:0,marginInlineEnd:0}},[`${dn}-handle`]:{width:qe,height:qe},[`${dn}-loading-icon`]:{top:(qe-kt.switchLoadingIconSize)/2,fontSize:kt.switchLoadingIconSize},[`&${dn}-checked`]:{[`${dn}-inner`]:{paddingInlineStart:mn,paddingInlineEnd:Ct,[`${Bt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Bt}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+qt*2}px + ${Ct*2}px)`,marginInlineEnd:`calc(-100% + ${qe+qt*2}px - ${Ct*2}px)`}},[`${dn}-handle`]:{insetInlineStart:`calc(100% - ${qe+qt}px)`}},[`&:not(${dn}-disabled):active`]:{[`&:not(${dn}-checked) ${Bt}`]:{[`${Bt}-unchecked`]:{marginInlineStart:kt.marginXXS/2,marginInlineEnd:-kt.marginXXS/2}},[`&${dn}-checked ${Bt}`]:{[`${Bt}-checked`]:{marginInlineStart:-kt.marginXXS/2,marginInlineEnd:kt.marginXXS/2}}}}}}},Ne=kt=>{const{componentCls:dn,handleSize:nn}=kt;return{[dn]:{[`${dn}-loading-icon${kt.iconCls}`]:{position:"relative",top:(nn-kt.fontSize)/2,color:kt.switchLoadingIconColor,verticalAlign:"top"},[`&${dn}-checked ${dn}-loading-icon`]:{color:kt.switchColor}}}},Ke=kt=>{const{componentCls:dn,motion:nn,trackPadding:qt,handleBg:un,handleShadow:mn,handleSize:Ct}=kt,qe=`${dn}-handle`;return{[dn]:{[qe]:{position:"absolute",top:qt,insetInlineStart:qt,width:Ct,height:Ct,transition:`all ${kt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:un,borderRadius:Ct/2,boxShadow:mn,transition:`all ${kt.switchDuration} ease-in-out`,content:'""'}},[`&${dn}-checked ${qe}`]:{insetInlineStart:`calc(100% - ${Ct+qt}px)`},[`&:not(${dn}-disabled):active`]:nn?{[`${qe}::before`]:{insetInlineEnd:kt.switchHandleActiveInset,insetInlineStart:0},[`&${dn}-checked ${qe}::before`]:{insetInlineEnd:0,insetInlineStart:kt.switchHandleActiveInset}}:{}}}},$e=kt=>{const{componentCls:dn,trackHeight:nn,trackPadding:qt,innerMinMargin:un,innerMaxMargin:mn,handleSize:Ct}=kt,qe=`${dn}-inner`;return{[dn]:{[qe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:mn,paddingInlineEnd:un,transition:`padding-inline-start ${kt.switchDuration} ease-in-out, padding-inline-end ${kt.switchDuration} ease-in-out`,[`${qe}-checked, ${qe}-unchecked`]:{display:"block",color:kt.colorTextLightSolid,fontSize:kt.fontSizeSM,transition:`margin-inline-start ${kt.switchDuration} ease-in-out, margin-inline-end ${kt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${qe}-checked`]:{marginInlineStart:`calc(-100% + ${Ct+qt*2}px - ${mn*2}px)`,marginInlineEnd:`calc(100% - ${Ct+qt*2}px + ${mn*2}px)`},[`${qe}-unchecked`]:{marginTop:-nn,marginInlineStart:0,marginInlineEnd:0}},[`&${dn}-checked ${qe}`]:{paddingInlineStart:un,paddingInlineEnd:mn,[`${qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${qe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ct+qt*2}px + ${mn*2}px)`,marginInlineEnd:`calc(-100% + ${Ct+qt*2}px - ${mn*2}px)`}},[`&:not(${dn}-disabled):active`]:{[`&:not(${dn}-checked) ${qe}`]:{[`${qe}-unchecked`]:{marginInlineStart:qt*2,marginInlineEnd:-qt*2}},[`&${dn}-checked ${qe}`]:{[`${qe}-checked`]:{marginInlineStart:-qt*2,marginInlineEnd:qt*2}}}}}},at=kt=>{const{componentCls:dn,trackHeight:nn,trackMinWidth:qt}=kt;return{[dn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(kt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:qt,height:nn,lineHeight:`${nn}px`,verticalAlign:"middle",background:kt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${kt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${dn}-disabled)`]:{background:kt.colorTextTertiary}}),(0,me.Qy)(kt)),{[`&${dn}-checked`]:{background:kt.switchColor,[`&:hover:not(${dn}-disabled)`]:{background:kt.colorPrimaryHover}},[`&${dn}-loading, &${dn}-disabled`]:{cursor:"not-allowed",opacity:kt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${dn}-rtl`]:{direction:"rtl"}})}};var lt=(0,Se.Z)("Switch",kt=>{const dn=(0,ke.TS)(kt,{switchDuration:kt.motionDurationMid,switchColor:kt.colorPrimary,switchDisabledOpacity:kt.opacityLoading,switchLoadingIconSize:kt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${kt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[at(dn),$e(dn),Ke(dn),Ne(dn),Be(dn)]},kt=>{const{fontSize:dn,lineHeight:nn,controlHeight:qt,colorWhite:un}=kt,mn=dn*nn,Ct=qt/2,qe=2,Bt=mn-qe*2,Cn=Ct-qe*2;return{trackHeight:mn,trackHeightSM:Ct,trackMinWidth:Bt*2+qe*4,trackMinWidthSM:Cn*2+qe*2,trackPadding:qe,handleBg:un,handleSize:Bt,handleSizeSM:Cn,handleShadow:`0 2px 4px 0 ${new le.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Bt/2,innerMaxMargin:Bt+qe+qe*2,innerMinMarginSM:Cn/2,innerMaxMarginSM:Cn+qe+qe*2}}),Tt=function(kt,dn){var nn={};for(var qt in kt)Object.prototype.hasOwnProperty.call(kt,qt)&&dn.indexOf(qt)<0&&(nn[qt]=kt[qt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,qt=Object.getOwnPropertySymbols(kt);un<qt.length;un++)dn.indexOf(qt[un])<0&&Object.prototype.propertyIsEnumerable.call(kt,qt[un])&&(nn[qt[un]]=kt[qt[un]]);return nn};const nt=it.forwardRef((kt,dn)=>{const{prefixCls:nn,size:qt,disabled:un,loading:mn,className:Ct,rootClassName:qe,style:Bt}=kt,Cn=Tt(kt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Zn,direction:zt,switch:sn}=it.useContext(ee.E_),Mn=it.useContext(ne.Z),fi=(un!=null?un:Mn)||mn,Rn=Zn("switch",nn),li=it.createElement("div",{className:`${Rn}-handle`},mn&&it.createElement(de.Z,{className:`${Rn}-loading-icon`})),[Ot,kn]=lt(Rn),$n=(0,fe.Z)(qt),xi=Ee()(sn==null?void 0:sn.className,{[`${Rn}-small`]:$n==="small",[`${Rn}-loading`]:mn,[`${Rn}-rtl`]:zt==="rtl"},Ct,qe,kn),xn=Object.assign(Object.assign({},sn==null?void 0:sn.style),Bt);return Ot(it.createElement(ze.Z,{component:"Switch"},it.createElement(Lt,Object.assign({},Cn,{prefixCls:Rn,className:xi,style:xn,disabled:fi,ref:dn,loadingIcon:li}))))});nt.__ANT_SWITCH=!0;var Ut=nt},2595:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return Eh}});var de={},Te="rc-table-internal-hook",Ee=ae(29043),Re=ae(8107),je=ae(28800),Ze=ae(51346),we=ae(59301),it=ae(4676);function Je(dt){var pt=we.createContext(void 0),_t=function(hn){var rn=hn.value,Wn=hn.children,Kn=we.useRef(rn);Kn.current=rn;var jn=we.useState(function(){return{getValue:function(){return Kn.current},listeners:new Set}}),ci=(0,Ee.Z)(jn,1),yi=ci[0];return(0,je.Z)(function(){(0,it.unstable_batchedUpdates)(function(){yi.listeners.forEach(function(mi){mi(rn)})})},[rn]),we.createElement(pt.Provider,{value:yi},Wn)};return{Context:pt,Provider:_t,defaultValue:dt}}function Ye(dt,pt){var _t=(0,Re.Z)(typeof pt=="function"?pt:function(mi){if(pt===void 0)return mi;if(!Array.isArray(pt))return mi[pt];var Ui={};return pt.forEach(function(Di){Ui[Di]=mi[Di]}),Ui}),Vt=we.useContext(dt==null?void 0:dt.Context),hn=Vt||{},rn=hn.listeners,Wn=hn.getValue,Kn=we.useRef();Kn.current=_t(Vt?Wn():dt==null?void 0:dt.defaultValue);var jn=we.useState({}),ci=(0,Ee.Z)(jn,2),yi=ci[1];return(0,je.Z)(function(){if(!Vt)return;function mi(Ui){var Di=_t(Ui);(0,Ze.Z)(Kn.current,Di,!0)||yi({})}return rn.add(mi),function(){rn.delete(mi)}},[Vt]),Kn.current}var st=ae(5891),ht=ae(20475);function Lt(){var dt=we.createContext(null);function pt(){return we.useContext(dt)}function _t(hn,rn){var Wn=(0,ht.Yr)(hn),Kn=function(ci,yi){var mi=Wn?{ref:yi}:{},Ui=we.useRef(0),Di=we.useRef(ci),Ni=pt();return Ni!==null?we.createElement(hn,(0,st.Z)({},ci,mi)):((!rn||rn(Di.current,ci))&&(Ui.current+=1),Di.current=ci,we.createElement(dt.Provider,{value:Ui.current},we.createElement(hn,(0,st.Z)({},ci,mi))))};return Wn?we.forwardRef(Kn):Kn}function Vt(hn,rn){var Wn=(0,ht.Yr)(hn),Kn=function(ci,yi){var mi=Wn?{ref:yi}:{};return pt(),we.createElement(hn,(0,st.Z)({},ci,mi))};return Wn?we.memo(we.forwardRef(Kn),rn):we.memo(Kn,rn)}return{makeImmutable:_t,responseImmutable:Vt,useImmutableMark:pt}}var ze=Lt(),ee=ze.makeImmutable,ne=ze.responseImmutable,fe=ze.useImmutableMark,le=Lt(),me=le.makeImmutable,Se=le.responseImmutable,ke=le.useImmutableMark,Be=Je(),Ne=Be;function Ke(dt,pt){var _t=we.useRef(0);_t.current+=1;var Vt=we.useRef(dt),hn=[];Object.keys(dt||{}).map(function(Wn){var Kn;(dt==null?void 0:dt[Wn])!==((Kn=Vt.current)===null||Kn===void 0?void 0:Kn[Wn])&&hn.push(Wn)}),Vt.current=dt;var rn=we.useRef([]);return hn.length&&(rn.current=hn),we.useDebugValue(_t.current),we.useDebugValue(rn.current.join(", ")),pt&&console.log("".concat(pt,":"),_t.current,rn.current),_t.current}var $e=null,at=we.memo(function(){var dt=Ke();return we.createElement("h1",null,"Render Times: ",dt)});at.displayName="RenderBlock";var lt=ae(80665),Tt=ae(57259),nt=ae(80962),Ut=ae(92310),kt=ae.n(Ut),dn=ae(79722),nn=ae(69004),qt=ae(51395),un=we.createContext({renderWithProps:!1}),mn=un,Ct="RC_TABLE_KEY";function qe(dt){return dt==null?[]:Array.isArray(dt)?dt:[dt]}function Bt(dt){var pt=[],_t={};return dt.forEach(function(Vt){for(var hn=Vt||{},rn=hn.key,Wn=hn.dataIndex,Kn=rn||qe(Wn).join("-")||Ct;_t[Kn];)Kn="".concat(Kn,"_next");_t[Kn]=!0,pt.push(Kn)}),pt}function Cn(dt){return dt!=null}function Zn(dt){return dt&&(0,lt.Z)(dt)==="object"&&!Array.isArray(dt)&&!we.isValidElement(dt)}function zt(dt,pt,_t,Vt,hn,rn){var Wn=we.useContext(mn),Kn=ke(),jn=(0,dn.Z)(function(){if(Cn(Vt))return[Vt];var ci=pt==null||pt===""?[]:Array.isArray(pt)?pt:[pt],yi=(0,nn.Z)(dt,ci),mi=yi,Ui=void 0;if(hn){var Di=hn(yi,dt,_t);Zn(Di)?(mi=Di.children,Ui=Di.props,Wn.renderWithProps=!0):mi=Di}return[mi,Ui]},[Kn,dt,Vt,pt,hn,_t],function(ci,yi){if(rn){var mi=(0,Ee.Z)(ci,2),Ui=mi[1],Di=(0,Ee.Z)(yi,2),Ni=Di[1];return rn(Ni,Ui)}return Wn.renderWithProps?!0:!(0,Ze.Z)(ci,yi,!0)});return jn}function sn(dt,pt,_t,Vt){var hn=dt+pt-1;return dt<=Vt&&hn>=_t}function Mn(dt,pt){return Ye(Ne,function(_t){var Vt=sn(dt,pt||1,_t.hoverStartRow,_t.hoverEndRow);return[Vt,_t.onHover]})}var fi=function(pt){var _t=pt.ellipsis,Vt=pt.rowType,hn=pt.children,rn,Wn=_t===!0?{showTitle:!0}:_t;return Wn&&(Wn.showTitle||Vt==="header")&&(typeof hn=="string"||typeof hn=="number"?rn=hn.toString():we.isValidElement(hn)&&typeof hn.props.children=="string"&&(rn=hn.props.children)),rn};function Rn(dt){var pt,_t,Vt,hn,rn,Wn,Kn,jn,ci=dt.component,yi=dt.children,mi=dt.ellipsis,Ui=dt.scope,Di=dt.prefixCls,Ni=dt.className,gr=dt.align,Ri=dt.record,ur=dt.render,sr=dt.dataIndex,br=dt.renderIndex,Zr=dt.shouldCellUpdate,ro=dt.index,pr=dt.rowType,_r=dt.colSpan,ko=dt.rowSpan,wr=dt.fixLeft,Br=dt.fixRight,xr=dt.firstFixLeft,$i=dt.lastFixLeft,Nr=dt.firstFixRight,Qr=dt.lastFixRight,fo=dt.appendNode,po=dt.additionalProps,mr=po===void 0?{}:po,Lo=dt.isSticky,Fo="".concat(Di,"-cell"),Ea=Ye(Ne,["supportSticky","allColumnsFixedLeft"]),ra=Ea.supportSticky,os=Ea.allColumnsFixedLeft,ts=zt(Ri,sr,br,yi,ur,Zr),No=(0,Ee.Z)(ts,2),to=No[0],ma=No[1],as={},$a=typeof wr=="number"&&ra,Fs=typeof Br=="number"&&ra;$a&&(as.position="sticky",as.left=wr),Fs&&(as.position="sticky",as.right=Br);var yo=(pt=(_t=(Vt=ma==null?void 0:ma.colSpan)!==null&&Vt!==void 0?Vt:mr.colSpan)!==null&&_t!==void 0?_t:_r)!==null&&pt!==void 0?pt:1,uo=(hn=(rn=(Wn=ma==null?void 0:ma.rowSpan)!==null&&Wn!==void 0?Wn:mr.rowSpan)!==null&&rn!==void 0?rn:ko)!==null&&hn!==void 0?hn:1,mo=Mn(ro,uo),$r=(0,Ee.Z)(mo,2),xa=$r[0],Yr=$r[1],Ao=function(Rs){var qs;Ri&&Yr(ro,ro+uo-1),mr==null||(qs=mr.onMouseEnter)===null||qs===void 0||qs.call(mr,Rs)},ua=function(Rs){var qs;Ri&&Yr(-1,-1),mr==null||(qs=mr.onMouseLeave)===null||qs===void 0||qs.call(mr,Rs)};if(yo===0||uo===0)return null;var ca=(Kn=mr.title)!==null&&Kn!==void 0?Kn:fi({rowType:pr,ellipsis:mi,children:to}),Vs=kt()(Fo,Ni,(jn={},(0,nt.Z)(jn,"".concat(Fo,"-fix-left"),$a&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-left-first"),xr&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-left-last"),$i&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-left-all"),$i&&os&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-right"),Fs&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-right-first"),Nr&&ra),(0,nt.Z)(jn,"".concat(Fo,"-fix-right-last"),Qr&&ra),(0,nt.Z)(jn,"".concat(Fo,"-ellipsis"),mi),(0,nt.Z)(jn,"".concat(Fo,"-with-append"),fo),(0,nt.Z)(jn,"".concat(Fo,"-fix-sticky"),($a||Fs)&&Lo&&ra),(0,nt.Z)(jn,"".concat(Fo,"-row-hover"),!ma&&xa),jn),mr.className,ma==null?void 0:ma.className),Os={};gr&&(Os.textAlign=gr);var Sl=(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},as),mr.style),Os),ma==null?void 0:ma.style),Ca=to;return(0,lt.Z)(Ca)==="object"&&!Array.isArray(Ca)&&!we.isValidElement(Ca)&&(Ca=null),mi&&($i||Nr)&&(Ca=we.createElement("span",{className:"".concat(Fo,"-content")},Ca)),we.createElement(ci,(0,st.Z)({},ma,mr,{className:Vs,style:Sl,title:ca,scope:Ui,onMouseEnter:Ao,onMouseLeave:ua,colSpan:yo!==1?yo:null,rowSpan:uo!==1?uo:null}),fo,Ca)}var li=we.memo(Rn);function Ot(dt,pt,_t,Vt,hn,rn){var Wn=_t[dt]||{},Kn=_t[pt]||{},jn,ci;Wn.fixed==="left"?jn=Vt.left[hn==="rtl"?pt:dt]:Kn.fixed==="right"&&(ci=Vt.right[hn==="rtl"?dt:pt]);var yi=!1,mi=!1,Ui=!1,Di=!1,Ni=_t[pt+1],gr=_t[dt-1],Ri=!(rn!=null&&rn.children);if(hn==="rtl"){if(jn!==void 0){var ur=gr&&gr.fixed==="left";Di=!ur&&Ri}else if(ci!==void 0){var sr=Ni&&Ni.fixed==="right";Ui=!sr&&Ri}}else if(jn!==void 0){var br=Ni&&Ni.fixed==="left";yi=!br&&Ri}else if(ci!==void 0){var Zr=gr&&gr.fixed==="right";mi=!Zr&&Ri}return{fixLeft:jn,fixRight:ci,lastFixLeft:yi,firstFixRight:mi,lastFixRight:Ui,firstFixLeft:Di,isSticky:Vt.isSticky}}var kn=we.createContext({}),$n=kn;function xi(dt){var pt=dt.className,_t=dt.index,Vt=dt.children,hn=dt.colSpan,rn=hn===void 0?1:hn,Wn=dt.rowSpan,Kn=dt.align,jn=Ye(Ne,["prefixCls","direction"]),ci=jn.prefixCls,yi=jn.direction,mi=we.useContext($n),Ui=mi.scrollColumnIndex,Di=mi.stickyOffsets,Ni=mi.flattenColumns,gr=mi.columns,Ri=_t+rn-1,ur=Ri+1===Ui?rn+1:rn,sr=Ot(_t,_t+ur-1,Ni,Di,yi,gr==null?void 0:gr[_t]);return we.createElement(li,(0,st.Z)({className:pt,index:_t,component:"td",prefixCls:ci,record:null,dataIndex:null,align:Kn,colSpan:ur,rowSpan:Wn,render:function(){return Vt}},sr))}var xn=ae(19149),Gt=["children"];function jt(dt){var pt=dt.children,_t=(0,xn.Z)(dt,Gt);return we.createElement("tr",_t,pt)}function It(dt){var pt=dt.children;return pt}It.Row=jt,It.Cell=xi;var vt=It;function Xt(dt){var pt=dt.children,_t=dt.stickyOffsets,Vt=dt.flattenColumns,hn=dt.columns,rn=Ye(Ne,"prefixCls"),Wn=Vt.length-1,Kn=Vt[Wn],jn=we.useMemo(function(){return{stickyOffsets:_t,flattenColumns:Vt,scrollColumnIndex:Kn!=null&&Kn.scrollbar?Wn:null,columns:hn}},[Kn,Vt,Wn,_t,hn]);return we.createElement($n.Provider,{value:jn},we.createElement("tfoot",{className:"".concat(rn,"-summary")},pt))}var Zt=Se(Xt),yt=vt,ft=ae(80764),_e=ae(29301),Pe=ae(48886),be=ae(24387),Ue=ae(59055),Qe=ae(36994);function Fe(dt,pt,_t,Vt,hn,rn,Wn){dt.push({record:pt,indent:_t,index:Wn});var Kn=rn(pt),jn=hn==null?void 0:hn.has(Kn);if(pt&&Array.isArray(pt[Vt])&&jn)for(var ci=0;ci<pt[Vt].length;ci+=1)Fe(dt,pt[Vt][ci],_t+1,Vt,hn,rn,ci)}function gt(dt,pt,_t,Vt){var hn=we.useMemo(function(){if(_t!=null&&_t.size){for(var rn=[],Wn=0;Wn<(dt==null?void 0:dt.length);Wn+=1){var Kn=dt[Wn];Fe(rn,Kn,0,pt,_t,Vt,Wn)}return rn}return dt==null?void 0:dt.map(function(jn,ci){return{record:jn,indent:0,index:ci}})},[dt,pt,_t,Vt]);return hn}function tn(dt){var pt=dt.prefixCls,_t=dt.children,Vt=dt.component,hn=dt.cellComponent,rn=dt.className,Wn=dt.expanded,Kn=dt.colSpan,jn=dt.isEmpty,ci=Ye(Ne,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),yi=ci.scrollbarSize,mi=ci.fixHeader,Ui=ci.fixColumn,Di=ci.componentWidth,Ni=ci.horizonScroll,gr=_t;return(jn?Ni&&Di:Ui)&&(gr=we.createElement("div",{style:{width:Di-(mi?yi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pt,"-expanded-row-fixed")},gr)),we.createElement(Vt,{className:rn,style:{display:Wn?null:"none"}},we.createElement(li,{component:hn,prefixCls:pt,colSpan:Kn},gr))}var yn=tn;function bt(dt,pt,_t,Vt){var hn=Ye(Ne,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),rn=hn.flattenColumns,Wn=hn.expandableType,Kn=hn.expandedKeys,jn=hn.childrenColumnName,ci=hn.onTriggerExpand,yi=hn.rowExpandable,mi=hn.onRow,Ui=hn.expandRowByClick,Di=hn.rowClassName,Ni=Wn==="nest",gr=Wn==="row"&&(!yi||yi(dt)),Ri=gr||Ni,ur=Kn&&Kn.has(pt),sr=jn&&dt&&dt[jn],br=(0,ft.useEvent)(ci),Zr=mi==null?void 0:mi(dt,_t),ro=Zr==null?void 0:Zr.onClick,pr=function(Br){Ui&&Ri&&ci(dt,Br);for(var xr=arguments.length,$i=new Array(xr>1?xr-1:0),Nr=1;Nr<xr;Nr++)$i[Nr-1]=arguments[Nr];ro==null||ro.apply(void 0,[Br].concat($i))},_r;typeof Di=="string"?_r=Di:typeof Di=="function"&&(_r=Di(dt,_t,Vt));var ko=Bt(rn);return(0,Tt.Z)((0,Tt.Z)({},hn),{},{columnsKey:ko,nestExpandable:Ni,expanded:ur,hasNestChildren:sr,record:dt,onTriggerExpand:br,rowSupportExpand:gr,expandable:Ri,rowProps:(0,Tt.Z)((0,Tt.Z)({},Zr),{},{className:kt()(_r,Zr==null?void 0:Zr.className),onClick:pr})})}function Wt(dt,pt,_t,Vt,hn){var rn=dt.record,Wn=dt.prefixCls,Kn=dt.columnsKey,jn=dt.fixedInfoList,ci=dt.expandIconColumnIndex,yi=dt.nestExpandable,mi=dt.indentSize,Ui=dt.expandIcon,Di=dt.expanded,Ni=dt.hasNestChildren,gr=dt.onTriggerExpand,Ri=Kn[_t],ur=jn[_t],sr;_t===(ci||0)&&yi&&(sr=we.createElement(we.Fragment,null,we.createElement("span",{style:{paddingLeft:"".concat(mi*Vt,"px")},className:"".concat(Wn,"-row-indent indent-level-").concat(Vt)}),Ui({prefixCls:Wn,expanded:Di,expandable:Ni,record:rn,onExpand:gr})));var br;return pt.onCell&&(br=pt.onCell(rn,hn)),{key:Ri,fixedInfo:ur,appendCellNode:sr,additionalCellProps:br||{}}}function fn(dt){var pt=dt.className,_t=dt.style,Vt=dt.record,hn=dt.index,rn=dt.renderIndex,Wn=dt.rowKey,Kn=dt.indent,jn=Kn===void 0?0:Kn,ci=dt.rowComponent,yi=dt.cellComponent,mi=dt.scopeCellComponent,Ui=bt(Vt,Wn,hn,jn),Di=Ui.prefixCls,Ni=Ui.flattenColumns,gr=Ui.expandedRowClassName,Ri=Ui.expandedRowRender,ur=Ui.rowProps,sr=Ui.expanded,br=Ui.rowSupportExpand,Zr=we.useState(!1),ro=(0,Ee.Z)(Zr,2),pr=ro[0],_r=ro[1];we.useEffect(function(){sr&&_r(!0)},[sr]);var ko=we.createElement(ci,(0,st.Z)({},ur,{"data-row-key":Wn,className:kt()(pt,"".concat(Di,"-row"),"".concat(Di,"-row-level-").concat(jn),ur==null?void 0:ur.className),style:(0,Tt.Z)((0,Tt.Z)({},_t),ur==null?void 0:ur.style)}),Ni.map(function($i,Nr){var Qr=$i.render,fo=$i.dataIndex,po=$i.className,mr=Wt(Ui,$i,Nr,jn,hn),Lo=mr.key,Fo=mr.fixedInfo,Ea=mr.appendCellNode,ra=mr.additionalCellProps;return we.createElement(li,(0,st.Z)({className:po,ellipsis:$i.ellipsis,align:$i.align,scope:$i.rowScope,component:$i.rowScope?mi:yi,prefixCls:Di,key:Lo,record:Vt,index:hn,renderIndex:rn,dataIndex:fo,render:Qr,shouldCellUpdate:$i.shouldCellUpdate},Fo,{appendNode:Ea,additionalProps:ra}))})),wr;if(br&&(pr||sr)){var Br=Ri(Vt,hn,jn+1,sr),xr=gr&&gr(Vt,hn,jn);wr=we.createElement(yn,{expanded:sr,className:kt()("".concat(Di,"-expanded-row"),"".concat(Di,"-expanded-row-level-").concat(jn+1),xr),prefixCls:Di,component:ci,cellComponent:yi,colSpan:Ni.length,isEmpty:!1},Br)}return we.createElement(we.Fragment,null,ko,wr)}fn.displayName="BodyRow";var zn=Se(fn);function ni(dt){var pt=dt.columnKey,_t=dt.onColumnResize,Vt=we.useRef();return we.useEffect(function(){Vt.current&&_t(pt,Vt.current.offsetWidth)},[]),we.createElement(_e.Z,{data:pt},we.createElement("td",{ref:Vt,style:{padding:0,border:0,height:0}},we.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function di(dt){var pt=dt.prefixCls,_t=dt.columnsKey,Vt=dt.onColumnResize;return we.createElement("tr",{"aria-hidden":"true",className:"".concat(pt,"-measure-row"),style:{height:0,fontSize:0}},we.createElement(_e.Z.Collection,{onBatchResize:function(rn){rn.forEach(function(Wn){var Kn=Wn.data,jn=Wn.size;Vt(Kn,jn.offsetWidth)})}},_t.map(function(hn){return we.createElement(ni,{key:hn,columnKey:hn,onColumnResize:Vt})})))}function wi(dt){var pt=dt.data,_t=dt.measureColumnWidth,Vt=Ye(Ne,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),hn=Vt.prefixCls,rn=Vt.getComponent,Wn=Vt.onColumnResize,Kn=Vt.flattenColumns,jn=Vt.getRowKey,ci=Vt.expandedKeys,yi=Vt.childrenColumnName,mi=Vt.emptyNode,Ui=gt(pt,yi,ci,jn),Di=we.useRef({renderWithProps:!1}),Ni=rn(["body","wrapper"],"tbody"),gr=rn(["body","row"],"tr"),Ri=rn(["body","cell"],"td"),ur=rn(["body","cell"],"th"),sr;pt.length?sr=Ui.map(function(Zr,ro){var pr=Zr.record,_r=Zr.indent,ko=Zr.index,wr=jn(pr,ro);return we.createElement(zn,{key:wr,rowKey:wr,record:pr,index:ro,renderIndex:ko,rowComponent:gr,cellComponent:Ri,scopeCellComponent:ur,getRowKey:jn,indent:_r})}):sr=we.createElement(yn,{expanded:!0,className:"".concat(hn,"-placeholder"),prefixCls:hn,component:gr,cellComponent:Ri,colSpan:Kn.length,isEmpty:!0},mi);var br=Bt(Kn);return we.createElement(mn.Provider,{value:Di.current},we.createElement(Ni,{className:"".concat(hn,"-tbody")},_t&&we.createElement(di,{prefixCls:hn,columnsKey:br,onColumnResize:Wn}),sr))}wi.displayName="Body";var hi=Se(wi),Li=["expandable"],Yi="RC_TABLE_INTERNAL_COL_DEFINE";function Ji(dt){var pt=dt.expandable,_t=(0,xn.Z)(dt,Li),Vt;return"expandable"in dt?Vt=(0,Tt.Z)((0,Tt.Z)({},_t),pt):Vt=_t,Vt.showExpandColumn===!1&&(Vt.expandIconColumnIndex=-1),Vt}var Xi=["columnType"];function dr(dt){for(var pt=dt.colWidths,_t=dt.columns,Vt=dt.columCount,hn=[],rn=Vt||_t.length,Wn=!1,Kn=rn-1;Kn>=0;Kn-=1){var jn=pt[Kn],ci=_t&&_t[Kn],yi=ci&&ci[Yi];if(jn||yi||Wn){var mi=yi||{},Ui=mi.columnType,Di=(0,xn.Z)(mi,Xi);hn.unshift(we.createElement("col",(0,st.Z)({key:Kn,style:{width:jn}},Di))),Wn=!0}}return we.createElement("colgroup",null,hn)}var Ir=dr,Wi=ae(26390),Dr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function _i(dt,pt){return(0,we.useMemo)(function(){for(var _t=[],Vt=0;Vt<pt;Vt+=1){var hn=dt[Vt];if(hn!==void 0)_t[Vt]=hn;else return null}return _t},[dt.join("_"),pt])}var De=we.forwardRef(function(dt,pt){var _t=dt.className,Vt=dt.noData,hn=dt.columns,rn=dt.flattenColumns,Wn=dt.colWidths,Kn=dt.columCount,jn=dt.stickyOffsets,ci=dt.direction,yi=dt.fixHeader,mi=dt.stickyTopOffset,Ui=dt.stickyBottomOffset,Di=dt.stickyClassName,Ni=dt.onScroll,gr=dt.maxContentScroll,Ri=dt.children,ur=(0,xn.Z)(dt,Dr),sr=Ye(Ne,["prefixCls","scrollbarSize","isSticky"]),br=sr.prefixCls,Zr=sr.scrollbarSize,ro=sr.isSticky,pr=ro&&!yi?0:Zr,_r=we.useRef(null),ko=we.useCallback(function(po){(0,ht.mH)(pt,po),(0,ht.mH)(_r,po)},[]);we.useEffect(function(){var po;function mr(Lo){var Fo=Lo,Ea=Fo.currentTarget,ra=Fo.deltaX;ra&&(Ni({currentTarget:Ea,scrollLeft:Ea.scrollLeft+ra}),Lo.preventDefault())}return(po=_r.current)===null||po===void 0||po.addEventListener("wheel",mr),function(){var Lo;(Lo=_r.current)===null||Lo===void 0||Lo.removeEventListener("wheel",mr)}},[]);var wr=we.useMemo(function(){return rn.every(function(po){return po.width})},[rn]),Br=rn[rn.length-1],xr={fixed:Br?Br.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(br,"-cell-scrollbar")}}},$i=(0,we.useMemo)(function(){return pr?[].concat((0,Wi.Z)(hn),[xr]):hn},[pr,hn]),Nr=(0,we.useMemo)(function(){return pr?[].concat((0,Wi.Z)(rn),[xr]):rn},[pr,rn]),Qr=(0,we.useMemo)(function(){var po=jn.right,mr=jn.left;return(0,Tt.Z)((0,Tt.Z)({},jn),{},{left:ci==="rtl"?[].concat((0,Wi.Z)(mr.map(function(Lo){return Lo+pr})),[0]):mr,right:ci==="rtl"?po:[].concat((0,Wi.Z)(po.map(function(Lo){return Lo+pr})),[0]),isSticky:ro})},[pr,jn,ro]),fo=_i(Wn,Kn);return we.createElement("div",{style:(0,Tt.Z)({overflow:"hidden"},ro?{top:mi,bottom:Ui}:{}),ref:ko,className:kt()(_t,(0,nt.Z)({},Di,!!Di))},we.createElement("table",{style:{tableLayout:"fixed",visibility:Vt||fo?null:"hidden"}},(!Vt||!gr||wr)&&we.createElement(Ir,{colWidths:fo?[].concat((0,Wi.Z)(fo),[pr]):[],columCount:Kn+1,columns:Nr}),Ri((0,Tt.Z)((0,Tt.Z)({},ur),{},{stickyOffsets:Qr,columns:$i,flattenColumns:Nr}))))});De.displayName="FixedHolder";var jr=we.memo(De);function hr(dt){var pt=dt.cells,_t=dt.stickyOffsets,Vt=dt.flattenColumns,hn=dt.rowComponent,rn=dt.cellComponent,Wn=dt.tdCellComponent,Kn=dt.onHeaderRow,jn=dt.index,ci=Ye(Ne,["prefixCls","direction"]),yi=ci.prefixCls,mi=ci.direction,Ui;Kn&&(Ui=Kn(pt.map(function(Ni){return Ni.column}),jn));var Di=Bt(pt.map(function(Ni){return Ni.column}));return we.createElement(hn,Ui,pt.map(function(Ni,gr){var Ri=Ni.column,ur=Ot(Ni.colStart,Ni.colEnd,Vt,_t,mi,Ri),sr;return Ri&&Ri.onHeaderCell&&(sr=Ni.column.onHeaderCell(Ri)),we.createElement(li,(0,st.Z)({},Ni,{scope:Ri.title?Ni.colSpan>1?"colgroup":"col":null,ellipsis:Ri.ellipsis,align:Ri.align,component:Ri.title?rn:Wn,prefixCls:yi,key:Di[gr]},ur,{additionalProps:sr,rowType:"header"}))}))}hr.displayName="HeaderRow";var oo=hr;function Oo(dt){var pt=[];function _t(Wn,Kn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pt[jn]=pt[jn]||[];var ci=Kn,yi=Wn.filter(Boolean).map(function(mi){var Ui={key:mi.key,className:mi.className||"",children:mi.title,column:mi,colStart:ci},Di=1,Ni=mi.children;return Ni&&Ni.length>0&&(Di=_t(Ni,ci,jn+1).reduce(function(gr,Ri){return gr+Ri},0),Ui.hasSubColumns=!0),"colSpan"in mi&&(Di=mi.colSpan),"rowSpan"in mi&&(Ui.rowSpan=mi.rowSpan),Ui.colSpan=Di,Ui.colEnd=Ui.colStart+Di-1,pt[jn].push(Ui),ci+=Di,Di});return yi}_t(dt,0);for(var Vt=pt.length,hn=function(Kn){pt[Kn].forEach(function(jn){!("rowSpan"in jn)&&!jn.hasSubColumns&&(jn.rowSpan=Vt-Kn)})},rn=0;rn<Vt;rn+=1)hn(rn);return pt}function Do(dt){var pt=dt.stickyOffsets,_t=dt.columns,Vt=dt.flattenColumns,hn=dt.onHeaderRow,rn=Ye(Ne,["prefixCls","getComponent"]),Wn=rn.prefixCls,Kn=rn.getComponent,jn=we.useMemo(function(){return Oo(_t)},[_t]),ci=Kn(["header","wrapper"],"thead"),yi=Kn(["header","row"],"tr"),mi=Kn(["header","cell"],"th"),Ui=Kn(["header","cell"],"td");return we.createElement(ci,{className:"".concat(Wn,"-thead")},jn.map(function(Di,Ni){var gr=we.createElement(oo,{key:Ni,flattenColumns:Vt,cells:Di,stickyOffsets:pt,rowComponent:yi,cellComponent:mi,tdCellComponent:Ui,onHeaderRow:hn,index:Ni});return gr}))}var Co=Se(Do),so=ae(38298);function En(dt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof pt=="number"?pt:pt.endsWith("%")?dt*parseFloat(pt)/100:null}function Tn(dt,pt){return we.useMemo(function(){if(pt&&pt>0){var _t=0,Vt=0;dt.forEach(function(ci){var yi=En(pt,ci.width);yi?_t+=yi:Vt+=1});var hn=pt-_t,rn=Vt,Wn=hn/Vt,Kn=0,jn=dt.map(function(ci){var yi=(0,Tt.Z)({},ci),mi=En(pt,yi.width);if(mi)yi.width=mi;else{var Ui=Math.floor(Wn);yi.width=rn===1?hn:Ui,hn-=Ui,rn-=1}return Kn+=yi.width,yi});return[jn,Kn]}return[dt,pt]},[dt,pt])}var on=["children"],At=["fixed"];function Dn(dt){return(0,so.Z)(dt).filter(function(pt){return we.isValidElement(pt)}).map(function(pt){var _t=pt.key,Vt=pt.props,hn=Vt.children,rn=(0,xn.Z)(Vt,on),Wn=(0,Tt.Z)({key:_t},rn);return hn&&(Wn.children=Dn(hn)),Wn})}function Qn(dt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return dt.filter(function(_t){return _t&&(0,lt.Z)(_t)==="object"}).reduce(function(_t,Vt,hn){var rn=Vt.fixed,Wn=rn===!0?"left":rn,Kn="".concat(pt,"-").concat(hn),jn=Vt.children;return jn&&jn.length>0?[].concat((0,Wi.Z)(_t),(0,Wi.Z)(Qn(jn,Kn).map(function(ci){return(0,Tt.Z)({fixed:Wn},ci)}))):[].concat((0,Wi.Z)(_t),[(0,Tt.Z)((0,Tt.Z)({key:Kn},Vt),{},{fixed:Wn})])},[])}function Kt(dt){for(var pt=!0,_t=0;_t<dt.length;_t+=1){var Vt=dt[_t];if(pt&&Vt.fixed!=="left")pt=!1;else if(!pt&&Vt.fixed==="left"){warning(!1,"Index ".concat(_t-1," of `columns` missing `fixed='left'` prop."));break}}for(var hn=!0,rn=dt.length-1;rn>=0;rn-=1){var Wn=dt[rn];if(hn&&Wn.fixed!=="right")hn=!1;else if(!hn&&Wn.fixed==="right"){warning(!1,"Index ".concat(rn+1," of `columns` missing `fixed='right'` prop."));break}}}function Et(dt){return dt.map(function(pt){var _t=pt.fixed,Vt=(0,xn.Z)(pt,At),hn=_t;return _t==="left"?hn="right":_t==="right"&&(hn="left"),(0,Tt.Z)({fixed:hn},Vt)})}function Ln(dt,pt){var _t=dt.prefixCls,Vt=dt.columns,hn=dt.children,rn=dt.expandable,Wn=dt.expandedKeys,Kn=dt.columnTitle,jn=dt.getRowKey,ci=dt.onTriggerExpand,yi=dt.expandIcon,mi=dt.rowExpandable,Ui=dt.expandIconColumnIndex,Di=dt.direction,Ni=dt.expandRowByClick,gr=dt.columnWidth,Ri=dt.fixed,ur=dt.scrollWidth,sr=we.useMemo(function(){return Vt||Dn(hn)},[Vt,hn]),br=we.useMemo(function(){if(rn){var Br,xr=sr.slice();if(!xr.includes(de)){var $i=Ui||0;$i>=0&&xr.splice($i,0,de)}var Nr=xr.indexOf(de);xr=xr.filter(function(mr,Lo){return mr!==de||Lo===Nr});var Qr=sr[Nr],fo;(Ri==="left"||Ri)&&!Ui?fo="left":(Ri==="right"||Ri)&&Ui===sr.length?fo="right":fo=Qr?Qr.fixed:null;var po=(Br={},(0,nt.Z)(Br,Yi,{className:"".concat(_t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,nt.Z)(Br,"title",Kn),(0,nt.Z)(Br,"fixed",fo),(0,nt.Z)(Br,"className","".concat(_t,"-row-expand-icon-cell")),(0,nt.Z)(Br,"width",gr),(0,nt.Z)(Br,"render",function(Lo,Fo,Ea){var ra=jn(Fo,Ea),os=Wn.has(ra),ts=mi?mi(Fo):!0,No=yi({prefixCls:_t,expanded:os,expandable:ts,record:Fo,onExpand:ci});return Ni?we.createElement("span",{onClick:function(ma){return ma.stopPropagation()}},No):No}),Br);return xr.map(function(mr){return mr===de?po:mr})}return sr.filter(function(mr){return mr!==de})},[rn,sr,jn,Wn,yi,Di]),Zr=we.useMemo(function(){var Br=br;return pt&&(Br=pt(Br)),Br.length||(Br=[{render:function(){return null}}]),Br},[pt,br,Di]),ro=we.useMemo(function(){return Di==="rtl"?Et(Qn(Zr)):Qn(Zr)},[Zr,Di,ur]),pr=Tn(ro,ur),_r=(0,Ee.Z)(pr,2),ko=_r[0],wr=_r[1];return[Zr,ko,wr]}var Jn=Ln;function Ci(dt){var pt,_t=dt.prefixCls,Vt=dt.record,hn=dt.onExpand,rn=dt.expanded,Wn=dt.expandable,Kn="".concat(_t,"-row-expand-icon");if(!Wn)return we.createElement("span",{className:kt()(Kn,"".concat(_t,"-row-spaced"))});var jn=function(yi){hn(Vt,yi),yi.stopPropagation()};return we.createElement("span",{className:kt()(Kn,(pt={},(0,nt.Z)(pt,"".concat(_t,"-row-expanded"),rn),(0,nt.Z)(pt,"".concat(_t,"-row-collapsed"),!rn),pt)),onClick:jn})}function Pn(dt,pt,_t){var Vt=[];function hn(rn){(rn||[]).forEach(function(Wn,Kn){Vt.push(pt(Wn,Kn)),hn(Wn[_t])})}return hn(dt),Vt}function Rt(dt,pt,_t){var Vt=Ji(dt),hn=Vt.expandIcon,rn=Vt.expandedRowKeys,Wn=Vt.defaultExpandedRowKeys,Kn=Vt.defaultExpandAllRows,jn=Vt.expandedRowRender,ci=Vt.onExpand,yi=Vt.onExpandedRowsChange,mi=Vt.childrenColumnName,Ui=hn||Ci,Di=mi||"children",Ni=we.useMemo(function(){return jn?"row":dt.expandable&&dt.internalHooks===Te&&dt.expandable.__PARENT_RENDER_ICON__||pt.some(function(ro){return ro&&(0,lt.Z)(ro)==="object"&&ro[Di]})?"nest":!1},[!!jn,pt]),gr=we.useState(function(){return Wn||(Kn?Pn(pt,_t,Di):[])}),Ri=(0,Ee.Z)(gr,2),ur=Ri[0],sr=Ri[1],br=we.useMemo(function(){return new Set(rn||ur||[])},[rn,ur]),Zr=we.useCallback(function(ro){var pr=_t(ro,pt.indexOf(ro)),_r,ko=br.has(pr);ko?(br.delete(pr),_r=(0,Wi.Z)(br)):_r=[].concat((0,Wi.Z)(br),[pr]),sr(_r),ci&&ci(!ko,ro),yi&&yi(_r)},[_t,br,pt,ci,yi]);return[Vt,Ni,br,Ui,Di,Zr]}function Yn(dt,pt,_t,Vt){var hn=dt.map(function(rn,Wn){return Ot(Wn,Wn,dt,pt,_t,Vt==null?void 0:Vt[Wn])});return(0,dn.Z)(function(){return hn},[hn],function(rn,Wn){return!(0,Ze.Z)(rn,Wn)})}function vi(dt){var pt=(0,we.useRef)(dt),_t=(0,we.useState)({}),Vt=(0,Ee.Z)(_t,2),hn=Vt[1],rn=(0,we.useRef)(null),Wn=(0,we.useRef)([]);function Kn(jn){Wn.current.push(jn);var ci=Promise.resolve();rn.current=ci,ci.then(function(){if(rn.current===ci){var yi=Wn.current,mi=pt.current;Wn.current=[],yi.forEach(function(Ui){pt.current=Ui(pt.current)}),rn.current=null,mi!==pt.current&&hn({})}})}return(0,we.useEffect)(function(){return function(){rn.current=null}},[]),[pt.current,Kn]}function Oi(dt){var pt=(0,we.useRef)(dt||null),_t=(0,we.useRef)();function Vt(){window.clearTimeout(_t.current)}function hn(Wn){pt.current=Wn,Vt(),_t.current=window.setTimeout(function(){pt.current=null,_t.current=void 0},100)}function rn(){return pt.current}return(0,we.useEffect)(function(){return Vt},[]),[hn,rn]}function Yt(){var dt=we.useState(-1),pt=(0,Ee.Z)(dt,2),_t=pt[0],Vt=pt[1],hn=we.useState(-1),rn=(0,Ee.Z)(hn,2),Wn=rn[0],Kn=rn[1],jn=we.useCallback(function(ci,yi){Vt(ci),Kn(yi)},[]);return[_t,Wn,jn]}var Fn=ae(87746),$t=(0,Fn.Z)()?window:null;function pn(dt,pt){var _t=(0,lt.Z)(dt)==="object"?dt:{},Vt=_t.offsetHeader,hn=Vt===void 0?0:Vt,rn=_t.offsetSummary,Wn=rn===void 0?0:rn,Kn=_t.offsetScroll,jn=Kn===void 0?0:Kn,ci=_t.getContainer,yi=ci===void 0?function(){return $t}:ci,mi=yi()||$t;return we.useMemo(function(){var Ui=!!dt;return{isSticky:Ui,stickyClassName:Ui?"".concat(pt,"-sticky-holder"):"",offsetHeader:hn,offsetSummary:Wn,offsetScroll:jn,container:mi}},[jn,hn,Wn,pt,mi])}function An(dt,pt,_t){var Vt=(0,we.useMemo)(function(){for(var hn=[],rn=[],Wn=0,Kn=0,jn=0;jn<pt;jn+=1)if(_t==="rtl"){rn[jn]=Kn,Kn+=dt[jn]||0;var ci=pt-jn-1;hn[ci]=Wn,Wn+=dt[ci]||0}else{hn[jn]=Wn,Wn+=dt[jn]||0;var yi=pt-jn-1;rn[yi]=Kn,Kn+=dt[yi]||0}return{left:hn,right:rn}},[dt,pt,_t]);return Vt}var gn=An;function In(dt){var pt=dt.className,_t=dt.children;return we.createElement("div",{className:pt},_t)}var Gn=In,qn=ae(8178),oi=ae(21783),Hn=function(pt,_t){var Vt,hn,rn=pt.scrollBodyRef,Wn=pt.onScroll,Kn=pt.offsetScroll,jn=pt.container,ci=Ye(Ne,"prefixCls"),yi=((Vt=rn.current)===null||Vt===void 0?void 0:Vt.scrollWidth)||0,mi=((hn=rn.current)===null||hn===void 0?void 0:hn.clientWidth)||0,Ui=yi&&mi*(mi/yi),Di=we.useRef(),Ni=vi({scrollLeft:0,isHiddenScrollBar:!1}),gr=(0,Ee.Z)(Ni,2),Ri=gr[0],ur=gr[1],sr=we.useRef({delta:0,x:0}),br=we.useState(!1),Zr=(0,Ee.Z)(br,2),ro=Zr[0],pr=Zr[1],_r=function(){pr(!1)},ko=function(Nr){Nr.persist(),sr.current.delta=Nr.pageX-Ri.scrollLeft,sr.current.x=0,pr(!0),Nr.preventDefault()},wr=function(Nr){var Qr,fo=Nr||((Qr=window)===null||Qr===void 0?void 0:Qr.event),po=fo.buttons;if(!ro||po===0){ro&&pr(!1);return}var mr=sr.current.x+Nr.pageX-sr.current.x-sr.current.delta;mr<=0&&(mr=0),mr+Ui>=mi&&(mr=mi-Ui),Wn({scrollLeft:mr/mi*(yi+2)}),sr.current.x=Nr.pageX},Br=function(){if(rn.current){var Nr=(0,oi.os)(rn.current).top,Qr=Nr+rn.current.offsetHeight,fo=jn===window?document.documentElement.scrollTop+window.innerHeight:(0,oi.os)(jn).top+jn.clientHeight;Qr-(0,Ue.Z)()<=fo||Nr>=fo-Kn?ur(function(po){return(0,Tt.Z)((0,Tt.Z)({},po),{},{isHiddenScrollBar:!0})}):ur(function(po){return(0,Tt.Z)((0,Tt.Z)({},po),{},{isHiddenScrollBar:!1})})}},xr=function(Nr){ur(function(Qr){return(0,Tt.Z)((0,Tt.Z)({},Qr),{},{scrollLeft:Nr/yi*mi||0})})};return we.useImperativeHandle(_t,function(){return{setScrollLeft:xr}}),we.useEffect(function(){var $i=(0,qn.Z)(document.body,"mouseup",_r,!1),Nr=(0,qn.Z)(document.body,"mousemove",wr,!1);return Br(),function(){$i.remove(),Nr.remove()}},[Ui,ro]),we.useEffect(function(){var $i=(0,qn.Z)(jn,"scroll",Br,!1),Nr=(0,qn.Z)(window,"resize",Br,!1);return function(){$i.remove(),Nr.remove()}},[jn]),we.useEffect(function(){Ri.isHiddenScrollBar||ur(function($i){var Nr=rn.current;return Nr?(0,Tt.Z)((0,Tt.Z)({},$i),{},{scrollLeft:Nr.scrollLeft/Nr.scrollWidth*Nr.clientWidth}):$i})},[Ri.isHiddenScrollBar]),yi<=mi||!Ui||Ri.isHiddenScrollBar?null:we.createElement("div",{style:{height:(0,Ue.Z)(),width:mi,bottom:Kn},className:"".concat(ci,"-sticky-scroll")},we.createElement("div",{onMouseDown:ko,ref:Di,className:kt()("".concat(ci,"-sticky-scroll-bar"),(0,nt.Z)({},"".concat(ci,"-sticky-scroll-bar-active"),ro)),style:{width:"".concat(Ui,"px"),transform:"translate3d(".concat(Ri.scrollLeft,"px, 0, 0)")}}))},ui=we.forwardRef(Hn);function Ki(dt){return null}var Er=Ki;function Vi(dt){return null}var Ht=Vi,Pi="rc-table",zi=[],Ti={};function er(){return"No Data"}function cr(dt){var pt,_t=(0,Tt.Z)({rowKey:"key",prefixCls:Pi,emptyText:er},dt),Vt=_t.prefixCls,hn=_t.className,rn=_t.rowClassName,Wn=_t.style,Kn=_t.data,jn=_t.rowKey,ci=_t.scroll,yi=_t.tableLayout,mi=_t.direction,Ui=_t.title,Di=_t.footer,Ni=_t.summary,gr=_t.caption,Ri=_t.id,ur=_t.showHeader,sr=_t.components,br=_t.emptyText,Zr=_t.onRow,ro=_t.onHeaderRow,pr=_t.internalHooks,_r=_t.transformColumns,ko=_t.internalRefs,wr=_t.tailor,Br=_t.sticky,xr=Kn||zi,$i=!!xr.length,Nr=pr===Te,Qr=we.useCallback(function(Pa,ns){return(0,nn.Z)(sr,Pa)||ns},[sr]),fo=we.useMemo(function(){return typeof jn=="function"?jn:function(Pa){var ns=Pa&&Pa[jn];return ns}},[jn]),po=Qr(["body"]),mr=Yt(),Lo=(0,Ee.Z)(mr,3),Fo=Lo[0],Ea=Lo[1],ra=Lo[2],os=Rt(_t,xr,fo),ts=(0,Ee.Z)(os,6),No=ts[0],to=ts[1],ma=ts[2],as=ts[3],$a=ts[4],Fs=ts[5],yo=ci==null?void 0:ci.x,uo=we.useState(0),mo=(0,Ee.Z)(uo,2),$r=mo[0],xa=mo[1],Yr=Jn((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},_t),No),{},{expandable:!!No.expandedRowRender,columnTitle:No.columnTitle,expandedKeys:ma,getRowKey:fo,onTriggerExpand:Fs,expandIcon:as,expandIconColumnIndex:No.expandIconColumnIndex,direction:mi,scrollWidth:Nr&&wr&&typeof yo=="number"?yo:null}),Nr?_r:null),Ao=(0,Ee.Z)(Yr,3),ua=Ao[0],ca=Ao[1],Vs=Ao[2],Os=Vs!=null?Vs:yo,Sl=we.useMemo(function(){return{columns:ua,flattenColumns:ca}},[ua,ca]),Ca=we.useRef(),ll=we.useRef(),Rs=we.useRef(),qs=we.useRef(),vc=we.useRef(),ba=we.useState(!1),Na=(0,Ee.Z)(ba,2),za=Na[0],vs=Na[1],Bs=we.useState(!1),Vo=(0,Ee.Z)(Bs,2),Ha=Vo[0],el=Vo[1],zs=vi(new Map),xu=(0,Ee.Z)(zs,2),ql=xu[0],Ou=xu[1],Ru=Bt(ca),bu=Ru.map(function(Pa){return ql.get(Pa)}),Aa=we.useMemo(function(){return bu},[bu.join("_")]),Zs=gn(Aa,ca.length,mi),ys=ci&&Cn(ci.y),_a=ci&&Cn(Os)||!!No.fixed,Rl=_a&&ca.some(function(Pa){var ns=Pa.fixed;return ns}),Oc=we.useRef(),Du=pn(Br,Vt),Fu=Du.isSticky,ec=Du.offsetHeader,Pl=Du.offsetSummary,fa=Du.offsetScroll,Wa=Du.stickyClassName,$s=Du.container,Ya=we.useMemo(function(){return Ni==null?void 0:Ni(xr)},[Ni,xr]),ga=(ys||Fu)&&we.isValidElement(Ya)&&Ya.type===vt&&Ya.props.fixed,js,Dl,wu;ys&&(Dl={overflowY:"scroll",maxHeight:ci.y}),_a&&(js={overflowX:"auto"},ys||(Dl={overflowY:"hidden"}),wu={width:Os===!0?"auto":Os,minWidth:"100%"});var Xd=we.useCallback(function(Pa,ns){(0,Pe.Z)(Ca.current)&&Ou(function(fl){if(fl.get(Pa)!==ns){var Eu=new Map(fl);return Eu.set(Pa,ns),Eu}return fl})},[]),Qt=Oi(null),Rc=(0,Ee.Z)(Qt,2),tc=Rc[0],Nd=Rc[1];function Id(Pa,ns){ns&&(typeof ns=="function"?ns(Pa):ns.scrollLeft!==Pa&&(ns.scrollLeft=Pa,ns.scrollLeft!==Pa&&setTimeout(function(){ns.scrollLeft=Pa},0)))}var pd=(0,Re.Z)(function(Pa){var ns=Pa.currentTarget,fl=Pa.scrollLeft,Eu=mi==="rtl",zl=typeof fl=="number"?fl:ns.scrollLeft,eh=ns||Ti;if(!Nd()||Nd()===eh){var Jc;tc(eh),Id(zl,ll.current),Id(zl,Rs.current),Id(zl,vc.current),Id(zl,(Jc=Oc.current)===null||Jc===void 0?void 0:Jc.setScrollLeft)}var th=ns||ll.current;if(th){var Bu=th.scrollWidth,Dc=th.clientWidth;if(Bu===Dc){vs(!1),el(!1);return}Eu?(vs(-zl<Bu-Dc),el(-zl>0)):(vs(zl>0),el(zl<Bu-Dc))}}),Ch=function(){_a&&Rs.current?pd({currentTarget:Rs.current}):(vs(!1),el(!1))},cg=function(ns){var fl=ns.width;fl!==$r&&(Ch(),xa(Ca.current?Ca.current.offsetWidth:fl))},ul=we.useRef(!1);we.useEffect(function(){ul.current&&Ch()},[_a,Kn,ua.length]),we.useEffect(function(){ul.current=!0},[]);var Md=we.useState(0),Ph=(0,Ee.Z)(Md,2),Qd=Ph[0],tf=Ph[1],Df=we.useState(!0),nf=(0,Ee.Z)(Df,2),Od=nf[0],eu=nf[1];we.useEffect(function(){(!wr||!Nr)&&(Rs.current instanceof Element?tf((0,Ue.o)(Rs.current).width):tf((0,Ue.o)(qs.current).width)),eu((0,be.G)("position","sticky"))},[]),we.useEffect(function(){Nr&&ko&&(ko.body.current=Rs.current)});var Rd=we.useCallback(function(Pa){return we.createElement(we.Fragment,null,we.createElement(Co,Pa),ga==="top"&&we.createElement(Zt,Pa,Ya))},[ga,Ya]),Th=we.useCallback(function(Pa){return we.createElement(Zt,Pa,Ya)},[Ya]),Fl=Qr(["table"],"table"),Xc=we.useMemo(function(){return yi||(Rl?Os==="max-content"?"auto":"fixed":ys||Fu||ca.some(function(Pa){var ns=Pa.ellipsis;return ns})?"fixed":"auto")},[ys,Rl,ca,yi,Fu]),Qc,md={colWidths:Aa,columCount:ca.length,stickyOffsets:Zs,onHeaderRow:ro,fixHeader:ys,scroll:ci},Bl=we.useMemo(function(){return $i?null:typeof br=="function"?br():br},[$i,br]),Jd=we.createElement(hi,{data:xr,measureColumnWidth:ys||_a||Fu}),kh=we.createElement(Ir,{colWidths:ca.map(function(Pa){var ns=Pa.width;return ns}),columns:ca}),tu=gr!=null?we.createElement("caption",{className:"".concat(Vt,"-caption")},gr):void 0,Dd=(0,Qe.Z)(_t,{data:!0}),Ah=(0,Qe.Z)(_t,{aria:!0});if(ys||Fu){var qd;typeof po=="function"?(qd=po(xr,{scrollbarSize:Qd,ref:Rs,onScroll:pd}),md.colWidths=ca.map(function(Pa,ns){var fl=Pa.width,Eu=ns===ca.length-1?fl-Qd:fl;return typeof Eu=="number"&&!Number.isNaN(Eu)?Eu:0})):qd=we.createElement("div",{style:(0,Tt.Z)((0,Tt.Z)({},js),Dl),onScroll:pd,ref:Rs,className:kt()("".concat(Vt,"-body"))},we.createElement(Fl,(0,st.Z)({style:(0,Tt.Z)((0,Tt.Z)({},wu),{},{tableLayout:Xc})},Ah),tu,kh,Jd,!ga&&Ya&&we.createElement(Zt,{stickyOffsets:Zs,flattenColumns:ca,columns:ua},Ya)));var nu=(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({noData:!xr.length,maxContentScroll:_a&&Os==="max-content"},md),Sl),{},{direction:mi,stickyClassName:Wa,onScroll:pd});Qc=we.createElement(we.Fragment,null,ur!==!1&&we.createElement(jr,(0,st.Z)({},nu,{stickyTopOffset:ec,className:"".concat(Vt,"-header"),ref:ll}),Rd),qd,ga&&ga!=="top"&&we.createElement(jr,(0,st.Z)({},nu,{stickyBottomOffset:Pl,className:"".concat(Vt,"-summary"),ref:vc}),Th),Fu&&we.createElement(ui,{ref:Oc,offsetScroll:fa,scrollBodyRef:Rs,onScroll:pd,container:$s}))}else Qc=we.createElement("div",{style:(0,Tt.Z)((0,Tt.Z)({},js),Dl),className:kt()("".concat(Vt,"-content")),onScroll:pd,ref:Rs},we.createElement(Fl,(0,st.Z)({style:(0,Tt.Z)((0,Tt.Z)({},wu),{},{tableLayout:Xc})},Ah),tu,kh,ur!==!1&&we.createElement(Co,(0,st.Z)({},md,Sl)),Jd,Ya&&we.createElement(Zt,{stickyOffsets:Zs,flattenColumns:ca,columns:ua},Ya)));var Tl=we.createElement("div",(0,st.Z)({className:kt()(Vt,hn,(pt={},(0,nt.Z)(pt,"".concat(Vt,"-rtl"),mi==="rtl"),(0,nt.Z)(pt,"".concat(Vt,"-ping-left"),za),(0,nt.Z)(pt,"".concat(Vt,"-ping-right"),Ha),(0,nt.Z)(pt,"".concat(Vt,"-layout-fixed"),yi==="fixed"),(0,nt.Z)(pt,"".concat(Vt,"-fixed-header"),ys),(0,nt.Z)(pt,"".concat(Vt,"-fixed-column"),Rl),(0,nt.Z)(pt,"".concat(Vt,"-scroll-horizontal"),_a),(0,nt.Z)(pt,"".concat(Vt,"-has-fix-left"),ca[0]&&ca[0].fixed),(0,nt.Z)(pt,"".concat(Vt,"-has-fix-right"),ca[ca.length-1]&&ca[ca.length-1].fixed==="right"),pt)),style:Wn,id:Ri,ref:Ca},Dd),Ui&&we.createElement(Gn,{className:"".concat(Vt,"-title")},Ui(xr)),we.createElement("div",{ref:qs,className:"".concat(Vt,"-container")},Qc),Di&&we.createElement(Gn,{className:"".concat(Vt,"-footer")},Di(xr)));_a&&(Tl=we.createElement(_e.Z,{onResize:cg},Tl));var Lh=Yn(ca,Zs,mi,ua),Ys=we.useMemo(function(){return{scrollX:Os,prefixCls:Vt,getComponent:Qr,scrollbarSize:Qd,direction:mi,fixedInfoList:Lh,isSticky:Fu,supportSticky:Od,componentWidth:$r,fixHeader:ys,fixColumn:Rl,horizonScroll:_a,tableLayout:Xc,rowClassName:rn,expandedRowClassName:No.expandedRowClassName,expandIcon:as,expandableType:to,expandRowByClick:No.expandRowByClick,expandedRowRender:No.expandedRowRender,onTriggerExpand:Fs,expandIconColumnIndex:No.expandIconColumnIndex,indentSize:No.indentSize,allColumnsFixedLeft:ca.every(function(Pa){return Pa.fixed==="left"}),emptyNode:Bl,columns:ua,flattenColumns:ca,onColumnResize:Xd,hoverStartRow:Fo,hoverEndRow:Ea,onHover:ra,rowExpandable:No.rowExpandable,onRow:Zr,getRowKey:fo,expandedKeys:ma,childrenColumnName:$a}},[Os,Vt,Qr,Qd,mi,Lh,Fu,Od,$r,ys,Rl,_a,Xc,rn,No.expandedRowClassName,as,to,No.expandRowByClick,No.expandedRowRender,Fs,No.expandIconColumnIndex,No.indentSize,Bl,ua,ca,Xd,Fo,Ea,ra,No.rowExpandable,Zr,fo,ma,$a]);return we.createElement(Ne.Provider,{value:Ys},Tl)}function Tr(dt){return me(cr,dt)}var Qi=Tr();Qi.EXPAND_COLUMN=de,Qi.INTERNAL_HOOKS=Te,Qi.Column=Er,Qi.ColumnGroup=Ht,Qi.Summary=yt;var Fi=Qi,Rr=ae(21881),ln=Je(null),Ur=Je(null);function bn(dt,pt,_t){var Vt=pt||1;return _t[dt+Vt]-(_t[dt]||0)}function Mr(dt){var pt=dt.rowInfo,_t=dt.column,Vt=dt.colIndex,hn=dt.indent,rn=dt.index,Wn=dt.renderIndex,Kn=dt.record,jn=dt.style,ci=dt.className,yi=dt.inverse,mi=dt.getHeight,Ui=_t.render,Di=_t.dataIndex,Ni=_t.className,gr=_t.width,Ri=Ye(Ur,["columnsOffset"]),ur=Ri.columnsOffset,sr=Wt(pt,_t,Vt,hn,rn),br=sr.key,Zr=sr.fixedInfo,ro=sr.appendCellNode,pr=sr.additionalCellProps,_r=pr.style,ko=pr.colSpan,wr=ko===void 0?1:ko,Br=pr.rowSpan,xr=Br===void 0?1:Br,$i=Vt-1,Nr=bn($i,wr,ur),Qr=wr>1?gr-Nr:0,fo=(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},_r),jn),{},{flex:"0 0 ".concat(Nr,"px"),width:"".concat(Nr,"px"),marginRight:Qr,pointerEvents:"auto"}),po=we.useMemo(function(){return yi?xr<=1:wr===0||xr===0||xr>1},[xr,wr,yi]);po?fo.visibility="hidden":yi&&(fo.height=mi==null?void 0:mi(xr));var mr=po?function(){return null}:Ui,Lo={};return(xr===0||wr===0)&&(Lo.rowSpan=1,Lo.colSpan=1),we.createElement(li,(0,st.Z)({className:kt()(Ni,ci),ellipsis:_t.ellipsis,align:_t.align,scope:_t.rowScope,component:"div",prefixCls:pt.prefixCls,key:br,record:Kn,index:rn,renderIndex:Wn,dataIndex:Di,render:mr,shouldCellUpdate:_t.shouldCellUpdate},Zr,{appendNode:ro,additionalProps:(0,Tt.Z)((0,Tt.Z)({},pr),{},{style:fo},Lo)}))}var Ho=Mr,Fr=["data","index","className","rowKey","style","extra","getHeight"],vo=we.forwardRef(function(dt,pt){var _t=dt.data,Vt=dt.index,hn=dt.className,rn=dt.rowKey,Wn=dt.style,Kn=dt.extra,jn=dt.getHeight,ci=(0,xn.Z)(dt,Fr),yi=_t.record,mi=_t.indent,Ui=_t.index,Di=Ye(Ne,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ni=Di.scrollX,gr=Di.flattenColumns,Ri=Di.prefixCls,ur=Di.fixColumn,sr=Di.componentWidth,br=bt(yi,rn,Vt,mi),Zr=br.rowSupportExpand,ro=br.expanded,pr=br.rowProps,_r=br.expandedRowRender,ko=br.expandedRowClassName,wr;if(Zr&&ro){var Br=_r(yi,Vt,mi+1,ro),xr=ko==null?void 0:ko(yi,Vt,mi),$i={};ur&&($i={style:(0,nt.Z)({},"--virtual-width","".concat(sr,"px"))});var Nr="".concat(Ri,"-expanded-row-cell");wr=we.createElement("div",{className:kt()("".concat(Ri,"-expanded-row"),"".concat(Ri,"-expanded-row-level-").concat(mi+1),xr)},we.createElement(li,{component:"div",prefixCls:Ri,className:kt()(Nr,(0,nt.Z)({},"".concat(Nr,"-fixed"),ur)),additionalProps:$i},Br))}var Qr=(0,Tt.Z)((0,Tt.Z)({},Wn),{},{width:Ni});Kn&&(Qr.position="absolute",Qr.pointerEvents="none");var fo=we.createElement("div",(0,st.Z)({},pr,ci,{ref:Zr?null:pt,className:kt()(hn,"".concat(Ri,"-row"),pr==null?void 0:pr.className,(0,nt.Z)({},"".concat(Ri,"-row-extra"),Kn)),style:(0,Tt.Z)((0,Tt.Z)({},Qr),pr==null?void 0:pr.style)}),gr.map(function(po,mr){return we.createElement(Ho,{key:mr,rowInfo:br,column:po,colIndex:mr,indent:mi,index:Vt,renderIndex:Ui,record:yi,inverse:Kn,getHeight:jn})}));return Zr?we.createElement("div",{ref:pt},fo,wr):fo}),Ro=Se(vo),ir=Ro,qi=we.forwardRef(function(dt,pt){var _t=dt.data,Vt=dt.onScroll,hn=Ye(Ne,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),rn=hn.flattenColumns,Wn=hn.onColumnResize,Kn=hn.getRowKey,jn=hn.expandedKeys,ci=hn.prefixCls,yi=hn.childrenColumnName,mi=hn.emptyNode,Ui=hn.scrollX,Di=Ye(ln),Ni=Di.scrollY,gr=Di.listItemHeight,Ri=we.useRef(),ur=gt(_t,yi,jn,Kn),sr=we.useMemo(function(){var wr=0;return rn.map(function(Br){var xr=Br.width,$i=Br.key;return wr+=xr,[$i,xr,wr]})},[rn]),br=we.useMemo(function(){return sr.map(function(wr){return wr[2]})},[sr]);we.useEffect(function(){sr.forEach(function(wr){var Br=(0,Ee.Z)(wr,2),xr=Br[0],$i=Br[1];Wn(xr,$i)})},[sr]),we.useImperativeHandle(pt,function(){var wr={};return Object.defineProperty(wr,"scrollLeft",{get:function(){var xr;return((xr=Ri.current)===null||xr===void 0?void 0:xr.getScrollInfo().x)||0},set:function(xr){var $i;($i=Ri.current)===null||$i===void 0||$i.scrollTo({left:xr})}}),wr});var Zr=function(Br,xr){var $i,Nr=($i=ur[xr])===null||$i===void 0?void 0:$i.record,Qr=Br.onCell;if(Qr){var fo,po=Qr(Nr,xr);return(fo=po==null?void 0:po.rowSpan)!==null&&fo!==void 0?fo:1}return 1},ro=function(Br){var xr=Br.start,$i=Br.end,Nr=Br.getSize,Qr=Br.offsetY;if($i<0)return null;for(var fo=rn.filter(function(yo){return Zr(yo,xr)===0}),po=xr,mr=function(uo){if(fo=fo.filter(function(mo){return Zr(mo,uo)===0}),!fo.length)return po=uo,"break"},Lo=xr;Lo>=0;Lo-=1){var Fo=mr(Lo);if(Fo==="break")break}for(var Ea=rn.filter(function(yo){return Zr(yo,$i)!==1}),ra=$i,os=function(uo){if(Ea=Ea.filter(function(mo){return Zr(mo,uo)!==1}),!Ea.length)return ra=Math.max(uo-1,$i),"break"},ts=$i;ts<ur.length;ts+=1){var No=os(ts);if(No==="break")break}for(var to=[],ma=function(uo){var mo=ur[uo];if(!mo)return"continue";rn.some(function($r){return Zr($r,uo)>1})&&to.push(uo)},as=po;as<=ra;as+=1)var $a=ma(as);var Fs=to.map(function(yo){var uo=ur[yo],mo=Kn(uo.record,yo),$r=function(Ao){var ua=yo+Ao-1,ca=Kn(ur[ua].record,ua),Vs=Nr(mo,ca);return Vs.bottom-Vs.top},xa=Nr(mo);return we.createElement(ir,{key:yo,data:uo,rowKey:mo,index:yo,style:{top:-Qr+xa.top},extra:!0,getHeight:$r})});return Fs},pr=we.useMemo(function(){return{columnsOffset:br}},[br]),_r="".concat(ci,"-tbody"),ko;return ur.length?ko=we.createElement(Rr.Z,{fullHeight:!1,ref:Ri,className:kt()(_r,"".concat(_r,"-virtual")),height:Ni,itemHeight:gr||24,data:ur,itemKey:function(Br){return Kn(Br.record)},scrollWidth:Ui,onVirtualScroll:function(Br){var xr=Br.x;Vt({scrollLeft:xr})},extraRender:ro},function(wr,Br,xr){var $i=Kn(wr.record,Br);return we.createElement(ir,(0,st.Z)({data:wr,rowKey:$i,index:Br},xr))}):ko=we.createElement("div",{className:kt()("".concat(ci,"-placeholder"))},we.createElement(li,{component:"div",prefixCls:ci},mi)),we.createElement(Ur.Provider,{value:pr},ko)}),Vr=Se(qi),lo=Vr,ki=function(pt,_t){var Vt=_t.ref,hn=_t.onScroll;return we.createElement(lo,{ref:Vt,data:pt,onScroll:hn})},ot=100;function Gr(dt){var pt=dt.columns,_t=dt.scroll,Vt=dt.prefixCls,hn=Vt===void 0?Pi:Vt,rn=dt.className,Wn=dt.listItemHeight,Kn=_t||{},jn=Kn.x,ci=Kn.y;typeof jn!="number"&&(jn=((pt||[]).length+1)*ot),typeof ci!="number"&&(ci=500);var yi=we.useMemo(function(){return{scrollY:ci,listItemHeight:Wn}},[ci,Wn]);return we.createElement(ln.Provider,{value:yi},we.createElement(Fi,(0,st.Z)({},dt,{className:kt()(rn,"".concat(hn,"-virtual")),scroll:(0,Tt.Z)((0,Tt.Z)({},_t),{},{x:jn}),components:{body:ki},columns:pt,internalHooks:Te,tailor:!0})))}function ta(dt){return me(Gr,dt)}var Hr=ta(),Uo=null;function kr(dt){return null}var fr=kr;function no(dt){return null}var Po=no,Wr=ae(64002),na=ae(68031),tr=ae(36355),Zi=ae(93891),Pr=ae(19716),ai=ae(8628),xo=ae(31724),_o=ae(25700),Wo=ae(71418),ea=ae(88088);function ka(dt){return function(_t){let{prefixCls:Vt,onExpand:hn,record:rn,expanded:Wn,expandable:Kn}=_t;const jn=`${Vt}-row-expand-icon`;return we.createElement("button",{type:"button",onClick:ci=>{hn(rn,ci),ci.stopPropagation()},className:kt()(jn,{[`${jn}-spaced`]:!Kn,[`${jn}-expanded`]:Kn&&Wn,[`${jn}-collapsed`]:Kn&&!Wn}),"aria-label":Wn?dt.collapse:dt.expand,"aria-expanded":Wn})}}var Ja=ka;function cs(dt,pt){return"key"in dt&&dt.key!==void 0&&dt.key!==null?dt.key:dt.dataIndex?Array.isArray(dt.dataIndex)?dt.dataIndex.join("."):dt.dataIndex:pt}function Ts(dt,pt){return pt?`${pt}-${dt}`:`${dt}`}function al(dt,pt){return typeof dt=="function"?dt(pt):dt}function Js(dt,pt){const _t=al(dt,pt);return Object.prototype.toString.call(_t)==="[object Object]"?"":_t}var vn={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"},Ms=vn,fu=ae(88853),gu=function(pt,_t){return we.createElement(fu.Z,(0,st.Z)({},pt,{ref:_t,icon:Ms}))},ho=we.forwardRef(gu),ia=ho,ja=ae(56762);function Ko(dt){const pt=we.useRef(dt),_t=(0,ja.Z)();return[()=>pt.current,Vt=>{pt.current=Vt,_t()}]}var ao=ae(3113),Jo=ae(24905),xs=ae(38854),Kr=ae(64165),To=ae(20834),bo=ae(40875),ji=ae(5112),ds=ae(86914),hs=ae(21970),dl=ae(92832);function pu(dt){let{value:pt,onChange:_t,filterSearch:Vt,tablePrefixCls:hn,locale:rn}=dt;return Vt?we.createElement("div",{className:`${hn}-filter-dropdown-search`},we.createElement(dl.default,{prefix:we.createElement(hs.Z,null),placeholder:rn.filterSearchPlaceholder,onChange:_t,value:pt,htmlSize:1,className:`${hn}-filter-dropdown-search-input`})):null}var Iu=pu,Ii=ae(85108);const Da=dt=>{const{keyCode:pt}=dt;pt===Ii.Z.ENTER&&dt.stopPropagation()};var Xl=we.forwardRef((dt,pt)=>we.createElement("div",{className:dt.className,onClick:_t=>_t.stopPropagation(),onKeyDown:Da,ref:pt},dt.children));function Ql(dt){let pt=[];return(dt||[]).forEach(_t=>{let{value:Vt,children:hn}=_t;pt.push(Vt),hn&&(pt=[].concat((0,Wi.Z)(pt),(0,Wi.Z)(Ql(hn))))}),pt}function mu(dt){return dt.some(pt=>{let{children:_t}=pt;return _t})}function Xr(dt,pt){return typeof pt=="string"||typeof pt=="number"?pt==null?void 0:pt.toString().toLowerCase().includes(dt.trim().toLowerCase()):!1}function Vc(dt){let{filters:pt,prefixCls:_t,filteredKeys:Vt,filterMultiple:hn,searchValue:rn,filterSearch:Wn}=dt;return pt.map((Kn,jn)=>{const ci=String(Kn.value);if(Kn.children)return{key:ci||jn,label:Kn.text,popupClassName:`${_t}-dropdown-submenu`,children:Vc({filters:Kn.children,prefixCls:_t,filteredKeys:Vt,filterMultiple:hn,searchValue:rn,filterSearch:Wn})};const yi=hn?Jo.default:ji.ZP,mi={key:Kn.value!==void 0?ci:jn,label:we.createElement(we.Fragment,null,we.createElement(yi,{checked:Vt.includes(ci)}),we.createElement("span",null,Kn.text))};return rn.trim()?typeof Wn=="function"?Wn(rn,Kn)?mi:null:Xr(rn,Kn.text)?mi:null:mi})}function bl(dt){var pt,_t;const{tablePrefixCls:Vt,prefixCls:hn,column:rn,dropdownPrefixCls:Wn,columnKey:Kn,filterMultiple:jn,filterMode:ci="menu",filterSearch:yi=!1,filterState:mi,triggerFilter:Ui,locale:Di,children:Ni,getPopupContainer:gr}=dt,{filterDropdownOpen:Ri,onFilterDropdownOpenChange:ur,filterResetToDefaultFilteredValue:sr,defaultFilteredValue:br,filterDropdownVisible:Zr,onFilterDropdownVisibleChange:ro}=rn,[pr,_r]=we.useState(!1),ko=!!(mi&&(!((pt=mi.filteredKeys)===null||pt===void 0)&&pt.length||mi.forceFiltered)),wr=Yr=>{_r(Yr),ur==null||ur(Yr),ro==null||ro(Yr)},Br=(_t=Ri!=null?Ri:Zr)!==null&&_t!==void 0?_t:pr,xr=mi==null?void 0:mi.filteredKeys,[$i,Nr]=Ko(xr||[]),Qr=Yr=>{let{selectedKeys:Ao}=Yr;Nr(Ao)},fo=(Yr,Ao)=>{let{node:ua,checked:ca}=Ao;Qr(jn?{selectedKeys:Yr}:{selectedKeys:ca&&ua.key?[ua.key]:[]})};we.useEffect(()=>{pr&&Qr({selectedKeys:xr||[]})},[xr]);const[po,mr]=we.useState([]),Lo=Yr=>{mr(Yr)},[Fo,Ea]=we.useState(""),ra=Yr=>{const{value:Ao}=Yr.target;Ea(Ao)};we.useEffect(()=>{pr||Ea("")},[pr]);const os=Yr=>{const Ao=Yr&&Yr.length?Yr:null;if(Ao===null&&(!mi||!mi.filteredKeys)||(0,Ze.Z)(Ao,mi==null?void 0:mi.filteredKeys,!0))return null;Ui({column:rn,key:Kn,filteredKeys:Ao})},ts=()=>{wr(!1),os($i())},No=function(){let{confirm:Yr,closeDropdown:Ao}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Yr&&os([]),Ao&&wr(!1),Ea(""),Nr(sr?(br||[]).map(ua=>String(ua)):[])},to=function(){let{closeDropdown:Yr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Yr&&wr(!1),os($i())},ma=Yr=>{Yr&&xr!==void 0&&Nr(xr||[]),wr(Yr),!Yr&&!rn.filterDropdown&&ts()},as=kt()({[`${Wn}-menu-without-submenu`]:!mu(rn.filters||[])}),$a=Yr=>{if(Yr.target.checked){const Ao=Ql(rn==null?void 0:rn.filters).map(ua=>String(ua));Nr(Ao)}else Nr([])},Fs=Yr=>{let{filters:Ao}=Yr;return(Ao||[]).map((ua,ca)=>{const Vs=String(ua.value),Os={title:ua.text,key:ua.value!==void 0?Vs:ca};return ua.children&&(Os.children=Fs({filters:ua.children})),Os})},yo=Yr=>{var Ao;return Object.assign(Object.assign({},Yr),{text:Yr.title,value:Yr.key,children:((Ao=Yr.children)===null||Ao===void 0?void 0:Ao.map(ua=>yo(ua)))||[]})};let uo;if(typeof rn.filterDropdown=="function")uo=rn.filterDropdown({prefixCls:`${Wn}-custom`,setSelectedKeys:Yr=>Qr({selectedKeys:Yr}),selectedKeys:$i(),confirm:to,clearFilters:No,filters:rn.filters,visible:Br,close:()=>{wr(!1)}});else if(rn.filterDropdown)uo=rn.filterDropdown;else{const Yr=$i()||[],Ao=()=>(rn.filters||[]).length===0?we.createElement(Kr.Z,{image:Kr.Z.PRESENTED_IMAGE_SIMPLE,description:Di.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ci==="tree"?we.createElement(we.Fragment,null,we.createElement(Iu,{filterSearch:yi,value:Fo,onChange:ra,tablePrefixCls:Vt,locale:Di}),we.createElement("div",{className:`${Vt}-filter-dropdown-tree`},jn?we.createElement(Jo.default,{checked:Yr.length===Ql(rn.filters).length,indeterminate:Yr.length>0&&Yr.length<Ql(rn.filters).length,className:`${Vt}-filter-dropdown-checkall`,onChange:$a},Di.filterCheckall):null,we.createElement(ds.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:jn,checkStrictly:!jn,className:`${Wn}-menu`,onCheck:fo,checkedKeys:Yr,selectedKeys:Yr,showIcon:!1,treeData:Fs({filters:rn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Fo.trim()?ca=>typeof yi=="function"?yi(Fo,yo(ca)):Xr(Fo,ca.title):void 0}))):we.createElement(we.Fragment,null,we.createElement(Iu,{filterSearch:yi,value:Fo,onChange:ra,tablePrefixCls:Vt,locale:Di}),we.createElement(To.default,{selectable:!0,multiple:jn,prefixCls:`${Wn}-menu`,className:as,onSelect:Qr,onDeselect:Qr,selectedKeys:Yr,getPopupContainer:gr,openKeys:po,onOpenChange:Lo,items:Vc({filters:rn.filters||[],filterSearch:yi,prefixCls:hn,filteredKeys:$i(),filterMultiple:jn,searchValue:Fo})})),ua=()=>sr?(0,Ze.Z)((br||[]).map(ca=>String(ca)),Yr,!0):Yr.length===0;uo=we.createElement(we.Fragment,null,Ao(),we.createElement("div",{className:`${hn}-dropdown-btns`},we.createElement(ao.ZP,{type:"link",size:"small",disabled:ua(),onClick:()=>No()},Di.filterReset),we.createElement(ao.ZP,{type:"primary",size:"small",onClick:ts},Di.filterConfirm)))}rn.filterDropdown&&(uo=we.createElement(bo.J,{selectable:void 0},uo));const mo=()=>we.createElement(Xl,{className:`${hn}-dropdown`},uo);let $r;typeof rn.filterIcon=="function"?$r=rn.filterIcon(ko):rn.filterIcon?$r=rn.filterIcon:$r=we.createElement(ia,null);const{direction:xa}=we.useContext(tr.E_);return we.createElement("div",{className:`${hn}-column`},we.createElement("span",{className:`${Vt}-column-title`},Ni),we.createElement(xs.Z,{dropdownRender:mo,trigger:["click"],open:Br,onOpenChange:ma,getPopupContainer:gr,placement:xa==="rtl"?"bottomLeft":"bottomRight"},we.createElement("span",{role:"button",tabIndex:-1,className:kt()(`${hn}-trigger`,{active:ko}),onClick:Yr=>{Yr.stopPropagation()}},$r)))}var wl=bl;function pl(dt,pt,_t){let Vt=[];return(dt||[]).forEach((hn,rn)=>{var Wn;const Kn=Ts(rn,_t);if(hn.filters||"filterDropdown"in hn||"onFilter"in hn)if("filteredValue"in hn){let jn=hn.filteredValue;"filterDropdown"in hn||(jn=(Wn=jn==null?void 0:jn.map(String))!==null&&Wn!==void 0?Wn:jn),Vt.push({column:hn,key:cs(hn,Kn),filteredKeys:jn,forceFiltered:hn.filtered})}else Vt.push({column:hn,key:cs(hn,Kn),filteredKeys:pt&&hn.defaultFilteredValue?hn.defaultFilteredValue:void 0,forceFiltered:hn.filtered});"children"in hn&&(Vt=[].concat((0,Wi.Z)(Vt),(0,Wi.Z)(pl(hn.children,pt,Kn))))}),Vt}function Ju(dt,pt,_t,Vt,hn,rn,Wn,Kn){return _t.map((jn,ci)=>{const yi=Ts(ci,Kn),{filterMultiple:mi=!0,filterMode:Ui,filterSearch:Di}=jn;let Ni=jn;if(Ni.filters||Ni.filterDropdown){const gr=cs(Ni,yi),Ri=Vt.find(ur=>{let{key:sr}=ur;return gr===sr});Ni=Object.assign(Object.assign({},Ni),{title:ur=>we.createElement(wl,{tablePrefixCls:dt,prefixCls:`${dt}-filter`,dropdownPrefixCls:pt,column:Ni,columnKey:gr,filterState:Ri,filterMultiple:mi,filterMode:Ui,filterSearch:Di,triggerFilter:rn,locale:hn,getPopupContainer:Wn},al(jn.title,ur))})}return"children"in Ni&&(Ni=Object.assign(Object.assign({},Ni),{children:Ju(dt,pt,Ni.children,Vt,hn,rn,Wn,yi)})),Ni})}function qu(dt){const pt={};return dt.forEach(_t=>{let{key:Vt,filteredKeys:hn,column:rn}=_t;const{filters:Wn,filterDropdown:Kn}=rn;if(Kn)pt[Vt]=hn||null;else if(Array.isArray(hn)){const jn=Ql(Wn);pt[Vt]=jn.filter(ci=>hn.includes(String(ci)))}else pt[Vt]=null}),pt}function ml(dt,pt){return pt.reduce((_t,Vt)=>{const{column:{onFilter:hn,filters:rn},filteredKeys:Wn}=Vt;return hn&&Wn&&Wn.length?_t.filter(Kn=>Wn.some(jn=>{const ci=Ql(rn),yi=ci.findIndex(Ui=>String(Ui)===String(jn)),mi=yi!==-1?ci[yi]:jn;return hn(mi,Kn)})):_t},dt)}const Il=dt=>dt.flatMap(pt=>"children"in pt?[pt].concat((0,Wi.Z)(Il(pt.children||[]))):[pt]);function ud(dt){let{prefixCls:pt,dropdownPrefixCls:_t,mergedColumns:Vt,onFilterChange:hn,getPopupContainer:rn,locale:Wn}=dt;const Kn=we.useMemo(()=>Il(Vt||[]),[Vt]),[jn,ci]=we.useState(()=>pl(Kn,!0)),yi=we.useMemo(()=>{const Ni=pl(Kn,!1);if(Ni.length===0)return Ni;let gr=!0,Ri=!0;if(Ni.forEach(ur=>{let{filteredKeys:sr}=ur;sr!==void 0?gr=!1:Ri=!1}),gr){const ur=(Kn||[]).map((sr,br)=>cs(sr,Ts(br)));return jn.filter(sr=>{let{key:br}=sr;return ur.includes(br)}).map(sr=>{const br=Kn[ur.findIndex(Zr=>Zr===sr.key)];return Object.assign(Object.assign({},sr),{column:Object.assign(Object.assign({},sr.column),br),forceFiltered:br.filtered})})}return Ni},[Kn,jn]),mi=we.useMemo(()=>qu(yi),[yi]),Ui=Ni=>{const gr=yi.filter(Ri=>{let{key:ur}=Ri;return ur!==Ni.key});gr.push(Ni),ci(gr),hn(qu(gr),gr)};return[Ni=>Ju(pt,_t,Ni,yi,Wn,Ui,rn),yi,mi]}var cd=ud;function Tc(dt,pt,_t){const Vt=we.useRef({});function hn(rn){if(!Vt.current||Vt.current.data!==dt||Vt.current.childrenColumnName!==pt||Vt.current.getRowKey!==_t){let Kn=function(jn){jn.forEach((ci,yi)=>{const mi=_t(ci,yi);Wn.set(mi,ci),ci&&typeof ci=="object"&&pt in ci&&Kn(ci[pt]||[])})};const Wn=new Map;Kn(dt),Vt.current={data:dt,childrenColumnName:pt,kvMap:Wn,getRowKey:_t}}return Vt.current.kvMap.get(rn)}return[hn]}var Ed=ae(50371),dd=function(dt,pt){var _t={};for(var Vt in dt)Object.prototype.hasOwnProperty.call(dt,Vt)&&pt.indexOf(Vt)<0&&(_t[Vt]=dt[Vt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vt=Object.getOwnPropertySymbols(dt);hn<Vt.length;hn++)pt.indexOf(Vt[hn])<0&&Object.prototype.propertyIsEnumerable.call(dt,Vt[hn])&&(_t[Vt[hn]]=dt[Vt[hn]]);return _t};const kc=10;function hc(dt,pt){const _t={current:dt.current,pageSize:dt.pageSize};return Object.keys(pt&&typeof pt=="object"?pt:{}).forEach(hn=>{const rn=dt[hn];typeof rn!="function"&&(_t[hn]=rn)}),_t}function Ml(dt,pt,_t){const Vt=_t&&typeof _t=="object"?_t:{},{total:hn=0}=Vt,rn=dd(Vt,["total"]),[Wn,Kn]=(0,we.useState)(()=>({current:"defaultCurrent"in rn?rn.defaultCurrent:1,pageSize:"defaultPageSize"in rn?rn.defaultPageSize:kc})),jn=(0,Ed.Z)(Wn,rn,{total:hn>0?hn:dt}),ci=Math.ceil((hn||dt)/jn.pageSize);jn.current>ci&&(jn.current=ci||1);const yi=(Ui,Di)=>{Kn({current:Ui!=null?Ui:1,pageSize:Di||jn.pageSize})},mi=(Ui,Di)=>{var Ni;_t&&((Ni=_t.onChange)===null||Ni===void 0||Ni.call(_t,Ui,Di)),yi(Ui,Di),pt(Ui,Di||(jn==null?void 0:jn.pageSize))};return _t===!1?[{},()=>{}]:[Object.assign(Object.assign({},jn),{onChange:mi}),yi]}var Cd=Ml,Ac=ae(18290),fc=ae(35654),wo=ae(90782),aa=ae(71430),hl=ae(35788);const ks={},fs="SELECT_ALL",Ua="SELECT_INVERT",qa="SELECT_NONE",ws=[],gs=(dt,pt)=>{let _t=[];return(pt||[]).forEach(Vt=>{_t.push(Vt),Vt&&typeof Vt=="object"&&dt in Vt&&(_t=[].concat((0,Wi.Z)(_t),(0,Wi.Z)(gs(dt,Vt[dt]))))}),_t};var vu=(dt,pt)=>{const{preserveSelectedRowKeys:_t,selectedRowKeys:Vt,defaultSelectedRowKeys:hn,getCheckboxProps:rn,onChange:Wn,onSelect:Kn,onSelectAll:jn,onSelectInvert:ci,onSelectNone:yi,onSelectMultiple:mi,columnWidth:Ui,type:Di,selections:Ni,fixed:gr,renderCell:Ri,hideSelectAll:ur,checkStrictly:sr=!0}=pt||{},{prefixCls:br,data:Zr,pageData:ro,getRecordByKey:pr,getRowKey:_r,expandType:ko,childrenColumnName:wr,locale:Br,getPopupContainer:xr}=dt,[$i,Nr]=(0,hl.Z)(Vt||hn||ws,{value:Vt}),Qr=we.useRef(new Map),fo=(0,we.useCallback)(yo=>{if(_t){const uo=new Map;yo.forEach(mo=>{let $r=pr(mo);!$r&&Qr.current.has(mo)&&($r=Qr.current.get(mo)),uo.set(mo,$r)}),Qr.current=uo}},[pr,_t]);we.useEffect(()=>{fo($i)},[$i]);const{keyEntities:po}=(0,we.useMemo)(()=>{if(sr)return{keyEntities:null};let yo=Zr;if(_t){const uo=new Set(Zr.map(($r,xa)=>_r($r,xa))),mo=Array.from(Qr.current).reduce(($r,xa)=>{let[Yr,Ao]=xa;return uo.has(Yr)?$r:$r.concat(Ao)},[]);yo=[].concat((0,Wi.Z)(yo),(0,Wi.Z)(mo))}return(0,aa.I8)(yo,{externalGetKey:_r,childrenPropName:wr})},[Zr,_r,sr,wr,_t]),mr=(0,we.useMemo)(()=>gs(wr,ro),[wr,ro]),Lo=(0,we.useMemo)(()=>{const yo=new Map;return mr.forEach((uo,mo)=>{const $r=_r(uo,mo),xa=(rn?rn(uo):null)||{};yo.set($r,xa)}),yo},[mr,_r,rn]),Fo=(0,we.useCallback)(yo=>{var uo;return!!(!((uo=Lo.get(_r(yo)))===null||uo===void 0)&&uo.disabled)},[Lo,_r]),[Ea,ra]=(0,we.useMemo)(()=>{if(sr)return[$i||[],[]];const{checkedKeys:yo,halfCheckedKeys:uo}=(0,wo.S)($i,!0,po,Fo);return[yo||[],uo]},[$i,sr,po,Fo]),os=(0,we.useMemo)(()=>{const yo=Di==="radio"?Ea.slice(0,1):Ea;return new Set(yo)},[Ea,Di]),ts=(0,we.useMemo)(()=>Di==="radio"?new Set:new Set(ra),[ra,Di]),[No,to]=(0,we.useState)(null);we.useEffect(()=>{pt||Nr(ws)},[!!pt]);const ma=(0,we.useCallback)((yo,uo)=>{let mo,$r;fo(yo),_t?(mo=yo,$r=yo.map(xa=>Qr.current.get(xa))):(mo=[],$r=[],yo.forEach(xa=>{const Yr=pr(xa);Yr!==void 0&&(mo.push(xa),$r.push(Yr))})),Nr(mo),Wn==null||Wn(mo,$r,{type:uo})},[Nr,pr,Wn,_t]),as=(0,we.useCallback)((yo,uo,mo,$r)=>{if(Kn){const xa=mo.map(Yr=>pr(Yr));Kn(pr(yo),uo,xa,$r)}ma(mo,"single")},[Kn,pr,ma]),$a=(0,we.useMemo)(()=>!Ni||ur?null:(Ni===!0?[fs,Ua,qa]:Ni).map(uo=>uo===fs?{key:"all",text:Br.selectionAll,onSelect(){ma(Zr.map((mo,$r)=>_r(mo,$r)).filter(mo=>{const $r=Lo.get(mo);return!($r!=null&&$r.disabled)||os.has(mo)}),"all")}}:uo===Ua?{key:"invert",text:Br.selectInvert,onSelect(){const mo=new Set(os);ro.forEach((xa,Yr)=>{const Ao=_r(xa,Yr),ua=Lo.get(Ao);ua!=null&&ua.disabled||(mo.has(Ao)?mo.delete(Ao):mo.add(Ao))});const $r=Array.from(mo);ci&&ci($r),ma($r,"invert")}}:uo===qa?{key:"none",text:Br.selectNone,onSelect(){yi==null||yi(),ma(Array.from(os).filter(mo=>{const $r=Lo.get(mo);return $r==null?void 0:$r.disabled}),"none")}}:uo).map(uo=>Object.assign(Object.assign({},uo),{onSelect:function(){for(var mo,$r,xa=arguments.length,Yr=new Array(xa),Ao=0;Ao<xa;Ao++)Yr[Ao]=arguments[Ao];($r=uo.onSelect)===null||$r===void 0||(mo=$r).call.apply(mo,[uo].concat(Yr)),to(null)}})),[Ni,os,ro,_r,ci,ma]);return[(0,we.useCallback)(yo=>{var uo;if(!pt)return yo.filter(ba=>ba!==ks);let mo=(0,Wi.Z)(yo);const $r=new Set(os),xa=mr.map(_r).filter(ba=>!Lo.get(ba).disabled),Yr=xa.every(ba=>$r.has(ba)),Ao=xa.some(ba=>$r.has(ba)),ua=()=>{const ba=[];Yr?xa.forEach(za=>{$r.delete(za),ba.push(za)}):xa.forEach(za=>{$r.has(za)||($r.add(za),ba.push(za))});const Na=Array.from($r);jn==null||jn(!Yr,Na.map(za=>pr(za)),ba.map(za=>pr(za))),ma(Na,"all"),to(null)};let ca;if(Di!=="radio"){let ba;if($a){const Vo={getPopupContainer:xr,items:$a.map((Ha,el)=>{const{key:zs,text:xu,onSelect:ql}=Ha;return{key:zs!=null?zs:el,onClick:()=>{ql==null||ql(xa)},label:xu}})};ba=we.createElement("div",{className:`${br}-selection-extra`},we.createElement(xs.Z,{menu:Vo,getPopupContainer:xr},we.createElement("span",null,we.createElement(Ac.Z,null))))}const Na=mr.map((Vo,Ha)=>{const el=_r(Vo,Ha),zs=Lo.get(el)||{};return Object.assign({checked:$r.has(el)},zs)}).filter(Vo=>{let{disabled:Ha}=Vo;return Ha}),za=!!Na.length&&Na.length===mr.length,vs=za&&Na.every(Vo=>{let{checked:Ha}=Vo;return Ha}),Bs=za&&Na.some(Vo=>{let{checked:Ha}=Vo;return Ha});ca=!ur&&we.createElement("div",{className:`${br}-selection`},we.createElement(Jo.default,{checked:za?vs:!!mr.length&&Yr,indeterminate:za?!vs&&Bs:!Yr&&Ao,onChange:ua,disabled:mr.length===0||za,"aria-label":ba?"Custom selection":"Select all",skipGroup:!0}),ba)}let Vs;Di==="radio"?Vs=(ba,Na,za)=>{const vs=_r(Na,za),Bs=$r.has(vs);return{node:we.createElement(ji.ZP,Object.assign({},Lo.get(vs),{checked:Bs,onClick:Vo=>Vo.stopPropagation(),onChange:Vo=>{$r.has(vs)||as(vs,!0,[vs],Vo.nativeEvent)}})),checked:Bs}}:Vs=(ba,Na,za)=>{var vs;const Bs=_r(Na,za),Vo=$r.has(Bs),Ha=ts.has(Bs),el=Lo.get(Bs);let zs;return ko==="nest"?zs=Ha:zs=(vs=el==null?void 0:el.indeterminate)!==null&&vs!==void 0?vs:Ha,{node:we.createElement(Jo.default,Object.assign({},el,{indeterminate:zs,checked:Vo,skipGroup:!0,onClick:xu=>xu.stopPropagation(),onChange:xu=>{let{nativeEvent:ql}=xu;const{shiftKey:Ou}=ql;let Ru=-1,bu=-1;if(Ou&&sr){const Aa=new Set([No,Bs]);xa.some((Zs,ys)=>{if(Aa.has(Zs))if(Ru===-1)Ru=ys;else return bu=ys,!0;return!1})}if(bu!==-1&&Ru!==bu&&sr){const Aa=xa.slice(Ru,bu+1),Zs=[];Vo?Aa.forEach(_a=>{$r.has(_a)&&(Zs.push(_a),$r.delete(_a))}):Aa.forEach(_a=>{$r.has(_a)||(Zs.push(_a),$r.add(_a))});const ys=Array.from($r);mi==null||mi(!Vo,ys.map(_a=>pr(_a)),Zs.map(_a=>pr(_a))),ma(ys,"multiple")}else{const Aa=Ea;if(sr){const Zs=Vo?(0,fc._5)(Aa,Bs):(0,fc.L0)(Aa,Bs);as(Bs,!Vo,Zs,ql)}else{const Zs=(0,wo.S)([].concat((0,Wi.Z)(Aa),[Bs]),!0,po,Fo),{checkedKeys:ys,halfCheckedKeys:_a}=Zs;let Rl=ys;if(Vo){const Oc=new Set(ys);Oc.delete(Bs),Rl=(0,wo.S)(Array.from(Oc),{checked:!1,halfCheckedKeys:_a},po,Fo).checkedKeys}as(Bs,!Vo,Rl,ql)}}to(Vo?null:Bs)}})),checked:Vo}};const Os=(ba,Na,za)=>{const{node:vs,checked:Bs}=Vs(ba,Na,za);return Ri?Ri(Bs,Na,za,vs):vs};if(!mo.includes(ks))if(mo.findIndex(ba=>{var Na;return((Na=ba[Yi])===null||Na===void 0?void 0:Na.columnType)==="EXPAND_COLUMN"})===0){const[ba,...Na]=mo;mo=[ba,ks].concat((0,Wi.Z)(Na))}else mo=[ks].concat((0,Wi.Z)(mo));const Sl=mo.indexOf(ks);mo=mo.filter((ba,Na)=>ba!==ks||Na===Sl);const Ca=mo[Sl-1],ll=mo[Sl+1];let Rs=gr;Rs===void 0&&((ll==null?void 0:ll.fixed)!==void 0?Rs=ll.fixed:(Ca==null?void 0:Ca.fixed)!==void 0&&(Rs=Ca.fixed)),Rs&&Ca&&((uo=Ca[Yi])===null||uo===void 0?void 0:uo.columnType)==="EXPAND_COLUMN"&&Ca.fixed===void 0&&(Ca.fixed=Rs);const qs=kt()(`${br}-selection-col`,{[`${br}-selection-col-with-dropdown`]:Ni&&Di==="checkbox"}),vc={fixed:Rs,width:Ui,className:`${br}-selection-column`,title:pt.columnTitle||ca,render:Os,onCell:pt.onCell,[Yi]:{className:qs}};return mo.map(ba=>ba===ks?vc:ba)},[_r,mr,pt,Ea,os,ts,Ui,$a,ko,No,Lo,mi,as,Fo]),os]},es=ae(35323),Pd=ae(19155),vh=ae(6848);const hd="ascend",Ar="descend";function Td(dt){return typeof dt.sorter=="object"&&typeof dt.sorter.multiple=="number"?dt.sorter.multiple:!1}function Ft(dt){return typeof dt=="function"?dt:dt&&typeof dt=="object"&&dt.compare?dt.compare:!1}function si(dt,pt){return pt?dt[dt.indexOf(pt)+1]:dt[0]}function yh(dt,pt,_t){let Vt=[];function hn(rn,Wn){Vt.push({column:rn,key:cs(rn,Wn),multiplePriority:Td(rn),sortOrder:rn.sortOrder})}return(dt||[]).forEach((rn,Wn)=>{const Kn=Ts(Wn,_t);rn.children?("sortOrder"in rn&&hn(rn,Kn),Vt=[].concat((0,Wi.Z)(Vt),(0,Wi.Z)(yh(rn.children,pt,Kn)))):rn.sorter&&("sortOrder"in rn?hn(rn,Kn):pt&&rn.defaultSortOrder&&Vt.push({column:rn,key:cs(rn,Kn),multiplePriority:Td(rn),sortOrder:rn.defaultSortOrder}))}),Vt}function qh(dt,pt,_t,Vt,hn,rn,Wn,Kn){return(pt||[]).map((jn,ci)=>{const yi=Ts(ci,Kn);let mi=jn;if(mi.sorter){const Ui=mi.sortDirections||hn,Di=mi.showSorterTooltip===void 0?Wn:mi.showSorterTooltip,Ni=cs(mi,yi),gr=_t.find(ko=>{let{key:wr}=ko;return wr===Ni}),Ri=gr?gr.sortOrder:null,ur=si(Ui,Ri);let sr;if(jn.sortIcon)sr=jn.sortIcon({sortOrder:Ri});else{const ko=Ui.includes(hd)&&we.createElement(Pd.Z,{className:kt()(`${dt}-column-sorter-up`,{active:Ri===hd})}),wr=Ui.includes(Ar)&&we.createElement(es.Z,{className:kt()(`${dt}-column-sorter-down`,{active:Ri===Ar})});sr=we.createElement("span",{className:kt()(`${dt}-column-sorter`,{[`${dt}-column-sorter-full`]:!!(ko&&wr)})},we.createElement("span",{className:`${dt}-column-sorter-inner`,"aria-hidden":"true"},ko,wr))}const{cancelSort:br,triggerAsc:Zr,triggerDesc:ro}=rn||{};let pr=br;ur===Ar?pr=ro:ur===hd&&(pr=Zr);const _r=typeof Di=="object"?Di:{title:pr};mi=Object.assign(Object.assign({},mi),{className:kt()(mi.className,{[`${dt}-column-sort`]:Ri}),title:ko=>{const wr=we.createElement("div",{className:`${dt}-column-sorters`},we.createElement("span",{className:`${dt}-column-title`},al(jn.title,ko)),sr);return Di?we.createElement(vh.Z,Object.assign({},_r),wr):wr},onHeaderCell:ko=>{const wr=jn.onHeaderCell&&jn.onHeaderCell(ko)||{},Br=wr.onClick,xr=wr.onKeyDown;wr.onClick=Qr=>{Vt({column:jn,key:Ni,sortOrder:ur,multiplePriority:Td(jn)}),Br==null||Br(Qr)},wr.onKeyDown=Qr=>{Qr.keyCode===Ii.Z.ENTER&&(Vt({column:jn,key:Ni,sortOrder:ur,multiplePriority:Td(jn)}),xr==null||xr(Qr))};const $i=Js(jn.title,{}),Nr=$i==null?void 0:$i.toString();return Ri?wr["aria-sort"]=Ri==="ascend"?"ascending":"descending":wr["aria-label"]=Nr||"",wr.className=kt()(wr.className,`${dt}-column-has-sorters`),wr.tabIndex=0,jn.ellipsis&&(wr.title=($i!=null?$i:"").toString()),wr}})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:qh(dt,mi.children,_t,Vt,hn,rn,Wn,yi)})),mi})}function pc(dt){const{column:pt,sortOrder:_t}=dt;return{column:pt,order:_t,field:pt.dataIndex,columnKey:pt.key}}function mc(dt){const pt=dt.filter(_t=>{let{sortOrder:Vt}=_t;return Vt}).map(pc);return pt.length===0&&dt.length?Object.assign(Object.assign({},pc(dt[dt.length-1])),{column:void 0}):pt.length<=1?pt[0]||{}:pt}function Lc(dt,pt,_t){const Vt=pt.slice().sort((Wn,Kn)=>Kn.multiplePriority-Wn.multiplePriority),hn=dt.slice(),rn=Vt.filter(Wn=>{let{column:{sorter:Kn},sortOrder:jn}=Wn;return Ft(Kn)&&jn});return rn.length?hn.sort((Wn,Kn)=>{for(let jn=0;jn<rn.length;jn+=1){const ci=rn[jn],{column:{sorter:yi},sortOrder:mi}=ci,Ui=Ft(yi);if(Ui&&mi){const Di=Ui(Wn,Kn,mi);if(Di!==0)return mi===hd?Di:-Di}}return 0}).map(Wn=>{const Kn=Wn[_t];return Kn?Object.assign(Object.assign({},Wn),{[_t]:Lc(Kn,pt,_t)}):Wn}):hn}function Sh(dt){let{prefixCls:pt,mergedColumns:_t,onSorterChange:Vt,sortDirections:hn,tableLocale:rn,showSorterTooltip:Wn}=dt;const[Kn,jn]=we.useState(yh(_t,!0)),ci=we.useMemo(()=>{let Ni=!0;const gr=yh(_t,!1);if(!gr.length)return Kn;const Ri=[];function ur(br){Ni?Ri.push(br):Ri.push(Object.assign(Object.assign({},br),{sortOrder:null}))}let sr=null;return gr.forEach(br=>{sr===null?(ur(br),br.sortOrder&&(br.multiplePriority===!1?Ni=!1:sr=!0)):(sr&&br.multiplePriority!==!1||(Ni=!1),ur(br))}),Ri},[_t,Kn]),yi=we.useMemo(()=>{const Ni=ci.map(gr=>{let{column:Ri,sortOrder:ur}=gr;return{column:Ri,order:ur}});return{sortColumns:Ni,sortColumn:Ni[0]&&Ni[0].column,sortOrder:Ni[0]&&Ni[0].order}},[ci]);function mi(Ni){let gr;Ni.multiplePriority===!1||!ci.length||ci[0].multiplePriority===!1?gr=[Ni]:gr=[].concat((0,Wi.Z)(ci.filter(Ri=>{let{key:ur}=Ri;return ur!==Ni.key})),[Ni]),jn(gr),Vt(mc(gr),gr)}return[Ni=>qh(pt,Ni,ci,mi,hn,rn,Wn),ci,yi,()=>mc(ci)]}function kd(dt,pt){return dt.map(_t=>{const Vt=Object.assign({},_t);return Vt.title=al(_t.title,pt),"children"in Vt&&(Vt.children=kd(Vt.children,pt)),Vt})}function ps(dt){return[we.useCallback(_t=>kd(_t,dt),[dt])]}var io=Tr((dt,pt)=>{const{_renderTimes:_t}=dt,{_renderTimes:Vt}=pt;return _t!==Vt}),El=ta((dt,pt)=>{const{_renderTimes:_t}=dt,{_renderTimes:Vt}=pt;return _t!==Vt}),yl=ae(64993),Za=ae(17313),Go=ae(83116),Ks=ae(37613),Ga=dt=>{const{componentCls:pt}=dt,_t=`${dt.lineWidth}px ${dt.lineType} ${dt.tableBorderColor}`,Vt=(hn,rn,Wn)=>({[`&${pt}-${hn}`]:{[`> ${pt}-container`]:{[`> ${pt}-content, > ${pt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${pt}-expanded-row-fixed`]:{margin:`-${rn}px -${Wn+dt.lineWidth}px`}}}}}});return{[`${pt}-wrapper`]:{[`${pt}${pt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${pt}-title`]:{border:_t,borderBottom:0},[`> ${pt}-container`]:{borderInlineStart:_t,borderTop:_t,[`
> ${pt}-content,
> ${pt}-header,
> ${pt}-body,
> ${pt}-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:_t},"> thead":{"> tr:not(:last-child) > th":{borderBottom:_t},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${pt}-cell-fix-right-first::after`]:{borderInlineEnd:_t}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${pt}-expanded-row-fixed`]:{margin:`-${dt.tablePaddingVertical}px -${dt.tablePaddingHorizontal+dt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:dt.lineWidth,bottom:0,borderInlineEnd:_t,content:'""'}}}}}},[`&${pt}-scroll-horizontal`]:{[`> ${pt}-container > ${pt}-body`]:{"> table > tbody":{[`
> tr${pt}-expanded-row,
> tr${pt}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Vt("middle",dt.tablePaddingVerticalMiddle,dt.tablePaddingHorizontalMiddle)),Vt("small",dt.tablePaddingVerticalSmall,dt.tablePaddingHorizontalSmall)),{[`> ${pt}-footer`]:{border:_t,borderTop:0}}),[`${pt}-cell`]:{[`${pt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${dt.lineWidth}px 0 ${dt.lineWidth}px ${dt.tableHeaderBg}`}},[`${pt}-bordered ${pt}-cell-scrollbar`]:{borderInlineEnd:_t}}}},sl=dt=>{const{componentCls:pt}=dt;return{[`${pt}-wrapper`]:{[`${pt}-cell-ellipsis`]:Object.assign(Object.assign({},Za.vS),{wordBreak:"keep-all",[`
&${pt}-cell-fix-left-last,
&${pt}-cell-fix-right-first
`]:{overflow:"visible",[`${pt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${pt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},da=dt=>{const{componentCls:pt}=dt;return{[`${pt}-wrapper`]:{[`${pt}-tbody > tr${pt}-placeholder`]:{textAlign:"center",color:dt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:dt.colorBgContainer}}}}},Cl=ae(15969),Fa=dt=>{const{componentCls:pt,antCls:_t,controlInteractiveSize:Vt,motionDurationSlow:hn,lineWidth:rn,paddingXS:Wn,lineType:Kn,tableBorderColor:jn,tableExpandIconBg:ci,tableExpandColumnWidth:yi,borderRadius:mi,fontSize:Ui,fontSizeSM:Di,lineHeight:Ni,tablePaddingVertical:gr,tablePaddingHorizontal:Ri,tableExpandedRowBg:ur,paddingXXS:sr}=dt,br=Vt/2-rn,Zr=br*2+rn*3,ro=`${rn}px ${Kn} ${jn}`,pr=sr-rn;return{[`${pt}-wrapper`]:{[`${pt}-expand-icon-col`]:{width:yi},[`${pt}-row-expand-icon-cell`]:{textAlign:"center",[`${pt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${pt}-row-indent`]:{height:1,float:"left"},[`${pt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Cl.N)(dt)),{position:"relative",float:"left",boxSizing:"border-box",width:Zr,height:Zr,padding:0,color:"inherit",lineHeight:`${Zr}px`,background:ci,border:ro,borderRadius:mi,transform:`scale(${Vt/Zr})`,transition:`all ${hn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${hn} ease-out`,content:'""'},"&::before":{top:br,insetInlineEnd:pr,insetInlineStart:pr,height:rn},"&::after":{top:pr,bottom:pr,insetInlineStart:br,width:rn,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"}}),[`${pt}-row-indent + ${pt}-row-expand-icon`]:{marginTop:(Ui*Ni-rn*3)/2-Math.ceil((Di*1.4-rn*3)/2),marginInlineEnd:Wn},[`tr${pt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ur}},[`${_t}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${pt}-expanded-row-fixed`]:{position:"relative",margin:`-${gr}px -${Ri}px`,padding:`${gr}px ${Ri}px`}}}},ms=dt=>{const{componentCls:pt,antCls:_t,iconCls:Vt,tableFilterDropdownWidth:hn,tableFilterDropdownSearchWidth:rn,paddingXXS:Wn,paddingXS:Kn,colorText:jn,lineWidth:ci,lineType:yi,tableBorderColor:mi,tableHeaderIconColor:Ui,fontSizeSM:Di,tablePaddingHorizontal:Ni,borderRadius:gr,motionDurationSlow:Ri,colorTextDescription:ur,colorPrimary:sr,tableHeaderFilterActiveBg:br,colorTextDisabled:Zr,tableFilterDropdownBg:ro,tableFilterDropdownHeight:pr,controlItemBgHover:_r,controlItemBgActive:ko,boxShadowSecondary:wr,filterDropdownMenuBg:Br}=dt,xr=`${_t}-dropdown`,$i=`${pt}-filter-dropdown`,Nr=`${_t}-tree`,Qr=`${ci}px ${yi} ${mi}`;return[{[`${pt}-wrapper`]:{[`${pt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${pt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Wn,marginInline:`${Wn}px ${-Ni/2}px`,padding:`0 ${Wn}px`,color:Ui,fontSize:Di,borderRadius:gr,cursor:"pointer",transition:`all ${Ri}`,"&:hover":{color:ur,background:br},"&.active":{color:sr}}}},{[`${_t}-dropdown`]:{[$i]:Object.assign(Object.assign({},(0,Za.Wf)(dt)),{minWidth:hn,backgroundColor:ro,borderRadius:gr,boxShadow:wr,overflow:"hidden",[`${xr}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Br,"&:empty::after":{display:"block",padding:`${Kn}px 0`,color:Zr,fontSize:Di,textAlign:"center",content:'"Not Found"'}},[`${$i}-tree`]:{paddingBlock:`${Kn}px 0`,paddingInline:Kn,[Nr]:{padding:0},[`${Nr}-treenode ${Nr}-node-content-wrapper:hover`]:{backgroundColor:_r},[`${Nr}-treenode-checkbox-checked ${Nr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ko}}},[`${$i}-search`]:{padding:Kn,borderBottom:Qr,"&-input":{input:{minWidth:rn},[Vt]:{color:Zr}}},[`${$i}-checkall`]:{width:"100%",marginBottom:Wn,marginInlineStart:Wn},[`${$i}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Kn-ci}px ${Kn}px`,overflow:"hidden",borderTop:Qr}})}},{[`${_t}-dropdown ${$i}, ${$i}-submenu`]:{[`${_t}-checkbox-wrapper + span`]:{paddingInlineStart:Kn,color:jn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},gd=dt=>{const{componentCls:pt,lineWidth:_t,colorSplit:Vt,motionDurationSlow:hn,zIndexTableFixed:rn,tableBg:Wn,zIndexTableSticky:Kn}=dt,jn=Vt;return{[`${pt}-wrapper`]:{[`
${pt}-cell-fix-left,
${pt}-cell-fix-right
`]:{position:"sticky !important",zIndex:rn,background:Wn},[`
${pt}-cell-fix-left-first::after,
${pt}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-_t,width:30,transform:"translateX(100%)",transition:`box-shadow ${hn}`,content:'""',pointerEvents:"none"},[`${pt}-cell-fix-left-all::after`]:{display:"none"},[`
${pt}-cell-fix-right-first::after,
${pt}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-_t,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${hn}`,content:'""',pointerEvents:"none"},[`${pt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Kn+1,width:30,transition:`box-shadow ${hn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${pt}-ping-left`]:{[`&:not(${pt}-has-fix-left) ${pt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${jn}`}},[`
${pt}-cell-fix-left-first::after,
${pt}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${jn}`},[`${pt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${pt}-ping-right`]:{[`&:not(${pt}-has-fix-right) ${pt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${jn}`}},[`
${pt}-cell-fix-right-first::after,
${pt}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${jn}`}}}}},ef=dt=>{const{componentCls:pt,antCls:_t}=dt;return{[`${pt}-wrapper`]:{[`${pt}-pagination${_t}-pagination`]:{margin:`${dt.margin}px 0`},[`${pt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:dt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Mf=dt=>{const{componentCls:pt,tableRadius:_t}=dt;return{[`${pt}-wrapper`]:{[pt]:{[`${pt}-title, ${pt}-header`]:{borderRadius:`${_t}px ${_t}px 0 0`},[`${pt}-title + ${pt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${pt}-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:_t,borderStartEndRadius:_t,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:_t},"> *:last-child":{borderStartEndRadius:_t}}},"&-footer":{borderRadius:`0 0 ${_t}px ${_t}px`}}}}},Ad=dt=>{const{componentCls:pt}=dt;return{[`${pt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${pt}-pagination-left`]:{justifyContent:"flex-end"},[`${pt}-pagination-right`]:{justifyContent:"flex-start"},[`${pt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${pt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${pt}-row-indent`]:{float:"right"}}}}},Yd=dt=>{const{componentCls:pt,antCls:_t,iconCls:Vt,fontSizeIcon:hn,padding:rn,paddingXS:Wn,tableHeaderIconColor:Kn,tableHeaderIconColorHover:jn,tableSelectionColumnWidth:ci}=dt;return{[`${pt}-wrapper`]:{[`${pt}-selection-col`]:{width:ci,[`&${pt}-selection-col-with-dropdown`]:{width:ci+hn+rn/4}},[`${pt}-bordered ${pt}-selection-col`]:{width:ci+Wn*2,[`&${pt}-selection-col-with-dropdown`]:{width:ci+hn+rn/4+Wn*2}},[`
table tr th${pt}-selection-column,
table tr td${pt}-selection-column
`]:{paddingInlineEnd:dt.paddingXS,paddingInlineStart:dt.paddingXS,textAlign:"center",[`${_t}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${pt}-selection-column${pt}-cell-fix-left`]:{zIndex:dt.zIndexTableFixed+1},[`table tr th${pt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${pt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${pt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${dt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${dt.tablePaddingHorizontal/4}px`,[Vt]:{color:Kn,fontSize:hn,verticalAlign:"baseline","&:hover":{color:jn}}}}}},$c=dt=>{const{componentCls:pt}=dt,_t=(Vt,hn,rn,Wn)=>({[`${pt}${pt}-${Vt}`]:{fontSize:Wn,[`
${pt}-title,
${pt}-footer,
${pt}-cell,
${pt}-thead > tr > th,
${pt}-tbody > tr > th,
${pt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${hn}px ${rn}px`},[`${pt}-filter-trigger`]:{marginInlineEnd:`-${rn/2}px`},[`${pt}-expanded-row-fixed`]:{margin:`-${hn}px -${rn}px`},[`${pt}-tbody`]:{[`${pt}-wrapper:only-child ${pt}`]:{marginBlock:`-${hn}px`,marginInline:`${dt.tableExpandColumnWidth-rn}px -${rn}px`}},[`${pt}-selection-column`]:{paddingInlineStart:`${rn/4}px`}}});return{[`${pt}-wrapper`]:Object.assign(Object.assign({},_t("middle",dt.tablePaddingVerticalMiddle,dt.tablePaddingHorizontalMiddle,dt.tableFontSizeMiddle)),_t("small",dt.tablePaddingVerticalSmall,dt.tablePaddingHorizontalSmall,dt.tableFontSizeSmall))}},Mu=dt=>{const{componentCls:pt,marginXXS:_t,fontSizeIcon:Vt,tableHeaderIconColor:hn,tableHeaderIconColorHover:rn}=dt;return{[`${pt}-wrapper`]:{[`${pt}-thead th${pt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${dt.motionDurationSlow}`,"&:hover":{background:dt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:dt.colorPrimary},[`
&${pt}-cell-fix-left:hover,
&${pt}-cell-fix-right:hover
`]:{background:dt.tableFixedHeaderSortActiveBg}},[`${pt}-thead th${pt}-column-sort`]:{background:dt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${pt}-column-sort`]:{background:dt.tableBodySortBg},[`${pt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${pt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${pt}-column-sorter`]:{marginInlineStart:_t,color:hn,fontSize:0,transition:`color ${dt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Vt,"&.active":{color:dt.colorPrimary}},[`${pt}-column-sorter-up + ${pt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${pt}-column-sorters:hover ${pt}-column-sorter`]:{color:rn}}}},Nc=dt=>{const{componentCls:pt,opacityLoading:_t,tableScrollThumbBg:Vt,tableScrollThumbBgHover:hn,tableScrollThumbSize:rn,tableScrollBg:Wn,zIndexTableSticky:Kn,stickyScrollBarBorderRadius:jn}=dt,ci=`${dt.lineWidth}px ${dt.lineType} ${dt.tableBorderColor}`;return{[`${pt}-wrapper`]:{[`${pt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Kn,background:dt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${rn}px !important`,zIndex:Kn,display:"flex",alignItems:"center",background:Wn,borderTop:ci,opacity:_t,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:rn,backgroundColor:Vt,borderRadius:jn,transition:`all ${dt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:hn}}}}}}},Ku=dt=>{const{componentCls:pt,lineWidth:_t,tableBorderColor:Vt}=dt,hn=`${_t}px ${dt.lineType} ${Vt}`;return{[`${pt}-wrapper`]:{[`${pt}-summary`]:{position:"relative",zIndex:dt.zIndexTableFixed,background:dt.tableBg,"> tr":{"> th, > td":{borderBottom:hn}}},[`div${pt}-summary`]:{boxShadow:`0 -${_t}px 0 ${Vt}`}}}},Ic=dt=>{const{componentCls:pt}=dt,_t=`${dt.lineWidth}px ${dt.lineType} ${dt.tableBorderColor}`,Vt=`${pt}-expanded-row-cell`;return{[`${pt}-wrapper`]:{[`${pt}-tbody-virtual`]:{[`${pt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${pt}-cell`]:{borderBottom:_t},[`${pt}-expanded-row`]:{[`${Vt}${Vt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${dt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${pt}-bordered`]:{[`${pt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:_t,position:"absolute"},[`${pt}-cell`]:{borderInlineEnd:_t,[`&${pt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-dt.lineWidth,borderInlineStart:_t}}}}}}};const Vu=dt=>{const{componentCls:pt,fontWeightStrong:_t,tablePaddingVertical:Vt,tablePaddingHorizontal:hn,lineWidth:rn,lineType:Wn,tableBorderColor:Kn,tableFontSize:jn,tableBg:ci,tableRadius:yi,tableHeaderTextColor:mi,motionDurationMid:Ui,tableHeaderBg:Di,tableHeaderCellSplitColor:Ni,tableRowHoverBg:gr,tableSelectedRowBg:Ri,tableSelectedRowHoverBg:ur,tableFooterTextColor:sr,tableFooterBg:br,paddingContentVerticalLG:Zr}=dt,ro=`${rn}px ${Wn} ${Kn}`;return{[`${pt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Za.dF)()),{[pt]:Object.assign(Object.assign({},(0,Za.Wf)(dt)),{fontSize:jn,background:ci,borderRadius:`${yi}px ${yi}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${yi}px ${yi}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${pt}-cell,
${pt}-thead > tr > th,
${pt}-tbody > tr > th,
${pt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Zr}px ${hn}px`,overflowWrap:"break-word"},[`${pt}-title`]:{padding:`${Vt}px ${hn}px`},[`${pt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mi,fontWeight:_t,textAlign:"start",background:Di,borderBottom:ro,transition:`background ${Ui} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${pt}-selection-column):not(${pt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ni,transform:"translateY(-50%)",transition:`background-color ${Ui}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${pt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ui}, border-color ${Ui}`,borderBottom:ro,[`
> ${pt}-wrapper:only-child,
> ${pt}-expanded-row-fixed > ${pt}-wrapper:only-child
`]:{[pt]:{marginBlock:`-${Vt}px`,marginInline:`${dt.tableExpandColumnWidth-hn}px -${hn}px`,[`${pt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mi,fontWeight:_t,textAlign:"start",background:Di,borderBottom:ro,transition:`background ${Ui} ease`},[`
&${pt}-row:hover > th,
&${pt}-row:hover > td,
> th${pt}-cell-row-hover,
> td${pt}-cell-row-hover
`]:{background:gr},[`&${pt}-row-selected`]:{"> th, > td":{background:Ri},"&:hover > th, &:hover > td":{background:ur}}}},[`${pt}-footer`]:{padding:`${Vt}px ${hn}px`,color:sr,background:br}})}};var Mc=(0,Go.Z)("Table",dt=>{const{colorTextHeading:pt,colorSplit:_t,colorIcon:Vt,colorIconHover:hn,opacityLoading:rn,colorBgContainer:Wn,controlInteractiveSize:Kn,headerBg:jn,headerColor:ci,headerSortActiveBg:yi,headerSortHoverBg:mi,bodySortBg:Ui,rowHoverBg:Di,rowSelectedBg:Ni,rowSelectedHoverBg:gr,rowExpandedBg:Ri,cellPaddingBlock:ur,cellPaddingInline:sr,cellPaddingBlockMD:br,cellPaddingInlineMD:Zr,cellPaddingBlockSM:ro,cellPaddingInlineSM:pr,borderColor:_r,footerBg:ko,footerColor:wr,headerBorderRadius:Br,cellFontSize:xr,cellFontSizeMD:$i,cellFontSizeSM:Nr,headerSplitColor:Qr,fixedHeaderSortActiveBg:fo,headerFilterHoverBg:po,filterDropdownBg:mr,expandIconBg:Lo,selectionColumnWidth:Fo,stickyScrollBarBg:Ea}=dt,ra=new yl.C(Vt),os=new yl.C(hn),ts=2,No=(0,Ks.TS)(dt,{tableFontSize:xr,tableBg:Wn,tableRadius:Br,tablePaddingVertical:ur,tablePaddingHorizontal:sr,tablePaddingVerticalMiddle:br,tablePaddingHorizontalMiddle:Zr,tablePaddingVerticalSmall:ro,tablePaddingHorizontalSmall:pr,tableBorderColor:_r,tableHeaderTextColor:ci,tableHeaderBg:jn,tableFooterTextColor:wr,tableFooterBg:ko,tableHeaderCellSplitColor:Qr,tableHeaderSortBg:yi,tableHeaderSortHoverBg:mi,tableHeaderIconColor:ra.clone().setAlpha(ra.getAlpha()*rn).toRgbString(),tableHeaderIconColorHover:os.clone().setAlpha(os.getAlpha()*rn).toRgbString(),tableBodySortBg:Ui,tableFixedHeaderSortActiveBg:fo,tableHeaderFilterActiveBg:po,tableFilterDropdownBg:mr,tableRowHoverBg:Di,tableSelectedRowBg:Ni,tableSelectedRowHoverBg:gr,zIndexTableFixed:ts,zIndexTableSticky:ts+1,tableFontSizeMiddle:$i,tableFontSizeSmall:Nr,tableSelectionColumnWidth:Fo,tableExpandIconBg:Lo,tableExpandColumnWidth:Kn+2*dt.padding,tableExpandedRowBg:Ri,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ea,tableScrollThumbBgHover:pt,tableScrollBg:_t});return[Vu(No),ef(No),Ku(No),Mu(No),ms(No),Ga(No),Mf(No),Fa(No),Ku(No),da(No),Yd(No),gd(No),Nc(No),sl(No),$c(No),Ad(No),Ic(No)]},dt=>{const{colorFillAlter:pt,colorBgContainer:_t,colorTextHeading:Vt,colorFillSecondary:hn,colorFillContent:rn,controlItemBgActive:Wn,controlItemBgActiveHover:Kn,padding:jn,paddingSM:ci,paddingXS:yi,colorBorderSecondary:mi,borderRadiusLG:Ui,fontSize:Di,controlHeight:Ni,colorTextPlaceholder:gr}=dt,Ri=new yl.C(hn).onBackground(_t).toHexShortString(),ur=new yl.C(rn).onBackground(_t).toHexShortString(),sr=new yl.C(pt).onBackground(_t).toHexShortString();return{headerBg:sr,headerColor:Vt,headerSortActiveBg:Ri,headerSortHoverBg:ur,bodySortBg:sr,rowHoverBg:sr,rowSelectedBg:Wn,rowSelectedHoverBg:Kn,rowExpandedBg:pt,cellPaddingBlock:jn,cellPaddingInline:jn,cellPaddingBlockMD:ci,cellPaddingInlineMD:yi,cellPaddingBlockSM:yi,cellPaddingInlineSM:yi,borderColor:mi,headerBorderRadius:Ui,footerBg:sr,footerColor:Vt,cellFontSize:Di,cellFontSizeMD:Di,cellFontSizeSM:Di,headerSplitColor:mi,fixedHeaderSortActiveBg:Ri,headerFilterHoverBg:rn,filterDropdownMenuBg:_t,filterDropdownBg:_t,expandIconBg:_t,selectionColumnWidth:Ni,stickyScrollBarBg:gr,stickyScrollBarBorderRadius:100}});const bh=[],wh=(dt,pt)=>{const{prefixCls:_t,className:Vt,rootClassName:hn,style:rn,size:Wn,bordered:Kn,dropdownPrefixCls:jn,dataSource:ci,pagination:yi,rowSelection:mi,rowKey:Ui="key",rowClassName:Di,columns:Ni,children:gr,childrenColumnName:Ri,onChange:ur,getPopupContainer:sr,loading:br,expandIcon:Zr,expandable:ro,expandedRowRender:pr,expandIconColumnIndex:_r,indentSize:ko,scroll:wr,sortDirections:Br,locale:xr,showSorterTooltip:$i=!0,virtual:Nr}=dt,Qr=we.useMemo(()=>Ni||Dn(gr),[Ni,gr]),fo=we.useMemo(()=>Qr.some(fa=>fa.responsive),[Qr]),po=(0,ai.Z)(fo),mr=we.useMemo(()=>{const fa=new Set(Object.keys(po).filter(Wa=>po[Wa]));return Qr.filter(Wa=>!Wa.responsive||Wa.responsive.some($s=>fa.has($s)))},[Qr,po]),Lo=(0,Wr.Z)(dt,["className","style","columns"]),{locale:Fo=xo.Z,direction:Ea,table:ra,renderEmpty:os,getPrefixCls:ts,getPopupContainer:No}=we.useContext(tr.E_),to=(0,Pr.Z)(Wn),ma=Object.assign(Object.assign({},Fo.Table),xr),as=ci||bh,$a=ts("table",_t),Fs=ts("dropdown",jn),yo=Object.assign({childrenColumnName:Ri,expandIconColumnIndex:_r},ro),{childrenColumnName:uo="children"}=yo,mo=we.useMemo(()=>as.some(fa=>fa==null?void 0:fa[uo])?"nest":pr||ro&&ro.expandedRowRender?"row":null,[as]),$r={body:we.useRef()},xa=we.useMemo(()=>typeof Ui=="function"?Ui:fa=>fa==null?void 0:fa[Ui],[Ui]),[Yr]=Tc(as,uo,xa),Ao={},ua=function(fa,Wa){let $s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ya,ga,js;const Dl=Object.assign(Object.assign({},Ao),fa);$s&&((Ya=Ao.resetPagination)===null||Ya===void 0||Ya.call(Ao),!((ga=Dl.pagination)===null||ga===void 0)&&ga.current&&(Dl.pagination.current=1),yi&&yi.onChange&&yi.onChange(1,(js=Dl.pagination)===null||js===void 0?void 0:js.pageSize)),wr&&wr.scrollToFirstRowOnChange!==!1&&$r.body.current&&(0,na.Z)(0,{getContainer:()=>$r.body.current}),ur==null||ur(Dl.pagination,Dl.filters,Dl.sorter,{currentDataSource:ml(Lc(as,Dl.sorterStates,uo),Dl.filterStates),action:Wa})},ca=(fa,Wa)=>{ua({sorter:fa,sorterStates:Wa},"sort",!1)},[Vs,Os,Sl,Ca]=Sh({prefixCls:$a,mergedColumns:mr,onSorterChange:ca,sortDirections:Br||["ascend","descend"],tableLocale:ma,showSorterTooltip:$i}),ll=we.useMemo(()=>Lc(as,Os,uo),[as,Os]);Ao.sorter=Ca(),Ao.sorterStates=Os;const Rs=(fa,Wa)=>{ua({filters:fa,filterStates:Wa},"filter",!0)},[qs,vc,ba]=cd({prefixCls:$a,locale:ma,dropdownPrefixCls:Fs,mergedColumns:mr,onFilterChange:Rs,getPopupContainer:sr||No}),Na=ml(ll,vc);Ao.filters=ba,Ao.filterStates=vc;const za=we.useMemo(()=>{const fa={};return Object.keys(ba).forEach(Wa=>{ba[Wa]!==null&&(fa[Wa]=ba[Wa])}),Object.assign(Object.assign({},Sl),{filters:fa})},[Sl,ba]),[vs]=ps(za),Bs=(fa,Wa)=>{ua({pagination:Object.assign(Object.assign({},Ao.pagination),{current:fa,pageSize:Wa})},"paginate")},[Vo,Ha]=Cd(Na.length,Bs,yi);Ao.pagination=yi===!1?{}:hc(Vo,yi),Ao.resetPagination=Ha;const el=we.useMemo(()=>{if(yi===!1||!Vo.pageSize)return Na;const{current:fa=1,total:Wa,pageSize:$s=kc}=Vo;return Na.length<Wa?Na.length>$s?Na.slice((fa-1)*$s,fa*$s):Na:Na.slice((fa-1)*$s,fa*$s)},[!!yi,Na,Vo&&Vo.current,Vo&&Vo.pageSize,Vo&&Vo.total]),[zs,xu]=vu({prefixCls:$a,data:Na,pageData:el,getRowKey:xa,getRecordByKey:Yr,expandType:mo,childrenColumnName:uo,locale:ma,getPopupContainer:sr||No},mi),ql=(fa,Wa,$s)=>{let Ya;return typeof Di=="function"?Ya=kt()(Di(fa,Wa,$s)):Ya=kt()(Di),kt()({[`${$a}-row-selected`]:xu.has(xa(fa,Wa))},Ya)};yo.__PARENT_RENDER_ICON__=yo.expandIcon,yo.expandIcon=yo.expandIcon||Zr||Ja(ma),mo==="nest"&&yo.expandIconColumnIndex===void 0?yo.expandIconColumnIndex=mi?1:0:yo.expandIconColumnIndex>0&&mi&&(yo.expandIconColumnIndex-=1),typeof yo.indentSize!="number"&&(yo.indentSize=typeof ko=="number"?ko:15);const Ou=we.useCallback(fa=>vs(zs(qs(Vs(fa)))),[Vs,qs,zs]);let Ru,bu;if(yi!==!1&&(Vo!=null&&Vo.total)){let fa;Vo.size?fa=Vo.size:fa=to==="small"||to==="middle"?"small":void 0;const Wa=ga=>we.createElement(_o.Z,Object.assign({},Vo,{className:kt()(`${$a}-pagination ${$a}-pagination-${ga}`,Vo.className),size:fa})),$s=Ea==="rtl"?"left":"right",{position:Ya}=Vo;if(Ya!==null&&Array.isArray(Ya)){const ga=Ya.find(wu=>wu.includes("top")),js=Ya.find(wu=>wu.includes("bottom")),Dl=Ya.every(wu=>`${wu}`=="none");!ga&&!js&&!Dl&&(bu=Wa($s)),ga&&(Ru=Wa(ga.toLowerCase().replace("top",""))),js&&(bu=Wa(js.toLowerCase().replace("bottom","")))}else bu=Wa($s)}let Aa;typeof br=="boolean"?Aa={spinning:br}:typeof br=="object"&&(Aa=Object.assign({spinning:!0},br));const[Zs,ys]=Mc($a),[,_a]=(0,ea.Z)(),Rl=kt()(`${$a}-wrapper`,ra==null?void 0:ra.className,{[`${$a}-wrapper-rtl`]:Ea==="rtl"},Vt,hn,ys),Oc=Object.assign(Object.assign({},ra==null?void 0:ra.style),rn),Du=xr&&xr.emptyText||(os==null?void 0:os("Table"))||we.createElement(Zi.Z,{componentName:"Table"}),Fu=Nr?El:io,ec={},Pl=we.useMemo(()=>{const{fontSize:fa,lineHeight:Wa,padding:$s,paddingXS:Ya,paddingSM:ga}=_a,js=Math.floor(fa*Wa);switch(to){case"large":return $s*2+js;case"small":return Ya*2+js;default:return ga*2+js}},[_a,to]);return Nr&&(ec.listItemHeight=Pl),Zs(we.createElement("div",{ref:pt,className:Rl,style:Oc},we.createElement(Wo.Z,Object.assign({spinning:!1},Aa),Ru,we.createElement(Fu,Object.assign({},ec,Lo,{columns:mr,direction:Ea,expandable:yo,prefixCls:$a,className:kt()({[`${$a}-middle`]:to==="middle",[`${$a}-small`]:to==="small",[`${$a}-bordered`]:Kn,[`${$a}-empty`]:as.length===0}),data:el,rowKey:xa,rowClassName:ql,emptyText:Du,internalHooks:Te,internalRefs:$r,transformColumns:Ou})),bu)))};var Yc=we.forwardRef(wh);const Rf=(dt,pt)=>{const _t=we.useRef(0);return _t.current+=1,we.createElement(Yc,Object.assign({},dt,{ref:pt,_renderTimes:_t.current}))},Ol=we.forwardRef(Rf);Ol.SELECTION_COLUMN=ks,Ol.EXPAND_COLUMN=de,Ol.SELECTION_ALL=fs,Ol.SELECTION_INVERT=Ua,Ol.SELECTION_NONE=qa,Ol.Column=fr,Ol.ColumnGroup=Po,Ol.Summary=yt;var Zu=Ol,Eh=Zu},86914:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return Ct}});var de=ae(99581),Te=ae(26390),Ee=ae(43971),Re=ae(58358),je=ae(5891),Ze=ae(59301),we={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"},it=we,Je=ae(88853),Ye=function(Bt,Cn){return Ze.createElement(Je.Z,(0,je.Z)({},Bt,{ref:Cn,icon:it}))},st=Ze.forwardRef(Ye),ht=st,Lt=ae(92310),ze=ae.n(Lt),ee=ae(35654),ne=ae(71430),fe=ae(36355),le=ae(44757),me=ae(62892),Se=ae(20648);const ke=4;function Be(qe){const{dropPosition:Bt,dropLevelOffset:Cn,prefixCls:Zn,indent:zt,direction:sn="ltr"}=qe,Mn=sn==="ltr"?"left":"right",fi=sn==="ltr"?"right":"left",Rn={[Mn]:-Cn*zt+ke,[fi]:0};switch(Bt){case-1:Rn.top=-3;break;case 1:Rn.bottom=-3;break;default:Rn.bottom=-3,Rn[Mn]=zt+ke;break}return Ze.createElement("div",{style:Rn,className:`${Zn}-drop-indicator`})}var Ne=ae(48610),$e=Ze.forwardRef((qe,Bt)=>{const{getPrefixCls:Cn,direction:Zn,virtual:zt,tree:sn}=Ze.useContext(fe.E_),{prefixCls:Mn,className:fi,showIcon:Rn=!1,showLine:li,switcherIcon:Ot,blockNode:kn=!1,children:$n,checkable:xi=!1,selectable:xn=!0,draggable:Gt,motion:jt,style:It}=qe,vt=Cn("tree",Mn),Xt=Cn(),Zt=jt!=null?jt:Object.assign(Object.assign({},(0,me.Z)(Xt)),{motionAppear:!1}),yt=Object.assign(Object.assign({},qe),{checkable:xi,selectable:xn,showIcon:Rn,motion:Zt,blockNode:kn,showLine:!!li,dropIndicatorRender:Be}),[ft,_e]=(0,Se.ZP)(vt),Pe=Ze.useMemo(()=>{if(!Gt)return!1;let Ue={};switch(typeof Gt){case"function":Ue.nodeDraggable=Gt;break;case"object":Ue=Object.assign({},Gt);break;default:break}return Ue.icon!==!1&&(Ue.icon=Ue.icon||Ze.createElement(le.Z,null)),Ue},[Gt]),be=Ue=>Ze.createElement(Ne.Z,{prefixCls:vt,switcherIcon:Ot,treeNodeProps:Ue,showLine:li});return ft(Ze.createElement(de.Z,Object.assign({itemHeight:20,ref:Bt,virtual:zt},yt,{style:Object.assign(Object.assign({},sn==null?void 0:sn.style),It),prefixCls:vt,className:ze()({[`${vt}-icon-hide`]:!Rn,[`${vt}-block-node`]:kn,[`${vt}-unselectable`]:!xn,[`${vt}-rtl`]:Zn==="rtl"},sn==null?void 0:sn.className,fi,_e),direction:Zn,checkable:xi&&Ze.createElement("span",{className:`${vt}-checkbox-inner`}),selectable:xn,switcherIcon:be,draggable:Pe}),$n))}),at;(function(qe){qe[qe.None=0]="None",qe[qe.Start=1]="Start",qe[qe.End=2]="End"})(at||(at={}));function lt(qe,Bt){function Cn(Zn){const{key:zt,children:sn}=Zn;Bt(zt,Zn)!==!1&&lt(sn||[],Bt)}qe.forEach(Cn)}function Tt(qe){let{treeData:Bt,expandedKeys:Cn,startKey:Zn,endKey:zt}=qe;const sn=[];let Mn=at.None;if(Zn&&Zn===zt)return[Zn];if(!Zn||!zt)return[];function fi(Rn){return Rn===Zn||Rn===zt}return lt(Bt,Rn=>{if(Mn===at.End)return!1;if(fi(Rn)){if(sn.push(Rn),Mn===at.None)Mn=at.Start;else if(Mn===at.Start)return Mn=at.End,!1}else Mn===at.Start&&sn.push(Rn);return Cn.includes(Rn)}),sn}function nt(qe,Bt){const Cn=(0,Te.Z)(Bt),Zn=[];return lt(qe,(zt,sn)=>{const Mn=Cn.indexOf(zt);return Mn!==-1&&(Zn.push(sn),Cn.splice(Mn,1)),!!Cn.length}),Zn}var Ut=function(qe,Bt){var Cn={};for(var Zn in qe)Object.prototype.hasOwnProperty.call(qe,Zn)&&Bt.indexOf(Zn)<0&&(Cn[Zn]=qe[Zn]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Zn=Object.getOwnPropertySymbols(qe);zt<Zn.length;zt++)Bt.indexOf(Zn[zt])<0&&Object.prototype.propertyIsEnumerable.call(qe,Zn[zt])&&(Cn[Zn[zt]]=qe[Zn[zt]]);return Cn};function kt(qe){const{isLeaf:Bt,expanded:Cn}=qe;return Bt?Ze.createElement(Ee.Z,null):Cn?Ze.createElement(Re.Z,null):Ze.createElement(ht,null)}function dn(qe){let{treeData:Bt,children:Cn}=qe;return Bt||(0,ne.zn)(Cn)}const nn=(qe,Bt)=>{var{defaultExpandAll:Cn,defaultExpandParent:Zn,defaultExpandedKeys:zt}=qe,sn=Ut(qe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Mn=Ze.useRef(),fi=Ze.useRef(),Rn=()=>{const{keyEntities:Pe}=(0,ne.I8)(dn(sn));let be;return Cn?be=Object.keys(Pe):Zn?be=(0,ee.r7)(sn.expandedKeys||zt||[],Pe):be=sn.expandedKeys||zt,be},[li,Ot]=Ze.useState(sn.selectedKeys||sn.defaultSelectedKeys||[]),[kn,$n]=Ze.useState(()=>Rn());Ze.useEffect(()=>{"selectedKeys"in sn&&Ot(sn.selectedKeys)},[sn.selectedKeys]),Ze.useEffect(()=>{"expandedKeys"in sn&&$n(sn.expandedKeys)},[sn.expandedKeys]);const xi=(Pe,be)=>{var Ue;return"expandedKeys"in sn||$n(Pe),(Ue=sn.onExpand)===null||Ue===void 0?void 0:Ue.call(sn,Pe,be)},xn=(Pe,be)=>{var Ue;const{multiple:Qe}=sn,{node:Fe,nativeEvent:gt}=be,{key:tn=""}=Fe,yn=dn(sn),bt=Object.assign(Object.assign({},be),{selected:!0}),Wt=(gt==null?void 0:gt.ctrlKey)||(gt==null?void 0:gt.metaKey),fn=gt==null?void 0:gt.shiftKey;let zn;Qe&&Wt?(zn=Pe,Mn.current=tn,fi.current=zn,bt.selectedNodes=nt(yn,zn)):Qe&&fn?(zn=Array.from(new Set([].concat((0,Te.Z)(fi.current||[]),(0,Te.Z)(Tt({treeData:yn,expandedKeys:kn,startKey:tn,endKey:Mn.current}))))),bt.selectedNodes=nt(yn,zn)):(zn=[tn],Mn.current=tn,fi.current=zn,bt.selectedNodes=nt(yn,zn)),(Ue=sn.onSelect)===null||Ue===void 0||Ue.call(sn,zn,bt),"selectedKeys"in sn||Ot(zn)},{getPrefixCls:Gt,direction:jt}=Ze.useContext(fe.E_),{prefixCls:It,className:vt,showIcon:Xt=!0,expandAction:Zt="click"}=sn,yt=Ut(sn,["prefixCls","className","showIcon","expandAction"]),ft=Gt("tree",It),_e=ze()(`${ft}-directory`,{[`${ft}-directory-rtl`]:jt==="rtl"},vt);return Ze.createElement($e,Object.assign({icon:kt,ref:Bt,blockNode:!0},yt,{showIcon:Xt,expandAction:Zt,prefixCls:ft,className:_e,expandedKeys:kn,selectedKeys:li,onSelect:xn,onExpand:xi}))};var un=Ze.forwardRef(nn);const mn=$e;mn.DirectoryTree=un,mn.TreeNode=de.O;var Ct=mn},20648:function(Ge,xe,ae){"use strict";ae.d(xe,{TM:function(){return Lt},Yk:function(){return ht}});var de=ae(9792),Te=ae(98447),Ee=ae(17313),Re=ae(8378),je=ae(37613),Ze=ae(83116);const we=new de.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),it=(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:fe,treeNodePadding:le,titleHeight:me,nodeSelectedBg:Se,nodeHoverBg:ke}=ee,Be=ee.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,Ee.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,Ee.oN)(ee)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${fe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:le,insetInlineStart:0,border:`1px solid ${ee.colorPrimary}`,opacity:0,animationName:we,animationDuration:ee.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${fe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${le}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,Ee.oN)(ee)),[`&:not(${fe}-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}`,[`${fe}:hover &`]:{opacity:.45}},[`&${fe}-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({},it(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:-le,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:Be},[`${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:ke},[`&${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)),[`${fe}.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:-le,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${fe}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${me/2}px !important`}}}}})}},st=ze=>{const{treeCls:ee,treeNodeCls:ne,treeNodePadding:fe,directoryNodeSelectedBg:le,directoryNodeSelectedColor:me}=ze;return{[`${ee}${ee}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:fe,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:le},[`${ee}-switcher`]:{color:me},[`${ee}-node-content-wrapper`]:{color:me,background:"transparent"}}}}}},ht=(ze,ee)=>{const ne=`.${ze}`,fe=`${ne}-treenode`,le=ee.paddingXS/2,me=(0,je.TS)(ee,{treeCls:ne,treeNodeCls:fe,treeNodePadding:le});return[Ye(ze,me),st(me)]},Lt=ze=>{const{controlHeightSM:ee}=ze;return{titleHeight:ee,nodeHoverBg:ze.controlItemBgHover,nodeSelectedBg:ze.controlItemBgActive}};xe.ZP=(0,Ze.Z)("Tree",(ze,ee)=>{let{prefixCls:ne}=ee;return[{[ze.componentCls]:(0,Te.C2)(`${ne}-checkbox`,ze)},ht(ne,ze),(0,Re.Z)(ze)]},ze=>{const{colorTextLightSolid:ee,colorPrimary:ne}=ze;return Object.assign(Object.assign({},Lt(ze)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:ne})})},48610:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return fe}});var de=ae(5891),Te=ae(59301),Ee={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"},Re=Ee,je=ae(88853),Ze=function(me,Se){return Te.createElement(je.Z,(0,de.Z)({},me,{ref:Se,icon:Re}))},we=Te.forwardRef(Ze),it=we,Je=ae(43971),Ye=ae(50023),st=ae(77042),ht=ae(5527),Lt=ae(92310),ze=ae.n(Lt),ee=ae(92343),fe=le=>{const{prefixCls:me,switcherIcon:Se,treeNodeProps:ke,showLine:Be}=le,{isLeaf:Ne,expanded:Ke,loading:$e}=ke;if($e)return Te.createElement(Ye.Z,{className:`${me}-switcher-loading-icon`});let at;if(Be&&typeof Be=="object"&&(at=Be.showLeafIcon),Ne){if(!Be)return null;if(typeof at!="boolean"&&at){const nt=typeof at=="function"?at(ke):at,Ut=`${me}-switcher-line-custom-icon`;return(0,ee.l$)(nt)?(0,ee.Tm)(nt,{className:ze()(nt.props.className||"",Ut)}):nt}return at?Te.createElement(Je.Z,{className:`${me}-switcher-line-icon`}):Te.createElement("span",{className:`${me}-switcher-leaf-line`})}const lt=`${me}-switcher-icon`,Tt=typeof Se=="function"?Se(ke):Se;return(0,ee.l$)(Tt)?(0,ee.Tm)(Tt,{className:ze()(Tt.props.className||"",lt)}):Tt!==void 0?Tt:Be?Ke?Te.createElement(st.Z,{className:`${me}-switcher-line-icon`}):Te.createElement(ht.Z,{className:`${me}-switcher-line-icon`}):Te.createElement(it,{className:lt})}},24645:function(Ge,xe,ae){"use strict";ae.d(xe,{default:function(){return Fn}});var de=ae(59301),Te=ae(26390),Ee=ae(92310),Re=ae.n(Ee),je=ae(5891),Ze=ae(79545),we=ae(68550),it=ae(17928),Je=ae(7711),Ye=ae(80962),st=ae(19149),ht=ae(50204),Lt=ae(80665),ze=ae(20959),ee=ae(36994);function ne($t,pn){var An="cannot ".concat($t.method," ").concat($t.action," ").concat(pn.status,"'"),gn=new Error(An);return gn.status=pn.status,gn.method=$t.method,gn.url=$t.action,gn}function fe($t){var pn=$t.responseText||$t.response;if(!pn)return pn;try{return JSON.parse(pn)}catch(An){return pn}}function le($t){var pn=new XMLHttpRequest;$t.onProgress&&pn.upload&&(pn.upload.onprogress=function(Gn){Gn.total>0&&(Gn.percent=Gn.loaded/Gn.total*100),$t.onProgress(Gn)});var An=new FormData;$t.data&&Object.keys($t.data).forEach(function(In){var Gn=$t.data[In];if(Array.isArray(Gn)){Gn.forEach(function(qn){An.append("".concat(In,"[]"),qn)});return}An.append(In,Gn)}),$t.file instanceof Blob?An.append($t.filename,$t.file,$t.file.name):An.append($t.filename,$t.file),pn.onerror=function(Gn){$t.onError(Gn)},pn.onload=function(){return pn.status<200||pn.status>=300?$t.onError(ne($t,pn),fe(pn)):$t.onSuccess(fe(pn),pn)},pn.open($t.method,$t.action,!0),$t.withCredentials&&"withCredentials"in pn&&(pn.withCredentials=!0);var gn=$t.headers||{};return gn["X-Requested-With"]!==null&&pn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(gn).forEach(function(In){gn[In]!==null&&pn.setRequestHeader(In,gn[In])}),pn.send(An),{abort:function(){pn.abort()}}}var me=+new Date,Se=0;function ke(){return"rc-upload-".concat(me,"-").concat(++Se)}var Be=ae(51395),Ne=function($t,pn){if($t&&pn){var An=Array.isArray(pn)?pn:pn.split(","),gn=$t.name||"",In=$t.type||"",Gn=In.replace(/\/.*$/,"");return An.some(function(qn){var oi=qn.trim();if(/^\*(\/\*)?$/.test(qn))return!0;if(oi.charAt(0)==="."){var Hn=gn.toLowerCase(),ui=oi.toLowerCase(),Ki=[ui];return(ui===".jpg"||ui===".jpeg")&&(Ki=[".jpg",".jpeg"]),Ki.some(function(Er){return Hn.endsWith(Er)})}return/\/\*$/.test(oi)?Gn===oi.replace(/\/.*$/,""):In===oi?!0:/^\w+$/.test(oi)?((0,Be.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(oi,"'.Skip for check.")),!0):!1})}return!0};function Ke($t,pn){var An=$t.createReader(),gn=[];function In(){An.readEntries(function(Gn){var qn=Array.prototype.slice.apply(Gn);gn=gn.concat(qn);var oi=!qn.length;oi?pn(gn):In()})}In()}var $e=function(pn,An,gn){var In=function Gn(qn,oi){qn&&(qn.path=oi||"",qn.isFile?qn.file(function(Hn){gn(Hn)&&(qn.fullPath&&!Hn.webkitRelativePath&&(Object.defineProperties(Hn,{webkitRelativePath:{writable:!0}}),Hn.webkitRelativePath=qn.fullPath.replace(/^\//,""),Object.defineProperties(Hn,{webkitRelativePath:{writable:!1}})),An([Hn]))}):qn.isDirectory&&Ke(qn,function(Hn){Hn.forEach(function(ui){Gn(ui,"".concat(oi).concat(qn.name,"/"))})}))};pn.forEach(function(Gn){In(Gn.webkitGetAsEntry())})},at=$e,lt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Tt=function($t){(0,it.Z)(An,$t);var pn=(0,Je.Z)(An);function An(){var gn;(0,Ze.Z)(this,An);for(var In=arguments.length,Gn=new Array(In),qn=0;qn<In;qn++)Gn[qn]=arguments[qn];return gn=pn.call.apply(pn,[this].concat(Gn)),gn.state={uid:ke()},gn.reqs={},gn.fileInput=void 0,gn._isMounted=void 0,gn.onChange=function(oi){var Hn=gn.props,ui=Hn.accept,Ki=Hn.directory,Er=oi.target.files,Vi=(0,Te.Z)(Er).filter(function(Ht){return!Ki||Ne(Ht,ui)});gn.uploadFiles(Vi),gn.reset()},gn.onClick=function(oi){var Hn=gn.fileInput;if(Hn){var ui=oi.target,Ki=gn.props.onClick;if(ui&&ui.tagName==="BUTTON"){var Er=Hn.parentNode;Er.focus(),ui.blur()}Hn.click(),Ki&&Ki(oi)}},gn.onKeyDown=function(oi){oi.key==="Enter"&&gn.onClick(oi)},gn.onFileDrop=function(oi){var Hn=gn.props.multiple;if(oi.preventDefault(),oi.type!=="dragover")if(gn.props.directory)at(Array.prototype.slice.call(oi.dataTransfer.items),gn.uploadFiles,function(Ki){return Ne(Ki,gn.props.accept)});else{var ui=(0,Te.Z)(oi.dataTransfer.files).filter(function(Ki){return Ne(Ki,gn.props.accept)});Hn===!1&&(ui=ui.slice(0,1)),gn.uploadFiles(ui)}},gn.uploadFiles=function(oi){var Hn=(0,Te.Z)(oi),ui=Hn.map(function(Ki){return Ki.uid=ke(),gn.processFile(Ki,Hn)});Promise.all(ui).then(function(Ki){var Er=gn.props.onBatchStart;Er==null||Er(Ki.map(function(Vi){var Ht=Vi.origin,Pi=Vi.parsedFile;return{file:Ht,parsedFile:Pi}})),Ki.filter(function(Vi){return Vi.parsedFile!==null}).forEach(function(Vi){gn.post(Vi)})})},gn.processFile=function(){var oi=(0,ze.Z)((0,ht.Z)().mark(function Hn(ui,Ki){var Er,Vi,Ht,Pi,zi,Ti,er,cr,Tr;return(0,ht.Z)().wrap(function(Fi){for(;;)switch(Fi.prev=Fi.next){case 0:if(Er=gn.props.beforeUpload,Vi=ui,!Er){Fi.next=14;break}return Fi.prev=3,Fi.next=6,Er(ui,Ki);case 6:Vi=Fi.sent,Fi.next=12;break;case 9:Fi.prev=9,Fi.t0=Fi.catch(3),Vi=!1;case 12:if(Vi!==!1){Fi.next=14;break}return Fi.abrupt("return",{origin:ui,parsedFile:null,action:null,data:null});case 14:if(Ht=gn.props.action,typeof Ht!="function"){Fi.next=21;break}return Fi.next=18,Ht(ui);case 18:Pi=Fi.sent,Fi.next=22;break;case 21:Pi=Ht;case 22:if(zi=gn.props.data,typeof zi!="function"){Fi.next=29;break}return Fi.next=26,zi(ui);case 26:Ti=Fi.sent,Fi.next=30;break;case 29:Ti=zi;case 30:return er=((0,Lt.Z)(Vi)==="object"||typeof Vi=="string")&&Vi?Vi:ui,er instanceof File?cr=er:cr=new File([er],ui.name,{type:ui.type}),Tr=cr,Tr.uid=ui.uid,Fi.abrupt("return",{origin:ui,data:Ti,parsedFile:Tr,action:Pi});case 35:case"end":return Fi.stop()}},Hn,null,[[3,9]])}));return function(Hn,ui){return oi.apply(this,arguments)}}(),gn.saveFileInput=function(oi){gn.fileInput=oi},gn}return(0,we.Z)(An,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(In){var Gn=this,qn=In.data,oi=In.origin,Hn=In.action,ui=In.parsedFile;if(this._isMounted){var Ki=this.props,Er=Ki.onStart,Vi=Ki.customRequest,Ht=Ki.name,Pi=Ki.headers,zi=Ki.withCredentials,Ti=Ki.method,er=oi.uid,cr=Vi||le,Tr={action:Hn,filename:Ht,data:qn,file:ui,headers:Pi,withCredentials:zi,method:Ti||"post",onProgress:function(Fi){var Rr=Gn.props.onProgress;Rr==null||Rr(Fi,ui)},onSuccess:function(Fi,Rr){var ln=Gn.props.onSuccess;ln==null||ln(Fi,ui,Rr),delete Gn.reqs[er]},onError:function(Fi,Rr){var ln=Gn.props.onError;ln==null||ln(Fi,Rr,ui),delete Gn.reqs[er]}};Er(oi),this.reqs[er]=cr(Tr)}}},{key:"reset",value:function(){this.setState({uid:ke()})}},{key:"abort",value:function(In){var Gn=this.reqs;if(In){var qn=In.uid?In.uid:In;Gn[qn]&&Gn[qn].abort&&Gn[qn].abort(),delete Gn[qn]}else Object.keys(Gn).forEach(function(oi){Gn[oi]&&Gn[oi].abort&&Gn[oi].abort(),delete Gn[oi]})}},{key:"render",value:function(){var In=this.props,Gn=In.component,qn=In.prefixCls,oi=In.className,Hn=In.disabled,ui=In.id,Ki=In.style,Er=In.multiple,Vi=In.accept,Ht=In.capture,Pi=In.children,zi=In.directory,Ti=In.openFileDialogOnClick,er=In.onMouseEnter,cr=In.onMouseLeave,Tr=(0,st.Z)(In,lt),Qi=Re()((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},qn,!0),"".concat(qn,"-disabled"),Hn),oi,oi)),Fi=zi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Rr=Hn?{}:{onClick:Ti?this.onClick:function(){},onKeyDown:Ti?this.onKeyDown:function(){},onMouseEnter:er,onMouseLeave:cr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return de.createElement(Gn,(0,je.Z)({},Rr,{className:Qi,role:"button",style:Ki}),de.createElement("input",(0,je.Z)({},(0,ee.Z)(Tr,{aria:!0,data:!0}),{id:ui,disabled:Hn,type:"file",ref:this.saveFileInput,onClick:function(Ur){return Ur.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Vi},Fi,{multiple:Er,onChange:this.onChange},Ht!=null?{capture:Ht}:{})),Pi)}}]),An}(de.Component),nt=Tt;function Ut(){}var kt=function($t){(0,it.Z)(An,$t);var pn=(0,Je.Z)(An);function An(){var gn;(0,Ze.Z)(this,An);for(var In=arguments.length,Gn=new Array(In),qn=0;qn<In;qn++)Gn[qn]=arguments[qn];return gn=pn.call.apply(pn,[this].concat(Gn)),gn.uploader=void 0,gn.saveUploader=function(oi){gn.uploader=oi},gn}return(0,we.Z)(An,[{key:"abort",value:function(In){this.uploader.abort(In)}},{key:"render",value:function(){return de.createElement(nt,(0,je.Z)({},this.props,{ref:this.saveUploader}))}}]),An}(de.Component);kt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ut,onError:Ut,onSuccess:Ut,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var dn=kt,nn=dn,qt=ae(35788),un=ae(4676),mn=ae(36355),Ct=ae(1684),qe=ae(9763),Bt=ae(31724),Cn={icon:function(pn,An){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:An}},{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:pn}}]}},name:"file",theme:"twotone"},Zn=Cn,zt=ae(88853),sn=function(pn,An){return de.createElement(zt.Z,(0,je.Z)({},pn,{ref:An,icon:Zn}))},Mn=de.forwardRef(sn),fi=Mn,Rn=ae(50023),li={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"},Ot=li,kn=function(pn,An){return de.createElement(zt.Z,(0,je.Z)({},pn,{ref:An,icon:Ot}))},$n=de.forwardRef(kn),xi=$n,xn={icon:function(pn,An){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:pn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:An}},{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:An}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:An}},{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:pn}}]}},name:"picture",theme:"twotone"},Gt=xn,jt=function(pn,An){return de.createElement(zt.Z,(0,je.Z)({},pn,{ref:An,icon:Gt}))},It=de.forwardRef(jt),vt=It,Xt=ae(43469),Zt=ae(56762),yt=ae(62892),ft=ae(92343),_e=ae(3113);function Pe($t){return Object.assign(Object.assign({},$t),{lastModified:$t.lastModified,lastModifiedDate:$t.lastModifiedDate,name:$t.name,size:$t.size,type:$t.type,uid:$t.uid,percent:0,originFileObj:$t})}function be($t,pn){const An=(0,Te.Z)(pn),gn=An.findIndex(In=>{let{uid:Gn}=In;return Gn===$t.uid});return gn===-1?An.push($t):An[gn]=$t,An}function Ue($t,pn){const An=$t.uid!==void 0?"uid":"name";return pn.filter(gn=>gn[An]===$t[An])[0]}function Qe($t,pn){const An=$t.uid!==void 0?"uid":"name",gn=pn.filter(In=>In[An]!==$t[An]);return gn.length===pn.length?null:gn}const Fe=function(){const pn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),gn=pn[pn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(gn)||[""])[0]},gt=$t=>$t.indexOf("image/")===0,tn=$t=>{if($t.type&&!$t.thumbUrl)return gt($t.type);const pn=$t.thumbUrl||$t.url||"",An=Fe(pn);return/^data:image\//.test(pn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(An)?!0:!(/^data:/.test(pn)||An)},yn=200;function bt($t){return new Promise(pn=>{if(!$t.type||!gt($t.type)){pn("");return}const An=document.createElement("canvas");An.width=yn,An.height=yn,An.style.cssText=`position: fixed; left: 0; top: 0; width: ${yn}px; height: ${yn}px; z-index: 9999; display: none;`,document.body.appendChild(An);const gn=An.getContext("2d"),In=new Image;if(In.onload=()=>{const{width:Gn,height:qn}=In;let oi=yn,Hn=yn,ui=0,Ki=0;Gn>qn?(Hn=qn*(yn/Gn),Ki=-(Hn-oi)/2):(oi=Gn*(yn/qn),ui=-(oi-Hn)/2),gn.drawImage(In,ui,Ki,oi,Hn);const Er=An.toDataURL();document.body.removeChild(An),window.URL.revokeObjectURL(In.src),pn(Er)},In.crossOrigin="anonymous",$t.type.startsWith("image/svg+xml")){const Gn=new FileReader;Gn.onload=()=>{Gn.result&&(In.src=Gn.result)},Gn.readAsDataURL($t)}else if($t.type.startsWith("image/gif")){const Gn=new FileReader;Gn.onload=()=>{Gn.result&&pn(Gn.result)},Gn.readAsDataURL($t)}else In.src=window.URL.createObjectURL($t)})}var Wt=ae(72295),fn=ae(24566),zn=ae(30631),ni=ae(93948),di=ae(6848),hi=de.forwardRef(($t,pn)=>{let{prefixCls:An,className:gn,style:In,locale:Gn,listType:qn,file:oi,items:Hn,progress:ui,iconRender:Ki,actionIconRender:Er,itemRender:Vi,isImgUrl:Ht,showPreviewIcon:Pi,showRemoveIcon:zi,showDownloadIcon:Ti,previewIcon:er,removeIcon:cr,downloadIcon:Tr,onPreview:Qi,onDownload:Fi,onClose:Rr}=$t;var ln,Ur;const{status:bn}=oi,[Mr,Ho]=de.useState(bn);de.useEffect(()=>{bn!=="removed"&&Ho(bn)},[bn]);const[Fr,vo]=de.useState(!1);de.useEffect(()=>{const tr=setTimeout(()=>{vo(!0)},300);return()=>{clearTimeout(tr)}},[]);const Ro=Ki(oi);let ir=de.createElement("div",{className:`${An}-icon`},Ro);if(qn==="picture"||qn==="picture-card"||qn==="picture-circle")if(Mr==="uploading"||!oi.thumbUrl&&!oi.url){const tr=Re()(`${An}-list-item-thumbnail`,{[`${An}-list-item-file`]:Mr!=="uploading"});ir=de.createElement("div",{className:tr},Ro)}else{const tr=Ht!=null&&Ht(oi)?de.createElement("img",{src:oi.thumbUrl||oi.url,alt:oi.name,className:`${An}-list-item-image`,crossOrigin:oi.crossOrigin}):Ro,Zi=Re()(`${An}-list-item-thumbnail`,{[`${An}-list-item-file`]:Ht&&!Ht(oi)});ir=de.createElement("a",{className:Zi,onClick:Pr=>Qi(oi,Pr),href:oi.url||oi.thumbUrl,target:"_blank",rel:"noopener noreferrer"},tr)}const qi=Re()(`${An}-list-item`,`${An}-list-item-${Mr}`),Vr=typeof oi.linkProps=="string"?JSON.parse(oi.linkProps):oi.linkProps,lo=zi?Er((typeof cr=="function"?cr(oi):cr)||de.createElement(Wt.Z,null),()=>Rr(oi),An,Gn.removeFile):null,ki=Ti&&Mr==="done"?Er((typeof Tr=="function"?Tr(oi):Tr)||de.createElement(fn.Z,null),()=>Fi(oi),An,Gn.downloadFile):null,ot=qn!=="picture-card"&&qn!=="picture-circle"&&de.createElement("span",{key:"download-delete",className:Re()(`${An}-list-item-actions`,{picture:qn==="picture"})},ki,lo),Gr=Re()(`${An}-list-item-name`),ta=oi.url?[de.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Gr,title:oi.name},Vr,{href:oi.url,onClick:tr=>Qi(oi,tr)}),oi.name),ot]:[de.createElement("span",{key:"view",className:Gr,onClick:tr=>Qi(oi,tr),title:oi.name},oi.name),ot],Hr={pointerEvents:"none",opacity:.5},Uo=Pi?de.createElement("a",{href:oi.url||oi.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:oi.url||oi.thumbUrl?void 0:Hr,onClick:tr=>Qi(oi,tr),title:Gn.previewFile},typeof er=="function"?er(oi):er||de.createElement(zn.Z,null)):null,kr=(qn==="picture-card"||qn==="picture-circle")&&Mr!=="uploading"&&de.createElement("span",{className:`${An}-list-item-actions`},Uo,Mr==="done"&&ki,lo),{getPrefixCls:fr}=de.useContext(mn.E_),no=fr(),Po=de.createElement("div",{className:qi},ir,ta,kr,Fr&&de.createElement(Xt.default,{motionName:`${no}-fade`,visible:Mr==="uploading",motionDeadline:2e3},tr=>{let{className:Zi}=tr;const Pr="percent"in oi?de.createElement(ni.Z,Object.assign({},ui,{type:"line",percent:oi.percent,"aria-label":oi["aria-label"],"aria-labelledby":oi["aria-labelledby"]})):null;return de.createElement("div",{className:Re()(`${An}-list-item-progress`,Zi)},Pr)})),Wr=oi.response&&typeof oi.response=="string"?oi.response:((ln=oi.error)===null||ln===void 0?void 0:ln.statusText)||((Ur=oi.error)===null||Ur===void 0?void 0:Ur.message)||Gn.uploadError,na=Mr==="error"?de.createElement(di.Z,{title:Wr,getPopupContainer:tr=>tr.parentNode},Po):Po;return de.createElement("div",{className:Re()(`${An}-list-item-container`,gn),style:In,ref:pn},Vi?Vi(na,oi,Hn,{download:Fi.bind(null,oi),preview:Qi.bind(null,oi),remove:Rr.bind(null,oi)}):na)});const Li=($t,pn)=>{const{listType:An="text",previewFile:gn=bt,onPreview:In,onDownload:Gn,onRemove:qn,locale:oi,iconRender:Hn,isImageUrl:ui=tn,prefixCls:Ki,items:Er=[],showPreviewIcon:Vi=!0,showRemoveIcon:Ht=!0,showDownloadIcon:Pi=!1,removeIcon:zi,previewIcon:Ti,downloadIcon:er,progress:cr={size:[-1,2],showInfo:!1},appendAction:Tr,appendActionVisible:Qi=!0,itemRender:Fi,disabled:Rr}=$t,ln=(0,Zt.Z)(),[Ur,bn]=de.useState(!1);de.useEffect(()=>{An!=="picture"&&An!=="picture-card"&&An!=="picture-circle"||(Er||[]).forEach(Hr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Hr.originFileObj instanceof File||Hr.originFileObj instanceof Blob)||Hr.thumbUrl!==void 0||(Hr.thumbUrl="",gn&&gn(Hr.originFileObj).then(Uo=>{Hr.thumbUrl=Uo||"",ln()}))})},[An,Er,gn]),de.useEffect(()=>{bn(!0)},[]);const Mr=(Hr,Uo)=>{if(In)return Uo==null||Uo.preventDefault(),In(Hr)},Ho=Hr=>{typeof Gn=="function"?Gn(Hr):Hr.url&&window.open(Hr.url)},Fr=Hr=>{qn==null||qn(Hr)},vo=Hr=>{if(Hn)return Hn(Hr,An);const Uo=Hr.status==="uploading",kr=ui&&ui(Hr)?de.createElement(vt,null):de.createElement(fi,null);let fr=Uo?de.createElement(Rn.Z,null):de.createElement(xi,null);return An==="picture"?fr=Uo?de.createElement(Rn.Z,null):kr:(An==="picture-card"||An==="picture-circle")&&(fr=Uo?oi.uploading:kr),fr},Ro=(Hr,Uo,kr,fr)=>{const no={type:"text",size:"small",title:fr,onClick:Po=>{Uo(),(0,ft.l$)(Hr)&&Hr.props.onClick&&Hr.props.onClick(Po)},className:`${kr}-list-item-action`,disabled:Rr};if((0,ft.l$)(Hr)){const Po=(0,ft.Tm)(Hr,Object.assign(Object.assign({},Hr.props),{onClick:()=>{}}));return de.createElement(_e.ZP,Object.assign({},no,{icon:Po}))}return de.createElement(_e.ZP,Object.assign({},no),de.createElement("span",null,Hr))};de.useImperativeHandle(pn,()=>({handlePreview:Mr,handleDownload:Ho}));const{getPrefixCls:ir}=de.useContext(mn.E_),qi=ir("upload",Ki),Vr=ir(),lo=Re()(`${qi}-list`,`${qi}-list-${An}`),ki=(0,Te.Z)(Er.map(Hr=>({key:Hr.uid,file:Hr})));let Gr={motionDeadline:2e3,motionName:`${qi}-${An==="picture-card"||An==="picture-circle"?"animate-inline":"animate"}`,keys:ki,motionAppear:Ur};const ta=de.useMemo(()=>{const Hr=Object.assign({},(0,yt.Z)(Vr));return delete Hr.onAppearEnd,delete Hr.onEnterEnd,delete Hr.onLeaveEnd,Hr},[Vr]);return An!=="picture-card"&&An!=="picture-circle"&&(Gr=Object.assign(Object.assign({},ta),Gr)),de.createElement("div",{className:lo},de.createElement(Xt.CSSMotionList,Object.assign({},Gr,{component:!1}),Hr=>{let{key:Uo,file:kr,className:fr,style:no}=Hr;return de.createElement(hi,{key:Uo,locale:oi,prefixCls:qi,className:fr,style:no,file:kr,items:Er,progress:cr,listType:An,isImgUrl:ui,showPreviewIcon:Vi,showRemoveIcon:Ht,showDownloadIcon:Pi,removeIcon:zi,previewIcon:Ti,downloadIcon:er,iconRender:vo,actionIconRender:Ro,itemRender:Fi,onPreview:Mr,onDownload:Ho,onClose:Fr})}),Tr&&de.createElement(Xt.default,Object.assign({},Gr,{visible:Qi,forceRender:!0}),Hr=>{let{className:Uo,style:kr}=Hr;return(0,ft.Tm)(Tr,fr=>({className:Re()(fr.className,Uo),style:Object.assign(Object.assign(Object.assign({},kr),{pointerEvents:Uo?"none":void 0}),fr.style)}))}))};var Ji=de.forwardRef(Li),Xi=ae(17313),dr=ae(8378),Ir=ae(83116),Wi=ae(37613),_i=$t=>{const{componentCls:pn,iconCls:An}=$t;return{[`${pn}-wrapper`]:{[`${pn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$t.colorFillAlter,border:`${$t.lineWidth}px dashed ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,cursor:"pointer",transition:`border-color ${$t.motionDurationSlow}`,[pn]:{padding:`${$t.padding}px 0`},[`${pn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pn}-disabled):hover`]:{borderColor:$t.colorPrimaryHover},[`p${pn}-drag-icon`]:{marginBottom:$t.margin,[An]:{color:$t.colorPrimary,fontSize:$t.uploadThumbnailSize}},[`p${pn}-text`]:{margin:`0 0 ${$t.marginXXS}px`,color:$t.colorTextHeading,fontSize:$t.fontSizeLG},[`p${pn}-hint`]:{color:$t.colorTextDescription,fontSize:$t.fontSize},[`&${pn}-disabled`]:{cursor:"not-allowed",[`p${pn}-drag-icon ${An},
p${pn}-text,
p${pn}-hint
`]:{color:$t.colorTextDisabled}}}}}},jr=$t=>{const{componentCls:pn,antCls:An,iconCls:gn,fontSize:In,lineHeight:Gn}=$t,qn=`${pn}-list-item`,oi=`${qn}-actions`,Hn=`${qn}-action`,ui=Math.round(In*Gn);return{[`${pn}-wrapper`]:{[`${pn}-list`]:Object.assign(Object.assign({},(0,Xi.dF)()),{lineHeight:$t.lineHeight,[qn]:{position:"relative",height:$t.lineHeight*In,marginTop:$t.marginXS,fontSize:In,display:"flex",alignItems:"center",transition:`background-color ${$t.motionDurationSlow}`,"&:hover":{backgroundColor:$t.controlItemBgHover},[`${qn}-name`]:Object.assign(Object.assign({},Xi.vS),{padding:`0 ${$t.paddingXS}px`,lineHeight:Gn,flex:"auto",transition:`all ${$t.motionDurationSlow}`}),[oi]:{[Hn]:{opacity:0},[`${Hn}${An}-btn-sm`]:{height:ui,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Hn}:focus-visible,
&.picture ${Hn}
`]:{opacity:1},[gn]:{color:$t.actionsColor,transition:`all ${$t.motionDurationSlow}`},[`&:hover ${gn}`]:{color:$t.colorText}},[`${pn}-icon ${gn}`]:{color:$t.colorTextDescription,fontSize:In},[`${qn}-progress`]:{position:"absolute",bottom:-$t.uploadProgressOffset,width:"100%",paddingInlineStart:In+$t.paddingXS,fontSize:In,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${qn}:hover ${Hn}`]:{opacity:1,color:$t.colorText},[`${qn}-error`]:{color:$t.colorError,[`${qn}-name, ${pn}-icon ${gn}`]:{color:$t.colorError},[oi]:{[`${gn}, ${gn}:hover`]:{color:$t.colorError},[Hn]:{opacity:1}}},[`${pn}-list-item-container`]:{transition:`opacity ${$t.motionDurationSlow}, height ${$t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},hr=ae(9792),oo=ae(1950);const Oo=new hr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Do=new hr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var so=$t=>{const{componentCls:pn}=$t,An=`${pn}-animate-inline`;return[{[`${pn}-wrapper`]:{[`${An}-appear, ${An}-enter, ${An}-leave`]:{animationDuration:$t.motionDurationSlow,animationTimingFunction:$t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${An}-appear, ${An}-enter`]:{animationName:Oo},[`${An}-leave`]:{animationName:Do}}},{[`${pn}-wrapper`]:(0,oo.J$)($t)},Oo,Do]},En=ae(93398),Tn=ae(64993);const on=$t=>{const{componentCls:pn,iconCls:An,uploadThumbnailSize:gn,uploadProgressOffset:In}=$t,Gn=`${pn}-list`,qn=`${Gn}-item`;return{[`${pn}-wrapper`]:{[`
${Gn}${Gn}-picture,
${Gn}${Gn}-picture-card,
${Gn}${Gn}-picture-circle
`]:{[qn]:{position:"relative",height:gn+$t.lineWidth*2+$t.paddingXS*2,padding:$t.paddingXS,border:`${$t.lineWidth}px ${$t.lineType} ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,"&:hover":{background:"transparent"},[`${qn}-thumbnail`]:Object.assign(Object.assign({},Xi.vS),{width:gn,height:gn,lineHeight:`${gn+$t.paddingSM}px`,textAlign:"center",flex:"none",[An]:{fontSize:$t.fontSizeHeading2,color:$t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${qn}-progress`]:{bottom:In,width:`calc(100% - ${$t.paddingSM*2}px)`,marginTop:0,paddingInlineStart:gn+$t.paddingXS}},[`${qn}-error`]:{borderColor:$t.colorError,[`${qn}-thumbnail ${An}`]:{[`svg path[fill='${En.blue[0]}']`]:{fill:$t.colorErrorBg},[`svg path[fill='${En.blue.primary}']`]:{fill:$t.colorError}}},[`${qn}-uploading`]:{borderStyle:"dashed",[`${qn}-name`]:{marginBottom:In}}},[`${Gn}${Gn}-picture-circle ${qn}`]:{[`&, &::before, ${qn}-thumbnail`]:{borderRadius:"50%"}}}}},At=$t=>{const{componentCls:pn,iconCls:An,fontSizeLG:gn,colorTextLightSolid:In}=$t,Gn=`${pn}-list`,qn=`${Gn}-item`,oi=$t.uploadPicCardSize;return{[`
${pn}-wrapper${pn}-picture-card-wrapper,
${pn}-wrapper${pn}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Xi.dF)()),{display:"inline-block",width:"100%",[`${pn}${pn}-select`]:{width:oi,height:oi,marginInlineEnd:$t.marginXS,marginBottom:$t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:$t.colorFillAlter,border:`${$t.lineWidth}px dashed ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,cursor:"pointer",transition:`border-color ${$t.motionDurationSlow}`,[`> ${pn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pn}-disabled):hover`]:{borderColor:$t.colorPrimary}},[`${Gn}${Gn}-picture-card, ${Gn}${Gn}-picture-circle`]:{[`${Gn}-item-container`]:{display:"inline-block",width:oi,height:oi,marginBlock:`0 ${$t.marginXS}px`,marginInline:`0 ${$t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[qn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$t.paddingXS*2}px)`,height:`calc(100% - ${$t.paddingXS*2}px)`,backgroundColor:$t.colorBgMask,opacity:0,transition:`all ${$t.motionDurationSlow}`,content:'" "'}},[`${qn}:hover`]:{[`&::before, ${qn}-actions`]:{opacity:1}},[`${qn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$t.motionDurationSlow}`,[`${An}-eye, ${An}-download, ${An}-delete`]:{zIndex:10,width:gn,margin:`0 ${$t.marginXXS}px`,fontSize:gn,cursor:"pointer",transition:`all ${$t.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${qn}-actions, ${qn}-actions:hover`]:{[`${An}-eye, ${An}-download, ${An}-delete`]:{color:new Tn.C(In).setAlpha(.65).toRgbString(),"&:hover":{color:In}}},[`${qn}-thumbnail, ${qn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${qn}-name`]:{display:"none",textAlign:"center"},[`${qn}-file + ${qn}-name`]:{position:"absolute",bottom:$t.margin,display:"block",width:`calc(100% - ${$t.paddingXS*2}px)`},[`${qn}-uploading`]:{[`&${qn}`]:{backgroundColor:$t.colorFillAlter},[`&::before, ${An}-eye, ${An}-download, ${An}-delete`]:{display:"none"}},[`${qn}-progress`]:{bottom:$t.marginXL,width:`calc(100% - ${$t.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pn}-wrapper${pn}-picture-circle-wrapper`]:{[`${pn}${pn}-select`]:{borderRadius:"50%"}}}};var Qn=$t=>{const{componentCls:pn}=$t;return{[`${pn}-rtl`]:{direction:"rtl"}}};const Kt=$t=>{const{componentCls:pn,colorTextDisabled:An}=$t;return{[`${pn}-wrapper`]:Object.assign(Object.assign({},(0,Xi.Wf)($t)),{[pn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pn}-select`]:{display:"inline-block"},[`${pn}-disabled`]:{color:An,cursor:"not-allowed"}})}};var Et=(0,Ir.Z)("Upload",$t=>{const{fontSizeHeading3:pn,fontSize:An,lineHeight:gn,lineWidth:In,controlHeightLG:Gn}=$t,qn=Math.round(An*gn),oi=(0,Wi.TS)($t,{uploadThumbnailSize:pn*2,uploadProgressOffset:qn/2+In,uploadPicCardSize:Gn*2.55});return[Kt(oi),_i(oi),on(oi),At(oi),jr(oi),so(oi),Qn(oi),(0,dr.Z)(oi)]},$t=>({actionsColor:$t.colorTextDescription})),Ln=function($t,pn,An,gn){function In(Gn){return Gn instanceof An?Gn:new An(function(qn){qn(Gn)})}return new(An||(An=Promise))(function(Gn,qn){function oi(Ki){try{ui(gn.next(Ki))}catch(Er){qn(Er)}}function Hn(Ki){try{ui(gn.throw(Ki))}catch(Er){qn(Er)}}function ui(Ki){Ki.done?Gn(Ki.value):In(Ki.value).then(oi,Hn)}ui((gn=gn.apply($t,pn||[])).next())})};const Jn=`__LIST_IGNORE_${Date.now()}__`,Ci=($t,pn)=>{const{fileList:An,defaultFileList:gn,onRemove:In,showUploadList:Gn=!0,listType:qn="text",onPreview:oi,onDownload:Hn,onChange:ui,onDrop:Ki,previewFile:Er,disabled:Vi,locale:Ht,iconRender:Pi,isImageUrl:zi,progress:Ti,prefixCls:er,className:cr,type:Tr="select",children:Qi,style:Fi,itemRender:Rr,maxCount:ln,data:Ur={},multiple:bn=!1,action:Mr="",accept:Ho="",supportServerRender:Fr=!0,rootClassName:vo}=$t,Ro=de.useContext(Ct.Z),ir=Vi!=null?Vi:Ro,[qi,Vr]=(0,qt.Z)(gn||[],{value:An,postState:ho=>ho!=null?ho:[]}),[lo,ki]=de.useState("drop"),ot=de.useRef(null);de.useMemo(()=>{const ho=Date.now();(An||[]).forEach((ia,ja)=>{!ia.uid&&!Object.isFrozen(ia)&&(ia.uid=`__AUTO__${ho}_${ja}__`)})},[An]);const Gr=(ho,ia,ja)=>{let Ko=(0,Te.Z)(ia),ao=!1;ln===1?Ko=Ko.slice(-1):ln&&(ao=Ko.length>ln,Ko=Ko.slice(0,ln)),(0,un.flushSync)(()=>{Vr(Ko)});const Jo={file:ho,fileList:Ko};ja&&(Jo.event=ja),(!ao||Ko.some(xs=>xs.uid===ho.uid))&&(0,un.flushSync)(()=>{ui==null||ui(Jo)})},ta=(ho,ia)=>Ln(void 0,void 0,void 0,function*(){const{beforeUpload:ja,transformFile:Ko}=$t;let ao=ho;if(ja){const Jo=yield ja(ho,ia);if(Jo===!1)return!1;if(delete ho[Jn],Jo===Jn)return Object.defineProperty(ho,Jn,{value:!0,configurable:!0}),!1;typeof Jo=="object"&&Jo&&(ao=Jo)}return Ko&&(ao=yield Ko(ao)),ao}),Hr=ho=>{const ia=ho.filter(ao=>!ao.file[Jn]);if(!ia.length)return;const ja=ia.map(ao=>Pe(ao.file));let Ko=(0,Te.Z)(qi);ja.forEach(ao=>{Ko=be(ao,Ko)}),ja.forEach((ao,Jo)=>{let xs=ao;if(ia[Jo].parsedFile)ao.status="uploading";else{const{originFileObj:Kr}=ao;let To;try{To=new File([Kr],Kr.name,{type:Kr.type})}catch(bo){To=new Blob([Kr],{type:Kr.type}),To.name=Kr.name,To.lastModifiedDate=new Date,To.lastModified=new Date().getTime()}To.uid=ao.uid,xs=To}Gr(xs,Ko)})},Uo=(ho,ia,ja)=>{try{typeof ho=="string"&&(ho=JSON.parse(ho))}catch(Jo){}if(!Ue(ia,qi))return;const Ko=Pe(ia);Ko.status="done",Ko.percent=100,Ko.response=ho,Ko.xhr=ja;const ao=be(Ko,qi);Gr(Ko,ao)},kr=(ho,ia)=>{if(!Ue(ia,qi))return;const ja=Pe(ia);ja.status="uploading",ja.percent=ho.percent;const Ko=be(ja,qi);Gr(ja,Ko,ho)},fr=(ho,ia,ja)=>{if(!Ue(ja,qi))return;const Ko=Pe(ja);Ko.error=ho,Ko.response=ia,Ko.status="error";const ao=be(Ko,qi);Gr(Ko,ao)},no=ho=>{let ia;Promise.resolve(typeof In=="function"?In(ho):In).then(ja=>{var Ko;if(ja===!1)return;const ao=Qe(ho,qi);ao&&(ia=Object.assign(Object.assign({},ho),{status:"removed"}),qi==null||qi.forEach(Jo=>{const xs=ia.uid!==void 0?"uid":"name";Jo[xs]===ia[xs]&&!Object.isFrozen(Jo)&&(Jo.status="removed")}),(Ko=ot.current)===null||Ko===void 0||Ko.abort(ia),Gr(ia,ao))})},Po=ho=>{ki(ho.type),ho.type==="drop"&&(Ki==null||Ki(ho))};de.useImperativeHandle(pn,()=>({onBatchStart:Hr,onSuccess:Uo,onProgress:kr,onError:fr,fileList:qi,upload:ot.current}));const{getPrefixCls:Wr,direction:na,upload:tr}=de.useContext(mn.E_),Zi=Wr("upload",er),Pr=Object.assign(Object.assign({onBatchStart:Hr,onError:fr,onProgress:kr,onSuccess:Uo},$t),{data:Ur,multiple:bn,action:Mr,accept:Ho,supportServerRender:Fr,prefixCls:Zi,disabled:ir,beforeUpload:ta,onChange:void 0});delete Pr.className,delete Pr.style,(!Qi||ir)&&delete Pr.id;const[ai,xo]=Et(Zi),[_o]=(0,qe.Z)("Upload",Bt.Z.Upload),{showRemoveIcon:Wo,showPreviewIcon:ea,showDownloadIcon:ka,removeIcon:Ja,previewIcon:cs,downloadIcon:Ts}=typeof Gn=="boolean"?{}:Gn,al=(ho,ia)=>Gn?de.createElement(Ji,{prefixCls:Zi,listType:qn,items:qi,previewFile:Er,onPreview:oi,onDownload:Hn,onRemove:no,showRemoveIcon:!ir&&Wo,showPreviewIcon:ea,showDownloadIcon:ka,removeIcon:Ja,previewIcon:cs,downloadIcon:Ts,iconRender:Pi,locale:Object.assign(Object.assign({},_o),Ht),isImageUrl:zi,progress:Ti,appendAction:ho,appendActionVisible:ia,itemRender:Rr,disabled:ir}):ho,Js=Re()(`${Zi}-wrapper`,cr,vo,xo,tr==null?void 0:tr.className,{[`${Zi}-rtl`]:na==="rtl",[`${Zi}-picture-card-wrapper`]:qn==="picture-card",[`${Zi}-picture-circle-wrapper`]:qn==="picture-circle"}),vn=Object.assign(Object.assign({},tr==null?void 0:tr.style),Fi);if(Tr==="drag"){const ho=Re()(xo,Zi,`${Zi}-drag`,{[`${Zi}-drag-uploading`]:qi.some(ia=>ia.status==="uploading"),[`${Zi}-drag-hover`]:lo==="dragover",[`${Zi}-disabled`]:ir,[`${Zi}-rtl`]:na==="rtl"});return ai(de.createElement("span",{className:Js},de.createElement("div",{className:ho,style:vn,onDrop:Po,onDragOver:Po,onDragLeave:Po},de.createElement(nn,Object.assign({},Pr,{ref:ot,className:`${Zi}-btn`}),de.createElement("div",{className:`${Zi}-drag-container`},Qi))),al()))}const Ms=Re()(Zi,`${Zi}-select`,{[`${Zi}-disabled`]:ir}),gu=(ho=>de.createElement("div",{className:Ms,style:ho},de.createElement(nn,Object.assign({},Pr,{ref:ot}))))(Qi?void 0:{display:"none"});return ai(qn==="picture-card"||qn==="picture-circle"?de.createElement("span",{className:Js},al(gu,!!Qi)):de.createElement("span",{className:Js},gu,al()))};var Rt=de.forwardRef(Ci),Yn=function($t,pn){var An={};for(var gn in $t)Object.prototype.hasOwnProperty.call($t,gn)&&pn.indexOf(gn)<0&&(An[gn]=$t[gn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,gn=Object.getOwnPropertySymbols($t);In<gn.length;In++)pn.indexOf(gn[In])<0&&Object.prototype.propertyIsEnumerable.call($t,gn[In])&&(An[gn[In]]=$t[gn[In]]);return An},Oi=de.forwardRef(($t,pn)=>{var{style:An,height:gn}=$t,In=Yn($t,["style","height"]);return de.createElement(Rt,Object.assign({ref:pn},In,{type:"drag",style:Object.assign(Object.assign({},An),{height:gn})}))});const Yt=Rt;Yt.Dragger=Oi,Yt.LIST_IGNORE=Jn;var Fn=Yt},99498:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){de.defineOption("placeholder","",function(it,Je,Ye){var st=Ye&&Ye!=de.Init;if(Je&&!st)it.on("blur",je),it.on("change",Ze),it.on("swapDoc",Ze),de.on(it.getInputField(),"compositionupdate",it.state.placeholderCompose=function(){Re(it)}),Ze(it);else if(!Je&&st){it.off("blur",je),it.off("change",Ze),it.off("swapDoc",Ze),de.off(it.getInputField(),"compositionupdate",it.state.placeholderCompose),Te(it);var ht=it.getWrapperElement();ht.className=ht.className.replace(" CodeMirror-empty","")}Je&&!it.hasFocus()&&je(it)});function Te(it){it.state.placeholder&&(it.state.placeholder.parentNode.removeChild(it.state.placeholder),it.state.placeholder=null)}function Ee(it){Te(it);var Je=it.state.placeholder=document.createElement("pre");Je.style.cssText="height: 0; overflow: visible",Je.style.direction=it.getOption("direction"),Je.className="CodeMirror-placeholder CodeMirror-line-like";var Ye=it.getOption("placeholder");typeof Ye=="string"&&(Ye=document.createTextNode(Ye)),Je.appendChild(Ye),it.display.lineSpace.insertBefore(Je,it.display.lineSpace.firstChild)}function Re(it){setTimeout(function(){var Je=!1,Ye=it.getInputField();Ye.nodeName=="TEXTAREA"?Je=!Ye.value:it.lineCount()==1&&(Je=!/[^\u200b]/.test(Ye.querySelector(".CodeMirror-line").textContent)),Je?Ee(it):Te(it)},20)}function je(it){we(it)&&Ee(it)}function Ze(it){var Je=it.getWrapperElement(),Ye=we(it);Je.className=Je.className.replace(" CodeMirror-empty","")+(Ye?" CodeMirror-empty":""),Ye?Ee(it):Te(it)}function we(it){return it.lineCount()===1&&it.getLine(0)===""}})},25717:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){var Te={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ee=de.Pos;de.defineOption("autoCloseBrackets",!1,function(ee,ne,fe){fe&&fe!=de.Init&&(ee.removeKeyMap(je),ee.state.closeBrackets=null),ne&&(Ze(Re(ne,"pairs")),ee.state.closeBrackets=ne,ee.addKeyMap(je))});function Re(ee,ne){return ne=="pairs"&&typeof ee=="string"?ee:typeof ee=="object"&&ee[ne]!=null?ee[ne]:Te[ne]}var je={Backspace:Je,Enter:Ye};function Ze(ee){for(var ne=0;ne<ee.length;ne++){var fe=ee.charAt(ne),le="'"+fe+"'";je[le]||(je[le]=we(fe))}}Ze(Te.pairs+"`");function we(ee){return function(ne){return ht(ne,ee)}}function it(ee){var ne=ee.state.closeBrackets;if(!ne||ne.override)return ne;var fe=ee.getModeAt(ee.getCursor());return fe.closeBrackets||ne}function Je(ee){var ne=it(ee);if(!ne||ee.getOption("disableInput"))return de.Pass;for(var fe=Re(ne,"pairs"),le=ee.listSelections(),me=0;me<le.length;me++){if(!le[me].empty())return de.Pass;var Se=Lt(ee,le[me].head);if(!Se||fe.indexOf(Se)%2!=0)return de.Pass}for(var me=le.length-1;me>=0;me--){var ke=le[me].head;ee.replaceRange("",Ee(ke.line,ke.ch-1),Ee(ke.line,ke.ch+1),"+delete")}}function Ye(ee){var ne=it(ee),fe=ne&&Re(ne,"explode");if(!fe||ee.getOption("disableInput"))return de.Pass;for(var le=ee.listSelections(),me=0;me<le.length;me++){if(!le[me].empty())return de.Pass;var Se=Lt(ee,le[me].head);if(!Se||fe.indexOf(Se)%2!=0)return de.Pass}ee.operation(function(){var ke=ee.lineSeparator()||`
`;ee.replaceSelection(ke+ke,null),ee.execCommand("goCharLeft"),le=ee.listSelections();for(var Be=0;Be<le.length;Be++){var Ne=le[Be].head.line;ee.indentLine(Ne,null,!0),ee.indentLine(Ne+1,null,!0)}})}function st(ee){var ne=de.cmpPos(ee.anchor,ee.head)>0;return{anchor:new Ee(ee.anchor.line,ee.anchor.ch+(ne?-1:1)),head:new Ee(ee.head.line,ee.head.ch+(ne?1:-1))}}function ht(ee,ne){var fe=it(ee);if(!fe||ee.getOption("disableInput"))return de.Pass;var le=Re(fe,"pairs"),me=le.indexOf(ne);if(me==-1)return de.Pass;for(var Se=Re(fe,"closeBefore"),ke=Re(fe,"triples"),Be=le.charAt(me+1)==ne,Ne=ee.listSelections(),Ke=me%2==0,$e,at=0;at<Ne.length;at++){var lt=Ne[at],Tt=lt.head,nt,Ut=ee.getRange(Tt,Ee(Tt.line,Tt.ch+1));if(Ke&&!lt.empty())nt="surround";else if((Be||!Ke)&&Ut==ne)Be&&ze(ee,Tt)?nt="both":ke.indexOf(ne)>=0&&ee.getRange(Tt,Ee(Tt.line,Tt.ch+3))==ne+ne+ne?nt="skipThree":nt="skip";else if(Be&&Tt.ch>1&&ke.indexOf(ne)>=0&&ee.getRange(Ee(Tt.line,Tt.ch-2),Tt)==ne+ne){if(Tt.ch>2&&/\bstring/.test(ee.getTokenTypeAt(Ee(Tt.line,Tt.ch-2))))return de.Pass;nt="addFour"}else if(Be){var kt=Tt.ch==0?" ":ee.getRange(Ee(Tt.line,Tt.ch-1),Tt);if(!de.isWordChar(Ut)&&kt!=ne&&!de.isWordChar(kt))nt="both";else return de.Pass}else if(Ke&&(Ut.length===0||/\s/.test(Ut)||Se.indexOf(Ut)>-1))nt="both";else return de.Pass;if(!$e)$e=nt;else if($e!=nt)return de.Pass}var dn=me%2?le.charAt(me-1):ne,nn=me%2?ne:le.charAt(me+1);ee.operation(function(){if($e=="skip")ee.execCommand("goCharRight");else if($e=="skipThree")for(var qt=0;qt<3;qt++)ee.execCommand("goCharRight");else if($e=="surround"){for(var un=ee.getSelections(),qt=0;qt<un.length;qt++)un[qt]=dn+un[qt]+nn;ee.replaceSelections(un,"around"),un=ee.listSelections().slice();for(var qt=0;qt<un.length;qt++)un[qt]=st(un[qt]);ee.setSelections(un)}else $e=="both"?(ee.replaceSelection(dn+nn,null),ee.triggerElectric(dn+nn),ee.execCommand("goCharLeft")):$e=="addFour"&&(ee.replaceSelection(dn+dn+dn+dn,"before"),ee.execCommand("goCharRight"))})}function Lt(ee,ne){var fe=ee.getRange(Ee(ne.line,ne.ch-1),Ee(ne.line,ne.ch+1));return fe.length==2?fe:null}function ze(ee,ne){var fe=ee.getTokenAt(Ee(ne.line,ne.ch+1));return/\bstring/.test(fe.type)&&fe.start==ne.ch&&(ne.ch==0||!/\bstring/.test(ee.getTokenTypeAt(ne)))}})},6313:function(Ge,xe,ae){(function(de){de(ae(89780),ae(32855))})(function(de){de.defineOption("autoCloseTags",!1,function(Je,Ye,st){if(st!=de.Init&&st&&Je.removeKeyMap("autoCloseTags"),!!Ye){var ht={name:"autoCloseTags"};(typeof Ye!="object"||Ye.whenClosing!==!1)&&(ht["'/'"]=function(Lt){return Ze(Lt)}),(typeof Ye!="object"||Ye.whenOpening!==!1)&&(ht["'>'"]=function(Lt){return Re(Lt)}),Je.addKeyMap(ht)}});var Te=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ee=["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 Re(Je){if(Je.getOption("disableInput"))return de.Pass;for(var Ye=Je.listSelections(),st=[],ht=Je.getOption("autoCloseTags"),Lt=0;Lt<Ye.length;Lt++){if(!Ye[Lt].empty())return de.Pass;var ze=Ye[Lt].head,ee=Je.getTokenAt(ze),ne=de.innerMode(Je.getMode(),ee.state),fe=ne.state,le=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(fe),me=le&&le.name;if(!me)return de.Pass;var Se=ne.mode.configuration=="html",ke=typeof ht=="object"&&ht.dontCloseTags||Se&&Te,Be=typeof ht=="object"&&ht.indentTags||Se&&Ee;ee.end>ze.ch&&(me=me.slice(0,me.length-ee.end+ze.ch));var Ne=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"&&le.close||ee.string.indexOf("/")==ze.ch-ee.start-1||ke&&we(ke,Ne)>-1||it(Je,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(fe)||[],me,ze,!0))return de.Pass;var Ke=typeof ht=="object"&&ht.emptyTags;if(Ke&&we(Ke,me)>-1){st[Lt]={text:"/>",newPos:de.Pos(ze.line,ze.ch+2)};continue}var $e=Be&&we(Be,Ne)>-1;st[Lt]={indent:$e,text:">"+($e?`
`:"")+"</"+me+">",newPos:$e?de.Pos(ze.line+1,0):de.Pos(ze.line,ze.ch+1)}}for(var at=typeof ht=="object"&&ht.dontIndentOnAutoClose,Lt=Ye.length-1;Lt>=0;Lt--){var lt=st[Lt];Je.replaceRange(lt.text,Ye[Lt].head,Ye[Lt].anchor,"+insert");var Tt=Je.listSelections().slice(0);Tt[Lt]={head:lt.newPos,anchor:lt.newPos},Je.setSelections(Tt),!at&&lt.indent&&(Je.indentLine(lt.newPos.line,null,!0),Je.indentLine(lt.newPos.line+1,null,!0))}}function je(Je,Ye){for(var st=Je.listSelections(),ht=[],Lt=Ye?"/":"</",ze=Je.getOption("autoCloseTags"),ee=typeof ze=="object"&&ze.dontIndentOnSlash,ne=0;ne<st.length;ne++){if(!st[ne].empty())return de.Pass;var fe=st[ne].head,le=Je.getTokenAt(fe),me=de.innerMode(Je.getMode(),le.state),Se=me.state;if(Ye&&(le.type=="string"||le.string.charAt(0)!="<"||le.start!=fe.ch-1))return de.Pass;var ke,Be=me.mode.name!="xml"&&Je.getMode().name=="htmlmixed";if(Be&&me.mode.name=="javascript")ke=Lt+"script";else if(Be&&me.mode.name=="css")ke=Lt+"style";else{var Ne=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(Se);if(!Ne||Ne.length&&it(Je,Ne,Ne[Ne.length-1],fe))return de.Pass;ke=Lt+Ne[Ne.length-1]}Je.getLine(fe.line).charAt(le.end)!=">"&&(ke+=">"),ht[ne]=ke}if(Je.replaceSelections(ht),st=Je.listSelections(),!ee)for(var ne=0;ne<st.length;ne++)(ne==st.length-1||st[ne].head.line<st[ne+1].head.line)&&Je.indentLine(st[ne].head.line)}function Ze(Je){return Je.getOption("disableInput")?de.Pass:je(Je,!0)}de.commands.closeTag=function(Je){return je(Je)};function we(Je,Ye){if(Je.indexOf)return Je.indexOf(Ye);for(var st=0,ht=Je.length;st<ht;++st)if(Je[st]==Ye)return st;return-1}function it(Je,Ye,st,ht,Lt){if(!de.scanForClosingTag)return!1;var ze=Math.min(Je.lastLine()+1,ht.line+500),ee=de.scanForClosingTag(Je,ht,null,ze);if(!ee||ee.tag!=st)return!1;for(var ne=Lt?1:0,fe=Ye.length-1;fe>=0&&Ye[fe]==st;fe--)++ne;ht=ee.to;for(var fe=1;fe<ne;fe++){var le=de.scanForClosingTag(Je,ht,null,ze);if(!le||le.tag!=st)return!1;ht=le.to}return!0}})},32855:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){"use strict";var Te=de.Pos;function Ee(fe,le){return fe.line-le.line||fe.ch-le.ch}var Re="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",je=Re+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ze=new RegExp("<(/?)(["+Re+"]["+je+"]*)","g");function we(fe,le,me,Se){this.line=le,this.ch=me,this.cm=fe,this.text=fe.getLine(le),this.min=Se?Math.max(Se.from,fe.firstLine()):fe.firstLine(),this.max=Se?Math.min(Se.to-1,fe.lastLine()):fe.lastLine()}function it(fe,le){var me=fe.cm.getTokenTypeAt(Te(fe.line,le));return me&&/\btag\b/.test(me)}function Je(fe){if(!(fe.line>=fe.max))return fe.ch=0,fe.text=fe.cm.getLine(++fe.line),!0}function Ye(fe){if(!(fe.line<=fe.min))return fe.text=fe.cm.getLine(--fe.line),fe.ch=fe.text.length,!0}function st(fe){for(;;){var le=fe.text.indexOf(">",fe.ch);if(le==-1){if(Je(fe))continue;return}if(!it(fe,le+1)){fe.ch=le+1;continue}var me=fe.text.lastIndexOf("/",le),Se=me>-1&&!/\S/.test(fe.text.slice(me+1,le));return fe.ch=le+1,Se?"selfClose":"regular"}}function ht(fe){for(;;){var le=fe.ch?fe.text.lastIndexOf("<",fe.ch-1):-1;if(le==-1){if(Ye(fe))continue;return}if(!it(fe,le+1)){fe.ch=le;continue}Ze.lastIndex=le,fe.ch=le;var me=Ze.exec(fe.text);if(me&&me.index==le)return me}}function Lt(fe){for(;;){Ze.lastIndex=fe.ch;var le=Ze.exec(fe.text);if(!le){if(Je(fe))continue;return}if(!it(fe,le.index+1)){fe.ch=le.index+1;continue}return fe.ch=le.index+le[0].length,le}}function ze(fe){for(;;){var le=fe.ch?fe.text.lastIndexOf(">",fe.ch-1):-1;if(le==-1){if(Ye(fe))continue;return}if(!it(fe,le+1)){fe.ch=le;continue}var me=fe.text.lastIndexOf("/",le),Se=me>-1&&!/\S/.test(fe.text.slice(me+1,le));return fe.ch=le+1,Se?"selfClose":"regular"}}function ee(fe,le){for(var me=[];;){var Se=Lt(fe),ke,Be=fe.line,Ne=fe.ch-(Se?Se[0].length:0);if(!Se||!(ke=st(fe)))return;if(ke!="selfClose")if(Se[1]){for(var Ke=me.length-1;Ke>=0;--Ke)if(me[Ke]==Se[2]){me.length=Ke;break}if(Ke<0&&(!le||le==Se[2]))return{tag:Se[2],from:Te(Be,Ne),to:Te(fe.line,fe.ch)}}else me.push(Se[2])}}function ne(fe,le){for(var me=[];;){var Se=ze(fe);if(!Se)return;if(Se=="selfClose"){ht(fe);continue}var ke=fe.line,Be=fe.ch,Ne=ht(fe);if(!Ne)return;if(Ne[1])me.push(Ne[2]);else{for(var Ke=me.length-1;Ke>=0;--Ke)if(me[Ke]==Ne[2]){me.length=Ke;break}if(Ke<0&&(!le||le==Ne[2]))return{tag:Ne[2],from:Te(fe.line,fe.ch),to:Te(ke,Be)}}}}de.registerHelper("fold","xml",function(fe,le){for(var me=new we(fe,le.line,0);;){var Se=Lt(me);if(!Se||me.line!=le.line)return;var ke=st(me);if(!ke)return;if(!Se[1]&&ke!="selfClose"){var Be=Te(me.line,me.ch),Ne=ee(me,Se[2]);return Ne&&Ee(Ne.from,Be)>0?{from:Be,to:Ne.from}:null}}}),de.findMatchingTag=function(fe,le,me){var Se=new we(fe,le.line,le.ch,me);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var ke=st(Se),Be=ke&&Te(Se.line,Se.ch),Ne=ke&&ht(Se);if(!(!ke||!Ne||Ee(Se,le)>0)){var Ke={from:Te(Se.line,Se.ch),to:Be,tag:Ne[2]};return ke=="selfClose"?{open:Ke,close:null,at:"open"}:Ne[1]?{open:ne(Se,Ne[2]),close:Ke,at:"close"}:(Se=new we(fe,Be.line,Be.ch,me),{open:Ke,close:ee(Se,Ne[2]),at:"open"})}}},de.findEnclosingTag=function(fe,le,me,Se){for(var ke=new we(fe,le.line,le.ch,me);;){var Be=ne(ke,Se);if(!Be)break;var Ne=new we(fe,le.line,le.ch,me),Ke=ee(Ne,Be.tag);if(Ke)return{open:Be,close:Ke}}},de.scanForClosingTag=function(fe,le,me,Se){var ke=new we(fe,le.line,le.ch,Se?{from:0,to:Se}:null);return ee(ke,me)}})},89780:function(Ge){(function(xe,ae){Ge.exports=ae()})(this,function(){"use strict";var xe=navigator.userAgent,ae=navigator.platform,de=/gecko\/\d/i.test(xe),Te=/MSIE \d/.test(xe),Ee=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xe),Re=/Edge\/(\d+)/.exec(xe),je=Te||Ee||Re,Ze=je&&(Te?document.documentMode||6:+(Re||Ee)[1]),we=!Re&&/WebKit\//.test(xe),it=we&&/Qt\/\d+\.\d+/.test(xe),Je=!Re&&/Chrome\//.test(xe),Ye=/Opera\//.test(xe),st=/Apple Computer/.test(navigator.vendor),ht=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(xe),Lt=/PhantomJS/.test(xe),ze=!Re&&/AppleWebKit/.test(xe)&&/Mobile\/\w+/.test(xe),ee=/Android/.test(xe),ne=ze||ee||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(xe),fe=ze||/Mac/.test(ae),le=/\bCrOS\b/.test(xe),me=/win/i.test(ae),Se=Ye&&xe.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(Ye=!1,we=!0);var ke=fe&&(it||Ye&&(Se==null||Se<12.11)),Be=de||je&&Ze>=9;function Ne(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ke=function(ie,oe){var ge=ie.className,pe=Ne(oe).exec(ge);if(pe){var ye=ge.slice(pe.index+pe[0].length);ie.className=ge.slice(0,pe.index)+(ye?pe[1]+ye:"")}};function $e(ie){for(var oe=ie.childNodes.length;oe>0;--oe)ie.removeChild(ie.firstChild);return ie}function at(ie,oe){return $e(ie).appendChild(oe)}function lt(ie,oe,ge,pe){var ye=document.createElement(ie);if(ge&&(ye.className=ge),pe&&(ye.style.cssText=pe),typeof oe=="string")ye.appendChild(document.createTextNode(oe));else if(oe)for(var Oe=0;Oe<oe.length;++Oe)ye.appendChild(oe[Oe]);return ye}function Tt(ie,oe,ge,pe){var ye=lt(ie,oe,ge,pe);return ye.setAttribute("role","presentation"),ye}var nt;document.createRange?nt=function(ie,oe,ge,pe){var ye=document.createRange();return ye.setEnd(pe||ie,ge),ye.setStart(ie,oe),ye}:nt=function(ie,oe,ge){var pe=document.body.createTextRange();try{pe.moveToElementText(ie.parentNode)}catch(ye){return pe}return pe.collapse(!0),pe.moveEnd("character",ge),pe.moveStart("character",oe),pe};function Ut(ie,oe){if(oe.nodeType==3&&(oe=oe.parentNode),ie.contains)return ie.contains(oe);do if(oe.nodeType==11&&(oe=oe.host),oe==ie)return!0;while(oe=oe.parentNode)}function kt(){var ie;try{ie=document.activeElement}catch(oe){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function dn(ie,oe){var ge=ie.className;Ne(oe).test(ge)||(ie.className+=(ge?" ":"")+oe)}function nn(ie,oe){for(var ge=ie.split(" "),pe=0;pe<ge.length;pe++)ge[pe]&&!Ne(ge[pe]).test(oe)&&(oe+=" "+ge[pe]);return oe}var qt=function(ie){ie.select()};ze?qt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:je&&(qt=function(ie){try{ie.select()}catch(oe){}});function un(ie){var oe=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,oe)}}function mn(ie,oe,ge){oe||(oe={});for(var pe in ie)ie.hasOwnProperty(pe)&&(ge!==!1||!oe.hasOwnProperty(pe))&&(oe[pe]=ie[pe]);return oe}function Ct(ie,oe,ge,pe,ye){oe==null&&(oe=ie.search(/[^\s\u00a0]/),oe==-1&&(oe=ie.length));for(var Oe=pe||0,Ve=ye||0;;){var Xe=ie.indexOf(" ",Oe);if(Xe<0||Xe>=oe)return Ve+(oe-Oe);Ve+=Xe-Oe,Ve+=ge-Ve%ge,Oe=Xe+1}}var qe=function(){this.id=null,this.f=null,this.time=0,this.handler=un(this.onTimeout,this)};qe.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},qe.prototype.set=function(ie,oe){this.f=oe;var ge=+new Date+ie;(!this.id||ge<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ge)};function Bt(ie,oe){for(var ge=0;ge<ie.length;++ge)if(ie[ge]==oe)return ge;return-1}var Cn=50,Zn={toString:function(){return"CodeMirror.Pass"}},zt={scroll:!1},sn={origin:"*mouse"},Mn={origin:"+move"};function fi(ie,oe,ge){for(var pe=0,ye=0;;){var Oe=ie.indexOf(" ",pe);Oe==-1&&(Oe=ie.length);var Ve=Oe-pe;if(Oe==ie.length||ye+Ve>=oe)return pe+Math.min(Ve,oe-ye);if(ye+=Oe-pe,ye+=ge-ye%ge,pe=Oe+1,ye>=oe)return pe}}var Rn=[""];function li(ie){for(;Rn.length<=ie;)Rn.push(Ot(Rn)+" ");return Rn[ie]}function Ot(ie){return ie[ie.length-1]}function kn(ie,oe){for(var ge=[],pe=0;pe<ie.length;pe++)ge[pe]=oe(ie[pe],pe);return ge}function $n(ie,oe,ge){for(var pe=0,ye=ge(oe);pe<ie.length&&ge(ie[pe])<=ye;)pe++;ie.splice(pe,0,oe)}function xi(){}function xn(ie,oe){var ge;return Object.create?ge=Object.create(ie):(xi.prototype=ie,ge=new xi),oe&&mn(oe,ge),ge}var Gt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function jt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Gt.test(ie))}function It(ie,oe){return oe?oe.source.indexOf("\\w")>-1&&jt(ie)?!0:oe.test(ie):jt(ie)}function vt(ie){for(var oe in ie)if(ie.hasOwnProperty(oe)&&ie[oe])return!1;return!0}var Xt=/[\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 Zt(ie){return ie.charCodeAt(0)>=768&&Xt.test(ie)}function yt(ie,oe,ge){for(;(ge<0?oe>0:oe<ie.length)&&Zt(ie.charAt(oe));)oe+=ge;return oe}function ft(ie,oe,ge){for(var pe=oe>ge?-1:1;;){if(oe==ge)return oe;var ye=(oe+ge)/2,Oe=pe<0?Math.ceil(ye):Math.floor(ye);if(Oe==oe)return ie(Oe)?oe:ge;ie(Oe)?ge=Oe:oe=Oe+pe}}function _e(ie,oe,ge,pe){if(!ie)return pe(oe,ge,"ltr",0);for(var ye=!1,Oe=0;Oe<ie.length;++Oe){var Ve=ie[Oe];(Ve.from<ge&&Ve.to>oe||oe==ge&&Ve.to==oe)&&(pe(Math.max(Ve.from,oe),Math.min(Ve.to,ge),Ve.level==1?"rtl":"ltr",Oe),ye=!0)}ye||pe(oe,ge,"ltr")}var Pe=null;function be(ie,oe,ge){var pe;Pe=null;for(var ye=0;ye<ie.length;++ye){var Oe=ie[ye];if(Oe.from<oe&&Oe.to>oe)return ye;Oe.to==oe&&(Oe.from!=Oe.to&&ge=="before"?pe=ye:Pe=ye),Oe.from==oe&&(Oe.from!=Oe.to&&ge!="before"?pe=ye:Pe=ye)}return pe!=null?pe:Pe}var Ue=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",oe="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ge(wt){return wt<=247?ie.charAt(wt):1424<=wt&&wt<=1524?"R":1536<=wt&&wt<=1785?oe.charAt(wt-1536):1774<=wt&&wt<=2220?"r":8192<=wt&&wt<=8203?"w":wt==8204?"b":"L"}var pe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ye=/[stwN]/,Oe=/[LRr]/,Ve=/[Lb1n]/,Xe=/[1n]/;function et(wt,Jt,Nt){this.level=wt,this.from=Jt,this.to=Nt}return function(wt,Jt){var Nt=Jt=="ltr"?"L":"R";if(wt.length==0||Jt=="ltr"&&!pe.test(wt))return!1;for(var Bn=wt.length,Sn=[],ti=0;ti<Bn;++ti)Sn.push(ge(wt.charCodeAt(ti)));for(var gi=0,bi=Nt;gi<Bn;++gi){var Gi=Sn[gi];Gi=="m"?Sn[gi]=bi:bi=Gi}for(var lr=0,rr=Nt;lr<Bn;++lr){var Cr=Sn[lr];Cr=="1"&&rr=="r"?Sn[lr]="n":Oe.test(Cr)&&(rr=Cr,Cr=="r"&&(Sn[lr]="R"))}for(var wn=1,or=Sn[0];wn<Bn-1;++wn){var Eo=Sn[wn];Eo=="+"&&or=="1"&&Sn[wn+1]=="1"?Sn[wn]="1":Eo==","&&or==Sn[wn+1]&&(or=="1"||or=="n")&&(Sn[wn]=or),or=Eo}for(var _n=0;_n<Bn;++_n){var Oa=Sn[_n];if(Oa==",")Sn[_n]="N";else if(Oa=="%"){var Ta=void 0;for(Ta=_n+1;Ta<Bn&&Sn[Ta]=="%";++Ta);for(var Gs=_n&&Sn[_n-1]=="!"||Ta<Bn&&Sn[Ta]=="1"?"1":"N",Hs=_n;Hs<Ta;++Hs)Sn[Hs]=Gs;_n=Ta-1}}for(var wa=0,Ds=Nt;wa<Bn;++wa){var Es=Sn[wa];Ds=="L"&&Es=="1"?Sn[wa]="L":Oe.test(Es)&&(Ds=Es)}for(var Bo=0;Bo<Bn;++Bo)if(ye.test(Sn[Bo])){var Yo=void 0;for(Yo=Bo+1;Yo<Bn&&ye.test(Sn[Yo]);++Yo);for(var Xa=(Bo?Sn[Bo-1]:Nt)=="L",As=(Yo<Bn?Sn[Yo]:Nt)=="L",Ka=Xa==As?Xa?"L":"R":Nt,tl=Bo;tl<Yo;++tl)Sn[tl]=Ka;Bo=Yo-1}for(var Zo=[],ru,Ba=0;Ba<Bn;)if(Ve.test(Sn[Ba])){var jl=Ba;for(++Ba;Ba<Bn&&Ve.test(Sn[Ba]);++Ba);Zo.push(new et(0,jl,Ba))}else{var kl=Ba,ou=Zo.length,Ul=Jt=="rtl"?1:0;for(++Ba;Ba<Bn&&Sn[Ba]!="L";++Ba);for(var Ra=kl;Ra<Ba;)if(Xe.test(Sn[Ra])){kl<Ra&&(Zo.splice(ou,0,new et(1,kl,Ra)),ou+=Ul);var nl=Ra;for(++Ra;Ra<Ba&&Xe.test(Sn[Ra]);++Ra);Zo.splice(ou,0,new et(2,nl,Ra)),ou+=Ul,kl=Ra}else++Ra;kl<Ba&&Zo.splice(ou,0,new et(1,kl,Ba))}return Jt=="ltr"&&(Zo[0].level==1&&(ru=wt.match(/^\s+/))&&(Zo[0].from=ru[0].length,Zo.unshift(new et(0,0,ru[0].length))),Ot(Zo).level==1&&(ru=wt.match(/\s+$/))&&(Ot(Zo).to-=ru[0].length,Zo.push(new et(0,Bn-ru[0].length,Bn)))),Jt=="rtl"?Zo.reverse():Zo}}();function Qe(ie,oe){var ge=ie.order;return ge==null&&(ge=ie.order=Ue(ie.text,oe)),ge}var Fe=[],gt=function(ie,oe,ge){if(ie.addEventListener)ie.addEventListener(oe,ge,!1);else if(ie.attachEvent)ie.attachEvent("on"+oe,ge);else{var pe=ie._handlers||(ie._handlers={});pe[oe]=(pe[oe]||Fe).concat(ge)}};function tn(ie,oe){return ie._handlers&&ie._handlers[oe]||Fe}function yn(ie,oe,ge){if(ie.removeEventListener)ie.removeEventListener(oe,ge,!1);else if(ie.detachEvent)ie.detachEvent("on"+oe,ge);else{var pe=ie._handlers,ye=pe&&pe[oe];if(ye){var Oe=Bt(ye,ge);Oe>-1&&(pe[oe]=ye.slice(0,Oe).concat(ye.slice(Oe+1)))}}}function bt(ie,oe){var ge=tn(ie,oe);if(ge.length)for(var pe=Array.prototype.slice.call(arguments,2),ye=0;ye<ge.length;++ye)ge[ye].apply(null,pe)}function Wt(ie,oe,ge){return typeof oe=="string"&&(oe={type:oe,preventDefault:function(){this.defaultPrevented=!0}}),bt(ie,ge||oe.type,ie,oe),hi(oe)||oe.codemirrorIgnore}function fn(ie){var oe=ie._handlers&&ie._handlers.cursorActivity;if(oe)for(var ge=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),pe=0;pe<oe.length;++pe)Bt(ge,oe[pe])==-1&&ge.push(oe[pe])}function zn(ie,oe){return tn(ie,oe).length>0}function ni(ie){ie.prototype.on=function(oe,ge){gt(this,oe,ge)},ie.prototype.off=function(oe,ge){yn(this,oe,ge)}}function di(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function wi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function hi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Li(ie){di(ie),wi(ie)}function Yi(ie){return ie.target||ie.srcElement}function Ji(ie){var oe=ie.which;return oe==null&&(ie.button&1?oe=1:ie.button&2?oe=3:ie.button&4&&(oe=2)),fe&&ie.ctrlKey&&oe==1&&(oe=3),oe}var Xi=function(){if(je&&Ze<9)return!1;var ie=lt("div");return"draggable"in ie||"dragDrop"in ie}(),dr;function Ir(ie){if(dr==null){var oe=lt("span","\u200B");at(ie,lt("span",[oe,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(dr=oe.offsetWidth<=1&&oe.offsetHeight>2&&!(je&&Ze<8))}var ge=dr?lt("span","\u200B"):lt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ge.setAttribute("cm-text",""),ge}var Wi;function Dr(ie){if(Wi!=null)return Wi;var oe=at(ie,document.createTextNode("A\u062EA")),ge=nt(oe,0,1).getBoundingClientRect(),pe=nt(oe,1,2).getBoundingClientRect();return $e(ie),!ge||ge.left==ge.right?!1:Wi=pe.right-ge.right<3}var _i=`
b`.split(/\n/).length!=3?function(ie){for(var oe=0,ge=[],pe=ie.length;oe<=pe;){var ye=ie.indexOf(`
`,oe);ye==-1&&(ye=ie.length);var Oe=ie.slice(oe,ie.charAt(ye-1)=="\r"?ye-1:ye),Ve=Oe.indexOf("\r");Ve!=-1?(ge.push(Oe.slice(0,Ve)),oe+=Ve+1):(ge.push(Oe),oe=ye+1)}return ge}:function(ie){return ie.split(/\r\n?|\n/)},De=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(oe){return!1}}:function(ie){var oe;try{oe=ie.ownerDocument.selection.createRange()}catch(ge){}return!oe||oe.parentElement()!=ie?!1:oe.compareEndPoints("StartToEnd",oe)!=0},jr=function(){var ie=lt("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),hr=null;function oo(ie){if(hr!=null)return hr;var oe=at(ie,lt("span","x")),ge=oe.getBoundingClientRect(),pe=nt(oe,0,1).getBoundingClientRect();return hr=Math.abs(ge.left-pe.left)>1}var Oo={},Do={};function Co(ie,oe){arguments.length>2&&(oe.dependencies=Array.prototype.slice.call(arguments,2)),Oo[ie]=oe}function so(ie,oe){Do[ie]=oe}function En(ie){if(typeof ie=="string"&&Do.hasOwnProperty(ie))ie=Do[ie];else if(ie&&typeof ie.name=="string"&&Do.hasOwnProperty(ie.name)){var oe=Do[ie.name];typeof oe=="string"&&(oe={name:oe}),ie=xn(oe,ie),ie.name=oe.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return En("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return En("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Tn(ie,oe){oe=En(oe);var ge=Oo[oe.name];if(!ge)return Tn(ie,"text/plain");var pe=ge(ie,oe);if(on.hasOwnProperty(oe.name)){var ye=on[oe.name];for(var Oe in ye)ye.hasOwnProperty(Oe)&&(pe.hasOwnProperty(Oe)&&(pe["_"+Oe]=pe[Oe]),pe[Oe]=ye[Oe])}if(pe.name=oe.name,oe.helperType&&(pe.helperType=oe.helperType),oe.modeProps)for(var Ve in oe.modeProps)pe[Ve]=oe.modeProps[Ve];return pe}var on={};function At(ie,oe){var ge=on.hasOwnProperty(ie)?on[ie]:on[ie]={};mn(oe,ge)}function Dn(ie,oe){if(oe===!0)return oe;if(ie.copyState)return ie.copyState(oe);var ge={};for(var pe in oe){var ye=oe[pe];ye instanceof Array&&(ye=ye.concat([])),ge[pe]=ye}return ge}function Qn(ie,oe){for(var ge;ie.innerMode&&(ge=ie.innerMode(oe),!(!ge||ge.mode==ie));)oe=ge.state,ie=ge.mode;return ge||{mode:ie,state:oe}}function Kt(ie,oe,ge){return ie.startState?ie.startState(oe,ge):!0}var Et=function(ie,oe,ge){this.pos=this.start=0,this.string=ie,this.tabSize=oe||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ge};Et.prototype.eol=function(){return this.pos>=this.string.length},Et.prototype.sol=function(){return this.pos==this.lineStart},Et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Et.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Et.prototype.eat=function(ie){var oe=this.string.charAt(this.pos),ge;if(typeof ie=="string"?ge=oe==ie:ge=oe&&(ie.test?ie.test(oe):ie(oe)),ge)return++this.pos,oe},Et.prototype.eatWhile=function(ie){for(var oe=this.pos;this.eat(ie););return this.pos>oe},Et.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Et.prototype.skipToEnd=function(){this.pos=this.string.length},Et.prototype.skipTo=function(ie){var oe=this.string.indexOf(ie,this.pos);if(oe>-1)return this.pos=oe,!0},Et.prototype.backUp=function(ie){this.pos-=ie},Et.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ct(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ct(this.string,this.lineStart,this.tabSize):0)},Et.prototype.indentation=function(){return Ct(this.string,null,this.tabSize)-(this.lineStart?Ct(this.string,this.lineStart,this.tabSize):0)},Et.prototype.match=function(ie,oe,ge){if(typeof ie=="string"){var pe=function(Ve){return ge?Ve.toLowerCase():Ve},ye=this.string.substr(this.pos,ie.length);if(pe(ye)==pe(ie))return oe!==!1&&(this.pos+=ie.length),!0}else{var Oe=this.string.slice(this.pos).match(ie);return Oe&&Oe.index>0?null:(Oe&&oe!==!1&&(this.pos+=Oe[0].length),Oe)}},Et.prototype.current=function(){return this.string.slice(this.start,this.pos)},Et.prototype.hideFirstChars=function(ie,oe){this.lineStart+=ie;try{return oe()}finally{this.lineStart-=ie}},Et.prototype.lookAhead=function(ie){var oe=this.lineOracle;return oe&&oe.lookAhead(ie)},Et.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Ln(ie,oe){if(oe-=ie.first,oe<0||oe>=ie.size)throw new Error("There is no line "+(oe+ie.first)+" in the document.");for(var ge=ie;!ge.lines;)for(var pe=0;;++pe){var ye=ge.children[pe],Oe=ye.chunkSize();if(oe<Oe){ge=ye;break}oe-=Oe}return ge.lines[oe]}function Jn(ie,oe,ge){var pe=[],ye=oe.line;return ie.iter(oe.line,ge.line+1,function(Oe){var Ve=Oe.text;ye==ge.line&&(Ve=Ve.slice(0,ge.ch)),ye==oe.line&&(Ve=Ve.slice(oe.ch)),pe.push(Ve),++ye}),pe}function Ci(ie,oe,ge){var pe=[];return ie.iter(oe,ge,function(ye){pe.push(ye.text)}),pe}function Pn(ie,oe){var ge=oe-ie.height;if(ge)for(var pe=ie;pe;pe=pe.parent)pe.height+=ge}function Rt(ie){if(ie.parent==null)return null;for(var oe=ie.parent,ge=Bt(oe.lines,ie),pe=oe.parent;pe;oe=pe,pe=pe.parent)for(var ye=0;pe.children[ye]!=oe;++ye)ge+=pe.children[ye].chunkSize();return ge+oe.first}function Yn(ie,oe){var ge=ie.first;e:do{for(var pe=0;pe<ie.children.length;++pe){var ye=ie.children[pe],Oe=ye.height;if(oe<Oe){ie=ye;continue e}oe-=Oe,ge+=ye.chunkSize()}return ge}while(!ie.lines);for(var Ve=0;Ve<ie.lines.length;++Ve){var Xe=ie.lines[Ve],et=Xe.height;if(oe<et)break;oe-=et}return ge+Ve}function vi(ie,oe){return oe>=ie.first&&oe<ie.first+ie.size}function Oi(ie,oe){return String(ie.lineNumberFormatter(oe+ie.firstLineNumber))}function Yt(ie,oe,ge){if(ge===void 0&&(ge=null),!(this instanceof Yt))return new Yt(ie,oe,ge);this.line=ie,this.ch=oe,this.sticky=ge}function Fn(ie,oe){return ie.line-oe.line||ie.ch-oe.ch}function $t(ie,oe){return ie.sticky==oe.sticky&&Fn(ie,oe)==0}function pn(ie){return Yt(ie.line,ie.ch)}function An(ie,oe){return Fn(ie,oe)<0?oe:ie}function gn(ie,oe){return Fn(ie,oe)<0?ie:oe}function In(ie,oe){return Math.max(ie.first,Math.min(oe,ie.first+ie.size-1))}function Gn(ie,oe){if(oe.line<ie.first)return Yt(ie.first,0);var ge=ie.first+ie.size-1;return oe.line>ge?Yt(ge,Ln(ie,ge).text.length):qn(oe,Ln(ie,oe.line).text.length)}function qn(ie,oe){var ge=ie.ch;return ge==null||ge>oe?Yt(ie.line,oe):ge<0?Yt(ie.line,0):ie}function oi(ie,oe){for(var ge=[],pe=0;pe<oe.length;pe++)ge[pe]=Gn(ie,oe[pe]);return ge}var Hn=function(ie,oe){this.state=ie,this.lookAhead=oe},ui=function(ie,oe,ge,pe){this.state=oe,this.doc=ie,this.line=ge,this.maxLookAhead=pe||0,this.baseTokens=null,this.baseTokenPos=1};ui.prototype.lookAhead=function(ie){var oe=this.doc.getLine(this.line+ie);return oe!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),oe},ui.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var oe=this.baseTokens[this.baseTokenPos+1];return{type:oe&&oe.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},ui.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ui.fromSaved=function(ie,oe,ge){return oe instanceof Hn?new ui(ie,Dn(ie.mode,oe.state),ge,oe.lookAhead):new ui(ie,Dn(ie.mode,oe),ge)},ui.prototype.save=function(ie){var oe=ie!==!1?Dn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(oe,this.maxLookAhead):oe};function Ki(ie,oe,ge,pe){var ye=[ie.state.modeGen],Oe={};Tr(ie,oe.text,ie.doc.mode,ge,function(wt,Jt){return ye.push(wt,Jt)},Oe,pe);for(var Ve=ge.state,Xe=function(wt){ge.baseTokens=ye;var Jt=ie.state.overlays[wt],Nt=1,Bn=0;ge.state=!0,Tr(ie,oe.text,Jt.mode,ge,function(Sn,ti){for(var gi=Nt;Bn<Sn;){var bi=ye[Nt];bi>Sn&&ye.splice(Nt,1,Sn,ye[Nt+1],bi),Nt+=2,Bn=Math.min(Sn,bi)}if(ti)if(Jt.opaque)ye.splice(gi,Nt-gi,Sn,"overlay "+ti),Nt=gi+2;else for(;gi<Nt;gi+=2){var Gi=ye[gi+1];ye[gi+1]=(Gi?Gi+" ":"")+"overlay "+ti}},Oe),ge.state=Ve,ge.baseTokens=null,ge.baseTokenPos=1},et=0;et<ie.state.overlays.length;++et)Xe(et);return{styles:ye,classes:Oe.bgClass||Oe.textClass?Oe:null}}function Er(ie,oe,ge){if(!oe.styles||oe.styles[0]!=ie.state.modeGen){var pe=Vi(ie,Rt(oe)),ye=oe.text.length>ie.options.maxHighlightLength&&Dn(ie.doc.mode,pe.state),Oe=Ki(ie,oe,pe);ye&&(pe.state=ye),oe.stateAfter=pe.save(!ye),oe.styles=Oe.styles,Oe.classes?oe.styleClasses=Oe.classes:oe.styleClasses&&(oe.styleClasses=null),ge===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return oe.styles}function Vi(ie,oe,ge){var pe=ie.doc,ye=ie.display;if(!pe.mode.startState)return new ui(pe,!0,oe);var Oe=Qi(ie,oe,ge),Ve=Oe>pe.first&&Ln(pe,Oe-1).stateAfter,Xe=Ve?ui.fromSaved(pe,Ve,Oe):new ui(pe,Kt(pe.mode),Oe);return pe.iter(Oe,oe,function(et){Ht(ie,et.text,Xe);var wt=Xe.line;et.stateAfter=wt==oe-1||wt%5==0||wt>=ye.viewFrom&&wt<ye.viewTo?Xe.save():null,Xe.nextLine()}),ge&&(pe.modeFrontier=Xe.line),Xe}function Ht(ie,oe,ge,pe){var ye=ie.doc.mode,Oe=new Et(oe,ie.options.tabSize,ge);for(Oe.start=Oe.pos=pe||0,oe==""&&Pi(ye,ge.state);!Oe.eol();)zi(ye,Oe,ge.state),Oe.start=Oe.pos}function Pi(ie,oe){if(ie.blankLine)return ie.blankLine(oe);if(ie.innerMode){var ge=Qn(ie,oe);if(ge.mode.blankLine)return ge.mode.blankLine(ge.state)}}function zi(ie,oe,ge,pe){for(var ye=0;ye<10;ye++){pe&&(pe[0]=Qn(ie,ge).mode);var Oe=ie.token(oe,ge);if(oe.pos>oe.start)return Oe}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ti=function(ie,oe,ge){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=oe||null,this.state=ge};function er(ie,oe,ge,pe){var ye=ie.doc,Oe=ye.mode,Ve;oe=Gn(ye,oe);var Xe=Ln(ye,oe.line),et=Vi(ie,oe.line,ge),wt=new Et(Xe.text,ie.options.tabSize,et),Jt;for(pe&&(Jt=[]);(pe||wt.pos<oe.ch)&&!wt.eol();)wt.start=wt.pos,Ve=zi(Oe,wt,et.state),pe&&Jt.push(new Ti(wt,Ve,Dn(ye.mode,et.state)));return pe?Jt:new Ti(wt,Ve,et.state)}function cr(ie,oe){if(ie)for(;;){var ge=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ge)break;ie=ie.slice(0,ge.index)+ie.slice(ge.index+ge[0].length);var pe=ge[1]?"bgClass":"textClass";oe[pe]==null?oe[pe]=ge[2]:new RegExp("(?:^|\\s)"+ge[2]+"(?:$|\\s)").test(oe[pe])||(oe[pe]+=" "+ge[2])}return ie}function Tr(ie,oe,ge,pe,ye,Oe,Ve){var Xe=ge.flattenSpans;Xe==null&&(Xe=ie.options.flattenSpans);var et=0,wt=null,Jt=new Et(oe,ie.options.tabSize,pe),Nt,Bn=ie.options.addModeClass&&[null];for(oe==""&&cr(Pi(ge,pe.state),Oe);!Jt.eol();){if(Jt.pos>ie.options.maxHighlightLength?(Xe=!1,Ve&&Ht(ie,oe,pe,Jt.pos),Jt.pos=oe.length,Nt=null):Nt=cr(zi(ge,Jt,pe.state,Bn),Oe),Bn){var Sn=Bn[0].name;Sn&&(Nt="m-"+(Nt?Sn+" "+Nt:Sn))}if(!Xe||wt!=Nt){for(;et<Jt.start;)et=Math.min(Jt.start,et+5e3),ye(et,wt);wt=Nt}Jt.start=Jt.pos}for(;et<Jt.pos;){var ti=Math.min(Jt.pos,et+5e3);ye(ti,wt),et=ti}}function Qi(ie,oe,ge){for(var pe,ye,Oe=ie.doc,Ve=ge?-1:oe-(ie.doc.mode.innerMode?1e3:100),Xe=oe;Xe>Ve;--Xe){if(Xe<=Oe.first)return Oe.first;var et=Ln(Oe,Xe-1),wt=et.stateAfter;if(wt&&(!ge||Xe+(wt instanceof Hn?wt.lookAhead:0)<=Oe.modeFrontier))return Xe;var Jt=Ct(et.text,null,ie.options.tabSize);(ye==null||pe>Jt)&&(ye=Xe-1,pe=Jt)}return ye}function Fi(ie,oe){if(ie.modeFrontier=Math.min(ie.modeFrontier,oe),!(ie.highlightFrontier<oe-10)){for(var ge=ie.first,pe=oe-1;pe>ge;pe--){var ye=Ln(ie,pe).stateAfter;if(ye&&(!(ye instanceof Hn)||pe+ye.lookAhead<oe)){ge=pe+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ge)}}var Rr=!1,ln=!1;function Ur(){Rr=!0}function bn(){ln=!0}function Mr(ie,oe,ge){this.marker=ie,this.from=oe,this.to=ge}function Ho(ie,oe){if(ie)for(var ge=0;ge<ie.length;++ge){var pe=ie[ge];if(pe.marker==oe)return pe}}function Fr(ie,oe){for(var ge,pe=0;pe<ie.length;++pe)ie[pe]!=oe&&(ge||(ge=[])).push(ie[pe]);return ge}function vo(ie,oe){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([oe]):[oe],oe.marker.attachLine(ie)}function Ro(ie,oe,ge){var pe;if(ie)for(var ye=0;ye<ie.length;++ye){var Oe=ie[ye],Ve=Oe.marker,Xe=Oe.from==null||(Ve.inclusiveLeft?Oe.from<=oe:Oe.from<oe);if(Xe||Oe.from==oe&&Ve.type=="bookmark"&&(!ge||!Oe.marker.insertLeft)){var et=Oe.to==null||(Ve.inclusiveRight?Oe.to>=oe:Oe.to>oe);(pe||(pe=[])).push(new Mr(Ve,Oe.from,et?null:Oe.to))}}return pe}function ir(ie,oe,ge){var pe;if(ie)for(var ye=0;ye<ie.length;++ye){var Oe=ie[ye],Ve=Oe.marker,Xe=Oe.to==null||(Ve.inclusiveRight?Oe.to>=oe:Oe.to>oe);if(Xe||Oe.from==oe&&Ve.type=="bookmark"&&(!ge||Oe.marker.insertLeft)){var et=Oe.from==null||(Ve.inclusiveLeft?Oe.from<=oe:Oe.from<oe);(pe||(pe=[])).push(new Mr(Ve,et?null:Oe.from-oe,Oe.to==null?null:Oe.to-oe))}}return pe}function qi(ie,oe){if(oe.full)return null;var ge=vi(ie,oe.from.line)&&Ln(ie,oe.from.line).markedSpans,pe=vi(ie,oe.to.line)&&Ln(ie,oe.to.line).markedSpans;if(!ge&&!pe)return null;var ye=oe.from.ch,Oe=oe.to.ch,Ve=Fn(oe.from,oe.to)==0,Xe=Ro(ge,ye,Ve),et=ir(pe,Oe,Ve),wt=oe.text.length==1,Jt=Ot(oe.text).length+(wt?ye:0);if(Xe)for(var Nt=0;Nt<Xe.length;++Nt){var Bn=Xe[Nt];if(Bn.to==null){var Sn=Ho(et,Bn.marker);Sn?wt&&(Bn.to=Sn.to==null?null:Sn.to+Jt):Bn.to=ye}}if(et)for(var ti=0;ti<et.length;++ti){var gi=et[ti];if(gi.to!=null&&(gi.to+=Jt),gi.from==null){var bi=Ho(Xe,gi.marker);bi||(gi.from=Jt,wt&&(Xe||(Xe=[])).push(gi))}else gi.from+=Jt,wt&&(Xe||(Xe=[])).push(gi)}Xe&&(Xe=Vr(Xe)),et&&et!=Xe&&(et=Vr(et));var Gi=[Xe];if(!wt){var lr=oe.text.length-2,rr;if(lr>0&&Xe)for(var Cr=0;Cr<Xe.length;++Cr)Xe[Cr].to==null&&(rr||(rr=[])).push(new Mr(Xe[Cr].marker,null,null));for(var wn=0;wn<lr;++wn)Gi.push(rr);Gi.push(et)}return Gi}function Vr(ie){for(var oe=0;oe<ie.length;++oe){var ge=ie[oe];ge.from!=null&&ge.from==ge.to&&ge.marker.clearWhenEmpty!==!1&&ie.splice(oe--,1)}return ie.length?ie:null}function lo(ie,oe,ge){var pe=null;if(ie.iter(oe.line,ge.line+1,function(Sn){if(Sn.markedSpans)for(var ti=0;ti<Sn.markedSpans.length;++ti){var gi=Sn.markedSpans[ti].marker;gi.readOnly&&(!pe||Bt(pe,gi)==-1)&&(pe||(pe=[])).push(gi)}}),!pe)return null;for(var ye=[{from:oe,to:ge}],Oe=0;Oe<pe.length;++Oe)for(var Ve=pe[Oe],Xe=Ve.find(0),et=0;et<ye.length;++et){var wt=ye[et];if(!(Fn(wt.to,Xe.from)<0||Fn(wt.from,Xe.to)>0)){var Jt=[et,1],Nt=Fn(wt.from,Xe.from),Bn=Fn(wt.to,Xe.to);(Nt<0||!Ve.inclusiveLeft&&!Nt)&&Jt.push({from:wt.from,to:Xe.from}),(Bn>0||!Ve.inclusiveRight&&!Bn)&&Jt.push({from:Xe.to,to:wt.to}),ye.splice.apply(ye,Jt),et+=Jt.length-3}}return ye}function ki(ie){var oe=ie.markedSpans;if(oe){for(var ge=0;ge<oe.length;++ge)oe[ge].marker.detachLine(ie);ie.markedSpans=null}}function ot(ie,oe){if(oe){for(var ge=0;ge<oe.length;++ge)oe[ge].marker.attachLine(ie);ie.markedSpans=oe}}function Gr(ie){return ie.inclusiveLeft?-1:0}function ta(ie){return ie.inclusiveRight?1:0}function Hr(ie,oe){var ge=ie.lines.length-oe.lines.length;if(ge!=0)return ge;var pe=ie.find(),ye=oe.find(),Oe=Fn(pe.from,ye.from)||Gr(ie)-Gr(oe);if(Oe)return-Oe;var Ve=Fn(pe.to,ye.to)||ta(ie)-ta(oe);return Ve||oe.id-ie.id}function Uo(ie,oe){var ge=ln&&ie.markedSpans,pe;if(ge)for(var ye=void 0,Oe=0;Oe<ge.length;++Oe)ye=ge[Oe],ye.marker.collapsed&&(oe?ye.from:ye.to)==null&&(!pe||Hr(pe,ye.marker)<0)&&(pe=ye.marker);return pe}function kr(ie){return Uo(ie,!0)}function fr(ie){return Uo(ie,!1)}function no(ie,oe){var ge=ln&&ie.markedSpans,pe;if(ge)for(var ye=0;ye<ge.length;++ye){var Oe=ge[ye];Oe.marker.collapsed&&(Oe.from==null||Oe.from<oe)&&(Oe.to==null||Oe.to>oe)&&(!pe||Hr(pe,Oe.marker)<0)&&(pe=Oe.marker)}return pe}function Po(ie,oe,ge,pe,ye){var Oe=Ln(ie,oe),Ve=ln&&Oe.markedSpans;if(Ve)for(var Xe=0;Xe<Ve.length;++Xe){var et=Ve[Xe];if(et.marker.collapsed){var wt=et.marker.find(0),Jt=Fn(wt.from,ge)||Gr(et.marker)-Gr(ye),Nt=Fn(wt.to,pe)||ta(et.marker)-ta(ye);if(!(Jt>=0&&Nt<=0||Jt<=0&&Nt>=0)&&(Jt<=0&&(et.marker.inclusiveRight&&ye.inclusiveLeft?Fn(wt.to,ge)>=0:Fn(wt.to,ge)>0)||Jt>=0&&(et.marker.inclusiveRight&&ye.inclusiveLeft?Fn(wt.from,pe)<=0:Fn(wt.from,pe)<0)))return!0}}}function Wr(ie){for(var oe;oe=kr(ie);)ie=oe.find(-1,!0).line;return ie}function na(ie){for(var oe;oe=fr(ie);)ie=oe.find(1,!0).line;return ie}function tr(ie){for(var oe,ge;oe=fr(ie);)ie=oe.find(1,!0).line,(ge||(ge=[])).push(ie);return ge}function Zi(ie,oe){var ge=Ln(ie,oe),pe=Wr(ge);return ge==pe?oe:Rt(pe)}function Pr(ie,oe){if(oe>ie.lastLine())return oe;var ge=Ln(ie,oe),pe;if(!ai(ie,ge))return oe;for(;pe=fr(ge);)ge=pe.find(1,!0).line;return Rt(ge)+1}function ai(ie,oe){var ge=ln&&oe.markedSpans;if(ge){for(var pe=void 0,ye=0;ye<ge.length;++ye)if(pe=ge[ye],!!pe.marker.collapsed){if(pe.from==null)return!0;if(!pe.marker.widgetNode&&pe.from==0&&pe.marker.inclusiveLeft&&xo(ie,oe,pe))return!0}}}function xo(ie,oe,ge){if(ge.to==null){var pe=ge.marker.find(1,!0);return xo(ie,pe.line,Ho(pe.line.markedSpans,ge.marker))}if(ge.marker.inclusiveRight&&ge.to==oe.text.length)return!0;for(var ye=void 0,Oe=0;Oe<oe.markedSpans.length;++Oe)if(ye=oe.markedSpans[Oe],ye.marker.collapsed&&!ye.marker.widgetNode&&ye.from==ge.to&&(ye.to==null||ye.to!=ge.from)&&(ye.marker.inclusiveLeft||ge.marker.inclusiveRight)&&xo(ie,oe,ye))return!0}function _o(ie){ie=Wr(ie);for(var oe=0,ge=ie.parent,pe=0;pe<ge.lines.length;++pe){var ye=ge.lines[pe];if(ye==ie)break;oe+=ye.height}for(var Oe=ge.parent;Oe;ge=Oe,Oe=ge.parent)for(var Ve=0;Ve<Oe.children.length;++Ve){var Xe=Oe.children[Ve];if(Xe==ge)break;oe+=Xe.height}return oe}function Wo(ie){if(ie.height==0)return 0;for(var oe=ie.text.length,ge,pe=ie;ge=kr(pe);){var ye=ge.find(0,!0);pe=ye.from.line,oe+=ye.from.ch-ye.to.ch}for(pe=ie;ge=fr(pe);){var Oe=ge.find(0,!0);oe-=pe.text.length-Oe.from.ch,pe=Oe.to.line,oe+=pe.text.length-Oe.to.ch}return oe}function ea(ie){var oe=ie.display,ge=ie.doc;oe.maxLine=Ln(ge,ge.first),oe.maxLineLength=Wo(oe.maxLine),oe.maxLineChanged=!0,ge.iter(function(pe){var ye=Wo(pe);ye>oe.maxLineLength&&(oe.maxLineLength=ye,oe.maxLine=pe)})}var ka=function(ie,oe,ge){this.text=ie,ot(this,oe),this.height=ge?ge(this):1};ka.prototype.lineNo=function(){return Rt(this)},ni(ka);function Ja(ie,oe,ge,pe){ie.text=oe,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),ki(ie),ot(ie,ge);var ye=pe?pe(ie):1;ye!=ie.height&&Pn(ie,ye)}function cs(ie){ie.parent=null,ki(ie)}var Ts={},al={};function Js(ie,oe){if(!ie||/^\s*$/.test(ie))return null;var ge=oe.addModeClass?al:Ts;return ge[ie]||(ge[ie]=ie.replace(/\S+/g,"cm-$&"))}function vn(ie,oe){var ge=Tt("span",null,null,we?"padding-right: .1px":null),pe={pre:Tt("pre",[ge],"CodeMirror-line"),content:ge,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};oe.measure={};for(var ye=0;ye<=(oe.rest?oe.rest.length:0);ye++){var Oe=ye?oe.rest[ye-1]:oe.line,Ve=void 0;pe.pos=0,pe.addToken=fu,Dr(ie.display.measure)&&(Ve=Qe(Oe,ie.doc.direction))&&(pe.addToken=ho(pe.addToken,Ve)),pe.map=[];var Xe=oe!=ie.display.externalMeasured&&Rt(Oe);ja(Oe,pe,Er(ie,Oe,Xe)),Oe.styleClasses&&(Oe.styleClasses.bgClass&&(pe.bgClass=nn(Oe.styleClasses.bgClass,pe.bgClass||"")),Oe.styleClasses.textClass&&(pe.textClass=nn(Oe.styleClasses.textClass,pe.textClass||""))),pe.map.length==0&&pe.map.push(0,0,pe.content.appendChild(Ir(ie.display.measure))),ye==0?(oe.measure.map=pe.map,oe.measure.cache={}):((oe.measure.maps||(oe.measure.maps=[])).push(pe.map),(oe.measure.caches||(oe.measure.caches=[])).push({}))}if(we){var et=pe.content.lastChild;(/\bcm-tab\b/.test(et.className)||et.querySelector&&et.querySelector(".cm-tab"))&&(pe.content.className="cm-tab-wrap-hack")}return bt(ie,"renderLine",ie,oe.line,pe.pre),pe.pre.className&&(pe.textClass=nn(pe.pre.className,pe.textClass||"")),pe}function Ms(ie){var oe=lt("span","\u2022","cm-invalidchar");return oe.title="\\u"+ie.charCodeAt(0).toString(16),oe.setAttribute("aria-label",oe.title),oe}function fu(ie,oe,ge,pe,ye,Oe,Ve){if(oe){var Xe=ie.splitSpaces?gu(oe,ie.trailingSpace):oe,et=ie.cm.state.specialChars,wt=!1,Jt;if(!et.test(oe))ie.col+=oe.length,Jt=document.createTextNode(Xe),ie.map.push(ie.pos,ie.pos+oe.length,Jt),je&&Ze<9&&(wt=!0),ie.pos+=oe.length;else{Jt=document.createDocumentFragment();for(var Nt=0;;){et.lastIndex=Nt;var Bn=et.exec(oe),Sn=Bn?Bn.index-Nt:oe.length-Nt;if(Sn){var ti=document.createTextNode(Xe.slice(Nt,Nt+Sn));je&&Ze<9?Jt.appendChild(lt("span",[ti])):Jt.appendChild(ti),ie.map.push(ie.pos,ie.pos+Sn,ti),ie.col+=Sn,ie.pos+=Sn}if(!Bn)break;Nt+=Sn+1;var gi=void 0;if(Bn[0]==" "){var bi=ie.cm.options.tabSize,Gi=bi-ie.col%bi;gi=Jt.appendChild(lt("span",li(Gi),"cm-tab")),gi.setAttribute("role","presentation"),gi.setAttribute("cm-text"," "),ie.col+=Gi}else Bn[0]=="\r"||Bn[0]==`
`?(gi=Jt.appendChild(lt("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),gi.setAttribute("cm-text",Bn[0]),ie.col+=1):(gi=ie.cm.options.specialCharPlaceholder(Bn[0]),gi.setAttribute("cm-text",Bn[0]),je&&Ze<9?Jt.appendChild(lt("span",[gi])):Jt.appendChild(gi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,gi),ie.pos++}}if(ie.trailingSpace=Xe.charCodeAt(oe.length-1)==32,ge||pe||ye||wt||Oe||Ve){var lr=ge||"";pe&&(lr+=pe),ye&&(lr+=ye);var rr=lt("span",[Jt],lr,Oe);if(Ve)for(var Cr in Ve)Ve.hasOwnProperty(Cr)&&Cr!="style"&&Cr!="class"&&rr.setAttribute(Cr,Ve[Cr]);return ie.content.appendChild(rr)}ie.content.appendChild(Jt)}}function gu(ie,oe){if(ie.length>1&&!/ /.test(ie))return ie;for(var ge=oe,pe="",ye=0;ye<ie.length;ye++){var Oe=ie.charAt(ye);Oe==" "&&ge&&(ye==ie.length-1||ie.charCodeAt(ye+1)==32)&&(Oe="\xA0"),pe+=Oe,ge=Oe==" "}return pe}function ho(ie,oe){return function(ge,pe,ye,Oe,Ve,Xe,et){ye=ye?ye+" cm-force-border":"cm-force-border";for(var wt=ge.pos,Jt=wt+pe.length;;){for(var Nt=void 0,Bn=0;Bn<oe.length&&(Nt=oe[Bn],!(Nt.to>wt&&Nt.from<=wt));Bn++);if(Nt.to>=Jt)return ie(ge,pe,ye,Oe,Ve,Xe,et);ie(ge,pe.slice(0,Nt.to-wt),ye,Oe,null,Xe,et),Oe=null,pe=pe.slice(Nt.to-wt),wt=Nt.to}}}function ia(ie,oe,ge,pe){var ye=!pe&&ge.widgetNode;ye&&ie.map.push(ie.pos,ie.pos+oe,ye),!pe&&ie.cm.display.input.needsContentAttribute&&(ye||(ye=ie.content.appendChild(document.createElement("span"))),ye.setAttribute("cm-marker",ge.id)),ye&&(ie.cm.display.input.setUneditable(ye),ie.content.appendChild(ye)),ie.pos+=oe,ie.trailingSpace=!1}function ja(ie,oe,ge){var pe=ie.markedSpans,ye=ie.text,Oe=0;if(!pe){for(var Ve=1;Ve<ge.length;Ve+=2)oe.addToken(oe,ye.slice(Oe,Oe=ge[Ve]),Js(ge[Ve+1],oe.cm.options));return}for(var Xe=ye.length,et=0,wt=1,Jt="",Nt,Bn,Sn=0,ti,gi,bi,Gi,lr;;){if(Sn==et){ti=gi=bi=Bn="",lr=null,Gi=null,Sn=1/0;for(var rr=[],Cr=void 0,wn=0;wn<pe.length;++wn){var or=pe[wn],Eo=or.marker;if(Eo.type=="bookmark"&&or.from==et&&Eo.widgetNode)rr.push(Eo);else if(or.from<=et&&(or.to==null||or.to>et||Eo.collapsed&&or.to==et&&or.from==et)){if(or.to!=null&&or.to!=et&&Sn>or.to&&(Sn=or.to,gi=""),Eo.className&&(ti+=" "+Eo.className),Eo.css&&(Bn=(Bn?Bn+";":"")+Eo.css),Eo.startStyle&&or.from==et&&(bi+=" "+Eo.startStyle),Eo.endStyle&&or.to==Sn&&(Cr||(Cr=[])).push(Eo.endStyle,or.to),Eo.title&&((lr||(lr={})).title=Eo.title),Eo.attributes)for(var _n in Eo.attributes)(lr||(lr={}))[_n]=Eo.attributes[_n];Eo.collapsed&&(!Gi||Hr(Gi.marker,Eo)<0)&&(Gi=or)}else or.from>et&&Sn>or.from&&(Sn=or.from)}if(Cr)for(var Oa=0;Oa<Cr.length;Oa+=2)Cr[Oa+1]==Sn&&(gi+=" "+Cr[Oa]);if(!Gi||Gi.from==et)for(var Ta=0;Ta<rr.length;++Ta)ia(oe,0,rr[Ta]);if(Gi&&(Gi.from||0)==et){if(ia(oe,(Gi.to==null?Xe+1:Gi.to)-et,Gi.marker,Gi.from==null),Gi.to==null)return;Gi.to==et&&(Gi=!1)}}if(et>=Xe)break;for(var Gs=Math.min(Xe,Sn);;){if(Jt){var Hs=et+Jt.length;if(!Gi){var wa=Hs>Gs?Jt.slice(0,Gs-et):Jt;oe.addToken(oe,wa,Nt?Nt+ti:ti,bi,et+wa.length==Sn?gi:"",Bn,lr)}if(Hs>=Gs){Jt=Jt.slice(Gs-et),et=Gs;break}et=Hs,bi=""}Jt=ye.slice(Oe,Oe=ge[wt++]),Nt=Js(ge[wt++],oe.cm.options)}}}function Ko(ie,oe,ge){this.line=oe,this.rest=tr(oe),this.size=this.rest?Rt(Ot(this.rest))-ge+1:1,this.node=this.text=null,this.hidden=ai(ie,oe)}function ao(ie,oe,ge){for(var pe=[],ye,Oe=oe;Oe<ge;Oe=ye){var Ve=new Ko(ie.doc,Ln(ie.doc,Oe),Oe);ye=Oe+Ve.size,pe.push(Ve)}return pe}var Jo=null;function xs(ie){Jo?Jo.ops.push(ie):ie.ownsGroup=Jo={ops:[ie],delayedCallbacks:[]}}function Kr(ie){var oe=ie.delayedCallbacks,ge=0;do{for(;ge<oe.length;ge++)oe[ge].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(ge<oe.length)}function To(ie,oe){var ge=ie.ownsGroup;if(ge)try{Kr(ge)}finally{Jo=null,oe(ge)}}var bo=null;function ji(ie,oe){var ge=tn(ie,oe);if(ge.length){var pe=Array.prototype.slice.call(arguments,2),ye;Jo?ye=Jo.delayedCallbacks:bo?ye=bo:(ye=bo=[],setTimeout(ds,0));for(var Oe=function(Xe){ye.push(function(){return ge[Xe].apply(null,pe)})},Ve=0;Ve<ge.length;++Ve)Oe(Ve)}}function ds(){var ie=bo;bo=null;for(var oe=0;oe<ie.length;++oe)ie[oe]()}function hs(ie,oe,ge,pe){for(var ye=0;ye<oe.changes.length;ye++){var Oe=oe.changes[ye];Oe=="text"?Ii(ie,oe):Oe=="gutter"?bs(ie,oe,ge,pe):Oe=="class"?Da(ie,oe):Oe=="widget"&&Xl(ie,oe,pe)}oe.changes=null}function dl(ie){return ie.node==ie.text&&(ie.node=lt("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),je&&Ze<8&&(ie.node.style.zIndex=2)),ie.node}function pu(ie,oe){var ge=oe.bgClass?oe.bgClass+" "+(oe.line.bgClass||""):oe.line.bgClass;if(ge&&(ge+=" CodeMirror-linebackground"),oe.background)ge?oe.background.className=ge:(oe.background.parentNode.removeChild(oe.background),oe.background=null);else if(ge){var pe=dl(oe);oe.background=pe.insertBefore(lt("div",null,ge),pe.firstChild),ie.display.input.setUneditable(oe.background)}}function Iu(ie,oe){var ge=ie.display.externalMeasured;return ge&&ge.line==oe.line?(ie.display.externalMeasured=null,oe.measure=ge.measure,ge.built):vn(ie,oe)}function Ii(ie,oe){var ge=oe.text.className,pe=Iu(ie,oe);oe.text==oe.node&&(oe.node=pe.pre),oe.text.parentNode.replaceChild(pe.pre,oe.text),oe.text=pe.pre,pe.bgClass!=oe.bgClass||pe.textClass!=oe.textClass?(oe.bgClass=pe.bgClass,oe.textClass=pe.textClass,Da(ie,oe)):ge&&(oe.text.className=ge)}function Da(ie,oe){pu(ie,oe),oe.line.wrapClass?dl(oe).className=oe.line.wrapClass:oe.node!=oe.text&&(oe.node.className="");var ge=oe.textClass?oe.textClass+" "+(oe.line.textClass||""):oe.line.textClass;oe.text.className=ge||""}function bs(ie,oe,ge,pe){if(oe.gutter&&(oe.node.removeChild(oe.gutter),oe.gutter=null),oe.gutterBackground&&(oe.node.removeChild(oe.gutterBackground),oe.gutterBackground=null),oe.line.gutterClass){var ye=dl(oe);oe.gutterBackground=lt("div",null,"CodeMirror-gutter-background "+oe.line.gutterClass,"left: "+(ie.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px; width: "+pe.gutterTotalWidth+"px"),ie.display.input.setUneditable(oe.gutterBackground),ye.insertBefore(oe.gutterBackground,oe.text)}var Oe=oe.line.gutterMarkers;if(ie.options.lineNumbers||Oe){var Ve=dl(oe),Xe=oe.gutter=lt("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Xe),Ve.insertBefore(Xe,oe.text),oe.line.gutterClass&&(Xe.className+=" "+oe.line.gutterClass),ie.options.lineNumbers&&(!Oe||!Oe["CodeMirror-linenumbers"])&&(oe.lineNumber=Xe.appendChild(lt("div",Oi(ie.options,ge),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Oe)for(var et=0;et<ie.display.gutterSpecs.length;++et){var wt=ie.display.gutterSpecs[et].className,Jt=Oe.hasOwnProperty(wt)&&Oe[wt];Jt&&Xe.appendChild(lt("div",[Jt],"CodeMirror-gutter-elt","left: "+pe.gutterLeft[wt]+"px; width: "+pe.gutterWidth[wt]+"px"))}}}function Xl(ie,oe,ge){oe.alignable&&(oe.alignable=null);for(var pe=Ne("CodeMirror-linewidget"),ye=oe.node.firstChild,Oe=void 0;ye;ye=Oe)Oe=ye.nextSibling,pe.test(ye.className)&&oe.node.removeChild(ye);mu(ie,oe,ge)}function Ql(ie,oe,ge,pe){var ye=Iu(ie,oe);return oe.text=oe.node=ye.pre,ye.bgClass&&(oe.bgClass=ye.bgClass),ye.textClass&&(oe.textClass=ye.textClass),Da(ie,oe),bs(ie,oe,ge,pe),mu(ie,oe,pe),oe.node}function mu(ie,oe,ge){if(Xr(ie,oe.line,oe,ge,!0),oe.rest)for(var pe=0;pe<oe.rest.length;pe++)Xr(ie,oe.rest[pe],oe,ge,!1)}function Xr(ie,oe,ge,pe,ye){if(oe.widgets)for(var Oe=dl(ge),Ve=0,Xe=oe.widgets;Ve<Xe.length;++Ve){var et=Xe[Ve],wt=lt("div",[et.node],"CodeMirror-linewidget"+(et.className?" "+et.className:""));et.handleMouseEvents||wt.setAttribute("cm-ignore-events","true"),Vc(et,wt,ge,pe),ie.display.input.setUneditable(wt),ye&&et.above?Oe.insertBefore(wt,ge.gutter||ge.text):Oe.appendChild(wt),ji(et,"redraw")}}function Vc(ie,oe,ge,pe){if(ie.noHScroll){(ge.alignable||(ge.alignable=[])).push(oe);var ye=pe.wrapperWidth;oe.style.left=pe.fixedPos+"px",ie.coverGutter||(ye-=pe.gutterTotalWidth,oe.style.paddingLeft=pe.gutterTotalWidth+"px"),oe.style.width=ye+"px"}ie.coverGutter&&(oe.style.zIndex=5,oe.style.position="relative",ie.noHScroll||(oe.style.marginLeft=-pe.gutterTotalWidth+"px"))}function bl(ie){if(ie.height!=null)return ie.height;var oe=ie.doc.cm;if(!oe)return 0;if(!Ut(document.body,ie.node)){var ge="position: relative;";ie.coverGutter&&(ge+="margin-left: -"+oe.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ge+="width: "+oe.display.wrapper.clientWidth+"px;"),at(oe.display.measure,lt("div",[ie.node],null,ge))}return ie.height=ie.node.parentNode.offsetHeight}function wl(ie,oe){for(var ge=Yi(oe);ge!=ie.wrapper;ge=ge.parentNode)if(!ge||ge.nodeType==1&&ge.getAttribute("cm-ignore-events")=="true"||ge.parentNode==ie.sizer&&ge!=ie.mover)return!0}function pl(ie){return ie.lineSpace.offsetTop}function Ju(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function qu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var oe=at(ie.measure,lt("pre","x","CodeMirror-line-like")),ge=window.getComputedStyle?window.getComputedStyle(oe):oe.currentStyle,pe={left:parseInt(ge.paddingLeft),right:parseInt(ge.paddingRight)};return!isNaN(pe.left)&&!isNaN(pe.right)&&(ie.cachedPaddingH=pe),pe}function ml(ie){return Cn-ie.display.nativeBarWidth}function Il(ie){return ie.display.scroller.clientWidth-ml(ie)-ie.display.barWidth}function ud(ie){return ie.display.scroller.clientHeight-ml(ie)-ie.display.barHeight}function cd(ie,oe,ge){var pe=ie.options.lineWrapping,ye=pe&&Il(ie);if(!oe.measure.heights||pe&&oe.measure.width!=ye){var Oe=oe.measure.heights=[];if(pe){oe.measure.width=ye;for(var Ve=oe.text.firstChild.getClientRects(),Xe=0;Xe<Ve.length-1;Xe++){var et=Ve[Xe],wt=Ve[Xe+1];Math.abs(et.bottom-wt.bottom)>2&&Oe.push((et.bottom+wt.top)/2-ge.top)}}Oe.push(ge.bottom-ge.top)}}function Tc(ie,oe,ge){if(ie.line==oe)return{map:ie.measure.map,cache:ie.measure.cache};for(var pe=0;pe<ie.rest.length;pe++)if(ie.rest[pe]==oe)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe]};for(var ye=0;ye<ie.rest.length;ye++)if(Rt(ie.rest[ye])>ge)return{map:ie.measure.maps[ye],cache:ie.measure.caches[ye],before:!0}}function Ed(ie,oe){oe=Wr(oe);var ge=Rt(oe),pe=ie.display.externalMeasured=new Ko(ie.doc,oe,ge);pe.lineN=ge;var ye=pe.built=vn(ie,pe);return pe.text=ye.pre,at(ie.display.lineMeasure,ye.pre),pe}function dd(ie,oe,ge,pe){return Ml(ie,hc(ie,oe),ge,pe)}function kc(ie,oe){if(oe>=ie.display.viewFrom&&oe<ie.display.viewTo)return ie.display.view[yl(ie,oe)];var ge=ie.display.externalMeasured;if(ge&&oe>=ge.lineN&&oe<ge.lineN+ge.size)return ge}function hc(ie,oe){var ge=Rt(oe),pe=kc(ie,ge);pe&&!pe.text?pe=null:pe&&pe.changes&&(hs(ie,pe,ge,Sh(ie)),ie.curOp.forceUpdate=!0),pe||(pe=Ed(ie,oe));var ye=Tc(pe,oe,ge);return{line:oe,view:pe,rect:null,map:ye.map,cache:ye.cache,before:ye.before,hasHeights:!1}}function Ml(ie,oe,ge,pe,ye){oe.before&&(ge=-1);var Oe=ge+(pe||""),Ve;return oe.cache.hasOwnProperty(Oe)?Ve=oe.cache[Oe]:(oe.rect||(oe.rect=oe.view.text.getBoundingClientRect()),oe.hasHeights||(cd(ie,oe.view,oe.rect),oe.hasHeights=!0),Ve=wo(ie,oe,ge,pe),Ve.bogus||(oe.cache[Oe]=Ve)),{left:Ve.left,right:Ve.right,top:ye?Ve.rtop:Ve.top,bottom:ye?Ve.rbottom:Ve.bottom}}var Cd={left:0,right:0,top:0,bottom:0};function Ac(ie,oe,ge){for(var pe,ye,Oe,Ve,Xe,et,wt=0;wt<ie.length;wt+=3)if(Xe=ie[wt],et=ie[wt+1],oe<Xe?(ye=0,Oe=1,Ve="left"):oe<et?(ye=oe-Xe,Oe=ye+1):(wt==ie.length-3||oe==et&&ie[wt+3]>oe)&&(Oe=et-Xe,ye=Oe-1,oe>=et&&(Ve="right")),ye!=null){if(pe=ie[wt+2],Xe==et&&ge==(pe.insertLeft?"left":"right")&&(Ve=ge),ge=="left"&&ye==0)for(;wt&&ie[wt-2]==ie[wt-3]&&ie[wt-1].insertLeft;)pe=ie[(wt-=3)+2],Ve="left";if(ge=="right"&&ye==et-Xe)for(;wt<ie.length-3&&ie[wt+3]==ie[wt+4]&&!ie[wt+5].insertLeft;)pe=ie[(wt+=3)+2],Ve="right";break}return{node:pe,start:ye,end:Oe,collapse:Ve,coverStart:Xe,coverEnd:et}}function fc(ie,oe){var ge=Cd;if(oe=="left")for(var pe=0;pe<ie.length&&(ge=ie[pe]).left==ge.right;pe++);else for(var ye=ie.length-1;ye>=0&&(ge=ie[ye]).left==ge.right;ye--);return ge}function wo(ie,oe,ge,pe){var ye=Ac(oe.map,ge,pe),Oe=ye.node,Ve=ye.start,Xe=ye.end,et=ye.collapse,wt;if(Oe.nodeType==3){for(var Jt=0;Jt<4;Jt++){for(;Ve&&Zt(oe.line.text.charAt(ye.coverStart+Ve));)--Ve;for(;ye.coverStart+Xe<ye.coverEnd&&Zt(oe.line.text.charAt(ye.coverStart+Xe));)++Xe;if(je&&Ze<9&&Ve==0&&Xe==ye.coverEnd-ye.coverStart?wt=Oe.parentNode.getBoundingClientRect():wt=fc(nt(Oe,Ve,Xe).getClientRects(),pe),wt.left||wt.right||Ve==0)break;Xe=Ve,Ve=Ve-1,et="right"}je&&Ze<11&&(wt=aa(ie.display.measure,wt))}else{Ve>0&&(et=pe="right");var Nt;ie.options.lineWrapping&&(Nt=Oe.getClientRects()).length>1?wt=Nt[pe=="right"?Nt.length-1:0]:wt=Oe.getBoundingClientRect()}if(je&&Ze<9&&!Ve&&(!wt||!wt.left&&!wt.right)){var Bn=Oe.parentNode.getClientRects()[0];Bn?wt={left:Bn.left,right:Bn.left+Lc(ie.display),top:Bn.top,bottom:Bn.bottom}:wt=Cd}for(var Sn=wt.top-oe.rect.top,ti=wt.bottom-oe.rect.top,gi=(Sn+ti)/2,bi=oe.view.measure.heights,Gi=0;Gi<bi.length-1&&!(gi<bi[Gi]);Gi++);var lr=Gi?bi[Gi-1]:0,rr=bi[Gi],Cr={left:(et=="right"?wt.right:wt.left)-oe.rect.left,right:(et=="left"?wt.left:wt.right)-oe.rect.left,top:lr,bottom:rr};return!wt.left&&!wt.right&&(Cr.bogus=!0),ie.options.singleCursorHeightPerLine||(Cr.rtop=Sn,Cr.rbottom=ti),Cr}function aa(ie,oe){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!oo(ie))return oe;var ge=screen.logicalXDPI/screen.deviceXDPI,pe=screen.logicalYDPI/screen.deviceYDPI;return{left:oe.left*ge,right:oe.right*ge,top:oe.top*pe,bottom:oe.bottom*pe}}function hl(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var oe=0;oe<ie.rest.length;oe++)ie.measure.caches[oe]={}}function ks(ie){ie.display.externalMeasure=null,$e(ie.display.lineMeasure);for(var oe=0;oe<ie.display.view.length;oe++)hl(ie.display.view[oe])}function fs(ie){ks(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Ua(){return Je&&ee?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qa(){return Je&&ee?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ws(ie){var oe=0;if(ie.widgets)for(var ge=0;ge<ie.widgets.length;++ge)ie.widgets[ge].above&&(oe+=bl(ie.widgets[ge]));return oe}function gs(ie,oe,ge,pe,ye){if(!ye){var Oe=ws(oe);ge.top+=Oe,ge.bottom+=Oe}if(pe=="line")return ge;pe||(pe="local");var Ve=_o(oe);if(pe=="local"?Ve+=pl(ie.display):Ve-=ie.display.viewOffset,pe=="page"||pe=="window"){var Xe=ie.display.lineSpace.getBoundingClientRect();Ve+=Xe.top+(pe=="window"?0:qa());var et=Xe.left+(pe=="window"?0:Ua());ge.left+=et,ge.right+=et}return ge.top+=Ve,ge.bottom+=Ve,ge}function gc(ie,oe,ge){if(ge=="div")return oe;var pe=oe.left,ye=oe.top;if(ge=="page")pe-=Ua(),ye-=qa();else if(ge=="local"||!ge){var Oe=ie.display.sizer.getBoundingClientRect();pe+=Oe.left,ye+=Oe.top}var Ve=ie.display.lineSpace.getBoundingClientRect();return{left:pe-Ve.left,top:ye-Ve.top}}function vu(ie,oe,ge,pe,ye){return pe||(pe=Ln(ie.doc,oe.line)),gs(ie,pe,dd(ie,pe,oe.ch,ye),ge)}function es(ie,oe,ge,pe,ye,Oe){pe=pe||Ln(ie.doc,oe.line),ye||(ye=hc(ie,pe));function Ve(ti,gi){var bi=Ml(ie,ye,ti,gi?"right":"left",Oe);return gi?bi.left=bi.right:bi.right=bi.left,gs(ie,pe,bi,ge)}var Xe=Qe(pe,ie.doc.direction),et=oe.ch,wt=oe.sticky;if(et>=pe.text.length?(et=pe.text.length,wt="before"):et<=0&&(et=0,wt="after"),!Xe)return Ve(wt=="before"?et-1:et,wt=="before");function Jt(ti,gi,bi){var Gi=Xe[gi],lr=Gi.level==1;return Ve(bi?ti-1:ti,lr!=bi)}var Nt=be(Xe,et,wt),Bn=Pe,Sn=Jt(et,Nt,wt=="before");return Bn!=null&&(Sn.other=Jt(et,Bn,wt!="before")),Sn}function Pd(ie,oe){var ge=0;oe=Gn(ie.doc,oe),ie.options.lineWrapping||(ge=Lc(ie.display)*oe.ch);var pe=Ln(ie.doc,oe.line),ye=_o(pe)+pl(ie.display);return{left:ge,right:ge,top:ye,bottom:ye+pe.height}}function vh(ie,oe,ge,pe,ye){var Oe=Yt(ie,oe,ge);return Oe.xRel=ye,pe&&(Oe.outside=pe),Oe}function hd(ie,oe,ge){var pe=ie.doc;if(ge+=ie.display.viewOffset,ge<0)return vh(pe.first,0,null,-1,-1);var ye=Yn(pe,ge),Oe=pe.first+pe.size-1;if(ye>Oe)return vh(pe.first+pe.size-1,Ln(pe,Oe).text.length,null,1,1);oe<0&&(oe=0);for(var Ve=Ln(pe,ye);;){var Xe=si(ie,Ve,ye,oe,ge),et=no(Ve,Xe.ch+(Xe.xRel>0||Xe.outside>0?1:0));if(!et)return Xe;var wt=et.find(1);if(wt.line==ye)return wt;Ve=Ln(pe,ye=wt.line)}}function Ar(ie,oe,ge,pe){pe-=ws(oe);var ye=oe.text.length,Oe=ft(function(Ve){return Ml(ie,ge,Ve-1).bottom<=pe},ye,0);return ye=ft(function(Ve){return Ml(ie,ge,Ve).top>pe},Oe,ye),{begin:Oe,end:ye}}function Td(ie,oe,ge,pe){ge||(ge=hc(ie,oe));var ye=gs(ie,oe,Ml(ie,ge,pe),"line").top;return Ar(ie,oe,ge,ye)}function Ft(ie,oe,ge,pe){return ie.bottom<=ge?!1:ie.top>ge?!0:(pe?ie.left:ie.right)>oe}function si(ie,oe,ge,pe,ye){ye-=_o(oe);var Oe=hc(ie,oe),Ve=ws(oe),Xe=0,et=oe.text.length,wt=!0,Jt=Qe(oe,ie.doc.direction);if(Jt){var Nt=(ie.options.lineWrapping?qh:yh)(ie,oe,ge,Oe,Jt,pe,ye);wt=Nt.level!=1,Xe=wt?Nt.from:Nt.to-1,et=wt?Nt.to:Nt.from-1}var Bn=null,Sn=null,ti=ft(function(wn){var or=Ml(ie,Oe,wn);return or.top+=Ve,or.bottom+=Ve,Ft(or,pe,ye,!1)?(or.top<=ye&&or.left<=pe&&(Bn=wn,Sn=or),!0):!1},Xe,et),gi,bi,Gi=!1;if(Sn){var lr=pe-Sn.left<Sn.right-pe,rr=lr==wt;ti=Bn+(rr?0:1),bi=rr?"after":"before",gi=lr?Sn.left:Sn.right}else{!wt&&(ti==et||ti==Xe)&&ti++,bi=ti==0?"after":ti==oe.text.length?"before":Ml(ie,Oe,ti-(wt?1:0)).bottom+Ve<=ye==wt?"after":"before";var Cr=es(ie,Yt(ge,ti,bi),"line",oe,Oe);gi=Cr.left,Gi=ye<Cr.top?-1:ye>=Cr.bottom?1:0}return ti=yt(oe.text,ti,1),vh(ge,ti,bi,Gi,pe-gi)}function yh(ie,oe,ge,pe,ye,Oe,Ve){var Xe=ft(function(Nt){var Bn=ye[Nt],Sn=Bn.level!=1;return Ft(es(ie,Yt(ge,Sn?Bn.to:Bn.from,Sn?"before":"after"),"line",oe,pe),Oe,Ve,!0)},0,ye.length-1),et=ye[Xe];if(Xe>0){var wt=et.level!=1,Jt=es(ie,Yt(ge,wt?et.from:et.to,wt?"after":"before"),"line",oe,pe);Ft(Jt,Oe,Ve,!0)&&Jt.top>Ve&&(et=ye[Xe-1])}return et}function qh(ie,oe,ge,pe,ye,Oe,Ve){var Xe=Ar(ie,oe,pe,Ve),et=Xe.begin,wt=Xe.end;/\s/.test(oe.text.charAt(wt-1))&&wt--;for(var Jt=null,Nt=null,Bn=0;Bn<ye.length;Bn++){var Sn=ye[Bn];if(!(Sn.from>=wt||Sn.to<=et)){var ti=Sn.level!=1,gi=Ml(ie,pe,ti?Math.min(wt,Sn.to)-1:Math.max(et,Sn.from)).right,bi=gi<Oe?Oe-gi+1e9:gi-Oe;(!Jt||Nt>bi)&&(Jt=Sn,Nt=bi)}}return Jt||(Jt=ye[ye.length-1]),Jt.from<et&&(Jt={from:et,to:Jt.to,level:Jt.level}),Jt.to>wt&&(Jt={from:Jt.from,to:wt,level:Jt.level}),Jt}var pc;function mc(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(pc==null){pc=lt("pre",null,"CodeMirror-line-like");for(var oe=0;oe<49;++oe)pc.appendChild(document.createTextNode("x")),pc.appendChild(lt("br"));pc.appendChild(document.createTextNode("x"))}at(ie.measure,pc);var ge=pc.offsetHeight/50;return ge>3&&(ie.cachedTextHeight=ge),$e(ie.measure),ge||1}function Lc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var oe=lt("span","xxxxxxxxxx"),ge=lt("pre",[oe],"CodeMirror-line-like");at(ie.measure,ge);var pe=oe.getBoundingClientRect(),ye=(pe.right-pe.left)/10;return ye>2&&(ie.cachedCharWidth=ye),ye||10}function Sh(ie){for(var oe=ie.display,ge={},pe={},ye=oe.gutters.clientLeft,Oe=oe.gutters.firstChild,Ve=0;Oe;Oe=Oe.nextSibling,++Ve){var Xe=ie.display.gutterSpecs[Ve].className;ge[Xe]=Oe.offsetLeft+Oe.clientLeft+ye,pe[Xe]=Oe.clientWidth}return{fixedPos:kd(oe),gutterTotalWidth:oe.gutters.offsetWidth,gutterLeft:ge,gutterWidth:pe,wrapperWidth:oe.wrapper.clientWidth}}function kd(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function ps(ie){var oe=mc(ie.display),ge=ie.options.lineWrapping,pe=ge&&Math.max(5,ie.display.scroller.clientWidth/Lc(ie.display)-3);return function(ye){if(ai(ie.doc,ye))return 0;var Oe=0;if(ye.widgets)for(var Ve=0;Ve<ye.widgets.length;Ve++)ye.widgets[Ve].height&&(Oe+=ye.widgets[Ve].height);return ge?Oe+(Math.ceil(ye.text.length/pe)||1)*oe:Oe+oe}}function io(ie){var oe=ie.doc,ge=ps(ie);oe.iter(function(pe){var ye=ge(pe);ye!=pe.height&&Pn(pe,ye)})}function El(ie,oe,ge,pe){var ye=ie.display;if(!ge&&Yi(oe).getAttribute("cm-not-content")=="true")return null;var Oe,Ve,Xe=ye.lineSpace.getBoundingClientRect();try{Oe=oe.clientX-Xe.left,Ve=oe.clientY-Xe.top}catch(Nt){return null}var et=hd(ie,Oe,Ve),wt;if(pe&&et.xRel>0&&(wt=Ln(ie.doc,et.line).text).length==et.ch){var Jt=Ct(wt,wt.length,ie.options.tabSize)-wt.length;et=Yt(et.line,Math.max(0,Math.round((Oe-qu(ie.display).left)/Lc(ie.display))-Jt))}return et}function yl(ie,oe){if(oe>=ie.display.viewTo||(oe-=ie.display.viewFrom,oe<0))return null;for(var ge=ie.display.view,pe=0;pe<ge.length;pe++)if(oe-=ge[pe].size,oe<0)return pe}function Za(ie,oe,ge,pe){oe==null&&(oe=ie.doc.first),ge==null&&(ge=ie.doc.first+ie.doc.size),pe||(pe=0);var ye=ie.display;if(pe&&ge<ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>oe)&&(ye.updateLineNumbers=oe),ie.curOp.viewChanged=!0,oe>=ye.viewTo)ln&&Zi(ie.doc,oe)<ye.viewTo&&Ks(ie);else if(ge<=ye.viewFrom)ln&&Pr(ie.doc,ge+pe)>ye.viewFrom?Ks(ie):(ye.viewFrom+=pe,ye.viewTo+=pe);else if(oe<=ye.viewFrom&&ge>=ye.viewTo)Ks(ie);else if(oe<=ye.viewFrom){var Oe=Jl(ie,ge,ge+pe,1);Oe?(ye.view=ye.view.slice(Oe.index),ye.viewFrom=Oe.lineN,ye.viewTo+=pe):Ks(ie)}else if(ge>=ye.viewTo){var Ve=Jl(ie,oe,oe,-1);Ve?(ye.view=ye.view.slice(0,Ve.index),ye.viewTo=Ve.lineN):Ks(ie)}else{var Xe=Jl(ie,oe,oe,-1),et=Jl(ie,ge,ge+pe,1);Xe&&et?(ye.view=ye.view.slice(0,Xe.index).concat(ao(ie,Xe.lineN,et.lineN)).concat(ye.view.slice(et.index)),ye.viewTo+=pe):Ks(ie)}var wt=ye.externalMeasured;wt&&(ge<wt.lineN?wt.lineN+=pe:oe<wt.lineN+wt.size&&(ye.externalMeasured=null))}function Go(ie,oe,ge){ie.curOp.viewChanged=!0;var pe=ie.display,ye=ie.display.externalMeasured;if(ye&&oe>=ye.lineN&&oe<ye.lineN+ye.size&&(pe.externalMeasured=null),!(oe<pe.viewFrom||oe>=pe.viewTo)){var Oe=pe.view[yl(ie,oe)];if(Oe.node!=null){var Ve=Oe.changes||(Oe.changes=[]);Bt(Ve,ge)==-1&&Ve.push(ge)}}}function Ks(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Jl(ie,oe,ge,pe){var ye=yl(ie,oe),Oe,Ve=ie.display.view;if(!ln||ge==ie.doc.first+ie.doc.size)return{index:ye,lineN:ge};for(var Xe=ie.display.viewFrom,et=0;et<ye;et++)Xe+=Ve[et].size;if(Xe!=oe){if(pe>0){if(ye==Ve.length-1)return null;Oe=Xe+Ve[ye].size-oe,ye++}else Oe=Xe-oe;oe+=Oe,ge+=Oe}for(;Zi(ie.doc,ge)!=ge;){if(ye==(pe<0?0:Ve.length-1))return null;ge+=pe*Ve[ye-(pe<0?1:0)].size,ye+=pe}return{index:ye,lineN:ge}}function Ga(ie,oe,ge){var pe=ie.display,ye=pe.view;ye.length==0||oe>=pe.viewTo||ge<=pe.viewFrom?(pe.view=ao(ie,oe,ge),pe.viewFrom=oe):(pe.viewFrom>oe?pe.view=ao(ie,oe,pe.viewFrom).concat(pe.view):pe.viewFrom<oe&&(pe.view=pe.view.slice(yl(ie,oe))),pe.viewFrom=oe,pe.viewTo<ge?pe.view=pe.view.concat(ao(ie,pe.viewTo,ge)):pe.viewTo>ge&&(pe.view=pe.view.slice(0,yl(ie,ge)))),pe.viewTo=ge}function yu(ie){for(var oe=ie.display.view,ge=0,pe=0;pe<oe.length;pe++){var ye=oe[pe];!ye.hidden&&(!ye.node||ye.changes)&&++ge}return ge}function sl(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function fd(ie,oe){oe===void 0&&(oe=!0);for(var ge=ie.doc,pe={},ye=pe.cursors=document.createDocumentFragment(),Oe=pe.selection=document.createDocumentFragment(),Ve=0;Ve<ge.sel.ranges.length;Ve++)if(!(!oe&&Ve==ge.sel.primIndex)){var Xe=ge.sel.ranges[Ve];if(!(Xe.from().line>=ie.display.viewTo||Xe.to().line<ie.display.viewFrom)){var et=Xe.empty();(et||ie.options.showCursorWhenSelecting)&&da(ie,Xe.head,ye),et||ha(ie,Xe,Oe)}}return pe}function da(ie,oe,ge){var pe=es(ie,oe,"div",null,null,!ie.options.singleCursorHeightPerLine),ye=ge.appendChild(lt("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 Oe=ge.appendChild(lt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Oe.style.display="",Oe.style.left=pe.other.left+"px",Oe.style.top=pe.other.top+"px",Oe.style.height=(pe.other.bottom-pe.other.top)*.85+"px"}}function Cl(ie,oe){return ie.top-oe.top||ie.left-oe.left}function ha(ie,oe,ge){var pe=ie.display,ye=ie.doc,Oe=document.createDocumentFragment(),Ve=qu(ie.display),Xe=Ve.left,et=Math.max(pe.sizerWidth,Il(ie)-pe.sizer.offsetLeft)-Ve.right,wt=ye.direction=="ltr";function Jt(rr,Cr,wn,or){Cr<0&&(Cr=0),Cr=Math.round(Cr),or=Math.round(or),Oe.appendChild(lt("div",null,"CodeMirror-selected","position: absolute; left: "+rr+`px;
top: `+Cr+"px; width: "+(wn==null?et-rr:wn)+`px;
height: `+(or-Cr)+"px"))}function Nt(rr,Cr,wn){var or=Ln(ye,rr),Eo=or.text.length,_n,Oa;function Ta(wa,Ds){return vu(ie,Yt(rr,wa),"div",or,Ds)}function Gs(wa,Ds,Es){var Bo=Td(ie,or,null,wa),Yo=Ds=="ltr"==(Es=="after")?"left":"right",Xa=Es=="after"?Bo.begin:Bo.end-(/\s/.test(or.text.charAt(Bo.end-1))?2:1);return Ta(Xa,Yo)[Yo]}var Hs=Qe(or,ye.direction);return _e(Hs,Cr||0,wn==null?Eo:wn,function(wa,Ds,Es,Bo){var Yo=Es=="ltr",Xa=Ta(wa,Yo?"left":"right"),As=Ta(Ds-1,Yo?"right":"left"),Ka=Cr==null&&wa==0,tl=wn==null&&Ds==Eo,Zo=Bo==0,ru=!Hs||Bo==Hs.length-1;if(As.top-Xa.top<=3){var Ba=(wt?Ka:tl)&&Zo,jl=(wt?tl:Ka)&&ru,kl=Ba?Xe:(Yo?Xa:As).left,ou=jl?et:(Yo?As:Xa).right;Jt(kl,Xa.top,ou-kl,Xa.bottom)}else{var Ul,Ra,nl,Hi;Yo?(Ul=wt&&Ka&&Zo?Xe:Xa.left,Ra=wt?et:Gs(wa,Es,"before"),nl=wt?Xe:Gs(Ds,Es,"after"),Hi=wt&&tl&&ru?et:As.right):(Ul=wt?Gs(wa,Es,"before"):Xe,Ra=!wt&&Ka&&Zo?et:Xa.right,nl=!wt&&tl&&ru?Xe:As.left,Hi=wt?Gs(Ds,Es,"after"):et),Jt(Ul,Xa.top,Ra-Ul,Xa.bottom),Xa.bottom<As.top&&Jt(Xe,Xa.bottom,null,As.top),Jt(nl,As.top,Hi-nl,As.bottom)}(!_n||Cl(Xa,_n)<0)&&(_n=Xa),Cl(As,_n)<0&&(_n=As),(!Oa||Cl(Xa,Oa)<0)&&(Oa=Xa),Cl(As,Oa)<0&&(Oa=As)}),{start:_n,end:Oa}}var Bn=oe.from(),Sn=oe.to();if(Bn.line==Sn.line)Nt(Bn.line,Bn.ch,Sn.ch);else{var ti=Ln(ye,Bn.line),gi=Ln(ye,Sn.line),bi=Wr(ti)==Wr(gi),Gi=Nt(Bn.line,Bn.ch,bi?ti.text.length+1:null).end,lr=Nt(Sn.line,bi?0:null,Sn.ch).start;bi&&(Gi.top<lr.top-2?(Jt(Gi.right,Gi.top,null,Gi.bottom),Jt(Xe,lr.top,lr.left,lr.bottom)):Jt(Gi.right,Gi.top,lr.left-Gi.right,Gi.bottom)),Gi.bottom<lr.top&&Jt(Xe,Gi.bottom,null,lr.top)}ge.appendChild(Oe)}function Fa(ie){if(ie.state.focused){var oe=ie.display;clearInterval(oe.blinker);var ge=!0;oe.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?oe.blinker=setInterval(function(){ie.hasFocus()||gd(ie),oe.cursorDiv.style.visibility=(ge=!ge)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(oe.cursorDiv.style.visibility="hidden")}}function rs(ie){ie.state.focused||(ie.display.input.focus(),Sa(ie))}function ms(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,gd(ie))},100)}function Sa(ie,oe){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(bt(ie,"focus",ie,oe),ie.state.focused=!0,dn(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),we&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Fa(ie))}function gd(ie,oe){ie.state.delayingBlurEvent||(ie.state.focused&&(bt(ie,"blur",ie,oe),ie.state.focused=!1,Ke(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function eo(ie){for(var oe=ie.display,ge=oe.lineDiv.offsetTop,pe=0;pe<oe.view.length;pe++){var ye=oe.view[pe],Oe=ie.options.lineWrapping,Ve=void 0,Xe=0;if(!ye.hidden){if(je&&Ze<8){var et=ye.node.offsetTop+ye.node.offsetHeight;Ve=et-ge,ge=et}else{var wt=ye.node.getBoundingClientRect();Ve=wt.bottom-wt.top,!Oe&&ye.text.firstChild&&(Xe=ye.text.firstChild.getBoundingClientRect().right-wt.left-1)}var Jt=ye.line.height-Ve;if((Jt>.005||Jt<-.005)&&(Pn(ye.line,Ve),ef(ye.line),ye.rest))for(var Nt=0;Nt<ye.rest.length;Nt++)ef(ye.rest[Nt]);if(Xe>ie.display.sizerWidth){var Bn=Math.ceil(Xe/Lc(ie.display));Bn>ie.display.maxLineLength&&(ie.display.maxLineLength=Bn,ie.display.maxLine=ye.line,ie.display.maxLineChanged=!0)}}}}function ef(ie){if(ie.widgets)for(var oe=0;oe<ie.widgets.length;++oe){var ge=ie.widgets[oe],pe=ge.node.parentNode;pe&&(ge.height=pe.offsetHeight)}}function sa(ie,oe,ge){var pe=ge&&ge.top!=null?Math.max(0,ge.top):ie.scroller.scrollTop;pe=Math.floor(pe-pl(ie));var ye=ge&&ge.bottom!=null?ge.bottom:pe+ie.wrapper.clientHeight,Oe=Yn(oe,pe),Ve=Yn(oe,ye);if(ge&&ge.ensure){var Xe=ge.ensure.from.line,et=ge.ensure.to.line;Xe<Oe?(Oe=Xe,Ve=Yn(oe,_o(Ln(oe,Xe))+ie.wrapper.clientHeight)):Math.min(et,oe.lastLine())>=Ve&&(Oe=Yn(oe,_o(Ln(oe,et))-ie.wrapper.clientHeight),Ve=et)}return{from:Oe,to:Math.max(Ve,Oe+1)}}function Mf(ie,oe){if(!Wt(ie,"scrollCursorIntoView")){var ge=ie.display,pe=ge.sizer.getBoundingClientRect(),ye=null;if(oe.top+pe.top<0?ye=!0:oe.bottom+pe.top>(window.innerHeight||document.documentElement.clientHeight)&&(ye=!1),ye!=null&&!Lt){var Oe=lt("div","\u200B",null,`position: absolute;
top: `+(oe.top-ge.viewOffset-pl(ie.display))+`px;
height: `+(oe.bottom-oe.top+ml(ie)+ge.barHeight)+`px;
left: `+oe.left+"px; width: "+Math.max(2,oe.right-oe.left)+"px;");ie.display.lineSpace.appendChild(Oe),Oe.scrollIntoView(ye),ie.display.lineSpace.removeChild(Oe)}}}function Wu(ie,oe,ge,pe){pe==null&&(pe=0);var ye;!ie.options.lineWrapping&&oe==ge&&(oe=oe.ch?Yt(oe.line,oe.sticky=="before"?oe.ch-1:oe.ch,"after"):oe,ge=oe.sticky=="before"?Yt(oe.line,oe.ch+1,"before"):oe);for(var Oe=0;Oe<5;Oe++){var Ve=!1,Xe=es(ie,oe),et=!ge||ge==oe?Xe:es(ie,ge);ye={left:Math.min(Xe.left,et.left),top:Math.min(Xe.top,et.top)-pe,right:Math.max(Xe.left,et.left),bottom:Math.max(Xe.bottom,et.bottom)+pe};var wt=Of(ie,ye),Jt=ie.doc.scrollTop,Nt=ie.doc.scrollLeft;if(wt.scrollTop!=null&&(Nc(ie,wt.scrollTop),Math.abs(ie.doc.scrollTop-Jt)>1&&(Ve=!0)),wt.scrollLeft!=null&&(Ku(ie,wt.scrollLeft),Math.abs(ie.doc.scrollLeft-Nt)>1&&(Ve=!0)),!Ve)break}return ye}function Ad(ie,oe){var ge=Of(ie,oe);ge.scrollTop!=null&&Nc(ie,ge.scrollTop),ge.scrollLeft!=null&&Ku(ie,ge.scrollLeft)}function Of(ie,oe){var ge=ie.display,pe=mc(ie.display);oe.top<0&&(oe.top=0);var ye=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ge.scroller.scrollTop,Oe=ud(ie),Ve={};oe.bottom-oe.top>Oe&&(oe.bottom=oe.top+Oe);var Xe=ie.doc.height+Ju(ge),et=oe.top<pe,wt=oe.bottom>Xe-pe;if(oe.top<ye)Ve.scrollTop=et?0:oe.top;else if(oe.bottom>ye+Oe){var Jt=Math.min(oe.top,(wt?Xe:oe.bottom)-Oe);Jt!=ye&&(Ve.scrollTop=Jt)}var Nt=ie.options.fixedGutter?0:ge.gutters.offsetWidth,Bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ge.scroller.scrollLeft-Nt,Sn=Il(ie)-ge.gutters.offsetWidth,ti=oe.right-oe.left>Sn;return ti&&(oe.right=oe.left+Sn),oe.left<10?Ve.scrollLeft=0:oe.left<Bn?Ve.scrollLeft=Math.max(0,oe.left+Nt-(ti?0:10)):oe.right>Sn+Bn-3&&(Ve.scrollLeft=oe.right+(ti?0:10)-Sn),Ve}function Yd(ie,oe){oe!=null&&(Mu(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+oe)}function Zc(ie){Mu(ie);var oe=ie.getCursor();ie.curOp.scrollToPos={from:oe,to:oe,margin:ie.options.cursorScrollMargin}}function $c(ie,oe,ge){(oe!=null||ge!=null)&&Mu(ie),oe!=null&&(ie.curOp.scrollLeft=oe),ge!=null&&(ie.curOp.scrollTop=ge)}function la(ie,oe){Mu(ie),ie.curOp.scrollToPos=oe}function Mu(ie){var oe=ie.curOp.scrollToPos;if(oe){ie.curOp.scrollToPos=null;var ge=Pd(ie,oe.from),pe=Pd(ie,oe.to);Ld(ie,ge,pe,oe.margin)}}function Ld(ie,oe,ge,pe){var ye=Of(ie,{left:Math.min(oe.left,ge.left),top:Math.min(oe.top,ge.top)-pe,right:Math.max(oe.right,ge.right),bottom:Math.max(oe.bottom,ge.bottom)+pe});$c(ie,ye.scrollLeft,ye.scrollTop)}function Nc(ie,oe){Math.abs(ie.doc.scrollTop-oe)<2||(de||ur(ie,{top:oe}),xh(ie,oe,!0),de&&ur(ie),ci(ie,100))}function xh(ie,oe,ge){oe=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,oe)),!(ie.display.scroller.scrollTop==oe&&!ge)&&(ie.doc.scrollTop=oe,ie.display.scrollbars.setScrollTop(oe),ie.display.scroller.scrollTop!=oe&&(ie.display.scroller.scrollTop=oe))}function Ku(ie,oe,ge,pe){oe=Math.max(0,Math.min(oe,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ge?oe==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-oe)<2)&&!pe)&&(ie.doc.scrollLeft=oe,ro(ie),ie.display.scroller.scrollLeft!=oe&&(ie.display.scroller.scrollLeft=oe),ie.display.scrollbars.setScrollLeft(oe))}function Su(ie){var oe=ie.display,ge=oe.gutters.offsetWidth,pe=Math.round(ie.doc.height+Ju(ie.display));return{clientHeight:oe.scroller.clientHeight,viewHeight:oe.wrapper.clientHeight,scrollWidth:oe.scroller.scrollWidth,clientWidth:oe.scroller.clientWidth,viewWidth:oe.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ge:0,docHeight:pe,scrollHeight:pe+ml(ie)+oe.barHeight,nativeBarWidth:oe.nativeBarWidth,gutterWidth:ge}}var Ic=function(ie,oe,ge){this.cm=ge;var pe=this.vert=lt("div",[lt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ye=this.horiz=lt("div",[lt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pe.tabIndex=ye.tabIndex=-1,ie(pe),ie(ye),gt(pe,"scroll",function(){pe.clientHeight&&oe(pe.scrollTop,"vertical")}),gt(ye,"scroll",function(){ye.clientWidth&&oe(ye.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&Ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ic.prototype.update=function(ie){var oe=ie.scrollWidth>ie.clientWidth+1,ge=ie.scrollHeight>ie.clientHeight+1,pe=ie.nativeBarWidth;if(ge){this.vert.style.display="block",this.vert.style.bottom=oe?pe+"px":"0";var ye=ie.viewHeight-(oe?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(oe){this.horiz.style.display="block",this.horiz.style.right=ge?pe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Oe=ie.viewWidth-ie.barLeft-(ge?pe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Oe)+"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:ge?pe:0,bottom:oe?pe:0}},Ic.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ic.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ic.prototype.zeroWidthHack=function(){var ie=fe&&!ht?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new qe,this.disableVert=new qe},Ic.prototype.enableZeroWidthBar=function(ie,oe,ge){ie.style.pointerEvents="auto";function pe(){var ye=ie.getBoundingClientRect(),Oe=ge=="vert"?document.elementFromPoint(ye.right-1,(ye.top+ye.bottom)/2):document.elementFromPoint((ye.right+ye.left)/2,ye.bottom-1);Oe!=ie?ie.style.pointerEvents="none":oe.set(1e3,pe)}oe.set(1e3,pe)},Ic.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Vu=function(){};Vu.prototype.update=function(){return{bottom:0,right:0}},Vu.prototype.setScrollLeft=function(){},Vu.prototype.setScrollTop=function(){},Vu.prototype.clear=function(){};function Mc(ie,oe){oe||(oe=Su(ie));var ge=ie.display.barWidth,pe=ie.display.barHeight;bh(ie,oe);for(var ye=0;ye<4&&ge!=ie.display.barWidth||pe!=ie.display.barHeight;ye++)ge!=ie.display.barWidth&&ie.options.lineWrapping&&eo(ie),bh(ie,Su(ie)),ge=ie.display.barWidth,pe=ie.display.barHeight}function bh(ie,oe){var ge=ie.display,pe=ge.scrollbars.update(oe);ge.sizer.style.paddingRight=(ge.barWidth=pe.right)+"px",ge.sizer.style.paddingBottom=(ge.barHeight=pe.bottom)+"px",ge.heightForcer.style.borderBottom=pe.bottom+"px solid transparent",pe.right&&pe.bottom?(ge.scrollbarFiller.style.display="block",ge.scrollbarFiller.style.height=pe.bottom+"px",ge.scrollbarFiller.style.width=pe.right+"px"):ge.scrollbarFiller.style.display="",pe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ge.gutterFiller.style.display="block",ge.gutterFiller.style.height=pe.bottom+"px",ge.gutterFiller.style.width=oe.gutterWidth+"px"):ge.gutterFiller.style.display=""}var wh={native:Ic,null:Vu};function Yc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ke(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new wh[ie.options.scrollbarStyle](function(oe){ie.display.wrapper.insertBefore(oe,ie.display.scrollbarFiller),gt(oe,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),oe.setAttribute("cm-not-content","true")},function(oe,ge){ge=="horizontal"?Ku(ie,oe):Nc(ie,oe)},ie),ie.display.scrollbars.addClass&&dn(ie.display.wrapper,ie.display.scrollbars.addClass)}var Rf=0;function Ol(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:++Rf},xs(ie.curOp)}function Zu(ie){var oe=ie.curOp;oe&&To(oe,function(ge){for(var pe=0;pe<ge.ops.length;pe++)ge.ops[pe].cm.curOp=null;Eh(ge)})}function Eh(ie){for(var oe=ie.ops,ge=0;ge<oe.length;ge++)dt(oe[ge]);for(var pe=0;pe<oe.length;pe++)pt(oe[pe]);for(var ye=0;ye<oe.length;ye++)_t(oe[ye]);for(var Oe=0;Oe<oe.length;Oe++)Vt(oe[Oe]);for(var Ve=0;Ve<oe.length;Ve++)hn(oe[Ve])}function dt(ie){var oe=ie.cm,ge=oe.display;Ui(oe),ie.updateMaxLine&&ea(oe),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ge.viewFrom||ie.scrollToPos.to.line>=ge.viewTo)||ge.maxLineChanged&&oe.options.lineWrapping,ie.update=ie.mustUpdate&&new mi(oe,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function pt(ie){ie.updatedDisplay=ie.mustUpdate&&gr(ie.cm,ie.update)}function _t(ie){var oe=ie.cm,ge=oe.display;ie.updatedDisplay&&eo(oe),ie.barMeasure=Su(oe),ge.maxLineChanged&&!oe.options.lineWrapping&&(ie.adjustWidthTo=dd(oe,ge.maxLine,ge.maxLine.text.length).left+3,oe.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ge.scroller.clientWidth,ge.sizer.offsetLeft+ie.adjustWidthTo+ml(oe)+oe.display.barWidth),ie.maxScrollLeft=Math.max(0,ge.sizer.offsetLeft+ie.adjustWidthTo-Il(oe))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ge.input.prepareSelection())}function Vt(ie){var oe=ie.cm;ie.adjustWidthTo!=null&&(oe.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<oe.doc.scrollLeft&&Ku(oe,Math.min(oe.display.scroller.scrollLeft,ie.maxScrollLeft),!0),oe.display.maxLineChanged=!1);var ge=ie.focus&&ie.focus==kt();ie.preparedSelection&&oe.display.input.showSelection(ie.preparedSelection,ge),(ie.updatedDisplay||ie.startHeight!=oe.doc.height)&&Mc(oe,ie.barMeasure),ie.updatedDisplay&&Zr(oe,ie.barMeasure),ie.selectionChanged&&Fa(oe),oe.state.focused&&ie.updateInput&&oe.display.input.reset(ie.typing),ge&&rs(ie.cm)}function hn(ie){var oe=ie.cm,ge=oe.display,pe=oe.doc;if(ie.updatedDisplay&&Ri(oe,ie.update),ge.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ge.wheelStartX=ge.wheelStartY=null),ie.scrollTop!=null&&xh(oe,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Ku(oe,ie.scrollLeft,!0,!0),ie.scrollToPos){var ye=Wu(oe,Gn(pe,ie.scrollToPos.from),Gn(pe,ie.scrollToPos.to),ie.scrollToPos.margin);Mf(oe,ye)}var Oe=ie.maybeHiddenMarkers,Ve=ie.maybeUnhiddenMarkers;if(Oe)for(var Xe=0;Xe<Oe.length;++Xe)Oe[Xe].lines.length||bt(Oe[Xe],"hide");if(Ve)for(var et=0;et<Ve.length;++et)Ve[et].lines.length&&bt(Ve[et],"unhide");ge.wrapper.offsetHeight&&(pe.scrollTop=oe.display.scroller.scrollTop),ie.changeObjs&&bt(oe,"changes",oe,ie.changeObjs),ie.update&&ie.update.finish()}function rn(ie,oe){if(ie.curOp)return oe();Ol(ie);try{return oe()}finally{Zu(ie)}}function Wn(ie,oe){return function(){if(ie.curOp)return oe.apply(ie,arguments);Ol(ie);try{return oe.apply(ie,arguments)}finally{Zu(ie)}}}function Kn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Ol(this);try{return ie.apply(this,arguments)}finally{Zu(this)}}}function jn(ie){return function(){var oe=this.cm;if(!oe||oe.curOp)return ie.apply(this,arguments);Ol(oe);try{return ie.apply(this,arguments)}finally{Zu(oe)}}}function ci(ie,oe){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(oe,un(yi,ie))}function yi(ie){var oe=ie.doc;if(!(oe.highlightFrontier>=ie.display.viewTo)){var ge=+new Date+ie.options.workTime,pe=Vi(ie,oe.highlightFrontier),ye=[];oe.iter(pe.line,Math.min(oe.first+oe.size,ie.display.viewTo+500),function(Oe){if(pe.line>=ie.display.viewFrom){var Ve=Oe.styles,Xe=Oe.text.length>ie.options.maxHighlightLength?Dn(oe.mode,pe.state):null,et=Ki(ie,Oe,pe,!0);Xe&&(pe.state=Xe),Oe.styles=et.styles;var wt=Oe.styleClasses,Jt=et.classes;Jt?Oe.styleClasses=Jt:wt&&(Oe.styleClasses=null);for(var Nt=!Ve||Ve.length!=Oe.styles.length||wt!=Jt&&(!wt||!Jt||wt.bgClass!=Jt.bgClass||wt.textClass!=Jt.textClass),Bn=0;!Nt&&Bn<Ve.length;++Bn)Nt=Ve[Bn]!=Oe.styles[Bn];Nt&&ye.push(pe.line),Oe.stateAfter=pe.save(),pe.nextLine()}else Oe.text.length<=ie.options.maxHighlightLength&&Ht(ie,Oe.text,pe),Oe.stateAfter=pe.line%5==0?pe.save():null,pe.nextLine();if(+new Date>ge)return ci(ie,ie.options.workDelay),!0}),oe.highlightFrontier=pe.line,oe.modeFrontier=Math.max(oe.modeFrontier,pe.line),ye.length&&rn(ie,function(){for(var Oe=0;Oe<ye.length;Oe++)Go(ie,ye[Oe],"text")})}}var mi=function(ie,oe,ge){var pe=ie.display;this.viewport=oe,this.visible=sa(pe,ie.doc,oe),this.editorIsHidden=!pe.wrapper.offsetWidth,this.wrapperHeight=pe.wrapper.clientHeight,this.wrapperWidth=pe.wrapper.clientWidth,this.oldDisplayWidth=Il(ie),this.force=ge,this.dims=Sh(ie),this.events=[]};mi.prototype.signal=function(ie,oe){zn(ie,oe)&&this.events.push(arguments)},mi.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)bt.apply(null,this.events[ie])};function Ui(ie){var oe=ie.display;!oe.scrollbarsClipped&&oe.scroller.offsetWidth&&(oe.nativeBarWidth=oe.scroller.offsetWidth-oe.scroller.clientWidth,oe.heightForcer.style.height=ml(ie)+"px",oe.sizer.style.marginBottom=-oe.nativeBarWidth+"px",oe.sizer.style.borderRightWidth=ml(ie)+"px",oe.scrollbarsClipped=!0)}function Di(ie){if(ie.hasFocus())return null;var oe=kt();if(!oe||!Ut(ie.display.lineDiv,oe))return null;var ge={activeElt:oe};if(window.getSelection){var pe=window.getSelection();pe.anchorNode&&pe.extend&&Ut(ie.display.lineDiv,pe.anchorNode)&&(ge.anchorNode=pe.anchorNode,ge.anchorOffset=pe.anchorOffset,ge.focusNode=pe.focusNode,ge.focusOffset=pe.focusOffset)}return ge}function Ni(ie){if(!(!ie||!ie.activeElt||ie.activeElt==kt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Ut(document.body,ie.anchorNode)&&Ut(document.body,ie.focusNode))){var oe=window.getSelection(),ge=document.createRange();ge.setEnd(ie.anchorNode,ie.anchorOffset),ge.collapse(!1),oe.removeAllRanges(),oe.addRange(ge),oe.extend(ie.focusNode,ie.focusOffset)}}function gr(ie,oe){var ge=ie.display,pe=ie.doc;if(oe.editorIsHidden)return Ks(ie),!1;if(!oe.force&&oe.visible.from>=ge.viewFrom&&oe.visible.to<=ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo)&&ge.renderedView==ge.view&&yu(ie)==0)return!1;pr(ie)&&(Ks(ie),oe.dims=Sh(ie));var ye=pe.first+pe.size,Oe=Math.max(oe.visible.from-ie.options.viewportMargin,pe.first),Ve=Math.min(ye,oe.visible.to+ie.options.viewportMargin);ge.viewFrom<Oe&&Oe-ge.viewFrom<20&&(Oe=Math.max(pe.first,ge.viewFrom)),ge.viewTo>Ve&&ge.viewTo-Ve<20&&(Ve=Math.min(ye,ge.viewTo)),ln&&(Oe=Zi(ie.doc,Oe),Ve=Pr(ie.doc,Ve));var Xe=Oe!=ge.viewFrom||Ve!=ge.viewTo||ge.lastWrapHeight!=oe.wrapperHeight||ge.lastWrapWidth!=oe.wrapperWidth;Ga(ie,Oe,Ve),ge.viewOffset=_o(Ln(ie.doc,ge.viewFrom)),ie.display.mover.style.top=ge.viewOffset+"px";var et=yu(ie);if(!Xe&&et==0&&!oe.force&&ge.renderedView==ge.view&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo))return!1;var wt=Di(ie);return et>4&&(ge.lineDiv.style.display="none"),sr(ie,ge.updateLineNumbers,oe.dims),et>4&&(ge.lineDiv.style.display=""),ge.renderedView=ge.view,Ni(wt),$e(ge.cursorDiv),$e(ge.selectionDiv),ge.gutters.style.height=ge.sizer.style.minHeight=0,Xe&&(ge.lastWrapHeight=oe.wrapperHeight,ge.lastWrapWidth=oe.wrapperWidth,ci(ie,400)),ge.updateLineNumbers=null,!0}function Ri(ie,oe){for(var ge=oe.viewport,pe=!0;;pe=!1){if(!pe||!ie.options.lineWrapping||oe.oldDisplayWidth==Il(ie)){if(ge&&ge.top!=null&&(ge={top:Math.min(ie.doc.height+Ju(ie.display)-ud(ie),ge.top)}),oe.visible=sa(ie.display,ie.doc,ge),oe.visible.from>=ie.display.viewFrom&&oe.visible.to<=ie.display.viewTo)break}else pe&&(oe.visible=sa(ie.display,ie.doc,ge));if(!gr(ie,oe))break;eo(ie);var ye=Su(ie);sl(ie),Mc(ie,ye),Zr(ie,ye),oe.force=!1}oe.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(oe.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function ur(ie,oe){var ge=new mi(ie,oe);if(gr(ie,ge)){eo(ie),Ri(ie,ge);var pe=Su(ie);sl(ie),Mc(ie,pe),Zr(ie,pe),ge.finish()}}function sr(ie,oe,ge){var pe=ie.display,ye=ie.options.lineNumbers,Oe=pe.lineDiv,Ve=Oe.firstChild;function Xe(ti){var gi=ti.nextSibling;return we&&fe&&ie.display.currentWheelTarget==ti?ti.style.display="none":ti.parentNode.removeChild(ti),gi}for(var et=pe.view,wt=pe.viewFrom,Jt=0;Jt<et.length;Jt++){var Nt=et[Jt];if(!Nt.hidden)if(!Nt.node||Nt.node.parentNode!=Oe){var Bn=Ql(ie,Nt,wt,ge);Oe.insertBefore(Bn,Ve)}else{for(;Ve!=Nt.node;)Ve=Xe(Ve);var Sn=ye&&oe!=null&&oe<=wt&&Nt.lineNumber;Nt.changes&&(Bt(Nt.changes,"gutter")>-1&&(Sn=!1),hs(ie,Nt,wt,ge)),Sn&&($e(Nt.lineNumber),Nt.lineNumber.appendChild(document.createTextNode(Oi(ie.options,wt)))),Ve=Nt.node.nextSibling}wt+=Nt.size}for(;Ve;)Ve=Xe(Ve)}function br(ie){var oe=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=oe+"px"}function Zr(ie,oe){ie.display.sizer.style.minHeight=oe.docHeight+"px",ie.display.heightForcer.style.top=oe.docHeight+"px",ie.display.gutters.style.height=oe.docHeight+ie.display.barHeight+ml(ie)+"px"}function ro(ie){var oe=ie.display,ge=oe.view;if(!(!oe.alignWidgets&&(!oe.gutters.firstChild||!ie.options.fixedGutter))){for(var pe=kd(oe)-oe.scroller.scrollLeft+ie.doc.scrollLeft,ye=oe.gutters.offsetWidth,Oe=pe+"px",Ve=0;Ve<ge.length;Ve++)if(!ge[Ve].hidden){ie.options.fixedGutter&&(ge[Ve].gutter&&(ge[Ve].gutter.style.left=Oe),ge[Ve].gutterBackground&&(ge[Ve].gutterBackground.style.left=Oe));var Xe=ge[Ve].alignable;if(Xe)for(var et=0;et<Xe.length;et++)Xe[et].style.left=Oe}ie.options.fixedGutter&&(oe.gutters.style.left=pe+ye+"px")}}function pr(ie){if(!ie.options.lineNumbers)return!1;var oe=ie.doc,ge=Oi(ie.options,oe.first+oe.size-1),pe=ie.display;if(ge.length!=pe.lineNumChars){var ye=pe.measure.appendChild(lt("div",[lt("div",ge)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Oe=ye.firstChild.offsetWidth,Ve=ye.offsetWidth-Oe;return pe.lineGutter.style.width="",pe.lineNumInnerWidth=Math.max(Oe,pe.lineGutter.offsetWidth-Ve)+1,pe.lineNumWidth=pe.lineNumInnerWidth+Ve,pe.lineNumChars=pe.lineNumInnerWidth?ge.length:-1,pe.lineGutter.style.width=pe.lineNumWidth+"px",br(ie.display),!0}return!1}function _r(ie,oe){for(var ge=[],pe=!1,ye=0;ye<ie.length;ye++){var Oe=ie[ye],Ve=null;if(typeof Oe!="string"&&(Ve=Oe.style,Oe=Oe.className),Oe=="CodeMirror-linenumbers")if(oe)pe=!0;else continue;ge.push({className:Oe,style:Ve})}return oe&&!pe&&ge.push({className:"CodeMirror-linenumbers",style:null}),ge}function ko(ie){var oe=ie.gutters,ge=ie.gutterSpecs;$e(oe),ie.lineGutter=null;for(var pe=0;pe<ge.length;++pe){var ye=ge[pe],Oe=ye.className,Ve=ye.style,Xe=oe.appendChild(lt("div",null,"CodeMirror-gutter "+Oe));Ve&&(Xe.style.cssText=Ve),Oe=="CodeMirror-linenumbers"&&(ie.lineGutter=Xe,Xe.style.width=(ie.lineNumWidth||1)+"px")}oe.style.display=ge.length?"":"none",br(ie)}function wr(ie){ko(ie.display),Za(ie),ro(ie)}function Br(ie,oe,ge,pe){var ye=this;this.input=ge,ye.scrollbarFiller=lt("div",null,"CodeMirror-scrollbar-filler"),ye.scrollbarFiller.setAttribute("cm-not-content","true"),ye.gutterFiller=lt("div",null,"CodeMirror-gutter-filler"),ye.gutterFiller.setAttribute("cm-not-content","true"),ye.lineDiv=Tt("div",null,"CodeMirror-code"),ye.selectionDiv=lt("div",null,null,"position: relative; z-index: 1"),ye.cursorDiv=lt("div",null,"CodeMirror-cursors"),ye.measure=lt("div",null,"CodeMirror-measure"),ye.lineMeasure=lt("div",null,"CodeMirror-measure"),ye.lineSpace=Tt("div",[ye.measure,ye.lineMeasure,ye.selectionDiv,ye.cursorDiv,ye.lineDiv],null,"position: relative; outline: none");var Oe=Tt("div",[ye.lineSpace],"CodeMirror-lines");ye.mover=lt("div",[Oe],null,"position: relative"),ye.sizer=lt("div",[ye.mover],"CodeMirror-sizer"),ye.sizerWidth=null,ye.heightForcer=lt("div",null,null,"position: absolute; height: "+Cn+"px; width: 1px;"),ye.gutters=lt("div",null,"CodeMirror-gutters"),ye.lineGutter=null,ye.scroller=lt("div",[ye.sizer,ye.heightForcer,ye.gutters],"CodeMirror-scroll"),ye.scroller.setAttribute("tabIndex","-1"),ye.wrapper=lt("div",[ye.scrollbarFiller,ye.gutterFiller,ye.scroller],"CodeMirror"),je&&Ze<8&&(ye.gutters.style.zIndex=-1,ye.scroller.style.paddingRight=0),!we&&!(de&&ne)&&(ye.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(ye.wrapper):ie(ye.wrapper)),ye.viewFrom=ye.viewTo=oe.first,ye.reportedViewFrom=ye.reportedViewTo=oe.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=_r(pe.gutters,pe.lineNumbers),ko(ye),ge.init(ye)}var xr=0,$i=null;je?$i=-.53:de?$i=15:Je?$i=-.7:st&&($i=-1/3);function Nr(ie){var oe=ie.wheelDeltaX,ge=ie.wheelDeltaY;return oe==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(oe=ie.detail),ge==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ge=ie.detail:ge==null&&(ge=ie.wheelDelta),{x:oe,y:ge}}function Qr(ie){var oe=Nr(ie);return oe.x*=$i,oe.y*=$i,oe}function fo(ie,oe){var ge=Nr(oe),pe=ge.x,ye=ge.y,Oe=ie.display,Ve=Oe.scroller,Xe=Ve.scrollWidth>Ve.clientWidth,et=Ve.scrollHeight>Ve.clientHeight;if(pe&&Xe||ye&&et){if(ye&&fe&&we){e:for(var wt=oe.target,Jt=Oe.view;wt!=Ve;wt=wt.parentNode)for(var Nt=0;Nt<Jt.length;Nt++)if(Jt[Nt].node==wt){ie.display.currentWheelTarget=wt;break e}}if(pe&&!de&&!Ye&&$i!=null){ye&&et&&Nc(ie,Math.max(0,Ve.scrollTop+ye*$i)),Ku(ie,Math.max(0,Ve.scrollLeft+pe*$i)),(!ye||ye&&et)&&di(oe),Oe.wheelStartX=null;return}if(ye&&$i!=null){var Bn=ye*$i,Sn=ie.doc.scrollTop,ti=Sn+Oe.wrapper.clientHeight;Bn<0?Sn=Math.max(0,Sn+Bn-50):ti=Math.min(ie.doc.height,ti+Bn+50),ur(ie,{top:Sn,bottom:ti})}xr<20&&(Oe.wheelStartX==null?(Oe.wheelStartX=Ve.scrollLeft,Oe.wheelStartY=Ve.scrollTop,Oe.wheelDX=pe,Oe.wheelDY=ye,setTimeout(function(){if(Oe.wheelStartX!=null){var gi=Ve.scrollLeft-Oe.wheelStartX,bi=Ve.scrollTop-Oe.wheelStartY,Gi=bi&&Oe.wheelDY&&bi/Oe.wheelDY||gi&&Oe.wheelDX&&gi/Oe.wheelDX;Oe.wheelStartX=Oe.wheelStartY=null,Gi&&($i=($i*xr+Gi)/(xr+1),++xr)}},200)):(Oe.wheelDX+=pe,Oe.wheelDY+=ye))}}var po=function(ie,oe){this.ranges=ie,this.primIndex=oe};po.prototype.primary=function(){return this.ranges[this.primIndex]},po.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var oe=0;oe<this.ranges.length;oe++){var ge=this.ranges[oe],pe=ie.ranges[oe];if(!$t(ge.anchor,pe.anchor)||!$t(ge.head,pe.head))return!1}return!0},po.prototype.deepCopy=function(){for(var ie=[],oe=0;oe<this.ranges.length;oe++)ie[oe]=new mr(pn(this.ranges[oe].anchor),pn(this.ranges[oe].head));return new po(ie,this.primIndex)},po.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},po.prototype.contains=function(ie,oe){oe||(oe=ie);for(var ge=0;ge<this.ranges.length;ge++){var pe=this.ranges[ge];if(Fn(oe,pe.from())>=0&&Fn(ie,pe.to())<=0)return ge}return-1};var mr=function(ie,oe){this.anchor=ie,this.head=oe};mr.prototype.from=function(){return gn(this.anchor,this.head)},mr.prototype.to=function(){return An(this.anchor,this.head)},mr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Lo(ie,oe,ge){var pe=ie&&ie.options.selectionsMayTouch,ye=oe[ge];oe.sort(function(Bn,Sn){return Fn(Bn.from(),Sn.from())}),ge=Bt(oe,ye);for(var Oe=1;Oe<oe.length;Oe++){var Ve=oe[Oe],Xe=oe[Oe-1],et=Fn(Xe.to(),Ve.from());if(pe&&!Ve.empty()?et>0:et>=0){var wt=gn(Xe.from(),Ve.from()),Jt=An(Xe.to(),Ve.to()),Nt=Xe.empty()?Ve.from()==Ve.head:Xe.from()==Xe.head;Oe<=ge&&--ge,oe.splice(--Oe,2,new mr(Nt?Jt:wt,Nt?wt:Jt))}}return new po(oe,ge)}function Fo(ie,oe){return new po([new mr(ie,oe||ie)],0)}function Ea(ie){return ie.text?Yt(ie.from.line+ie.text.length-1,Ot(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function ra(ie,oe){if(Fn(ie,oe.from)<0)return ie;if(Fn(ie,oe.to)<=0)return Ea(oe);var ge=ie.line+oe.text.length-(oe.to.line-oe.from.line)-1,pe=ie.ch;return ie.line==oe.to.line&&(pe+=Ea(oe).ch-oe.to.ch),Yt(ge,pe)}function os(ie,oe){for(var ge=[],pe=0;pe<ie.sel.ranges.length;pe++){var ye=ie.sel.ranges[pe];ge.push(new mr(ra(ye.anchor,oe),ra(ye.head,oe)))}return Lo(ie.cm,ge,ie.sel.primIndex)}function ts(ie,oe,ge){return ie.line==oe.line?Yt(ge.line,ie.ch-oe.ch+ge.ch):Yt(ge.line+(ie.line-oe.line),ie.ch)}function No(ie,oe,ge){for(var pe=[],ye=Yt(ie.first,0),Oe=ye,Ve=0;Ve<oe.length;Ve++){var Xe=oe[Ve],et=ts(Xe.from,ye,Oe),wt=ts(Ea(Xe),ye,Oe);if(ye=Xe.to,Oe=wt,ge=="around"){var Jt=ie.sel.ranges[Ve],Nt=Fn(Jt.head,Jt.anchor)<0;pe[Ve]=new mr(Nt?wt:et,Nt?et:wt)}else pe[Ve]=new mr(et,et)}return new po(pe,ie.sel.primIndex)}function to(ie){ie.doc.mode=Tn(ie.options,ie.doc.modeOption),ma(ie)}function ma(ie){ie.doc.iter(function(oe){oe.stateAfter&&(oe.stateAfter=null),oe.styles&&(oe.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,ci(ie,100),ie.state.modeGen++,ie.curOp&&Za(ie)}function as(ie,oe){return oe.from.ch==0&&oe.to.ch==0&&Ot(oe.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function $a(ie,oe,ge,pe){function ye(lr){return ge?ge[lr]:null}function Oe(lr,rr,Cr){Ja(lr,rr,Cr,pe),ji(lr,"change",lr,oe)}function Ve(lr,rr){for(var Cr=[],wn=lr;wn<rr;++wn)Cr.push(new ka(wt[wn],ye(wn),pe));return Cr}var Xe=oe.from,et=oe.to,wt=oe.text,Jt=Ln(ie,Xe.line),Nt=Ln(ie,et.line),Bn=Ot(wt),Sn=ye(wt.length-1),ti=et.line-Xe.line;if(oe.full)ie.insert(0,Ve(0,wt.length)),ie.remove(wt.length,ie.size-wt.length);else if(as(ie,oe)){var gi=Ve(0,wt.length-1);Oe(Nt,Nt.text,Sn),ti&&ie.remove(Xe.line,ti),gi.length&&ie.insert(Xe.line,gi)}else if(Jt==Nt)if(wt.length==1)Oe(Jt,Jt.text.slice(0,Xe.ch)+Bn+Jt.text.slice(et.ch),Sn);else{var bi=Ve(1,wt.length-1);bi.push(new ka(Bn+Jt.text.slice(et.ch),Sn,pe)),Oe(Jt,Jt.text.slice(0,Xe.ch)+wt[0],ye(0)),ie.insert(Xe.line+1,bi)}else if(wt.length==1)Oe(Jt,Jt.text.slice(0,Xe.ch)+wt[0]+Nt.text.slice(et.ch),ye(0)),ie.remove(Xe.line+1,ti);else{Oe(Jt,Jt.text.slice(0,Xe.ch)+wt[0],ye(0)),Oe(Nt,Bn+Nt.text.slice(et.ch),Sn);var Gi=Ve(1,wt.length-1);ti>1&&ie.remove(Xe.line+1,ti-1),ie.insert(Xe.line+1,Gi)}ji(ie,"change",ie,oe)}function Fs(ie,oe,ge){function pe(ye,Oe,Ve){if(ye.linked)for(var Xe=0;Xe<ye.linked.length;++Xe){var et=ye.linked[Xe];if(et.doc!=Oe){var wt=Ve&&et.sharedHist;ge&&!wt||(oe(et.doc,wt),pe(et.doc,ye,wt))}}}pe(ie,null,!0)}function yo(ie,oe){if(oe.cm)throw new Error("This document is already in use.");ie.doc=oe,oe.cm=ie,io(ie),to(ie),uo(ie),ie.options.lineWrapping||ea(ie),ie.options.mode=oe.modeOption,Za(ie)}function uo(ie){(ie.doc.direction=="rtl"?dn:Ke)(ie.display.lineDiv,"CodeMirror-rtl")}function mo(ie){rn(ie,function(){uo(ie),Za(ie)})}function $r(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 xa(ie,oe){var ge={from:pn(oe.from),to:Ea(oe),text:Jn(ie,oe.from,oe.to)};return Sl(ie,ge,oe.from.line,oe.to.line+1),Fs(ie,function(pe){return Sl(pe,ge,oe.from.line,oe.to.line+1)},!0),ge}function Yr(ie){for(;ie.length;){var oe=Ot(ie);if(oe.ranges)ie.pop();else break}}function Ao(ie,oe){if(oe)return Yr(ie.done),Ot(ie.done);if(ie.done.length&&!Ot(ie.done).ranges)return Ot(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Ot(ie.done)}function ua(ie,oe,ge,pe){var ye=ie.history;ye.undone.length=0;var Oe=+new Date,Ve,Xe;if((ye.lastOp==pe||ye.lastOrigin==oe.origin&&oe.origin&&(oe.origin.charAt(0)=="+"&&ye.lastModTime>Oe-(ie.cm?ie.cm.options.historyEventDelay:500)||oe.origin.charAt(0)=="*"))&&(Ve=Ao(ye,ye.lastOp==pe)))Xe=Ot(Ve.changes),Fn(oe.from,oe.to)==0&&Fn(oe.from,Xe.to)==0?Xe.to=Ea(oe):Ve.changes.push(xa(ie,oe));else{var et=Ot(ye.done);for((!et||!et.ranges)&&Os(ie.sel,ye.done),Ve={changes:[xa(ie,oe)],generation:ye.generation},ye.done.push(Ve);ye.done.length>ye.undoDepth;)ye.done.shift(),ye.done[0].ranges||ye.done.shift()}ye.done.push(ge),ye.generation=++ye.maxGeneration,ye.lastModTime=ye.lastSelTime=Oe,ye.lastOp=ye.lastSelOp=pe,ye.lastOrigin=ye.lastSelOrigin=oe.origin,Xe||bt(ie,"historyAdded")}function ca(ie,oe,ge,pe){var ye=oe.charAt(0);return ye=="*"||ye=="+"&&ge.ranges.length==pe.ranges.length&&ge.somethingSelected()==pe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Vs(ie,oe,ge,pe){var ye=ie.history,Oe=pe&&pe.origin;ge==ye.lastSelOp||Oe&&ye.lastSelOrigin==Oe&&(ye.lastModTime==ye.lastSelTime&&ye.lastOrigin==Oe||ca(ie,Oe,Ot(ye.done),oe))?ye.done[ye.done.length-1]=oe:Os(oe,ye.done),ye.lastSelTime=+new Date,ye.lastSelOrigin=Oe,ye.lastSelOp=ge,pe&&pe.clearRedo!==!1&&Yr(ye.undone)}function Os(ie,oe){var ge=Ot(oe);ge&&ge.ranges&&ge.equals(ie)||oe.push(ie)}function Sl(ie,oe,ge,pe){var ye=oe["spans_"+ie.id],Oe=0;ie.iter(Math.max(ie.first,ge),Math.min(ie.first+ie.size,pe),function(Ve){Ve.markedSpans&&((ye||(ye=oe["spans_"+ie.id]={}))[Oe]=Ve.markedSpans),++Oe})}function Ca(ie){if(!ie)return null;for(var oe,ge=0;ge<ie.length;++ge)ie[ge].marker.explicitlyCleared?oe||(oe=ie.slice(0,ge)):oe&&oe.push(ie[ge]);return oe?oe.length?oe:null:ie}function ll(ie,oe){var ge=oe["spans_"+ie.id];if(!ge)return null;for(var pe=[],ye=0;ye<oe.text.length;++ye)pe.push(Ca(ge[ye]));return pe}function Rs(ie,oe){var ge=ll(ie,oe),pe=qi(ie,oe);if(!ge)return pe;if(!pe)return ge;for(var ye=0;ye<ge.length;++ye){var Oe=ge[ye],Ve=pe[ye];if(Oe&&Ve)e:for(var Xe=0;Xe<Ve.length;++Xe){for(var et=Ve[Xe],wt=0;wt<Oe.length;++wt)if(Oe[wt].marker==et.marker)continue e;Oe.push(et)}else Ve&&(ge[ye]=Ve)}return ge}function qs(ie,oe,ge){for(var pe=[],ye=0;ye<ie.length;++ye){var Oe=ie[ye];if(Oe.ranges){pe.push(ge?po.prototype.deepCopy.call(Oe):Oe);continue}var Ve=Oe.changes,Xe=[];pe.push({changes:Xe});for(var et=0;et<Ve.length;++et){var wt=Ve[et],Jt=void 0;if(Xe.push({from:wt.from,to:wt.to,text:wt.text}),oe)for(var Nt in wt)(Jt=Nt.match(/^spans_(\d+)$/))&&Bt(oe,Number(Jt[1]))>-1&&(Ot(Xe)[Nt]=wt[Nt],delete wt[Nt])}}return pe}function vc(ie,oe,ge,pe){if(pe){var ye=ie.anchor;if(ge){var Oe=Fn(oe,ye)<0;Oe!=Fn(ge,ye)<0?(ye=oe,oe=ge):Oe!=Fn(oe,ge)<0&&(oe=ge)}return new mr(ye,oe)}else return new mr(ge||oe,oe)}function ba(ie,oe,ge,pe,ye){ye==null&&(ye=ie.cm&&(ie.cm.display.shift||ie.extend)),Ha(ie,new po([vc(ie.sel.primary(),oe,ge,ye)],0),pe)}function Na(ie,oe,ge){for(var pe=[],ye=ie.cm&&(ie.cm.display.shift||ie.extend),Oe=0;Oe<ie.sel.ranges.length;Oe++)pe[Oe]=vc(ie.sel.ranges[Oe],oe[Oe],null,ye);var Ve=Lo(ie.cm,pe,ie.sel.primIndex);Ha(ie,Ve,ge)}function za(ie,oe,ge,pe){var ye=ie.sel.ranges.slice(0);ye[oe]=ge,Ha(ie,Lo(ie.cm,ye,ie.sel.primIndex),pe)}function vs(ie,oe,ge,pe){Ha(ie,Fo(oe,ge),pe)}function Bs(ie,oe,ge){var pe={ranges:oe.ranges,update:function(ye){this.ranges=[];for(var Oe=0;Oe<ye.length;Oe++)this.ranges[Oe]=new mr(Gn(ie,ye[Oe].anchor),Gn(ie,ye[Oe].head))},origin:ge&&ge.origin};return bt(ie,"beforeSelectionChange",ie,pe),ie.cm&&bt(ie.cm,"beforeSelectionChange",ie.cm,pe),pe.ranges!=oe.ranges?Lo(ie.cm,pe.ranges,pe.ranges.length-1):oe}function Vo(ie,oe,ge){var pe=ie.history.done,ye=Ot(pe);ye&&ye.ranges?(pe[pe.length-1]=oe,el(ie,oe,ge)):Ha(ie,oe,ge)}function Ha(ie,oe,ge){el(ie,oe,ge),Vs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ge)}function el(ie,oe,ge){(zn(ie,"beforeSelectionChange")||ie.cm&&zn(ie.cm,"beforeSelectionChange"))&&(oe=Bs(ie,oe,ge));var pe=ge&&ge.bias||(Fn(oe.primary().head,ie.sel.primary().head)<0?-1:1);zs(ie,ql(ie,oe,pe,!0)),!(ge&&ge.scroll===!1)&&ie.cm&&Zc(ie.cm)}function zs(ie,oe){oe.equals(ie.sel)||(ie.sel=oe,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,fn(ie.cm)),ji(ie,"cursorActivity",ie))}function xu(ie){zs(ie,ql(ie,ie.sel,null,!1))}function ql(ie,oe,ge,pe){for(var ye,Oe=0;Oe<oe.ranges.length;Oe++){var Ve=oe.ranges[Oe],Xe=oe.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Oe],et=Ru(ie,Ve.anchor,Xe&&Xe.anchor,ge,pe),wt=Ru(ie,Ve.head,Xe&&Xe.head,ge,pe);(ye||et!=Ve.anchor||wt!=Ve.head)&&(ye||(ye=oe.ranges.slice(0,Oe)),ye[Oe]=new mr(et,wt))}return ye?Lo(ie.cm,ye,oe.primIndex):oe}function Ou(ie,oe,ge,pe,ye){var Oe=Ln(ie,oe.line);if(Oe.markedSpans)for(var Ve=0;Ve<Oe.markedSpans.length;++Ve){var Xe=Oe.markedSpans[Ve],et=Xe.marker,wt="selectLeft"in et?!et.selectLeft:et.inclusiveLeft,Jt="selectRight"in et?!et.selectRight:et.inclusiveRight;if((Xe.from==null||(wt?Xe.from<=oe.ch:Xe.from<oe.ch))&&(Xe.to==null||(Jt?Xe.to>=oe.ch:Xe.to>oe.ch))){if(ye&&(bt(et,"beforeCursorEnter"),et.explicitlyCleared))if(Oe.markedSpans){--Ve;continue}else break;if(!et.atomic)continue;if(ge){var Nt=et.find(pe<0?1:-1),Bn=void 0;if((pe<0?Jt:wt)&&(Nt=bu(ie,Nt,-pe,Nt&&Nt.line==oe.line?Oe:null)),Nt&&Nt.line==oe.line&&(Bn=Fn(Nt,ge))&&(pe<0?Bn<0:Bn>0))return Ou(ie,Nt,oe,pe,ye)}var Sn=et.find(pe<0?-1:1);return(pe<0?wt:Jt)&&(Sn=bu(ie,Sn,pe,Sn.line==oe.line?Oe:null)),Sn?Ou(ie,Sn,oe,pe,ye):null}}return oe}function Ru(ie,oe,ge,pe,ye){var Oe=pe||1,Ve=Ou(ie,oe,ge,Oe,ye)||!ye&&Ou(ie,oe,ge,Oe,!0)||Ou(ie,oe,ge,-Oe,ye)||!ye&&Ou(ie,oe,ge,-Oe,!0);return Ve||(ie.cantEdit=!0,Yt(ie.first,0))}function bu(ie,oe,ge,pe){return ge<0&&oe.ch==0?oe.line>ie.first?Gn(ie,Yt(oe.line-1)):null:ge>0&&oe.ch==(pe||Ln(ie,oe.line)).text.length?oe.line<ie.first+ie.size-1?Yt(oe.line+1,0):null:new Yt(oe.line,oe.ch+ge)}function Aa(ie){ie.setSelection(Yt(ie.firstLine(),0),Yt(ie.lastLine()),zt)}function Zs(ie,oe,ge){var pe={canceled:!1,from:oe.from,to:oe.to,text:oe.text,origin:oe.origin,cancel:function(){return pe.canceled=!0}};return ge&&(pe.update=function(ye,Oe,Ve,Xe){ye&&(pe.from=Gn(ie,ye)),Oe&&(pe.to=Gn(ie,Oe)),Ve&&(pe.text=Ve),Xe!==void 0&&(pe.origin=Xe)}),bt(ie,"beforeChange",ie,pe),ie.cm&&bt(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 ys(ie,oe,ge){if(ie.cm){if(!ie.cm.curOp)return Wn(ie.cm,ys)(ie,oe,ge);if(ie.cm.state.suppressEdits)return}if(!((zn(ie,"beforeChange")||ie.cm&&zn(ie.cm,"beforeChange"))&&(oe=Zs(ie,oe,!0),!oe))){var pe=Rr&&!ge&&lo(ie,oe.from,oe.to);if(pe)for(var ye=pe.length-1;ye>=0;--ye)_a(ie,{from:pe[ye].from,to:pe[ye].to,text:ye?[""]:oe.text,origin:oe.origin});else _a(ie,oe)}}function _a(ie,oe){if(!(oe.text.length==1&&oe.text[0]==""&&Fn(oe.from,oe.to)==0)){var ge=os(ie,oe);ua(ie,oe,ge,ie.cm?ie.cm.curOp.id:NaN),Du(ie,oe,ge,qi(ie,oe));var pe=[];Fs(ie,function(ye,Oe){!Oe&&Bt(pe,ye.history)==-1&&(Wa(ye.history,oe),pe.push(ye.history)),Du(ye,oe,null,qi(ye,oe))})}}function Rl(ie,oe,ge){var pe=ie.cm&&ie.cm.state.suppressEdits;if(!(pe&&!ge)){for(var ye=ie.history,Oe,Ve=ie.sel,Xe=oe=="undo"?ye.done:ye.undone,et=oe=="undo"?ye.undone:ye.done,wt=0;wt<Xe.length&&(Oe=Xe[wt],!(ge?Oe.ranges&&!Oe.equals(ie.sel):!Oe.ranges));wt++);if(wt!=Xe.length){for(ye.lastOrigin=ye.lastSelOrigin=null;;)if(Oe=Xe.pop(),Oe.ranges){if(Os(Oe,et),ge&&!Oe.equals(ie.sel)){Ha(ie,Oe,{clearRedo:!1});return}Ve=Oe}else if(pe){Xe.push(Oe);return}else break;var Jt=[];Os(Ve,et),et.push({changes:Jt,generation:ye.generation}),ye.generation=Oe.generation||++ye.maxGeneration;for(var Nt=zn(ie,"beforeChange")||ie.cm&&zn(ie.cm,"beforeChange"),Bn=function(gi){var bi=Oe.changes[gi];if(bi.origin=oe,Nt&&!Zs(ie,bi,!1))return Xe.length=0,{};Jt.push(xa(ie,bi));var Gi=gi?os(ie,bi):Ot(Xe);Du(ie,bi,Gi,Rs(ie,bi)),!gi&&ie.cm&&ie.cm.scrollIntoView({from:bi.from,to:Ea(bi)});var lr=[];Fs(ie,function(rr,Cr){!Cr&&Bt(lr,rr.history)==-1&&(Wa(rr.history,bi),lr.push(rr.history)),Du(rr,bi,null,Rs(rr,bi))})},Sn=Oe.changes.length-1;Sn>=0;--Sn){var ti=Bn(Sn);if(ti)return ti.v}}}}function Oc(ie,oe){if(oe!=0&&(ie.first+=oe,ie.sel=new po(kn(ie.sel.ranges,function(ye){return new mr(Yt(ye.anchor.line+oe,ye.anchor.ch),Yt(ye.head.line+oe,ye.head.ch))}),ie.sel.primIndex),ie.cm)){Za(ie.cm,ie.first,ie.first-oe,oe);for(var ge=ie.cm.display,pe=ge.viewFrom;pe<ge.viewTo;pe++)Go(ie.cm,pe,"gutter")}}function Du(ie,oe,ge,pe){if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Du)(ie,oe,ge,pe);if(oe.to.line<ie.first){Oc(ie,oe.text.length-1-(oe.to.line-oe.from.line));return}if(!(oe.from.line>ie.lastLine())){if(oe.from.line<ie.first){var ye=oe.text.length-1-(ie.first-oe.from.line);Oc(ie,ye),oe={from:Yt(ie.first,0),to:Yt(oe.to.line+ye,oe.to.ch),text:[Ot(oe.text)],origin:oe.origin}}var Oe=ie.lastLine();oe.to.line>Oe&&(oe={from:oe.from,to:Yt(Oe,Ln(ie,Oe).text.length),text:[oe.text[0]],origin:oe.origin}),oe.removed=Jn(ie,oe.from,oe.to),ge||(ge=os(ie,oe)),ie.cm?Fu(ie.cm,oe,pe):$a(ie,oe,pe),el(ie,ge,zt),ie.cantEdit&&Ru(ie,Yt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Fu(ie,oe,ge){var pe=ie.doc,ye=ie.display,Oe=oe.from,Ve=oe.to,Xe=!1,et=Oe.line;ie.options.lineWrapping||(et=Rt(Wr(Ln(pe,Oe.line))),pe.iter(et,Ve.line+1,function(Sn){if(Sn==ye.maxLine)return Xe=!0,!0})),pe.sel.contains(oe.from,oe.to)>-1&&fn(ie),$a(pe,oe,ge,ps(ie)),ie.options.lineWrapping||(pe.iter(et,Oe.line+oe.text.length,function(Sn){var ti=Wo(Sn);ti>ye.maxLineLength&&(ye.maxLine=Sn,ye.maxLineLength=ti,ye.maxLineChanged=!0,Xe=!1)}),Xe&&(ie.curOp.updateMaxLine=!0)),Fi(pe,Oe.line),ci(ie,400);var wt=oe.text.length-(Ve.line-Oe.line)-1;oe.full?Za(ie):Oe.line==Ve.line&&oe.text.length==1&&!as(ie.doc,oe)?Go(ie,Oe.line,"text"):Za(ie,Oe.line,Ve.line+1,wt);var Jt=zn(ie,"changes"),Nt=zn(ie,"change");if(Nt||Jt){var Bn={from:Oe,to:Ve,text:oe.text,removed:oe.removed,origin:oe.origin};Nt&&ji(ie,"change",ie,Bn),Jt&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Bn)}ie.display.selForContextMenu=null}function ec(ie,oe,ge,pe,ye){var Oe;pe||(pe=ge),Fn(pe,ge)<0&&(Oe=[pe,ge],ge=Oe[0],pe=Oe[1]),typeof oe=="string"&&(oe=ie.splitLines(oe)),ys(ie,{from:ge,to:pe,text:oe,origin:ye})}function Pl(ie,oe,ge,pe){ge<ie.line?ie.line+=pe:oe<ie.line&&(ie.line=oe,ie.ch=0)}function fa(ie,oe,ge,pe){for(var ye=0;ye<ie.length;++ye){var Oe=ie[ye],Ve=!0;if(Oe.ranges){Oe.copied||(Oe=ie[ye]=Oe.deepCopy(),Oe.copied=!0);for(var Xe=0;Xe<Oe.ranges.length;Xe++)Pl(Oe.ranges[Xe].anchor,oe,ge,pe),Pl(Oe.ranges[Xe].head,oe,ge,pe);continue}for(var et=0;et<Oe.changes.length;++et){var wt=Oe.changes[et];if(ge<wt.from.line)wt.from=Yt(wt.from.line+pe,wt.from.ch),wt.to=Yt(wt.to.line+pe,wt.to.ch);else if(oe<=wt.to.line){Ve=!1;break}}Ve||(ie.splice(0,ye+1),ye=0)}}function Wa(ie,oe){var ge=oe.from.line,pe=oe.to.line,ye=oe.text.length-(pe-ge)-1;fa(ie.done,ge,pe,ye),fa(ie.undone,ge,pe,ye)}function $s(ie,oe,ge,pe){var ye=oe,Oe=oe;return typeof oe=="number"?Oe=Ln(ie,In(ie,oe)):ye=Rt(oe),ye==null?null:(pe(Oe,ye)&&ie.cm&&Go(ie.cm,ye,ge),Oe)}function Ya(ie){this.lines=ie,this.parent=null;for(var oe=0,ge=0;ge<ie.length;++ge)ie[ge].parent=this,oe+=ie[ge].height;this.height=oe}Ya.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,oe){for(var ge=ie,pe=ie+oe;ge<pe;++ge){var ye=this.lines[ge];this.height-=ye.height,cs(ye),ji(ye,"delete")}this.lines.splice(ie,oe)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,oe,ge){this.height+=ge,this.lines=this.lines.slice(0,ie).concat(oe).concat(this.lines.slice(ie));for(var pe=0;pe<oe.length;++pe)oe[pe].parent=this},iterN:function(ie,oe,ge){for(var pe=ie+oe;ie<pe;++ie)if(ge(this.lines[ie]))return!0}};function ga(ie){this.children=ie;for(var oe=0,ge=0,pe=0;pe<ie.length;++pe){var ye=ie[pe];oe+=ye.chunkSize(),ge+=ye.height,ye.parent=this}this.size=oe,this.height=ge,this.parent=null}ga.prototype={chunkSize:function(){return this.size},removeInner:function(ie,oe){this.size-=oe;for(var ge=0;ge<this.children.length;++ge){var pe=this.children[ge],ye=pe.chunkSize();if(ie<ye){var Oe=Math.min(oe,ye-ie),Ve=pe.height;if(pe.removeInner(ie,Oe),this.height-=Ve-pe.height,ye==Oe&&(this.children.splice(ge--,1),pe.parent=null),(oe-=Oe)==0)break;ie=0}else ie-=ye}if(this.size-oe<25&&(this.children.length>1||!(this.children[0]instanceof Ya))){var Xe=[];this.collapse(Xe),this.children=[new Ya(Xe)],this.children[0].parent=this}},collapse:function(ie){for(var oe=0;oe<this.children.length;++oe)this.children[oe].collapse(ie)},insertInner:function(ie,oe,ge){this.size+=oe.length,this.height+=ge;for(var pe=0;pe<this.children.length;++pe){var ye=this.children[pe],Oe=ye.chunkSize();if(ie<=Oe){if(ye.insertInner(ie,oe,ge),ye.lines&&ye.lines.length>50){for(var Ve=ye.lines.length%25+25,Xe=Ve;Xe<ye.lines.length;){var et=new Ya(ye.lines.slice(Xe,Xe+=25));ye.height-=et.height,this.children.splice(++pe,0,et),et.parent=this}ye.lines=ye.lines.slice(0,Ve),this.maybeSpill()}break}ie-=Oe}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var oe=ie.children.splice(ie.children.length-5,5),ge=new ga(oe);if(ie.parent){ie.size-=ge.size,ie.height-=ge.height;var ye=Bt(ie.parent.children,ie);ie.parent.children.splice(ye+1,0,ge)}else{var pe=new ga(ie.children);pe.parent=ie,ie.children=[pe,ge],ie=pe}ge.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,oe,ge){for(var pe=0;pe<this.children.length;++pe){var ye=this.children[pe],Oe=ye.chunkSize();if(ie<Oe){var Ve=Math.min(oe,Oe-ie);if(ye.iterN(ie,Ve,ge))return!0;if((oe-=Ve)==0)break;ie=0}else ie-=Oe}}};var js=function(ie,oe,ge){if(ge)for(var pe in ge)ge.hasOwnProperty(pe)&&(this[pe]=ge[pe]);this.doc=ie,this.node=oe};js.prototype.clear=function(){var ie=this.doc.cm,oe=this.line.widgets,ge=this.line,pe=Rt(ge);if(!(pe==null||!oe)){for(var ye=0;ye<oe.length;++ye)oe[ye]==this&&oe.splice(ye--,1);oe.length||(ge.widgets=null);var Oe=bl(this);Pn(ge,Math.max(0,ge.height-Oe)),ie&&(rn(ie,function(){Dl(ie,ge,-Oe),Go(ie,pe,"widget")}),ji(ie,"lineWidgetCleared",ie,this,pe))}},js.prototype.changed=function(){var ie=this,oe=this.height,ge=this.doc.cm,pe=this.line;this.height=null;var ye=bl(this)-oe;ye&&(ai(this.doc,pe)||Pn(pe,pe.height+ye),ge&&rn(ge,function(){ge.curOp.forceUpdate=!0,Dl(ge,pe,ye),ji(ge,"lineWidgetChanged",ge,ie,Rt(pe))}))},ni(js);function Dl(ie,oe,ge){_o(oe)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Yd(ie,ge)}function wu(ie,oe,ge,pe){var ye=new js(ie,ge,pe),Oe=ie.cm;return Oe&&ye.noHScroll&&(Oe.display.alignWidgets=!0),$s(ie,oe,"widget",function(Ve){var Xe=Ve.widgets||(Ve.widgets=[]);if(ye.insertAt==null?Xe.push(ye):Xe.splice(Math.min(Xe.length-1,Math.max(0,ye.insertAt)),0,ye),ye.line=Ve,Oe&&!ai(ie,Ve)){var et=_o(Ve)<ie.scrollTop;Pn(Ve,Ve.height+bl(ye)),et&&Yd(Oe,ye.height),Oe.curOp.forceUpdate=!0}return!0}),Oe&&ji(Oe,"lineWidgetAdded",Oe,ye,typeof oe=="number"?oe:Rt(oe)),ye}var Xd=0,Qt=function(ie,oe){this.lines=[],this.type=oe,this.doc=ie,this.id=++Xd};Qt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,oe=ie&&!ie.curOp;if(oe&&Ol(ie),zn(this,"clear")){var ge=this.find();ge&&ji(this,"clear",ge.from,ge.to)}for(var pe=null,ye=null,Oe=0;Oe<this.lines.length;++Oe){var Ve=this.lines[Oe],Xe=Ho(Ve.markedSpans,this);ie&&!this.collapsed?Go(ie,Rt(Ve),"text"):ie&&(Xe.to!=null&&(ye=Rt(Ve)),Xe.from!=null&&(pe=Rt(Ve))),Ve.markedSpans=Fr(Ve.markedSpans,Xe),Xe.from==null&&this.collapsed&&!ai(this.doc,Ve)&&ie&&Pn(Ve,mc(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var et=0;et<this.lines.length;++et){var wt=Wr(this.lines[et]),Jt=Wo(wt);Jt>ie.display.maxLineLength&&(ie.display.maxLine=wt,ie.display.maxLineLength=Jt,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&&xu(ie.doc)),ie&&ji(ie,"markerCleared",ie,this,pe,ye),oe&&Zu(ie),this.parent&&this.parent.clear()}},Qt.prototype.find=function(ie,oe){ie==null&&this.type=="bookmark"&&(ie=1);for(var ge,pe,ye=0;ye<this.lines.length;++ye){var Oe=this.lines[ye],Ve=Ho(Oe.markedSpans,this);if(Ve.from!=null&&(ge=Yt(oe?Oe:Rt(Oe),Ve.from),ie==-1))return ge;if(Ve.to!=null&&(pe=Yt(oe?Oe:Rt(Oe),Ve.to),ie==1))return pe}return ge&&{from:ge,to:pe}},Qt.prototype.changed=function(){var ie=this,oe=this.find(-1,!0),ge=this,pe=this.doc.cm;!oe||!pe||rn(pe,function(){var ye=oe.line,Oe=Rt(oe.line),Ve=kc(pe,Oe);if(Ve&&(hl(Ve),pe.curOp.selectionChanged=pe.curOp.forceUpdate=!0),pe.curOp.updateMaxLine=!0,!ai(ge.doc,ye)&&ge.height!=null){var Xe=ge.height;ge.height=null;var et=bl(ge)-Xe;et&&Pn(ye,ye.height+et)}ji(pe,"markerChanged",pe,ie)})},Qt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var oe=this.doc.cm.curOp;(!oe.maybeHiddenMarkers||Bt(oe.maybeHiddenMarkers,this)==-1)&&(oe.maybeUnhiddenMarkers||(oe.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Qt.prototype.detachLine=function(ie){if(this.lines.splice(Bt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var oe=this.doc.cm.curOp;(oe.maybeHiddenMarkers||(oe.maybeHiddenMarkers=[])).push(this)}},ni(Qt);function Rc(ie,oe,ge,pe,ye){if(pe&&pe.shared)return Nd(ie,oe,ge,pe,ye);if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Rc)(ie,oe,ge,pe,ye);var Oe=new Qt(ie,ye),Ve=Fn(oe,ge);if(pe&&mn(pe,Oe,!1),Ve>0||Ve==0&&Oe.clearWhenEmpty!==!1)return Oe;if(Oe.replacedWith&&(Oe.collapsed=!0,Oe.widgetNode=Tt("span",[Oe.replacedWith],"CodeMirror-widget"),pe.handleMouseEvents||Oe.widgetNode.setAttribute("cm-ignore-events","true"),pe.insertLeft&&(Oe.widgetNode.insertLeft=!0)),Oe.collapsed){if(Po(ie,oe.line,oe,ge,Oe)||oe.line!=ge.line&&Po(ie,ge.line,oe,ge,Oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");bn()}Oe.addToHistory&&ua(ie,{from:oe,to:ge,origin:"markText"},ie.sel,NaN);var Xe=oe.line,et=ie.cm,wt;if(ie.iter(Xe,ge.line+1,function(Nt){et&&Oe.collapsed&&!et.options.lineWrapping&&Wr(Nt)==et.display.maxLine&&(wt=!0),Oe.collapsed&&Xe!=oe.line&&Pn(Nt,0),vo(Nt,new Mr(Oe,Xe==oe.line?oe.ch:null,Xe==ge.line?ge.ch:null)),++Xe}),Oe.collapsed&&ie.iter(oe.line,ge.line+1,function(Nt){ai(ie,Nt)&&Pn(Nt,0)}),Oe.clearOnEnter&&gt(Oe,"beforeCursorEnter",function(){return Oe.clear()}),Oe.readOnly&&(Ur(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Oe.collapsed&&(Oe.id=++Xd,Oe.atomic=!0),et){if(wt&&(et.curOp.updateMaxLine=!0),Oe.collapsed)Za(et,oe.line,ge.line+1);else if(Oe.className||Oe.startStyle||Oe.endStyle||Oe.css||Oe.attributes||Oe.title)for(var Jt=oe.line;Jt<=ge.line;Jt++)Go(et,Jt,"text");Oe.atomic&&xu(et.doc),ji(et,"markerAdded",et,Oe)}return Oe}var tc=function(ie,oe){this.markers=ie,this.primary=oe;for(var ge=0;ge<ie.length;++ge)ie[ge].parent=this};tc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();ji(this,"clear")}},tc.prototype.find=function(ie,oe){return this.primary.find(ie,oe)},ni(tc);function Nd(ie,oe,ge,pe,ye){pe=mn(pe),pe.shared=!1;var Oe=[Rc(ie,oe,ge,pe,ye)],Ve=Oe[0],Xe=pe.widgetNode;return Fs(ie,function(et){Xe&&(pe.widgetNode=Xe.cloneNode(!0)),Oe.push(Rc(et,Gn(et,oe),Gn(et,ge),pe,ye));for(var wt=0;wt<et.linked.length;++wt)if(et.linked[wt].isParent)return;Ve=Ot(Oe)}),new tc(Oe,Ve)}function Id(ie){return ie.findMarks(Yt(ie.first,0),ie.clipPos(Yt(ie.lastLine())),function(oe){return oe.parent})}function pd(ie,oe){for(var ge=0;ge<oe.length;ge++){var pe=oe[ge],ye=pe.find(),Oe=ie.clipPos(ye.from),Ve=ie.clipPos(ye.to);if(Fn(Oe,Ve)){var Xe=Rc(ie,Oe,Ve,pe.primary,pe.primary.type);pe.markers.push(Xe),Xe.parent=pe}}}function Ch(ie){for(var oe=function(pe){var ye=ie[pe],Oe=[ye.primary.doc];Fs(ye.primary.doc,function(et){return Oe.push(et)});for(var Ve=0;Ve<ye.markers.length;Ve++){var Xe=ye.markers[Ve];Bt(Oe,Xe.doc)==-1&&(Xe.parent=null,ye.markers.splice(Ve--,1))}},ge=0;ge<ie.length;ge++)oe(ge)}var cg=0,ul=function(ie,oe,ge,pe,ye){if(!(this instanceof ul))return new ul(ie,oe,ge,pe,ye);ge==null&&(ge=0),ga.call(this,[new Ya([new ka("",null)])]),this.first=ge,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ge;var Oe=Yt(ge,0);this.sel=Fo(Oe),this.history=new $r(null),this.id=++cg,this.modeOption=oe,this.lineSep=pe,this.direction=ye=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),$a(this,{from:Oe,to:Oe,text:ie}),Ha(this,Fo(Oe),zt)};ul.prototype=xn(ga.prototype,{constructor:ul,iter:function(ie,oe,ge){ge?this.iterN(ie-this.first,oe-ie,ge):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,oe){for(var ge=0,pe=0;pe<oe.length;++pe)ge+=oe[pe].height;this.insertInner(ie-this.first,oe,ge)},remove:function(ie,oe){this.removeInner(ie-this.first,oe)},getValue:function(ie){var oe=Ci(this,this.first,this.first+this.size);return ie===!1?oe:oe.join(ie||this.lineSeparator())},setValue:jn(function(ie){var oe=Yt(this.first,0),ge=this.first+this.size-1;ys(this,{from:oe,to:Yt(ge,Ln(this,ge).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&$c(this.cm,0,0),Ha(this,Fo(oe),zt)}),replaceRange:function(ie,oe,ge,pe){oe=Gn(this,oe),ge=ge?Gn(this,ge):oe,ec(this,ie,oe,ge,pe)},getRange:function(ie,oe,ge){var pe=Jn(this,Gn(this,ie),Gn(this,oe));return ge===!1?pe:pe.join(ge||this.lineSeparator())},getLine:function(ie){var oe=this.getLineHandle(ie);return oe&&oe.text},getLineHandle:function(ie){if(vi(this,ie))return Ln(this,ie)},getLineNumber:function(ie){return Rt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Ln(this,ie)),Wr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Gn(this,ie)},getCursor:function(ie){var oe=this.sel.primary(),ge;return ie==null||ie=="head"?ge=oe.head:ie=="anchor"?ge=oe.anchor:ie=="end"||ie=="to"||ie===!1?ge=oe.to():ge=oe.from(),ge},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jn(function(ie,oe,ge){vs(this,Gn(this,typeof ie=="number"?Yt(ie,oe||0):ie),null,ge)}),setSelection:jn(function(ie,oe,ge){vs(this,Gn(this,ie),Gn(this,oe||ie),ge)}),extendSelection:jn(function(ie,oe,ge){ba(this,Gn(this,ie),oe&&Gn(this,oe),ge)}),extendSelections:jn(function(ie,oe){Na(this,oi(this,ie),oe)}),extendSelectionsBy:jn(function(ie,oe){var ge=kn(this.sel.ranges,ie);Na(this,oi(this,ge),oe)}),setSelections:jn(function(ie,oe,ge){if(ie.length){for(var pe=[],ye=0;ye<ie.length;ye++)pe[ye]=new mr(Gn(this,ie[ye].anchor),Gn(this,ie[ye].head));oe==null&&(oe=Math.min(ie.length-1,this.sel.primIndex)),Ha(this,Lo(this.cm,pe,oe),ge)}}),addSelection:jn(function(ie,oe,ge){var pe=this.sel.ranges.slice(0);pe.push(new mr(Gn(this,ie),Gn(this,oe||ie))),Ha(this,Lo(this.cm,pe,pe.length-1),ge)}),getSelection:function(ie){for(var oe=this.sel.ranges,ge,pe=0;pe<oe.length;pe++){var ye=Jn(this,oe[pe].from(),oe[pe].to());ge=ge?ge.concat(ye):ye}return ie===!1?ge:ge.join(ie||this.lineSeparator())},getSelections:function(ie){for(var oe=[],ge=this.sel.ranges,pe=0;pe<ge.length;pe++){var ye=Jn(this,ge[pe].from(),ge[pe].to());ie!==!1&&(ye=ye.join(ie||this.lineSeparator())),oe[pe]=ye}return oe},replaceSelection:function(ie,oe,ge){for(var pe=[],ye=0;ye<this.sel.ranges.length;ye++)pe[ye]=ie;this.replaceSelections(pe,oe,ge||"+input")},replaceSelections:jn(function(ie,oe,ge){for(var pe=[],ye=this.sel,Oe=0;Oe<ye.ranges.length;Oe++){var Ve=ye.ranges[Oe];pe[Oe]={from:Ve.from(),to:Ve.to(),text:this.splitLines(ie[Oe]),origin:ge}}for(var Xe=oe&&oe!="end"&&No(this,pe,oe),et=pe.length-1;et>=0;et--)ys(this,pe[et]);Xe?Vo(this,Xe):this.cm&&Zc(this.cm)}),undo:jn(function(){Rl(this,"undo")}),redo:jn(function(){Rl(this,"redo")}),undoSelection:jn(function(){Rl(this,"undo",!0)}),redoSelection:jn(function(){Rl(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,oe=0,ge=0,pe=0;pe<ie.done.length;pe++)ie.done[pe].ranges||++oe;for(var ye=0;ye<ie.undone.length;ye++)ie.undone[ye].ranges||++ge;return{undo:oe,redo:ge}},clearHistory:function(){var ie=this;this.history=new $r(this.history.maxGeneration),Fs(this,function(oe){return oe.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:qs(this.history.done),undone:qs(this.history.undone)}},setHistory:function(ie){var oe=this.history=new $r(this.history.maxGeneration);oe.done=qs(ie.done.slice(0),null,!0),oe.undone=qs(ie.undone.slice(0),null,!0)},setGutterMarker:jn(function(ie,oe,ge){return $s(this,ie,"gutter",function(pe){var ye=pe.gutterMarkers||(pe.gutterMarkers={});return ye[oe]=ge,!ge&&vt(ye)&&(pe.gutterMarkers=null),!0})}),clearGutter:jn(function(ie){var oe=this;this.iter(function(ge){ge.gutterMarkers&&ge.gutterMarkers[ie]&&$s(oe,ge,"gutter",function(){return ge.gutterMarkers[ie]=null,vt(ge.gutterMarkers)&&(ge.gutterMarkers=null),!0})})}),lineInfo:function(ie){var oe;if(typeof ie=="number"){if(!vi(this,ie)||(oe=ie,ie=Ln(this,ie),!ie))return null}else if(oe=Rt(ie),oe==null)return null;return{line:oe,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:jn(function(ie,oe,ge){return $s(this,ie,oe=="gutter"?"gutter":"class",function(pe){var ye=oe=="text"?"textClass":oe=="background"?"bgClass":oe=="gutter"?"gutterClass":"wrapClass";if(!pe[ye])pe[ye]=ge;else{if(Ne(ge).test(pe[ye]))return!1;pe[ye]+=" "+ge}return!0})}),removeLineClass:jn(function(ie,oe,ge){return $s(this,ie,oe=="gutter"?"gutter":"class",function(pe){var ye=oe=="text"?"textClass":oe=="background"?"bgClass":oe=="gutter"?"gutterClass":"wrapClass",Oe=pe[ye];if(Oe)if(ge==null)pe[ye]=null;else{var Ve=Oe.match(Ne(ge));if(!Ve)return!1;var Xe=Ve.index+Ve[0].length;pe[ye]=Oe.slice(0,Ve.index)+(!Ve.index||Xe==Oe.length?"":" ")+Oe.slice(Xe)||null}else return!1;return!0})}),addLineWidget:jn(function(ie,oe,ge){return wu(this,ie,oe,ge)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,oe,ge){return Rc(this,Gn(this,ie),Gn(this,oe),ge,ge&&ge.type||"range")},setBookmark:function(ie,oe){var ge={replacedWith:oe&&(oe.nodeType==null?oe.widget:oe),insertLeft:oe&&oe.insertLeft,clearWhenEmpty:!1,shared:oe&&oe.shared,handleMouseEvents:oe&&oe.handleMouseEvents};return ie=Gn(this,ie),Rc(this,ie,ie,ge,"bookmark")},findMarksAt:function(ie){ie=Gn(this,ie);var oe=[],ge=Ln(this,ie.line).markedSpans;if(ge)for(var pe=0;pe<ge.length;++pe){var ye=ge[pe];(ye.from==null||ye.from<=ie.ch)&&(ye.to==null||ye.to>=ie.ch)&&oe.push(ye.marker.parent||ye.marker)}return oe},findMarks:function(ie,oe,ge){ie=Gn(this,ie),oe=Gn(this,oe);var pe=[],ye=ie.line;return this.iter(ie.line,oe.line+1,function(Oe){var Ve=Oe.markedSpans;if(Ve)for(var Xe=0;Xe<Ve.length;Xe++){var et=Ve[Xe];!(et.to!=null&&ye==ie.line&&ie.ch>=et.to||et.from==null&&ye!=ie.line||et.from!=null&&ye==oe.line&&et.from>=oe.ch)&&(!ge||ge(et.marker))&&pe.push(et.marker.parent||et.marker)}++ye}),pe},getAllMarks:function(){var ie=[];return this.iter(function(oe){var ge=oe.markedSpans;if(ge)for(var pe=0;pe<ge.length;++pe)ge[pe].from!=null&&ie.push(ge[pe].marker)}),ie},posFromIndex:function(ie){var oe,ge=this.first,pe=this.lineSeparator().length;return this.iter(function(ye){var Oe=ye.text.length+pe;if(Oe>ie)return oe=ie,!0;ie-=Oe,++ge}),Gn(this,Yt(ge,oe))},indexFromPos:function(ie){ie=Gn(this,ie);var oe=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ge=this.lineSeparator().length;return this.iter(this.first,ie.line,function(pe){oe+=pe.text.length+ge}),oe},copy:function(ie){var oe=new ul(Ci(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return oe.scrollTop=this.scrollTop,oe.scrollLeft=this.scrollLeft,oe.sel=this.sel,oe.extend=!1,ie&&(oe.history.undoDepth=this.history.undoDepth,oe.setHistory(this.getHistory())),oe},linkedDoc:function(ie){ie||(ie={});var oe=this.first,ge=this.first+this.size;ie.from!=null&&ie.from>oe&&(oe=ie.from),ie.to!=null&&ie.to<ge&&(ge=ie.to);var pe=new ul(Ci(this,oe,ge),ie.mode||this.modeOption,oe,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}],pd(pe,Id(this)),pe},unlinkDoc:function(ie){if(ie instanceof Ma&&(ie=ie.doc),this.linked)for(var oe=0;oe<this.linked.length;++oe){var ge=this.linked[oe];if(ge.doc==ie){this.linked.splice(oe,1),ie.unlinkDoc(this),Ch(Id(this));break}}if(ie.history==this.history){var pe=[ie.id];Fs(ie,function(ye){return pe.push(ye.id)},!0),ie.history=new $r(null),ie.history.done=qs(this.history.done,pe),ie.history.undone=qs(this.history.undone,pe)}},iterLinkedDocs:function(ie){Fs(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):_i(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:jn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(oe){return oe.order=null}),this.cm&&mo(this.cm))})}),ul.prototype.eachLine=ul.prototype.iter;var Md=0;function Ph(ie){var oe=this;if(Df(oe),!(Wt(oe,ie)||wl(oe.display,ie))){di(ie),je&&(Md=+new Date);var ge=El(oe,ie,!0),pe=ie.dataTransfer.files;if(!(!ge||oe.isReadOnly()))if(pe&&pe.length&&window.FileReader&&window.File)for(var ye=pe.length,Oe=Array(ye),Ve=0,Xe=function(){++Ve==ye&&Wn(oe,function(){ge=Gn(oe.doc,ge);var Sn={from:ge,to:ge,text:oe.doc.splitLines(Oe.filter(function(ti){return ti!=null}).join(oe.doc.lineSeparator())),origin:"paste"};ys(oe.doc,Sn),Vo(oe.doc,Fo(Gn(oe.doc,ge),Gn(oe.doc,Ea(Sn))))})()},et=function(Sn,ti){if(oe.options.allowDropFileTypes&&Bt(oe.options.allowDropFileTypes,Sn.type)==-1){Xe();return}var gi=new FileReader;gi.onerror=function(){return Xe()},gi.onload=function(){var bi=gi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(bi)){Xe();return}Oe[ti]=bi,Xe()},gi.readAsText(Sn)},wt=0;wt<pe.length;wt++)et(pe[wt],wt);else{if(oe.state.draggingText&&oe.doc.sel.contains(ge)>-1){oe.state.draggingText(ie),setTimeout(function(){return oe.display.input.focus()},20);return}try{var Jt=ie.dataTransfer.getData("Text");if(Jt){var Nt;if(oe.state.draggingText&&!oe.state.draggingText.copy&&(Nt=oe.listSelections()),el(oe.doc,Fo(ge,ge)),Nt)for(var Bn=0;Bn<Nt.length;++Bn)ec(oe.doc,"",Nt[Bn].anchor,Nt[Bn].head,"drag");oe.replaceSelection(Jt,"around","paste"),oe.display.input.focus()}}catch(Sn){}}}}function Qd(ie,oe){if(je&&(!ie.state.draggingText||+new Date-Md<100)){Li(oe);return}if(!(Wt(ie,oe)||wl(ie.display,oe))&&(oe.dataTransfer.setData("Text",ie.getSelection()),oe.dataTransfer.effectAllowed="copyMove",oe.dataTransfer.setDragImage&&!st)){var ge=lt("img",null,null,"position: fixed; left: 0; top: 0;");ge.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ye&&(ge.width=ge.height=1,ie.display.wrapper.appendChild(ge),ge._top=ge.offsetTop),oe.dataTransfer.setDragImage(ge,0,0),Ye&&ge.parentNode.removeChild(ge)}}function tf(ie,oe){var ge=El(ie,oe);if(ge){var pe=document.createDocumentFragment();da(ie,ge,pe),ie.display.dragCursor||(ie.display.dragCursor=lt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),at(ie.display.dragCursor,pe)}}function Df(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function nf(ie){if(document.getElementsByClassName){for(var oe=document.getElementsByClassName("CodeMirror"),ge=[],pe=0;pe<oe.length;pe++){var ye=oe[pe].CodeMirror;ye&&ge.push(ye)}ge.length&&ge[0].operation(function(){for(var Oe=0;Oe<ge.length;Oe++)ie(ge[Oe])})}}var Od=!1;function eu(){Od||(Rd(),Od=!0)}function Rd(){var ie;gt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,nf(Th)},100))}),gt(window,"blur",function(){return nf(gd)})}function Th(ie){var oe=ie.display;oe.cachedCharWidth=oe.cachedTextHeight=oe.cachedPaddingH=null,oe.scrollbarsClipped=!1,ie.setSize()}for(var Fl={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"},Xc=0;Xc<10;Xc++)Fl[Xc+48]=Fl[Xc+96]=String(Xc);for(var Qc=65;Qc<=90;Qc++)Fl[Qc]=String.fromCharCode(Qc);for(var md=1;md<=12;md++)Fl[md+111]=Fl[md+63235]="F"+md;var Bl={};Bl.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"},Bl.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"},Bl.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"},Bl.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"]},Bl.default=fe?Bl.macDefault:Bl.pcDefault;function Jd(ie){var oe=ie.split(/-(?!$)/);ie=oe[oe.length-1];for(var ge,pe,ye,Oe,Ve=0;Ve<oe.length-1;Ve++){var Xe=oe[Ve];if(/^(cmd|meta|m)$/i.test(Xe))Oe=!0;else if(/^a(lt)?$/i.test(Xe))ge=!0;else if(/^(c|ctrl|control)$/i.test(Xe))pe=!0;else if(/^s(hift)?$/i.test(Xe))ye=!0;else throw new Error("Unrecognized modifier name: "+Xe)}return ge&&(ie="Alt-"+ie),pe&&(ie="Ctrl-"+ie),Oe&&(ie="Cmd-"+ie),ye&&(ie="Shift-"+ie),ie}function kh(ie){var oe={};for(var ge in ie)if(ie.hasOwnProperty(ge)){var pe=ie[ge];if(/^(name|fallthrough|(de|at)tach)$/.test(ge))continue;if(pe=="..."){delete ie[ge];continue}for(var ye=kn(ge.split(" "),Jd),Oe=0;Oe<ye.length;Oe++){var Ve=void 0,Xe=void 0;Oe==ye.length-1?(Xe=ye.join(" "),Ve=pe):(Xe=ye.slice(0,Oe+1).join(" "),Ve="...");var et=oe[Xe];if(!et)oe[Xe]=Ve;else if(et!=Ve)throw new Error("Inconsistent bindings for "+Xe)}delete ie[ge]}for(var wt in oe)ie[wt]=oe[wt];return ie}function tu(ie,oe,ge,pe){oe=nu(oe);var ye=oe.call?oe.call(ie,pe):oe[ie];if(ye===!1)return"nothing";if(ye==="...")return"multi";if(ye!=null&&ge(ye))return"handled";if(oe.fallthrough){if(Object.prototype.toString.call(oe.fallthrough)!="[object Array]")return tu(ie,oe.fallthrough,ge,pe);for(var Oe=0;Oe<oe.fallthrough.length;Oe++){var Ve=tu(ie,oe.fallthrough[Oe],ge,pe);if(Ve)return Ve}}}function Dd(ie){var oe=typeof ie=="string"?ie:Fl[ie.keyCode];return oe=="Ctrl"||oe=="Alt"||oe=="Shift"||oe=="Mod"}function Ah(ie,oe,ge){var pe=ie;return oe.altKey&&pe!="Alt"&&(ie="Alt-"+ie),(ke?oe.metaKey:oe.ctrlKey)&&pe!="Ctrl"&&(ie="Ctrl-"+ie),(ke?oe.ctrlKey:oe.metaKey)&&pe!="Mod"&&(ie="Cmd-"+ie),!ge&&oe.shiftKey&&pe!="Shift"&&(ie="Shift-"+ie),ie}function qd(ie,oe){if(Ye&&ie.keyCode==34&&ie.char)return!1;var ge=Fl[ie.keyCode];return ge==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ge=ie.code),Ah(ge,ie,oe))}function nu(ie){return typeof ie=="string"?Bl[ie]:ie}function Tl(ie,oe){for(var ge=ie.doc.sel.ranges,pe=[],ye=0;ye<ge.length;ye++){for(var Oe=oe(ge[ye]);pe.length&&Fn(Oe.from,Ot(pe).to)<=0;){var Ve=pe.pop();if(Fn(Ve.from,Oe.from)<0){Oe.from=Ve.from;break}}pe.push(Oe)}rn(ie,function(){for(var Xe=pe.length-1;Xe>=0;Xe--)ec(ie.doc,"",pe[Xe].from,pe[Xe].to,"+delete");Zc(ie)})}function Lh(ie,oe,ge){var pe=yt(ie.text,oe+ge,ge);return pe<0||pe>ie.text.length?null:pe}function Ys(ie,oe,ge){var pe=Lh(ie,oe.ch,ge);return pe==null?null:new Yt(oe.line,pe,ge<0?"after":"before")}function Pa(ie,oe,ge,pe,ye){if(ie){oe.doc.direction=="rtl"&&(ye=-ye);var Oe=Qe(ge,oe.doc.direction);if(Oe){var Ve=ye<0?Ot(Oe):Oe[0],Xe=ye<0==(Ve.level==1),et=Xe?"after":"before",wt;if(Ve.level>0||oe.doc.direction=="rtl"){var Jt=hc(oe,ge);wt=ye<0?ge.text.length-1:0;var Nt=Ml(oe,Jt,wt).top;wt=ft(function(Bn){return Ml(oe,Jt,Bn).top==Nt},ye<0==(Ve.level==1)?Ve.from:Ve.to-1,wt),et=="before"&&(wt=Lh(ge,wt,1))}else wt=ye<0?Ve.to:Ve.from;return new Yt(pe,wt,et)}}return new Yt(pe,ye<0?ge.text.length:0,ye<0?"before":"after")}function ns(ie,oe,ge,pe){var ye=Qe(oe,ie.doc.direction);if(!ye)return Ys(oe,ge,pe);ge.ch>=oe.text.length?(ge.ch=oe.text.length,ge.sticky="before"):ge.ch<=0&&(ge.ch=0,ge.sticky="after");var Oe=be(ye,ge.ch,ge.sticky),Ve=ye[Oe];if(ie.doc.direction=="ltr"&&Ve.level%2==0&&(pe>0?Ve.to>ge.ch:Ve.from<ge.ch))return Ys(oe,ge,pe);var Xe=function(Gi,lr){return Lh(oe,Gi instanceof Yt?Gi.ch:Gi,lr)},et,wt=function(Gi){return ie.options.lineWrapping?(et=et||hc(ie,oe),Td(ie,oe,et,Gi)):{begin:0,end:oe.text.length}},Jt=wt(ge.sticky=="before"?Xe(ge,-1):ge.ch);if(ie.doc.direction=="rtl"||Ve.level==1){var Nt=Ve.level==1==pe<0,Bn=Xe(ge,Nt?1:-1);if(Bn!=null&&(Nt?Bn<=Ve.to&&Bn<=Jt.end:Bn>=Ve.from&&Bn>=Jt.begin)){var Sn=Nt?"before":"after";return new Yt(ge.line,Bn,Sn)}}var ti=function(Gi,lr,rr){for(var Cr=function(_n,Oa){return Oa?new Yt(ge.line,Xe(_n,1),"before"):new Yt(ge.line,_n,"after")};Gi>=0&&Gi<ye.length;Gi+=lr){var wn=ye[Gi],or=lr>0==(wn.level!=1),Eo=or?rr.begin:Xe(rr.end,-1);if(wn.from<=Eo&&Eo<wn.to||(Eo=or?wn.from:Xe(wn.to,-1),rr.begin<=Eo&&Eo<rr.end))return Cr(Eo,or)}},gi=ti(Oe+pe,pe,Jt);if(gi)return gi;var bi=pe>0?Jt.end:Xe(Jt.begin,-1);return bi!=null&&!(pe>0&&bi==oe.text.length)&&(gi=ti(pe>0?0:ye.length-1,pe,wt(bi)),gi)?gi:null}var fl={selectAll:Aa,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),zt)},killLine:function(ie){return Tl(ie,function(oe){if(oe.empty()){var ge=Ln(ie.doc,oe.head.line).text.length;return oe.head.ch==ge&&oe.head.line<ie.lastLine()?{from:oe.head,to:Yt(oe.head.line+1,0)}:{from:oe.head,to:Yt(oe.head.line,ge)}}else return{from:oe.from(),to:oe.to()}})},deleteLine:function(ie){return Tl(ie,function(oe){return{from:Yt(oe.from().line,0),to:Gn(ie.doc,Yt(oe.to().line+1,0))}})},delLineLeft:function(ie){return Tl(ie,function(oe){return{from:Yt(oe.from().line,0),to:oe.from()}})},delWrappedLineLeft:function(ie){return Tl(ie,function(oe){var ge=ie.charCoords(oe.head,"div").top+5,pe=ie.coordsChar({left:0,top:ge},"div");return{from:pe,to:oe.from()}})},delWrappedLineRight:function(ie){return Tl(ie,function(oe){var ge=ie.charCoords(oe.head,"div").top+5,pe=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ge},"div");return{from:oe.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(Yt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Yt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(oe){return Eu(ie,oe.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(oe){return eh(ie,oe.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(oe){return zl(ie,oe.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(oe){var ge=ie.cursorCoords(oe.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ge},"div")},Mn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(oe){var ge=ie.cursorCoords(oe.head,"div").top+5;return ie.coordsChar({left:0,top:ge},"div")},Mn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(oe){var ge=ie.cursorCoords(oe.head,"div").top+5,pe=ie.coordsChar({left:0,top:ge},"div");return pe.ch<ie.getLine(pe.line).search(/\S/)?eh(ie,oe.head):pe},Mn)},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 oe=[],ge=ie.listSelections(),pe=ie.options.tabSize,ye=0;ye<ge.length;ye++){var Oe=ge[ye].from(),Ve=Ct(ie.getLine(Oe.line),Oe.ch,pe);oe.push(li(pe-Ve%pe))}ie.replaceSelections(oe)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return rn(ie,function(){for(var oe=ie.listSelections(),ge=[],pe=0;pe<oe.length;pe++)if(oe[pe].empty()){var ye=oe[pe].head,Oe=Ln(ie.doc,ye.line).text;if(Oe){if(ye.ch==Oe.length&&(ye=new Yt(ye.line,ye.ch-1)),ye.ch>0)ye=new Yt(ye.line,ye.ch+1),ie.replaceRange(Oe.charAt(ye.ch-1)+Oe.charAt(ye.ch-2),Yt(ye.line,ye.ch-2),ye,"+transpose");else if(ye.line>ie.doc.first){var Ve=Ln(ie.doc,ye.line-1).text;Ve&&(ye=new Yt(ye.line,1),ie.replaceRange(Oe.charAt(0)+ie.doc.lineSeparator()+Ve.charAt(Ve.length-1),Yt(ye.line-1,Ve.length-1),ye,"+transpose"))}}ge.push(new mr(ye,ye))}ie.setSelections(ge)})},newlineAndIndent:function(ie){return rn(ie,function(){for(var oe=ie.listSelections(),ge=oe.length-1;ge>=0;ge--)ie.replaceRange(ie.doc.lineSeparator(),oe[ge].anchor,oe[ge].head,"+input");oe=ie.listSelections();for(var pe=0;pe<oe.length;pe++)ie.indentLine(oe[pe].from().line,null,!0);Zc(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Eu(ie,oe){var ge=Ln(ie.doc,oe),pe=Wr(ge);return pe!=ge&&(oe=Rt(pe)),Pa(!0,ie,pe,oe,1)}function zl(ie,oe){var ge=Ln(ie.doc,oe),pe=na(ge);return pe!=ge&&(oe=Rt(pe)),Pa(!0,ie,ge,oe,-1)}function eh(ie,oe){var ge=Eu(ie,oe.line),pe=Ln(ie.doc,ge.line),ye=Qe(pe,ie.doc.direction);if(!ye||ye[0].level==0){var Oe=Math.max(ge.ch,pe.text.search(/\S/)),Ve=oe.line==ge.line&&oe.ch<=Oe&&oe.ch;return Yt(ge.line,Ve?0:Oe,ge.sticky)}return ge}function Jc(ie,oe,ge){if(typeof oe=="string"&&(oe=fl[oe],!oe))return!1;ie.display.input.ensurePolled();var pe=ie.display.shift,ye=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ge&&(ie.display.shift=!1),ye=oe(ie)!=Zn}finally{ie.display.shift=pe,ie.state.suppressEdits=!1}return ye}function th(ie,oe,ge){for(var pe=0;pe<ie.state.keyMaps.length;pe++){var ye=tu(oe,ie.state.keyMaps[pe],ge,ie);if(ye)return ye}return ie.options.extraKeys&&tu(oe,ie.options.extraKeys,ge,ie)||tu(oe,ie.options.keyMap,ge,ie)}var Bu=new qe;function Dc(ie,oe,ge,pe){var ye=ie.state.keySeq;if(ye){if(Dd(oe))return"handled";if(/\'$/.test(oe)?ie.state.keySeq=null:Bu.set(50,function(){ie.state.keySeq==ye&&(ie.state.keySeq=null,ie.display.input.reset())}),Ff(ie,ye+" "+oe,ge,pe))return!0}return Ff(ie,oe,ge,pe)}function Ff(ie,oe,ge,pe){var ye=th(ie,oe,pe);return ye=="multi"&&(ie.state.keySeq=oe),ye=="handled"&&ji(ie,"keyHandled",ie,oe,ge),(ye=="handled"||ye=="multi")&&(di(ge),Fa(ie)),!!ye}function Bf(ie,oe){var ge=qd(oe,!0);return ge?oe.shiftKey&&!ie.state.keySeq?Dc(ie,"Shift-"+ge,oe,function(pe){return Jc(ie,pe,!0)})||Dc(ie,ge,oe,function(pe){if(typeof pe=="string"?/^go[A-Z]/.test(pe):pe.motion)return Jc(ie,pe)}):Dc(ie,ge,oe,function(pe){return Jc(ie,pe)}):!1}function zf(ie,oe,ge){return Dc(ie,"'"+ge+"'",oe,function(pe){return Jc(ie,pe,!0)})}var nh=null;function dg(ie){var oe=this;if(!(ie.target&&ie.target!=oe.display.input.getField())&&(oe.curOp.focus=kt(),!Wt(oe,ie))){je&&Ze<11&&ie.keyCode==27&&(ie.returnValue=!1);var ge=ie.keyCode;oe.display.shift=ge==16||ie.shiftKey;var pe=Bf(oe,ie);Ye&&(nh=pe?ge:null,!pe&&ge==88&&!jr&&(fe?ie.metaKey:ie.ctrlKey)&&oe.replaceSelection("",null,"cut")),de&&!fe&&!pe&&ge==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ge==18&&!/\bCodeMirror-crosshair\b/.test(oe.display.lineDiv.className)&&jf(oe)}}function jf(ie){var oe=ie.display.lineDiv;dn(oe,"CodeMirror-crosshair");function ge(pe){(pe.keyCode==18||!pe.altKey)&&(Ke(oe,"CodeMirror-crosshair"),yn(document,"keyup",ge),yn(document,"mouseover",ge))}gt(document,"keyup",ge),gt(document,"mouseover",ge)}function hg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Wt(this,ie)}function Fc(ie){var oe=this;if(!(ie.target&&ie.target!=oe.display.input.getField())&&!(wl(oe.display,ie)||Wt(oe,ie)||ie.ctrlKey&&!ie.altKey||fe&&ie.metaKey)){var ge=ie.keyCode,pe=ie.charCode;if(Ye&&ge==nh){nh=null,di(ie);return}if(!(Ye&&(!ie.which||ie.which<10)&&Bf(oe,ie))){var ye=String.fromCharCode(pe==null?ge:pe);ye!="\b"&&(zf(oe,ie,ye)||oe.display.input.onKeyPress(ie))}}}var Uf=400,rf=function(ie,oe,ge){this.time=ie,this.pos=oe,this.button=ge};rf.prototype.compare=function(ie,oe,ge){return this.time+Uf>ie&&Fn(oe,this.pos)==0&&ge==this.button};var ih,qc;function Us(ie,oe){var ge=+new Date;return qc&&qc.compare(ge,ie,oe)?(ih=qc=null,"triple"):ih&&ih.compare(ge,ie,oe)?(qc=new rf(ge,ie,oe),ih=null,"double"):(ih=new rf(ge,ie,oe),qc=null,"single")}function Bc(ie){var oe=this,ge=oe.display;if(!(Wt(oe,ie)||ge.activeTouch&&ge.input.supportsTouch())){if(ge.input.ensurePolled(),ge.shift=ie.shiftKey,wl(ge,ie)){we||(ge.scroller.draggable=!1,setTimeout(function(){return ge.scroller.draggable=!0},100));return}if(!_f(oe,ie)){var pe=El(oe,ie),ye=Ji(ie),Oe=pe?Us(pe,ye):"single";window.focus(),ye==1&&oe.state.selectingText&&oe.state.selectingText(ie),!(pe&&Nh(oe,ye,pe,Oe,ie))&&(ye==1?pe?fg(oe,pe,Oe,ie):Yi(ie)==ge.scroller&&di(ie):ye==2?(pe&&ba(oe.doc,pe),setTimeout(function(){return ge.input.focus()},20)):ye==3&&(Be?oe.display.input.onContextMenu(ie):ms(oe)))}}}function Nh(ie,oe,ge,pe,ye){var Oe="Click";return pe=="double"?Oe="Double"+Oe:pe=="triple"&&(Oe="Triple"+Oe),Oe=(oe==1?"Left":oe==2?"Middle":"Right")+Oe,Dc(ie,Ah(Oe,ye),ye,function(Ve){if(typeof Ve=="string"&&(Ve=fl[Ve]),!Ve)return!1;var Xe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Xe=Ve(ie,ge)!=Zn}finally{ie.state.suppressEdits=!1}return Xe})}function of(ie,oe,ge){var pe=ie.getOption("configureMouse"),ye=pe?pe(ie,oe,ge):{};if(ye.unit==null){var Oe=le?ge.shiftKey&&ge.metaKey:ge.altKey;ye.unit=Oe?"rectangle":oe=="single"?"char":oe=="double"?"word":"line"}return(ye.extend==null||ie.doc.extend)&&(ye.extend=ie.doc.extend||ge.shiftKey),ye.addNew==null&&(ye.addNew=fe?ge.metaKey:ge.ctrlKey),ye.moveOnDrag==null&&(ye.moveOnDrag=!(fe?ge.altKey:ge.ctrlKey)),ye}function fg(ie,oe,ge,pe){je?setTimeout(un(rs,ie),0):ie.curOp.focus=kt();var ye=of(ie,ge,pe),Oe=ie.doc.sel,Ve;ie.options.dragDrop&&Xi&&!ie.isReadOnly()&&ge=="single"&&(Ve=Oe.contains(oe))>-1&&(Fn((Ve=Oe.ranges[Ve]).from(),oe)<0||oe.xRel>0)&&(Fn(Ve.to(),oe)>0||oe.xRel<0)?Gf(ie,pe,oe,ye):Lp(ie,pe,oe,ye)}function Gf(ie,oe,ge,pe){var ye=ie.display,Oe=!1,Ve=Wn(ie,function(wt){we&&(ye.scroller.draggable=!1),ie.state.draggingText=!1,yn(ye.wrapper.ownerDocument,"mouseup",Ve),yn(ye.wrapper.ownerDocument,"mousemove",Xe),yn(ye.scroller,"dragstart",et),yn(ye.scroller,"drop",Ve),Oe||(di(wt),pe.addNew||ba(ie.doc,ge,null,null,pe.extend),we&&!st||je&&Ze==9?setTimeout(function(){ye.wrapper.ownerDocument.body.focus({preventScroll:!0}),ye.input.focus()},20):ye.input.focus())}),Xe=function(wt){Oe=Oe||Math.abs(oe.clientX-wt.clientX)+Math.abs(oe.clientY-wt.clientY)>=10},et=function(){return Oe=!0};we&&(ye.scroller.draggable=!0),ie.state.draggingText=Ve,Ve.copy=!pe.moveOnDrag,ye.scroller.dragDrop&&ye.scroller.dragDrop(),gt(ye.wrapper.ownerDocument,"mouseup",Ve),gt(ye.wrapper.ownerDocument,"mousemove",Xe),gt(ye.scroller,"dragstart",et),gt(ye.scroller,"drop",Ve),ms(ie),setTimeout(function(){return ye.input.focus()},20)}function Hf(ie,oe,ge){if(ge=="char")return new mr(oe,oe);if(ge=="word")return ie.findWordAt(oe);if(ge=="line")return new mr(Yt(oe.line,0),Gn(ie.doc,Yt(oe.line+1,0)));var pe=ge(ie,oe);return new mr(pe.from,pe.to)}function Lp(ie,oe,ge,pe){var ye=ie.display,Oe=ie.doc;di(oe);var Ve,Xe,et=Oe.sel,wt=et.ranges;if(pe.addNew&&!pe.extend?(Xe=Oe.sel.contains(ge),Xe>-1?Ve=wt[Xe]:Ve=new mr(ge,ge)):(Ve=Oe.sel.primary(),Xe=Oe.sel.primIndex),pe.unit=="rectangle")pe.addNew||(Ve=new mr(ge,ge)),ge=El(ie,oe,!0,!0),Xe=-1;else{var Jt=Hf(ie,ge,pe.unit);pe.extend?Ve=vc(Ve,Jt.anchor,Jt.head,pe.extend):Ve=Jt}pe.addNew?Xe==-1?(Xe=wt.length,Ha(Oe,Lo(ie,wt.concat([Ve]),Xe),{scroll:!1,origin:"*mouse"})):wt.length>1&&wt[Xe].empty()&&pe.unit=="char"&&!pe.extend?(Ha(Oe,Lo(ie,wt.slice(0,Xe).concat(wt.slice(Xe+1)),0),{scroll:!1,origin:"*mouse"}),et=Oe.sel):za(Oe,Xe,Ve,sn):(Xe=0,Ha(Oe,new po([Ve],0),sn),et=Oe.sel);var Nt=ge;function Bn(rr){if(Fn(Nt,rr)!=0)if(Nt=rr,pe.unit=="rectangle"){for(var Cr=[],wn=ie.options.tabSize,or=Ct(Ln(Oe,ge.line).text,ge.ch,wn),Eo=Ct(Ln(Oe,rr.line).text,rr.ch,wn),_n=Math.min(or,Eo),Oa=Math.max(or,Eo),Ta=Math.min(ge.line,rr.line),Gs=Math.min(ie.lastLine(),Math.max(ge.line,rr.line));Ta<=Gs;Ta++){var Hs=Ln(Oe,Ta).text,wa=fi(Hs,_n,wn);_n==Oa?Cr.push(new mr(Yt(Ta,wa),Yt(Ta,wa))):Hs.length>wa&&Cr.push(new mr(Yt(Ta,wa),Yt(Ta,fi(Hs,Oa,wn))))}Cr.length||Cr.push(new mr(ge,ge)),Ha(Oe,Lo(ie,et.ranges.slice(0,Xe).concat(Cr),Xe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(rr)}else{var Ds=Ve,Es=Hf(ie,rr,pe.unit),Bo=Ds.anchor,Yo;Fn(Es.anchor,Bo)>0?(Yo=Es.head,Bo=gn(Ds.from(),Es.anchor)):(Yo=Es.anchor,Bo=An(Ds.to(),Es.head));var Xa=et.ranges.slice(0);Xa[Xe]=jg(ie,new mr(Gn(Oe,Bo),Yo)),Ha(Oe,Lo(ie,Xa,Xe),sn)}}var Sn=ye.wrapper.getBoundingClientRect(),ti=0;function gi(rr){var Cr=++ti,wn=El(ie,rr,!0,pe.unit=="rectangle");if(wn)if(Fn(wn,Nt)!=0){ie.curOp.focus=kt(),Bn(wn);var or=sa(ye,Oe);(wn.line>=or.to||wn.line<or.from)&&setTimeout(Wn(ie,function(){ti==Cr&&gi(rr)}),150)}else{var Eo=rr.clientY<Sn.top?-20:rr.clientY>Sn.bottom?20:0;Eo&&setTimeout(Wn(ie,function(){ti==Cr&&(ye.scroller.scrollTop+=Eo,gi(rr))}),50)}}function bi(rr){ie.state.selectingText=!1,ti=1/0,rr&&(di(rr),ye.input.focus()),yn(ye.wrapper.ownerDocument,"mousemove",Gi),yn(ye.wrapper.ownerDocument,"mouseup",lr),Oe.history.lastSelOrigin=null}var Gi=Wn(ie,function(rr){rr.buttons===0||!Ji(rr)?bi(rr):gi(rr)}),lr=Wn(ie,bi);ie.state.selectingText=lr,gt(ye.wrapper.ownerDocument,"mousemove",Gi),gt(ye.wrapper.ownerDocument,"mouseup",lr)}function jg(ie,oe){var ge=oe.anchor,pe=oe.head,ye=Ln(ie.doc,ge.line);if(Fn(ge,pe)==0&&ge.sticky==pe.sticky)return oe;var Oe=Qe(ye);if(!Oe)return oe;var Ve=be(Oe,ge.ch,ge.sticky),Xe=Oe[Ve];if(Xe.from!=ge.ch&&Xe.to!=ge.ch)return oe;var et=Ve+(Xe.from==ge.ch==(Xe.level!=1)?0:1);if(et==0||et==Oe.length)return oe;var wt;if(pe.line!=ge.line)wt=(pe.line-ge.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Jt=be(Oe,pe.ch,pe.sticky),Nt=Jt-Ve||(pe.ch-ge.ch)*(Xe.level==1?-1:1);Jt==et-1||Jt==et?wt=Nt<0:wt=Nt>0}var Bn=Oe[et+(wt?-1:0)],Sn=wt==(Bn.level==1),ti=Sn?Bn.from:Bn.to,gi=Sn?"after":"before";return ge.ch==ti&&ge.sticky==gi?oe:new mr(new Yt(ge.line,ti,gi),pe)}function gg(ie,oe,ge,pe){var ye,Oe;if(oe.touches)ye=oe.touches[0].clientX,Oe=oe.touches[0].clientY;else try{ye=oe.clientX,Oe=oe.clientY}catch(Bn){return!1}if(ye>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;pe&&di(oe);var Ve=ie.display,Xe=Ve.lineDiv.getBoundingClientRect();if(Oe>Xe.bottom||!zn(ie,ge))return hi(oe);Oe-=Xe.top-Ve.viewOffset;for(var et=0;et<ie.display.gutterSpecs.length;++et){var wt=Ve.gutters.childNodes[et];if(wt&&wt.getBoundingClientRect().right>=ye){var Jt=Yn(ie.doc,Oe),Nt=ie.display.gutterSpecs[et];return bt(ie,ge,ie,Jt,Nt.className,oe),hi(oe)}}}function _f(ie,oe){return gg(ie,oe,"gutterClick",!0)}function Ia(ie,oe){wl(ie.display,oe)||Wf(ie,oe)||Wt(ie,oe,"contextmenu")||Be||ie.display.input.onContextMenu(oe)}function Wf(ie,oe){return zn(ie,"gutterContextMenu")?gg(ie,oe,"gutterContextMenu",!1):!1}function Ih(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fs(ie)}var rh={toString:function(){return"CodeMirror.Init"}},pg={},af={};function Ug(ie){var oe=ie.optionHandlers;function ge(pe,ye,Oe,Ve){ie.defaults[pe]=ye,Oe&&(oe[pe]=Ve?function(Xe,et,wt){wt!=rh&&Oe(Xe,et,wt)}:Oe)}ie.defineOption=ge,ie.Init=rh,ge("value","",function(pe,ye){return pe.setValue(ye)},!0),ge("mode",null,function(pe,ye){pe.doc.modeOption=ye,to(pe)},!0),ge("indentUnit",2,to,!0),ge("indentWithTabs",!1),ge("smartIndent",!0),ge("tabSize",4,function(pe){ma(pe),fs(pe),Za(pe)},!0),ge("lineSeparator",null,function(pe,ye){if(pe.doc.lineSep=ye,!!ye){var Oe=[],Ve=pe.doc.first;pe.doc.iter(function(et){for(var wt=0;;){var Jt=et.text.indexOf(ye,wt);if(Jt==-1)break;wt=Jt+ye.length,Oe.push(Yt(Ve,Jt))}Ve++});for(var Xe=Oe.length-1;Xe>=0;Xe--)ec(pe.doc,ye,Oe[Xe],Yt(Oe[Xe].line,Oe[Xe].ch+ye.length))}}),ge("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pe,ye,Oe){pe.state.specialChars=new RegExp(ye.source+(ye.test(" ")?"":"| "),"g"),Oe!=rh&&pe.refresh()}),ge("specialCharPlaceholder",Ms,function(pe){return pe.refresh()},!0),ge("electricChars",!0),ge("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ge("spellcheck",!1,function(pe,ye){return pe.getInputField().spellcheck=ye},!0),ge("autocorrect",!1,function(pe,ye){return pe.getInputField().autocorrect=ye},!0),ge("autocapitalize",!1,function(pe,ye){return pe.getInputField().autocapitalize=ye},!0),ge("rtlMoveVisually",!me),ge("wholeLineUpdateBefore",!0),ge("theme","default",function(pe){Ih(pe),wr(pe)},!0),ge("keyMap","default",function(pe,ye,Oe){var Ve=nu(ye),Xe=Oe!=rh&&nu(Oe);Xe&&Xe.detach&&Xe.detach(pe,Ve),Ve.attach&&Ve.attach(pe,Xe||null)}),ge("extraKeys",null),ge("configureMouse",null),ge("lineWrapping",!1,Gg,!0),ge("gutters",[],function(pe,ye){pe.display.gutterSpecs=_r(ye,pe.options.lineNumbers),wr(pe)},!0),ge("fixedGutter",!0,function(pe,ye){pe.display.gutters.style.left=ye?kd(pe.display)+"px":"0",pe.refresh()},!0),ge("coverGutterNextToScrollbar",!1,function(pe){return Mc(pe)},!0),ge("scrollbarStyle","native",function(pe){Yc(pe),Mc(pe),pe.display.scrollbars.setScrollTop(pe.doc.scrollTop),pe.display.scrollbars.setScrollLeft(pe.doc.scrollLeft)},!0),ge("lineNumbers",!1,function(pe,ye){pe.display.gutterSpecs=_r(pe.options.gutters,ye),wr(pe)},!0),ge("firstLineNumber",1,wr,!0),ge("lineNumberFormatter",function(pe){return pe},wr,!0),ge("showCursorWhenSelecting",!1,sl,!0),ge("resetSelectionOnContextMenu",!0),ge("lineWiseCopyCut",!0),ge("pasteLinesPerSelection",!0),ge("selectionsMayTouch",!1),ge("readOnly",!1,function(pe,ye){ye=="nocursor"&&(gd(pe),pe.display.input.blur()),pe.display.input.readOnlyChanged(ye)}),ge("screenReaderLabel",null,function(pe,ye){ye=ye===""?null:ye,pe.display.input.screenReaderLabelChanged(ye)}),ge("disableInput",!1,function(pe,ye){ye||pe.display.input.reset()},!0),ge("dragDrop",!0,Kf),ge("allowDropFileTypes",null),ge("cursorBlinkRate",530),ge("cursorScrollMargin",0),ge("cursorHeight",1,sl,!0),ge("singleCursorHeightPerLine",!0,sl,!0),ge("workTime",100),ge("workDelay",100),ge("flattenSpans",!0,ma,!0),ge("addModeClass",!1,ma,!0),ge("pollInterval",100),ge("undoDepth",200,function(pe,ye){return pe.doc.history.undoDepth=ye}),ge("historyEventDelay",1250),ge("viewportMargin",10,function(pe){return pe.refresh()},!0),ge("maxHighlightLength",1e4,ma,!0),ge("moveInputWithCursor",!0,function(pe,ye){ye||pe.display.input.resetPosition()}),ge("tabindex",null,function(pe,ye){return pe.display.input.getField().tabIndex=ye||""}),ge("autofocus",null),ge("direction","ltr",function(pe,ye){return pe.doc.setDirection(ye)},!0),ge("phrases",null)}function Kf(ie,oe,ge){var pe=ge&&ge!=rh;if(!oe!=!pe){var ye=ie.display.dragFunctions,Oe=oe?gt:yn;Oe(ie.display.scroller,"dragstart",ye.start),Oe(ie.display.scroller,"dragenter",ye.enter),Oe(ie.display.scroller,"dragover",ye.over),Oe(ie.display.scroller,"dragleave",ye.leave),Oe(ie.display.scroller,"drop",ye.drop)}}function Gg(ie){ie.options.lineWrapping?(dn(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ke(ie.display.wrapper,"CodeMirror-wrap"),ea(ie)),io(ie),Za(ie),fs(ie),setTimeout(function(){return Mc(ie)},100)}function Ma(ie,oe){var ge=this;if(!(this instanceof Ma))return new Ma(ie,oe);this.options=oe=oe?mn(oe):{},mn(pg,oe,!1);var pe=oe.value;typeof pe=="string"?pe=new ul(pe,oe.mode,null,oe.lineSeparator,oe.direction):oe.mode&&(pe.modeOption=oe.mode),this.doc=pe;var ye=new Ma.inputStyles[oe.inputStyle](this),Oe=this.display=new Br(ie,pe,ye,oe);Oe.wrapper.CodeMirror=this,Ih(this),oe.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yc(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 qe,keySeq:null,specialChars:null},oe.autofocus&&!ne&&Oe.input.focus(),je&&Ze<11&&setTimeout(function(){return ge.display.input.reset(!0)},20),Mh(this),eu(),Ol(this),this.curOp.forceUpdate=!0,yo(this,pe),oe.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ge.hasFocus()&&!ge.state.focused&&Sa(ge)},20):gd(this);for(var Ve in af)af.hasOwnProperty(Ve)&&af[Ve](this,oe[Ve],rh);pr(this),oe.finishInit&&oe.finishInit(this);for(var Xe=0;Xe<Fd.length;++Xe)Fd[Xe](this);Zu(this),we&&oe.lineWrapping&&getComputedStyle(Oe.lineDiv).textRendering=="optimizelegibility"&&(Oe.lineDiv.style.textRendering="auto")}Ma.defaults=pg,Ma.optionHandlers=af;function Mh(ie){var oe=ie.display;gt(oe.scroller,"mousedown",Wn(ie,Bc)),je&&Ze<11?gt(oe.scroller,"dblclick",Wn(ie,function(et){if(!Wt(ie,et)){var wt=El(ie,et);if(!(!wt||_f(ie,et)||wl(ie.display,et))){di(et);var Jt=ie.findWordAt(wt);ba(ie.doc,Jt.anchor,Jt.head)}}})):gt(oe.scroller,"dblclick",function(et){return Wt(ie,et)||di(et)}),gt(oe.scroller,"contextmenu",function(et){return Ia(ie,et)}),gt(oe.input.getField(),"contextmenu",function(et){oe.scroller.contains(et.target)||Ia(ie,et)});var ge,pe={end:0};function ye(){oe.activeTouch&&(ge=setTimeout(function(){return oe.activeTouch=null},1e3),pe=oe.activeTouch,pe.end=+new Date)}function Oe(et){if(et.touches.length!=1)return!1;var wt=et.touches[0];return wt.radiusX<=1&&wt.radiusY<=1}function Ve(et,wt){if(wt.left==null)return!0;var Jt=wt.left-et.left,Nt=wt.top-et.top;return Jt*Jt+Nt*Nt>20*20}gt(oe.scroller,"touchstart",function(et){if(!Wt(ie,et)&&!Oe(et)&&!_f(ie,et)){oe.input.ensurePolled(),clearTimeout(ge);var wt=+new Date;oe.activeTouch={start:wt,moved:!1,prev:wt-pe.end<=300?pe:null},et.touches.length==1&&(oe.activeTouch.left=et.touches[0].pageX,oe.activeTouch.top=et.touches[0].pageY)}}),gt(oe.scroller,"touchmove",function(){oe.activeTouch&&(oe.activeTouch.moved=!0)}),gt(oe.scroller,"touchend",function(et){var wt=oe.activeTouch;if(wt&&!wl(oe,et)&&wt.left!=null&&!wt.moved&&new Date-wt.start<300){var Jt=ie.coordsChar(oe.activeTouch,"page"),Nt;!wt.prev||Ve(wt,wt.prev)?Nt=new mr(Jt,Jt):!wt.prev.prev||Ve(wt,wt.prev.prev)?Nt=ie.findWordAt(Jt):Nt=new mr(Yt(Jt.line,0),Gn(ie.doc,Yt(Jt.line+1,0))),ie.setSelection(Nt.anchor,Nt.head),ie.focus(),di(et)}ye()}),gt(oe.scroller,"touchcancel",ye),gt(oe.scroller,"scroll",function(){oe.scroller.clientHeight&&(Nc(ie,oe.scroller.scrollTop),Ku(ie,oe.scroller.scrollLeft,!0),bt(ie,"scroll",ie))}),gt(oe.scroller,"mousewheel",function(et){return fo(ie,et)}),gt(oe.scroller,"DOMMouseScroll",function(et){return fo(ie,et)}),gt(oe.wrapper,"scroll",function(){return oe.wrapper.scrollTop=oe.wrapper.scrollLeft=0}),oe.dragFunctions={enter:function(et){Wt(ie,et)||Li(et)},over:function(et){Wt(ie,et)||(tf(ie,et),Li(et))},start:function(et){return Qd(ie,et)},drop:Wn(ie,Ph),leave:function(et){Wt(ie,et)||Df(ie)}};var Xe=oe.input.getField();gt(Xe,"keyup",function(et){return hg.call(ie,et)}),gt(Xe,"keydown",Wn(ie,dg)),gt(Xe,"keypress",Wn(ie,Fc)),gt(Xe,"focus",function(et){return Sa(ie,et)}),gt(Xe,"blur",function(et){return gd(ie,et)})}var Fd=[];Ma.defineInitHook=function(ie){return Fd.push(ie)};function vl(ie,oe,ge,pe){var ye=ie.doc,Oe;ge==null&&(ge="add"),ge=="smart"&&(ye.mode.indent?Oe=Vi(ie,oe).state:ge="prev");var Ve=ie.options.tabSize,Xe=Ln(ye,oe),et=Ct(Xe.text,null,Ve);Xe.stateAfter&&(Xe.stateAfter=null);var wt=Xe.text.match(/^\s*/)[0],Jt;if(!pe&&!/\S/.test(Xe.text))Jt=0,ge="not";else if(ge=="smart"&&(Jt=ye.mode.indent(Oe,Xe.text.slice(wt.length),Xe.text),Jt==Zn||Jt>150)){if(!pe)return;ge="prev"}ge=="prev"?oe>ye.first?Jt=Ct(Ln(ye,oe-1).text,null,Ve):Jt=0:ge=="add"?Jt=et+ie.options.indentUnit:ge=="subtract"?Jt=et-ie.options.indentUnit:typeof ge=="number"&&(Jt=et+ge),Jt=Math.max(0,Jt);var Nt="",Bn=0;if(ie.options.indentWithTabs)for(var Sn=Math.floor(Jt/Ve);Sn;--Sn)Bn+=Ve,Nt+=" ";if(Bn<Jt&&(Nt+=li(Jt-Bn)),Nt!=wt)return ec(ye,Nt,Yt(oe,0),Yt(oe,wt.length),"+input"),Xe.stateAfter=null,!0;for(var ti=0;ti<ye.sel.ranges.length;ti++){var gi=ye.sel.ranges[ti];if(gi.head.line==oe&&gi.head.ch<wt.length){var bi=Yt(oe,wt.length);za(ye,ti,new mr(bi,bi));break}}}var iu=null;function oh(ie){iu=ie}function sf(ie,oe,ge,pe,ye){var Oe=ie.doc;ie.display.shift=!1,pe||(pe=Oe.sel);var Ve=+new Date-200,Xe=ye=="paste"||ie.state.pasteIncoming>Ve,et=_i(oe),wt=null;if(Xe&&pe.ranges.length>1)if(iu&&iu.text.join(`
`)==oe){if(pe.ranges.length%iu.text.length==0){wt=[];for(var Jt=0;Jt<iu.text.length;Jt++)wt.push(Oe.splitLines(iu.text[Jt]))}}else et.length==pe.ranges.length&&ie.options.pasteLinesPerSelection&&(wt=kn(et,function(Gi){return[Gi]}));for(var Nt=ie.curOp.updateInput,Bn=pe.ranges.length-1;Bn>=0;Bn--){var Sn=pe.ranges[Bn],ti=Sn.from(),gi=Sn.to();Sn.empty()&&(ge&&ge>0?ti=Yt(ti.line,ti.ch-ge):ie.state.overwrite&&!Xe?gi=Yt(gi.line,Math.min(Ln(Oe,gi.line).text.length,gi.ch+Ot(et).length)):Xe&&iu&&iu.lineWise&&iu.text.join(`
`)==et.join(`
`)&&(ti=gi=Yt(ti.line,0)));var bi={from:ti,to:gi,text:wt?wt[Bn%wt.length]:et,origin:ye||(Xe?"paste":ie.state.cutIncoming>Ve?"cut":"+input")};ys(ie.doc,bi),ji(ie,"inputRead",ie,bi)}oe&&!Xe&&lf(ie,oe),Zc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Nt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Vf(ie,oe){var ge=ie.clipboardData&&ie.clipboardData.getData("Text");if(ge)return ie.preventDefault(),!oe.isReadOnly()&&!oe.options.disableInput&&rn(oe,function(){return sf(oe,ge,0,null,"paste")}),!0}function lf(ie,oe){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ge=ie.doc.sel,pe=ge.ranges.length-1;pe>=0;pe--){var ye=ge.ranges[pe];if(!(ye.head.ch>100||pe&&ge.ranges[pe-1].head.line==ye.head.line)){var Oe=ie.getModeAt(ye.head),Ve=!1;if(Oe.electricChars){for(var Xe=0;Xe<Oe.electricChars.length;Xe++)if(oe.indexOf(Oe.electricChars.charAt(Xe))>-1){Ve=vl(ie,ye.head.line,"smart");break}}else Oe.electricInput&&Oe.electricInput.test(Ln(ie.doc,ye.head.line).text.slice(0,ye.head.ch))&&(Ve=vl(ie,ye.head.line,"smart"));Ve&&ji(ie,"electricInput",ie,ye.head.line)}}}function uf(ie){for(var oe=[],ge=[],pe=0;pe<ie.doc.sel.ranges.length;pe++){var ye=ie.doc.sel.ranges[pe].head.line,Oe={anchor:Yt(ye,0),head:Yt(ye+1,0)};ge.push(Oe),oe.push(ie.getRange(Oe.anchor,Oe.head))}return{text:oe,ranges:ge}}function mg(ie,oe,ge,pe){ie.setAttribute("autocorrect",ge?"":"off"),ie.setAttribute("autocapitalize",pe?"":"off"),ie.setAttribute("spellcheck",!!oe)}function vg(){var ie=lt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),oe=lt("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return we?ie.style.width="1000px":ie.setAttribute("wrap","off"),ze&&(ie.style.border="1px solid black"),mg(ie),oe}function he(ie){var oe=ie.optionHandlers,ge=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pe,ye){var Oe=this.options,Ve=Oe[pe];Oe[pe]==ye&&pe!="mode"||(Oe[pe]=ye,oe.hasOwnProperty(pe)&&Wn(this,oe[pe])(this,ye,Ve),bt(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"](nu(pe))},removeKeyMap:function(pe){for(var ye=this.state.keyMaps,Oe=0;Oe<ye.length;++Oe)if(ye[Oe]==pe||ye[Oe].name==pe)return ye.splice(Oe,1),!0},addOverlay:Kn(function(pe,ye){var Oe=pe.token?pe:ie.getMode(this.options,pe);if(Oe.startState)throw new Error("Overlays may not be stateful.");$n(this.state.overlays,{mode:Oe,modeSpec:pe,opaque:ye&&ye.opaque,priority:ye&&ye.priority||0},function(Ve){return Ve.priority}),this.state.modeGen++,Za(this)}),removeOverlay:Kn(function(pe){for(var ye=this.state.overlays,Oe=0;Oe<ye.length;++Oe){var Ve=ye[Oe].modeSpec;if(Ve==pe||typeof pe=="string"&&Ve.name==pe){ye.splice(Oe,1),this.state.modeGen++,Za(this);return}}}),indentLine:Kn(function(pe,ye,Oe){typeof ye!="string"&&typeof ye!="number"&&(ye==null?ye=this.options.smartIndent?"smart":"prev":ye=ye?"add":"subtract"),vi(this.doc,pe)&&vl(this,pe,ye,Oe)}),indentSelection:Kn(function(pe){for(var ye=this.doc.sel.ranges,Oe=-1,Ve=0;Ve<ye.length;Ve++){var Xe=ye[Ve];if(Xe.empty())Xe.head.line>Oe&&(vl(this,Xe.head.line,pe,!0),Oe=Xe.head.line,Ve==this.doc.sel.primIndex&&Zc(this));else{var et=Xe.from(),wt=Xe.to(),Jt=Math.max(Oe,et.line);Oe=Math.min(this.lastLine(),wt.line-(wt.ch?0:1))+1;for(var Nt=Jt;Nt<Oe;++Nt)vl(this,Nt,pe);var Bn=this.doc.sel.ranges;et.ch==0&&ye.length==Bn.length&&Bn[Ve].from().ch>0&&za(this.doc,Ve,new mr(et,Bn[Ve].to()),zt)}}}),getTokenAt:function(pe,ye){return er(this,pe,ye)},getLineTokens:function(pe,ye){return er(this,Yt(pe),ye,!0)},getTokenTypeAt:function(pe){pe=Gn(this.doc,pe);var ye=Er(this,Ln(this.doc,pe.line)),Oe=0,Ve=(ye.length-1)/2,Xe=pe.ch,et;if(Xe==0)et=ye[2];else for(;;){var wt=Oe+Ve>>1;if((wt?ye[wt*2-1]:0)>=Xe)Ve=wt;else if(ye[wt*2+1]<Xe)Oe=wt+1;else{et=ye[wt*2+2];break}}var Jt=et?et.indexOf("overlay "):-1;return Jt<0?et:Jt==0?null:et.slice(0,Jt-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 Oe=[];if(!ge.hasOwnProperty(ye))return Oe;var Ve=ge[ye],Xe=this.getModeAt(pe);if(typeof Xe[ye]=="string")Ve[Xe[ye]]&&Oe.push(Ve[Xe[ye]]);else if(Xe[ye])for(var et=0;et<Xe[ye].length;et++){var wt=Ve[Xe[ye][et]];wt&&Oe.push(wt)}else Xe.helperType&&Ve[Xe.helperType]?Oe.push(Ve[Xe.helperType]):Ve[Xe.name]&&Oe.push(Ve[Xe.name]);for(var Jt=0;Jt<Ve._global.length;Jt++){var Nt=Ve._global[Jt];Nt.pred(Xe,this)&&Bt(Oe,Nt.val)==-1&&Oe.push(Nt.val)}return Oe},getStateAfter:function(pe,ye){var Oe=this.doc;return pe=In(Oe,pe==null?Oe.first+Oe.size-1:pe),Vi(this,pe+1,ye).state},cursorCoords:function(pe,ye){var Oe,Ve=this.doc.sel.primary();return pe==null?Oe=Ve.head:typeof pe=="object"?Oe=Gn(this.doc,pe):Oe=pe?Ve.from():Ve.to(),es(this,Oe,ye||"page")},charCoords:function(pe,ye){return vu(this,Gn(this.doc,pe),ye||"page")},coordsChar:function(pe,ye){return pe=gc(this,pe,ye||"page"),hd(this,pe.left,pe.top)},lineAtHeight:function(pe,ye){return pe=gc(this,{top:pe,left:0},ye||"page").top,Yn(this.doc,pe+this.display.viewOffset)},heightAtLine:function(pe,ye,Oe){var Ve=!1,Xe;if(typeof pe=="number"){var et=this.doc.first+this.doc.size-1;pe<this.doc.first?pe=this.doc.first:pe>et&&(pe=et,Ve=!0),Xe=Ln(this.doc,pe)}else Xe=pe;return gs(this,Xe,{top:0,left:0},ye||"page",Oe||Ve).top+(Ve?this.doc.height-_o(Xe):0)},defaultTextHeight:function(){return mc(this.display)},defaultCharWidth:function(){return Lc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pe,ye,Oe,Ve,Xe){var et=this.display;pe=es(this,Gn(this.doc,pe));var wt=pe.bottom,Jt=pe.left;if(ye.style.position="absolute",ye.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ye),et.sizer.appendChild(ye),Ve=="over")wt=pe.top;else if(Ve=="above"||Ve=="near"){var Nt=Math.max(et.wrapper.clientHeight,this.doc.height),Bn=Math.max(et.sizer.clientWidth,et.lineSpace.clientWidth);(Ve=="above"||pe.bottom+ye.offsetHeight>Nt)&&pe.top>ye.offsetHeight?wt=pe.top-ye.offsetHeight:pe.bottom+ye.offsetHeight<=Nt&&(wt=pe.bottom),Jt+ye.offsetWidth>Bn&&(Jt=Bn-ye.offsetWidth)}ye.style.top=wt+"px",ye.style.left=ye.style.right="",Xe=="right"?(Jt=et.sizer.clientWidth-ye.offsetWidth,ye.style.right="0px"):(Xe=="left"?Jt=0:Xe=="middle"&&(Jt=(et.sizer.clientWidth-ye.offsetWidth)/2),ye.style.left=Jt+"px"),Oe&&Ad(this,{left:Jt,top:wt,right:Jt+ye.offsetWidth,bottom:wt+ye.offsetHeight})},triggerOnKeyDown:Kn(dg),triggerOnKeyPress:Kn(Fc),triggerOnKeyUp:hg,triggerOnMouseDown:Kn(Bc),execCommand:function(pe){if(fl.hasOwnProperty(pe))return fl[pe].call(null,this)},triggerElectric:Kn(function(pe){lf(this,pe)}),findPosH:function(pe,ye,Oe,Ve){var Xe=1;ye<0&&(Xe=-1,ye=-ye);for(var et=Gn(this.doc,pe),wt=0;wt<ye&&(et=Ae(this.doc,et,Xe,Oe,Ve),!et.hitSide);++wt);return et},moveH:Kn(function(pe,ye){var Oe=this;this.extendSelectionsBy(function(Ve){return Oe.display.shift||Oe.doc.extend||Ve.empty()?Ae(Oe.doc,Ve.head,pe,ye,Oe.options.rtlMoveVisually):pe<0?Ve.from():Ve.to()},Mn)}),deleteH:Kn(function(pe,ye){var Oe=this.doc.sel,Ve=this.doc;Oe.somethingSelected()?Ve.replaceSelection("",null,"+delete"):Tl(this,function(Xe){var et=Ae(Ve,Xe.head,pe,ye,!1);return pe<0?{from:et,to:Xe.head}:{from:Xe.head,to:et}})}),findPosV:function(pe,ye,Oe,Ve){var Xe=1,et=Ve;ye<0&&(Xe=-1,ye=-ye);for(var wt=Gn(this.doc,pe),Jt=0;Jt<ye;++Jt){var Nt=es(this,wt,"div");if(et==null?et=Nt.left:Nt.left=et,wt=Ie(this,Nt,Xe,Oe),wt.hitSide)break}return wt},moveV:Kn(function(pe,ye){var Oe=this,Ve=this.doc,Xe=[],et=!this.display.shift&&!Ve.extend&&Ve.sel.somethingSelected();if(Ve.extendSelectionsBy(function(Jt){if(et)return pe<0?Jt.from():Jt.to();var Nt=es(Oe,Jt.head,"div");Jt.goalColumn!=null&&(Nt.left=Jt.goalColumn),Xe.push(Nt.left);var Bn=Ie(Oe,Nt,pe,ye);return ye=="page"&&Jt==Ve.sel.primary()&&Yd(Oe,vu(Oe,Bn,"div").top-Nt.top),Bn},Mn),Xe.length)for(var wt=0;wt<Ve.sel.ranges.length;wt++)Ve.sel.ranges[wt].goalColumn=Xe[wt]}),findWordAt:function(pe){var ye=this.doc,Oe=Ln(ye,pe.line).text,Ve=pe.ch,Xe=pe.ch;if(Oe){var et=this.getHelper(pe,"wordChars");(pe.sticky=="before"||Xe==Oe.length)&&Ve?--Ve:++Xe;for(var wt=Oe.charAt(Ve),Jt=It(wt,et)?function(Nt){return It(Nt,et)}:/\s/.test(wt)?function(Nt){return/\s/.test(Nt)}:function(Nt){return!/\s/.test(Nt)&&!It(Nt)};Ve>0&&Jt(Oe.charAt(Ve-1));)--Ve;for(;Xe<Oe.length&&Jt(Oe.charAt(Xe));)++Xe}return new mr(Yt(pe.line,Ve),Yt(pe.line,Xe))},toggleOverwrite:function(pe){pe!=null&&pe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?dn(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==kt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Kn(function(pe,ye){$c(this,pe,ye)}),getScrollInfo:function(){var pe=this.display.scroller;return{left:pe.scrollLeft,top:pe.scrollTop,height:pe.scrollHeight-ml(this)-this.display.barHeight,width:pe.scrollWidth-ml(this)-this.display.barWidth,clientHeight:ud(this),clientWidth:Il(this)}},scrollIntoView:Kn(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:Yt(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?la(this,pe):Ld(this,pe.from,pe.to,pe.margin)}),setSize:Kn(function(pe,ye){var Oe=this,Ve=function(et){return typeof et=="number"||/^\d+$/.test(String(et))?et+"px":et};pe!=null&&(this.display.wrapper.style.width=Ve(pe)),ye!=null&&(this.display.wrapper.style.height=Ve(ye)),this.options.lineWrapping&&ks(this);var Xe=this.display.viewFrom;this.doc.iter(Xe,this.display.viewTo,function(et){if(et.widgets){for(var wt=0;wt<et.widgets.length;wt++)if(et.widgets[wt].noHScroll){Go(Oe,Xe,"widget");break}}++Xe}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(pe){return rn(this,pe)},startOperation:function(){return Ol(this)},endOperation:function(){return Zu(this)},refresh:Kn(function(){var pe=this.display.cachedTextHeight;Za(this),this.curOp.forceUpdate=!0,fs(this),$c(this,this.doc.scrollLeft,this.doc.scrollTop),br(this.display),(pe==null||Math.abs(pe-mc(this.display))>.5||this.options.lineWrapping)&&io(this),bt(this,"refresh",this)}),swapDoc:Kn(function(pe){var ye=this.doc;return ye.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,pe),fs(this),this.display.input.reset(),$c(this,pe.scrollLeft,pe.scrollTop),this.curOp.forceScroll=!0,ji(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}},ni(ie),ie.registerHelper=function(pe,ye,Oe){ge.hasOwnProperty(pe)||(ge[pe]=ie[pe]={_global:[]}),ge[pe][ye]=Oe},ie.registerGlobalHelper=function(pe,ye,Oe,Ve){ie.registerHelper(pe,ye,Ve),ge[pe]._global.push({pred:Oe,val:Ve})}}function Ae(ie,oe,ge,pe,ye){var Oe=oe,Ve=ge,Xe=Ln(ie,oe.line),et=ye&&ie.direction=="rtl"?-ge:ge;function wt(){var lr=oe.line+et;return lr<ie.first||lr>=ie.first+ie.size?!1:(oe=new Yt(lr,oe.ch,oe.sticky),Xe=Ln(ie,lr))}function Jt(lr){var rr;if(pe=="codepoint"){var Cr=Xe.text.charCodeAt(oe.ch+(pe>0?0:-1));isNaN(Cr)?rr=null:rr=new Yt(oe.line,Math.max(0,Math.min(Xe.text.length,oe.ch+ge*(Cr>=55296&&Cr<56320?2:1))),-ge)}else ye?rr=ns(ie.cm,Xe,oe,ge):rr=Ys(Xe,oe,ge);if(rr==null)if(!lr&&wt())oe=Pa(ye,ie.cm,Xe,oe.line,et);else return!1;else oe=rr;return!0}if(pe=="char"||pe=="codepoint")Jt();else if(pe=="column")Jt(!0);else if(pe=="word"||pe=="group")for(var Nt=null,Bn=pe=="group",Sn=ie.cm&&ie.cm.getHelper(oe,"wordChars"),ti=!0;!(ge<0&&!Jt(!ti));ti=!1){var gi=Xe.text.charAt(oe.ch)||`
`,bi=It(gi,Sn)?"w":Bn&&gi==`
`?"n":!Bn||/\s/.test(gi)?null:"p";if(Bn&&!ti&&!bi&&(bi="s"),Nt&&Nt!=bi){ge<0&&(ge=1,Jt(),oe.sticky="after");break}if(bi&&(Nt=bi),ge>0&&!Jt(!ti))break}var Gi=Ru(ie,oe,Oe,Ve,!0);return $t(Oe,Gi)&&(Gi.hitSide=!0),Gi}function Ie(ie,oe,ge,pe){var ye=ie.doc,Oe=oe.left,Ve;if(pe=="page"){var Xe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),et=Math.max(Xe-.5*mc(ie.display),3);Ve=(ge>0?oe.bottom:oe.top)+ge*et}else pe=="line"&&(Ve=ge>0?oe.bottom+3:oe.top-3);for(var wt;wt=hd(ie,Oe,Ve),!!wt.outside;){if(ge<0?Ve<=0:Ve>=ye.height){wt.hitSide=!0;break}Ve+=ge*5}return wt}var He=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new qe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};He.prototype.init=function(ie){var oe=this,ge=this,pe=ge.cm,ye=ge.div=ie.lineDiv;mg(ye,pe.options.spellcheck,pe.options.autocorrect,pe.options.autocapitalize);function Oe(Xe){for(var et=Xe.target;et;et=et.parentNode){if(et==ye)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(et.className))break}return!1}gt(ye,"paste",function(Xe){!Oe(Xe)||Wt(pe,Xe)||Vf(Xe,pe)||Ze<=11&&setTimeout(Wn(pe,function(){return oe.updateFromDOM()}),20)}),gt(ye,"compositionstart",function(Xe){oe.composing={data:Xe.data,done:!1}}),gt(ye,"compositionupdate",function(Xe){oe.composing||(oe.composing={data:Xe.data,done:!1})}),gt(ye,"compositionend",function(Xe){oe.composing&&(Xe.data!=oe.composing.data&&oe.readFromDOMSoon(),oe.composing.done=!0)}),gt(ye,"touchstart",function(){return ge.forceCompositionEnd()}),gt(ye,"input",function(){oe.composing||oe.readFromDOMSoon()});function Ve(Xe){if(!(!Oe(Xe)||Wt(pe,Xe))){if(pe.somethingSelected())oh({lineWise:!1,text:pe.getSelections()}),Xe.type=="cut"&&pe.replaceSelection("",null,"cut");else if(pe.options.lineWiseCopyCut){var et=uf(pe);oh({lineWise:!0,text:et.text}),Xe.type=="cut"&&pe.operation(function(){pe.setSelections(et.ranges,0,zt),pe.replaceSelection("",null,"cut")})}else return;if(Xe.clipboardData){Xe.clipboardData.clearData();var wt=iu.text.join(`
`);if(Xe.clipboardData.setData("Text",wt),Xe.clipboardData.getData("Text")==wt){Xe.preventDefault();return}}var Jt=vg(),Nt=Jt.firstChild;pe.display.lineSpace.insertBefore(Jt,pe.display.lineSpace.firstChild),Nt.value=iu.text.join(`
`);var Bn=document.activeElement;qt(Nt),setTimeout(function(){pe.display.lineSpace.removeChild(Jt),Bn.focus(),Bn==ye&&ge.showPrimarySelection()},50)}}gt(ye,"copy",Ve),gt(ye,"cut",Ve)},He.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},He.prototype.prepareSelection=function(){var ie=fd(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},He.prototype.showSelection=function(ie,oe){!ie||!this.cm.display.view.length||((ie.focus||oe)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},He.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},He.prototype.showPrimarySelection=function(){var ie=this.getSelection(),oe=this.cm,ge=oe.doc.sel.primary(),pe=ge.from(),ye=ge.to();if(oe.display.viewTo==oe.display.viewFrom||pe.line>=oe.display.viewTo||ye.line<oe.display.viewFrom){ie.removeAllRanges();return}var Oe=cn(oe,ie.anchorNode,ie.anchorOffset),Ve=cn(oe,ie.focusNode,ie.focusOffset);if(!(Oe&&!Oe.bad&&Ve&&!Ve.bad&&Fn(gn(Oe,Ve),pe)==0&&Fn(An(Oe,Ve),ye)==0)){var Xe=oe.display.view,et=pe.line>=oe.display.viewFrom&&rt(oe,pe)||{node:Xe[0].measure.map[2],offset:0},wt=ye.line<oe.display.viewTo&&rt(oe,ye);if(!wt){var Jt=Xe[Xe.length-1].measure,Nt=Jt.maps?Jt.maps[Jt.maps.length-1]:Jt.map;wt={node:Nt[Nt.length-1],offset:Nt[Nt.length-2]-Nt[Nt.length-3]}}if(!et||!wt){ie.removeAllRanges();return}var Bn=ie.rangeCount&&ie.getRangeAt(0),Sn;try{Sn=nt(et.node,et.offset,wt.offset,wt.node)}catch(ti){}Sn&&(!de&&oe.state.focused?(ie.collapse(et.node,et.offset),Sn.collapsed||(ie.removeAllRanges(),ie.addRange(Sn))):(ie.removeAllRanges(),ie.addRange(Sn)),Bn&&ie.anchorNode==null?ie.addRange(Bn):de&&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){at(this.cm.display.cursorDiv,ie.cursors),at(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 oe=ie.getRangeAt(0).commonAncestorContainer;return Ut(this.div,oe)},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():rn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function oe(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,oe))}this.polling.set(this.cm.options.pollInterval,oe)},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(),oe=this.cm;if(ee&&Je&&this.cm.display.gutterSpecs.length&&ct(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ge=cn(oe,ie.anchorNode,ie.anchorOffset),pe=cn(oe,ie.focusNode,ie.focusOffset);ge&&pe&&rn(oe,function(){Ha(oe.doc,Fo(ge,pe),zt),(ge.bad||pe.bad)&&(oe.curOp.selectionChanged=!0)})}}},He.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,oe=ie.display,ge=ie.doc.sel.primary(),pe=ge.from(),ye=ge.to();if(pe.ch==0&&pe.line>ie.firstLine()&&(pe=Yt(pe.line-1,Ln(ie.doc,pe.line-1).length)),ye.ch==Ln(ie.doc,ye.line).text.length&&ye.line<ie.lastLine()&&(ye=Yt(ye.line+1,0)),pe.line<oe.viewFrom||ye.line>oe.viewTo-1)return!1;var Oe,Ve,Xe;pe.line==oe.viewFrom||(Oe=yl(ie,pe.line))==0?(Ve=Rt(oe.view[0].line),Xe=oe.view[0].node):(Ve=Rt(oe.view[Oe].line),Xe=oe.view[Oe-1].node.nextSibling);var et=yl(ie,ye.line),wt,Jt;if(et==oe.view.length-1?(wt=oe.viewTo-1,Jt=oe.lineDiv.lastChild):(wt=Rt(oe.view[et+1].line)-1,Jt=oe.view[et+1].node.previousSibling),!Xe)return!1;for(var Nt=ie.doc.splitLines(Dt(ie,Xe,Jt,Ve,wt)),Bn=Jn(ie.doc,Yt(Ve,0),Yt(wt,Ln(ie.doc,wt).text.length));Nt.length>1&&Bn.length>1;)if(Ot(Nt)==Ot(Bn))Nt.pop(),Bn.pop(),wt--;else if(Nt[0]==Bn[0])Nt.shift(),Bn.shift(),Ve++;else break;for(var Sn=0,ti=0,gi=Nt[0],bi=Bn[0],Gi=Math.min(gi.length,bi.length);Sn<Gi&&gi.charCodeAt(Sn)==bi.charCodeAt(Sn);)++Sn;for(var lr=Ot(Nt),rr=Ot(Bn),Cr=Math.min(lr.length-(Nt.length==1?Sn:0),rr.length-(Bn.length==1?Sn:0));ti<Cr&&lr.charCodeAt(lr.length-ti-1)==rr.charCodeAt(rr.length-ti-1);)++ti;if(Nt.length==1&&Bn.length==1&&Ve==pe.line)for(;Sn&&Sn>pe.ch&&lr.charCodeAt(lr.length-ti-1)==rr.charCodeAt(rr.length-ti-1);)Sn--,ti++;Nt[Nt.length-1]=lr.slice(0,lr.length-ti).replace(/^\u200b+/,""),Nt[0]=Nt[0].slice(Sn).replace(/\u200b+$/,"");var wn=Yt(Ve,Sn),or=Yt(wt,Bn.length?Ot(Bn).length-ti:0);if(Nt.length>1||Nt[0]||Fn(wn,or))return ec(ie.doc,Nt,wn,or,"+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())&&rn(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()||Wn(this.cm,sf)(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 rt(ie,oe){var ge=kc(ie,oe.line);if(!ge||ge.hidden)return null;var pe=Ln(ie.doc,oe.line),ye=Tc(ge,pe,oe.line),Oe=Qe(pe,ie.doc.direction),Ve="left";if(Oe){var Xe=be(Oe,oe.ch);Ve=Xe%2?"right":"left"}var et=Ac(ye.map,oe.ch,Ve);return et.offset=et.collapse=="right"?et.end:et.start,et}function ct(ie){for(var oe=ie;oe;oe=oe.parentNode)if(/CodeMirror-gutter-wrapper/.test(oe.className))return!0;return!1}function St(ie,oe){return oe&&(ie.bad=!0),ie}function Dt(ie,oe,ge,pe,ye){var Oe="",Ve=!1,Xe=ie.doc.lineSeparator(),et=!1;function wt(Sn){return function(ti){return ti.id==Sn}}function Jt(){Ve&&(Oe+=Xe,et&&(Oe+=Xe),Ve=et=!1)}function Nt(Sn){Sn&&(Jt(),Oe+=Sn)}function Bn(Sn){if(Sn.nodeType==1){var ti=Sn.getAttribute("cm-text");if(ti){Nt(ti);return}var gi=Sn.getAttribute("cm-marker"),bi;if(gi){var Gi=ie.findMarks(Yt(pe,0),Yt(ye+1,0),wt(+gi));Gi.length&&(bi=Gi[0].find(0))&&Nt(Jn(ie.doc,bi.from,bi.to).join(Xe));return}if(Sn.getAttribute("contenteditable")=="false")return;var lr=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;lr&&Jt();for(var rr=0;rr<Sn.childNodes.length;rr++)Bn(Sn.childNodes[rr]);/^(pre|p)$/i.test(Sn.nodeName)&&(et=!0),lr&&(Ve=!0)}else Sn.nodeType==3&&Nt(Sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(oe),oe!=ge;)oe=oe.nextSibling,et=!1;return Oe}function cn(ie,oe,ge){var pe;if(oe==ie.display.lineDiv){if(pe=ie.display.lineDiv.childNodes[ge],!pe)return St(ie.clipPos(Yt(ie.display.viewTo-1)),!0);oe=null,ge=0}else for(pe=oe;;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 Oe=ie.display.view[ye];if(Oe.node==pe)return On(Oe,oe,ge)}}function On(ie,oe,ge){var pe=ie.text.firstChild,ye=!1;if(!oe||!Ut(pe,oe))return St(Yt(Rt(ie.line),0),!0);if(oe==pe&&(ye=!0,oe=pe.childNodes[ge],ge=0,!oe)){var Oe=ie.rest?Ot(ie.rest):ie.line;return St(Yt(Rt(Oe),Oe.text.length),ye)}var Ve=oe.nodeType==3?oe:null,Xe=oe;for(!Ve&&oe.childNodes.length==1&&oe.firstChild.nodeType==3&&(Ve=oe.firstChild,ge&&(ge=Ve.nodeValue.length));Xe.parentNode!=pe;)Xe=Xe.parentNode;var et=ie.measure,wt=et.maps;function Jt(bi,Gi,lr){for(var rr=-1;rr<(wt?wt.length:0);rr++)for(var Cr=rr<0?et.map:wt[rr],wn=0;wn<Cr.length;wn+=3){var or=Cr[wn+2];if(or==bi||or==Gi){var Eo=Rt(rr<0?ie.line:ie.rest[rr]),_n=Cr[wn]+lr;return(lr<0||or!=bi)&&(_n=Cr[wn+(lr?1:0)]),Yt(Eo,_n)}}}var Nt=Jt(Ve,Xe,ge);if(Nt)return St(Nt,ye);for(var Bn=Xe.nextSibling,Sn=Ve?Ve.nodeValue.length-ge:0;Bn;Bn=Bn.nextSibling){if(Nt=Jt(Bn,Bn.firstChild,0),Nt)return St(Yt(Nt.line,Nt.ch-Sn),ye);Sn+=Bn.textContent.length}for(var ti=Xe.previousSibling,gi=ge;ti;ti=ti.previousSibling){if(Nt=Jt(ti,ti.firstChild,-1),Nt)return St(Yt(Nt.line,Nt.ch+gi),ye);gi+=ti.textContent.length}}var an=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new qe,this.hasSelection=!1,this.composing=null};an.prototype.init=function(ie){var oe=this,ge=this,pe=this.cm;this.createField(ie);var ye=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),ze&&(ye.style.width="0px"),gt(ye,"input",function(){je&&Ze>=9&&oe.hasSelection&&(oe.hasSelection=null),ge.poll()}),gt(ye,"paste",function(Ve){Wt(pe,Ve)||Vf(Ve,pe)||(pe.state.pasteIncoming=+new Date,ge.fastPoll())});function Oe(Ve){if(!Wt(pe,Ve)){if(pe.somethingSelected())oh({lineWise:!1,text:pe.getSelections()});else if(pe.options.lineWiseCopyCut){var Xe=uf(pe);oh({lineWise:!0,text:Xe.text}),Ve.type=="cut"?pe.setSelections(Xe.ranges,null,zt):(ge.prevInput="",ye.value=Xe.text.join(`
`),qt(ye))}else return;Ve.type=="cut"&&(pe.state.cutIncoming=+new Date)}}gt(ye,"cut",Oe),gt(ye,"copy",Oe),gt(ie.scroller,"paste",function(Ve){if(!(wl(ie,Ve)||Wt(pe,Ve))){if(!ye.dispatchEvent){pe.state.pasteIncoming=+new Date,ge.focus();return}var Xe=new Event("paste");Xe.clipboardData=Ve.clipboardData,ye.dispatchEvent(Xe)}}),gt(ie.lineSpace,"selectstart",function(Ve){wl(ie,Ve)||di(Ve)}),gt(ye,"compositionstart",function(){var Ve=pe.getCursor("from");ge.composing&&ge.composing.range.clear(),ge.composing={start:Ve,range:pe.markText(Ve,pe.getCursor("to"),{className:"CodeMirror-composing"})}}),gt(ye,"compositionend",function(){ge.composing&&(ge.poll(),ge.composing.range.clear(),ge.composing=null)})},an.prototype.createField=function(ie){this.wrapper=vg(),this.textarea=this.wrapper.firstChild},an.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},an.prototype.prepareSelection=function(){var ie=this.cm,oe=ie.display,ge=ie.doc,pe=fd(ie);if(ie.options.moveInputWithCursor){var ye=es(ie,ge.sel.primary().head,"div"),Oe=oe.wrapper.getBoundingClientRect(),Ve=oe.lineDiv.getBoundingClientRect();pe.teTop=Math.max(0,Math.min(oe.wrapper.clientHeight-10,ye.top+Ve.top-Oe.top)),pe.teLeft=Math.max(0,Math.min(oe.wrapper.clientWidth-10,ye.left+Ve.left-Oe.left))}return pe},an.prototype.showSelection=function(ie){var oe=this.cm,ge=oe.display;at(ge.cursorDiv,ie.cursors),at(ge.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},an.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var oe=this.cm;if(oe.somethingSelected()){this.prevInput="";var ge=oe.getSelection();this.textarea.value=ge,oe.state.focused&&qt(this.textarea),je&&Ze>=9&&(this.hasSelection=ge)}else ie||(this.prevInput=this.textarea.value="",je&&Ze>=9&&(this.hasSelection=null))}},an.prototype.getField=function(){return this.textarea},an.prototype.supportsTouch=function(){return!1},an.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||kt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},an.prototype.blur=function(){this.textarea.blur()},an.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},an.prototype.receivedFocus=function(){this.slowPoll()},an.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},an.prototype.fastPoll=function(){var ie=!1,oe=this;oe.pollingFast=!0;function ge(){var pe=oe.poll();!pe&&!ie?(ie=!0,oe.polling.set(60,ge)):(oe.pollingFast=!1,oe.slowPoll())}oe.polling.set(20,ge)},an.prototype.poll=function(){var ie=this,oe=this.cm,ge=this.textarea,pe=this.prevInput;if(this.contextMenuPending||!oe.state.focused||De(ge)&&!pe&&!this.composing||oe.isReadOnly()||oe.options.disableInput||oe.state.keySeq)return!1;var ye=ge.value;if(ye==pe&&!oe.somethingSelected())return!1;if(je&&Ze>=9&&this.hasSelection===ye||fe&&/[\uf700-\uf7ff]/.test(ye))return oe.display.input.reset(),!1;if(oe.doc.sel==oe.display.selForContextMenu){var Oe=ye.charCodeAt(0);if(Oe==8203&&!pe&&(pe="\u200B"),Oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ve=0,Xe=Math.min(pe.length,ye.length);Ve<Xe&&pe.charCodeAt(Ve)==ye.charCodeAt(Ve);)++Ve;return rn(oe,function(){sf(oe,ye.slice(Ve),pe.length-Ve,null,ie.composing?"*compose":null),ye.length>1e3||ye.indexOf(`
`)>-1?ge.value=ie.prevInput="":ie.prevInput=ye,ie.composing&&(ie.composing.range.clear(),ie.composing.range=oe.markText(ie.composing.start,oe.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},an.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},an.prototype.onKeyPress=function(){je&&Ze>=9&&(this.hasSelection=null),this.fastPoll()},an.prototype.onContextMenu=function(ie){var oe=this,ge=oe.cm,pe=ge.display,ye=oe.textarea;oe.contextMenuPending&&oe.contextMenuPending();var Oe=El(ge,ie),Ve=pe.scroller.scrollTop;if(!Oe||Ye)return;var Xe=ge.options.resetSelectionOnContextMenu;Xe&&ge.doc.sel.contains(Oe)==-1&&Wn(ge,Ha)(ge.doc,Fo(Oe),zt);var et=ye.style.cssText,wt=oe.wrapper.style.cssText,Jt=oe.wrapper.offsetParent.getBoundingClientRect();oe.wrapper.style.cssText="position: static",ye.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-Jt.top-5)+"px; left: "+(ie.clientX-Jt.left-5)+`px;
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Nt;we&&(Nt=window.scrollY),pe.input.focus(),we&&window.scrollTo(null,Nt),pe.input.reset(),ge.somethingSelected()||(ye.value=oe.prevInput=" "),oe.contextMenuPending=Sn,pe.selForContextMenu=ge.doc.sel,clearTimeout(pe.detectingSelectAll);function Bn(){if(ye.selectionStart!=null){var gi=ge.somethingSelected(),bi="\u200B"+(gi?ye.value:"");ye.value="\u21DA",ye.value=bi,oe.prevInput=gi?"":"\u200B",ye.selectionStart=1,ye.selectionEnd=bi.length,pe.selForContextMenu=ge.doc.sel}}function Sn(){if(oe.contextMenuPending==Sn&&(oe.contextMenuPending=!1,oe.wrapper.style.cssText=wt,ye.style.cssText=et,je&&Ze<9&&pe.scrollbars.setScrollTop(pe.scroller.scrollTop=Ve),ye.selectionStart!=null)){(!je||je&&Ze<9)&&Bn();var gi=0,bi=function(){pe.selForContextMenu==ge.doc.sel&&ye.selectionStart==0&&ye.selectionEnd>0&&oe.prevInput=="\u200B"?Wn(ge,Aa)(ge):gi++<10?pe.detectingSelectAll=setTimeout(bi,500):(pe.selForContextMenu=null,pe.input.reset())};pe.detectingSelectAll=setTimeout(bi,200)}}if(je&&Ze>=9&&Bn(),Be){Li(ie);var ti=function(){yn(window,"mouseup",ti),setTimeout(Sn,20)};gt(window,"mouseup",ti)}else setTimeout(Sn,50)},an.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},an.prototype.setUneditable=function(){},an.prototype.needsContentAttribute=!1;function Xn(ie,oe){if(oe=oe?mn(oe):{},oe.value=ie.value,!oe.tabindex&&ie.tabIndex&&(oe.tabindex=ie.tabIndex),!oe.placeholder&&ie.placeholder&&(oe.placeholder=ie.placeholder),oe.autofocus==null){var ge=kt();oe.autofocus=ge==ie||ie.getAttribute("autofocus")!=null&&ge==document.body}function pe(){ie.value=Xe.getValue()}var ye;if(ie.form&&(gt(ie.form,"submit",pe),!oe.leaveSubmitMethodAlone)){var Oe=ie.form;ye=Oe.submit;try{var Ve=Oe.submit=function(){pe(),Oe.submit=ye,Oe.submit(),Oe.submit=Ve}}catch(et){}}oe.finishInit=function(et){et.save=pe,et.getTextArea=function(){return ie},et.toTextArea=function(){et.toTextArea=isNaN,pe(),ie.parentNode.removeChild(et.getWrapperElement()),ie.style.display="",ie.form&&(yn(ie.form,"submit",pe),!oe.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=ye))}},ie.style.display="none";var Xe=Ma(function(et){return ie.parentNode.insertBefore(et,ie.nextSibling)},oe);return Xe}function Vn(ie){ie.off=yn,ie.on=gt,ie.wheelEventPixels=Qr,ie.Doc=ul,ie.splitLines=_i,ie.countColumn=Ct,ie.findColumn=fi,ie.isWordChar=jt,ie.Pass=Zn,ie.signal=bt,ie.Line=ka,ie.changeEnd=Ea,ie.scrollbarModel=wh,ie.Pos=Yt,ie.cmpPos=Fn,ie.modes=Oo,ie.mimeModes=Do,ie.resolveMode=En,ie.getMode=Tn,ie.modeExtensions=on,ie.extendMode=At,ie.copyState=Dn,ie.startState=Kt,ie.innerMode=Qn,ie.commands=fl,ie.keyMap=Bl,ie.keyName=qd,ie.isModifierKey=Dd,ie.lookupKey=tu,ie.normalizeKeyMap=kh,ie.StringStream=Et,ie.SharedTextMarker=tc,ie.TextMarker=Qt,ie.LineWidget=js,ie.e_preventDefault=di,ie.e_stopPropagation=wi,ie.e_stop=Li,ie.addClass=dn,ie.contains=Ut,ie.rmClass=Ke,ie.keyNames=Fl}Ug(Ma),he(Ma);var Nn="iter insert remove copy getEditor constructor".split(" ");for(var yr in ul.prototype)ul.prototype.hasOwnProperty(yr)&&Bt(Nn,yr)<0&&(Ma.prototype[yr]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(ul.prototype[yr]));return ni(ul),Ma.inputStyles={textarea:an,contenteditable:He},Ma.defineMode=function(ie){!Ma.defaults.mode&&ie!="null"&&(Ma.defaults.mode=ie),Co.apply(this,arguments)},Ma.defineMIME=so,Ma.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Ma.defineMIME("text/plain","null"),Ma.defineExtension=function(ie,oe){Ma.prototype[ie]=oe},Ma.defineDocExtension=function(ie,oe){ul.prototype[ie]=oe},Ma.fromTextArea=Xn,Vn(Ma),Ma.version="5.58.2",Ma})},25419:function(Ge,xe,ae){(function(de){de(ae(89780),ae(15525),ae(98101))})(function(de){"use strict";de.defineMode("markdown",function(Te,Ee){var Re=de.getMode(Te,"text/html"),je=Re.name=="null";function Ze(Ct){if(de.findModeByName){var qe=de.findModeByName(Ct);qe&&(Ct=qe.mime||qe.mimes[0])}var Bt=de.getMode(Te,Ct);return Bt.name=="null"?null:Bt}Ee.highlightFormatting===void 0&&(Ee.highlightFormatting=!1),Ee.maxBlockquoteDepth===void 0&&(Ee.maxBlockquoteDepth=0),Ee.taskLists===void 0&&(Ee.taskLists=!1),Ee.strikethrough===void 0&&(Ee.strikethrough=!1),Ee.emoji===void 0&&(Ee.emoji=!1),Ee.fencedCodeBlockHighlighting===void 0&&(Ee.fencedCodeBlockHighlighting=!0),Ee.fencedCodeBlockDefaultMode===void 0&&(Ee.fencedCodeBlockDefaultMode="text/plain"),Ee.xml===void 0&&(Ee.xml=!0),Ee.tokenTypeOverrides===void 0&&(Ee.tokenTypeOverrides={});var we={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 it in we)we.hasOwnProperty(it)&&Ee.tokenTypeOverrides[it]&&(we[it]=Ee.tokenTypeOverrides[it]);var Je=/^([*\-_])(?:\s*\1){2,}\s*$/,Ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,st=/^\[(x| )\](?=\s)/i,ht=Ee.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Lt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ze=/^[^#!\[\]*_\\<>` "'(~:]+/,ee=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,fe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,le=" ";function me(Ct,qe,Bt){return qe.f=qe.inline=Bt,Bt(Ct,qe)}function Se(Ct,qe,Bt){return qe.f=qe.block=Bt,Bt(Ct,qe)}function ke(Ct){return!Ct||!/\S/.test(Ct.string)}function Be(Ct){if(Ct.linkTitle=!1,Ct.linkHref=!1,Ct.linkText=!1,Ct.em=!1,Ct.strong=!1,Ct.strikethrough=!1,Ct.quote=0,Ct.indentedCode=!1,Ct.f==Ke){var qe=je;if(!qe){var Bt=de.innerMode(Re,Ct.htmlState);qe=Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText}qe&&(Ct.f=Tt,Ct.block=Ne,Ct.htmlState=null)}return Ct.trailingSpace=0,Ct.trailingSpaceNewLine=!1,Ct.prevLine=Ct.thisLine,Ct.thisLine={stream:null},null}function Ne(Ct,qe){var Bt=Ct.column()===qe.indentation,Cn=ke(qe.prevLine.stream),Zn=qe.indentedCode,zt=qe.prevLine.hr,sn=qe.list!==!1,Mn=(qe.listStack[qe.listStack.length-1]||0)+3;qe.indentedCode=!1;var fi=qe.indentation;if(qe.indentationDiff===null&&(qe.indentationDiff=qe.indentation,sn)){for(qe.list=null;fi<qe.listStack[qe.listStack.length-1];)qe.listStack.pop(),qe.listStack.length?qe.indentation=qe.listStack[qe.listStack.length-1]:qe.list=!1;qe.list!==!1&&(qe.indentationDiff=fi-qe.listStack[qe.listStack.length-1])}var Rn=!Cn&&!zt&&!qe.prevLine.header&&(!sn||!Zn)&&!qe.prevLine.fencedCodeEnd,li=(qe.list===!1||zt||Cn)&&qe.indentation<=Mn&&Ct.match(Je),Ot=null;if(qe.indentationDiff>=4&&(Zn||qe.prevLine.fencedCodeEnd||qe.prevLine.header||Cn))return Ct.skipToEnd(),qe.indentedCode=!0,we.code;if(Ct.eatSpace())return null;if(Bt&&qe.indentation<=Mn&&(Ot=Ct.match(ht))&&Ot[1].length<=6)return qe.quote=0,qe.header=Ot[1].length,qe.thisLine.header=!0,Ee.highlightFormatting&&(qe.formatting="header"),qe.f=qe.inline,at(qe);if(qe.indentation<=Mn&&Ct.eat(">"))return qe.quote=Bt?1:qe.quote+1,Ee.highlightFormatting&&(qe.formatting="quote"),Ct.eatSpace(),at(qe);if(!li&&!qe.setext&&Bt&&qe.indentation<=Mn&&(Ot=Ct.match(Ye))){var kn=Ot[1]?"ol":"ul";return qe.indentation=fi+Ct.current().length,qe.list=!0,qe.quote=0,qe.listStack.push(qe.indentation),qe.em=!1,qe.strong=!1,qe.code=!1,qe.strikethrough=!1,Ee.taskLists&&Ct.match(st,!1)&&(qe.taskList=!0),qe.f=qe.inline,Ee.highlightFormatting&&(qe.formatting=["list","list-"+kn]),at(qe)}else{if(Bt&&qe.indentation<=Mn&&(Ot=Ct.match(ee,!0)))return qe.quote=0,qe.fencedEndRE=new RegExp(Ot[1]+"+ *$"),qe.localMode=Ee.fencedCodeBlockHighlighting&&Ze(Ot[2]||Ee.fencedCodeBlockDefaultMode),qe.localMode&&(qe.localState=de.startState(qe.localMode)),qe.f=qe.block=$e,Ee.highlightFormatting&&(qe.formatting="code-block"),qe.code=-1,at(qe);if(qe.setext||(!Rn||!sn)&&!qe.quote&&qe.list===!1&&!qe.code&&!li&&!ne.test(Ct.string)&&(Ot=Ct.lookAhead(1))&&(Ot=Ot.match(Lt)))return qe.setext?(qe.header=qe.setext,qe.setext=0,Ct.skipToEnd(),Ee.highlightFormatting&&(qe.formatting="header")):(qe.header=Ot[0].charAt(0)=="="?1:2,qe.setext=qe.header),qe.thisLine.header=!0,qe.f=qe.inline,at(qe);if(li)return Ct.skipToEnd(),qe.hr=!0,qe.thisLine.hr=!0,we.hr;if(Ct.peek()==="[")return me(Ct,qe,nn)}return me(Ct,qe,qe.inline)}function Ke(Ct,qe){var Bt=Re.token(Ct,qe.htmlState);if(!je){var Cn=de.innerMode(Re,qe.htmlState);(Cn.mode.name=="xml"&&Cn.state.tagStart===null&&!Cn.state.context&&Cn.state.tokenize.isInText||qe.md_inside&&Ct.current().indexOf(">")>-1)&&(qe.f=Tt,qe.block=Ne,qe.htmlState=null)}return Bt}function $e(Ct,qe){var Bt=qe.listStack[qe.listStack.length-1]||0,Cn=qe.indentation<Bt,Zn=Bt+3;if(qe.fencedEndRE&&qe.indentation<=Zn&&(Cn||Ct.match(qe.fencedEndRE))){Ee.highlightFormatting&&(qe.formatting="code-block");var zt;return Cn||(zt=at(qe)),qe.localMode=qe.localState=null,qe.block=Ne,qe.f=Tt,qe.fencedEndRE=null,qe.code=0,qe.thisLine.fencedCodeEnd=!0,Cn?Se(Ct,qe,qe.block):zt}else return qe.localMode?qe.localMode.token(Ct,qe.localState):(Ct.skipToEnd(),we.code)}function at(Ct){var qe=[];if(Ct.formatting){qe.push(we.formatting),typeof Ct.formatting=="string"&&(Ct.formatting=[Ct.formatting]);for(var Bt=0;Bt<Ct.formatting.length;Bt++)qe.push(we.formatting+"-"+Ct.formatting[Bt]),Ct.formatting[Bt]==="header"&&qe.push(we.formatting+"-"+Ct.formatting[Bt]+"-"+Ct.header),Ct.formatting[Bt]==="quote"&&(!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Ct.quote?qe.push(we.formatting+"-"+Ct.formatting[Bt]+"-"+Ct.quote):qe.push("error"))}if(Ct.taskOpen)return qe.push("meta"),qe.length?qe.join(" "):null;if(Ct.taskClosed)return qe.push("property"),qe.length?qe.join(" "):null;if(Ct.linkHref?qe.push(we.linkHref,"url"):(Ct.strong&&qe.push(we.strong),Ct.em&&qe.push(we.em),Ct.strikethrough&&qe.push(we.strikethrough),Ct.emoji&&qe.push(we.emoji),Ct.linkText&&qe.push(we.linkText),Ct.code&&qe.push(we.code),Ct.image&&qe.push(we.image),Ct.imageAltText&&qe.push(we.imageAltText,"link"),Ct.imageMarker&&qe.push(we.imageMarker)),Ct.header&&qe.push(we.header,we.header+"-"+Ct.header),Ct.quote&&(qe.push(we.quote),!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Ct.quote?qe.push(we.quote+"-"+Ct.quote):qe.push(we.quote+"-"+Ee.maxBlockquoteDepth)),Ct.list!==!1){var Cn=(Ct.listStack.length-1)%3;Cn?Cn===1?qe.push(we.list2):qe.push(we.list3):qe.push(we.list1)}return Ct.trailingSpaceNewLine?qe.push("trailing-space-new-line"):Ct.trailingSpace&&qe.push("trailing-space-"+(Ct.trailingSpace%2?"a":"b")),qe.length?qe.join(" "):null}function lt(Ct,qe){if(Ct.match(ze,!0))return at(qe)}function Tt(Ct,qe){var Bt=qe.text(Ct,qe);if(typeof Bt!="undefined")return Bt;if(qe.list)return qe.list=null,at(qe);if(qe.taskList){var Cn=Ct.match(st,!0)[1]===" ";return Cn?qe.taskOpen=!0:qe.taskClosed=!0,Ee.highlightFormatting&&(qe.formatting="task"),qe.taskList=!1,at(qe)}if(qe.taskOpen=!1,qe.taskClosed=!1,qe.header&&Ct.match(/^#+$/,!0))return Ee.highlightFormatting&&(qe.formatting="header"),at(qe);var Zn=Ct.next();if(qe.linkTitle){qe.linkTitle=!1;var zt=Zn;Zn==="("&&(zt=")"),zt=(zt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var sn="^\\s*(?:[^"+zt+"\\\\]+|\\\\\\\\|\\\\.)"+zt;if(Ct.match(new RegExp(sn),!0))return we.linkHref}if(Zn==="`"){var Mn=qe.formatting;Ee.highlightFormatting&&(qe.formatting="code"),Ct.eatWhile("`");var fi=Ct.current().length;if(qe.code==0&&(!qe.quote||fi==1))return qe.code=fi,at(qe);if(fi==qe.code){var Rn=at(qe);return qe.code=0,Rn}else return qe.formatting=Mn,at(qe)}else if(qe.code)return at(qe);if(Zn==="\\"&&(Ct.next(),Ee.highlightFormatting)){var li=at(qe),Ot=we.formatting+"-escape";return li?li+" "+Ot:Ot}if(Zn==="!"&&Ct.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return qe.imageMarker=!0,qe.image=!0,Ee.highlightFormatting&&(qe.formatting="image"),at(qe);if(Zn==="["&&qe.imageMarker&&Ct.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return qe.imageMarker=!1,qe.imageAltText=!0,Ee.highlightFormatting&&(qe.formatting="image"),at(qe);if(Zn==="]"&&qe.imageAltText){Ee.highlightFormatting&&(qe.formatting="image");var li=at(qe);return qe.imageAltText=!1,qe.image=!1,qe.inline=qe.f=Ut,li}if(Zn==="["&&!qe.image)return qe.linkText&&Ct.match(/^.*?\]/)||(qe.linkText=!0,Ee.highlightFormatting&&(qe.formatting="link")),at(qe);if(Zn==="]"&&qe.linkText){Ee.highlightFormatting&&(qe.formatting="link");var li=at(qe);return qe.linkText=!1,qe.inline=qe.f=Ct.match(/\(.*?\)| ?\[.*?\]/,!1)?Ut:Tt,li}if(Zn==="<"&&Ct.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){qe.f=qe.inline=nt,Ee.highlightFormatting&&(qe.formatting="link");var li=at(qe);return li?li+=" ":li="",li+we.linkInline}if(Zn==="<"&&Ct.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){qe.f=qe.inline=nt,Ee.highlightFormatting&&(qe.formatting="link");var li=at(qe);return li?li+=" ":li="",li+we.linkEmail}if(Ee.xml&&Zn==="<"&&Ct.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var kn=Ct.string.indexOf(">",Ct.pos);if(kn!=-1){var $n=Ct.string.substring(Ct.start,kn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($n)&&(qe.md_inside=!0)}return Ct.backUp(1),qe.htmlState=de.startState(Re),Se(Ct,qe,Ke)}if(Ee.xml&&Zn==="<"&&Ct.match(/^\/\w*?>/))return qe.md_inside=!1,"tag";if(Zn==="*"||Zn==="_"){for(var xi=1,xn=Ct.pos==1?" ":Ct.string.charAt(Ct.pos-2);xi<3&&Ct.eat(Zn);)xi++;var Gt=Ct.peek()||" ",jt=!/\s/.test(Gt)&&(!fe.test(Gt)||/\s/.test(xn)||fe.test(xn)),It=!/\s/.test(xn)&&(!fe.test(xn)||/\s/.test(Gt)||fe.test(Gt)),vt=null,Xt=null;if(xi%2&&(!qe.em&&jt&&(Zn==="*"||!It||fe.test(xn))?vt=!0:qe.em==Zn&&It&&(Zn==="*"||!jt||fe.test(Gt))&&(vt=!1)),xi>1&&(!qe.strong&&jt&&(Zn==="*"||!It||fe.test(xn))?Xt=!0:qe.strong==Zn&&It&&(Zn==="*"||!jt||fe.test(Gt))&&(Xt=!1)),Xt!=null||vt!=null){Ee.highlightFormatting&&(qe.formatting=vt==null?"strong":Xt==null?"em":"strong em"),vt===!0&&(qe.em=Zn),Xt===!0&&(qe.strong=Zn);var Rn=at(qe);return vt===!1&&(qe.em=!1),Xt===!1&&(qe.strong=!1),Rn}}else if(Zn===" "&&(Ct.eat("*")||Ct.eat("_"))){if(Ct.peek()===" ")return at(qe);Ct.backUp(1)}if(Ee.strikethrough){if(Zn==="~"&&Ct.eatWhile(Zn)){if(qe.strikethrough){Ee.highlightFormatting&&(qe.formatting="strikethrough");var Rn=at(qe);return qe.strikethrough=!1,Rn}else if(Ct.match(/^[^\s]/,!1))return qe.strikethrough=!0,Ee.highlightFormatting&&(qe.formatting="strikethrough"),at(qe)}else if(Zn===" "&&Ct.match(/^~~/,!0)){if(Ct.peek()===" ")return at(qe);Ct.backUp(2)}}if(Ee.emoji&&Zn===":"&&Ct.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){qe.emoji=!0,Ee.highlightFormatting&&(qe.formatting="emoji");var Zt=at(qe);return qe.emoji=!1,Zt}return Zn===" "&&(Ct.match(/^ +$/,!1)?qe.trailingSpace++:qe.trailingSpace&&(qe.trailingSpaceNewLine=!0)),at(qe)}function nt(Ct,qe){var Bt=Ct.next();if(Bt===">"){qe.f=qe.inline=Tt,Ee.highlightFormatting&&(qe.formatting="link");var Cn=at(qe);return Cn?Cn+=" ":Cn="",Cn+we.linkInline}return Ct.match(/^[^>]+/,!0),we.linkInline}function Ut(Ct,qe){if(Ct.eatSpace())return null;var Bt=Ct.next();return Bt==="("||Bt==="["?(qe.f=qe.inline=dn(Bt==="("?")":"]"),Ee.highlightFormatting&&(qe.formatting="link-string"),qe.linkHref=!0,at(qe)):"error"}var kt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function dn(Ct){return function(qe,Bt){var Cn=qe.next();if(Cn===Ct){Bt.f=Bt.inline=Tt,Ee.highlightFormatting&&(Bt.formatting="link-string");var Zn=at(Bt);return Bt.linkHref=!1,Zn}return qe.match(kt[Ct]),Bt.linkHref=!0,at(Bt)}}function nn(Ct,qe){return Ct.match(/^([^\]\\]|\\.)*\]:/,!1)?(qe.f=qt,Ct.next(),Ee.highlightFormatting&&(qe.formatting="link"),qe.linkText=!0,at(qe)):me(Ct,qe,Tt)}function qt(Ct,qe){if(Ct.match(/^\]:/,!0)){qe.f=qe.inline=un,Ee.highlightFormatting&&(qe.formatting="link");var Bt=at(qe);return qe.linkText=!1,Bt}return Ct.match(/^([^\]\\]|\\.)+/,!0),we.linkText}function un(Ct,qe){return Ct.eatSpace()?null:(Ct.match(/^[^\s]+/,!0),Ct.peek()===void 0?qe.linkTitle=!0:Ct.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),qe.f=qe.inline=Tt,we.linkHref+" url")}var mn={startState:function(){return{f:Ne,prevLine:{stream:null},thisLine:{stream:null},block:Ne,htmlState:null,indentation:0,inline:Tt,text:lt,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(Ct){return{f:Ct.f,prevLine:Ct.prevLine,thisLine:Ct.thisLine,block:Ct.block,htmlState:Ct.htmlState&&de.copyState(Re,Ct.htmlState),indentation:Ct.indentation,localMode:Ct.localMode,localState:Ct.localMode?de.copyState(Ct.localMode,Ct.localState):null,inline:Ct.inline,text:Ct.text,formatting:!1,linkText:Ct.linkText,linkTitle:Ct.linkTitle,linkHref:Ct.linkHref,code:Ct.code,em:Ct.em,strong:Ct.strong,strikethrough:Ct.strikethrough,emoji:Ct.emoji,header:Ct.header,setext:Ct.setext,hr:Ct.hr,taskList:Ct.taskList,list:Ct.list,listStack:Ct.listStack.slice(0),quote:Ct.quote,indentedCode:Ct.indentedCode,trailingSpace:Ct.trailingSpace,trailingSpaceNewLine:Ct.trailingSpaceNewLine,md_inside:Ct.md_inside,fencedEndRE:Ct.fencedEndRE}},token:function(Ct,qe){if(qe.formatting=!1,Ct!=qe.thisLine.stream){if(qe.header=0,qe.hr=!1,Ct.match(/^\s*$/,!0))return Be(qe),null;if(qe.prevLine=qe.thisLine,qe.thisLine={stream:Ct},qe.taskList=!1,qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,!qe.localState&&(qe.f=qe.block,qe.f!=Ke)){var Bt=Ct.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if(qe.indentation=Bt,qe.indentationDiff=null,Bt>0)return null}}return qe.f(Ct,qe)},innerMode:function(Ct){return Ct.block==Ke?{state:Ct.htmlState,mode:Re}:Ct.localState?{state:Ct.localState,mode:Ct.localMode}:{state:Ct,mode:mn}},indent:function(Ct,qe,Bt){return Ct.block==Ke&&Re.indent?Re.indent(Ct.htmlState,qe,Bt):Ct.localState&&Ct.localMode.indent?Ct.localMode.indent(Ct.localState,qe,Bt):de.Pass},blankLine:Be,getType:at,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mn},"xml"),de.defineMIME("text/markdown","markdown"),de.defineMIME("text/x-markdown","markdown")})},98101:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){"use strict";de.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 Te=0;Te<de.modeInfo.length;Te++){var Ee=de.modeInfo[Te];Ee.mimes&&(Ee.mime=Ee.mimes[0])}de.findModeByMIME=function(Re){Re=Re.toLowerCase();for(var je=0;je<de.modeInfo.length;je++){var Ze=de.modeInfo[je];if(Ze.mime==Re)return Ze;if(Ze.mimes){for(var we=0;we<Ze.mimes.length;we++)if(Ze.mimes[we]==Re)return Ze}}if(/\+xml$/.test(Re))return de.findModeByMIME("application/xml");if(/\+json$/.test(Re))return de.findModeByMIME("application/json")},de.findModeByExtension=function(Re){Re=Re.toLowerCase();for(var je=0;je<de.modeInfo.length;je++){var Ze=de.modeInfo[je];if(Ze.ext){for(var we=0;we<Ze.ext.length;we++)if(Ze.ext[we]==Re)return Ze}}},de.findModeByFileName=function(Re){for(var je=0;je<de.modeInfo.length;je++){var Ze=de.modeInfo[je];if(Ze.file&&Ze.file.test(Re))return Ze}var we=Re.lastIndexOf("."),it=we>-1&&Re.substring(we+1,Re.length);if(it)return de.findModeByExtension(it)},de.findModeByName=function(Re){Re=Re.toLowerCase();for(var je=0;je<de.modeInfo.length;je++){var Ze=de.modeInfo[je];if(Ze.name.toLowerCase()==Re)return Ze;if(Ze.alias){for(var we=0;we<Ze.alias.length;we++)if(Ze.alias[we].toLowerCase()==Re)return Ze}}}})},67549:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){"use strict";de.defineMode("stex",function(Te,Ee){"use strict";function Re(ze,ee){ze.cmdState.push(ee)}function je(ze){return ze.cmdState.length>0?ze.cmdState[ze.cmdState.length-1]:null}function Ze(ze){var ee=ze.cmdState.pop();ee&&ee.closeBracket()}function we(ze){for(var ee=ze.cmdState,ne=ee.length-1;ne>=0;ne--){var fe=ee[ne];if(fe.name!="DEFAULT")return fe}return{styleIdentifier:function(){return null}}}function it(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=it("importmodule","tag",["string","builtin"]),Je.documentclass=it("documentclass","tag",["","atom"]),Je.usepackage=it("usepackage","tag",["atom"]),Je.begin=it("begin","tag",["atom"]),Je.end=it("end","tag",["atom"]),Je.label=it("label","tag",["atom"]),Je.ref=it("ref","tag",["atom"]),Je.eqref=it("eqref","tag",["atom"]),Je.cite=it("cite","tag",["atom"]),Je.bibitem=it("bibitem","tag",["atom"]),Je.Bibitem=it("Bibitem","tag",["atom"]),Je.RBibitem=it("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 st(ze,ee){var ne;if(ze.match(/^\\[a-zA-Z@]+/)){var fe=ze.current().slice(1);return ne=Je.hasOwnProperty(fe)?Je[fe]:Je.DEFAULT,ne=new ne,Re(ee,ne),Ye(ee,Lt),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 le=ze.next();if(le=="%")return ze.skipToEnd(),"comment";if(le=="}"||le=="]"){if(ne=je(ee),ne)ne.closeBracket(le),Ye(ee,Lt);else return"error";return"bracket"}else return le=="{"||le=="["?(ne=Je.DEFAULT,ne=new ne,Re(ee,ne),"bracket"):/\d/.test(le)?(ze.eatWhile(/[\w.%]/),"atom"):(ze.eatWhile(/[\w\-_]/),ne=we(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,st),"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 fe=ze.next();return fe=="{"||fe=="}"||fe=="["||fe=="]"||fe=="("||fe==")"?"bracket":fe=="%"?(ze.skipToEnd(),"comment"):"error"}function Lt(ze,ee){var ne=ze.peek(),fe;return ne=="{"||ne=="["?(fe=je(ee),fe.openBracket(ne),ze.eat(ne),Ye(ee,st),"bracket"):/[ \t\r]/.test(ne)?(ze.eat(ne),null):(Ye(ee,st),Ze(ee),st(ze,ee))}return{startState:function(){var ze=Ee.inMathMode?function(ee,ne){return ht(ee,ne)}:st;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=st,ze.cmdState.length=0},lineComment:"%"}}),de.defineMIME("text/x-stex","stex"),de.defineMIME("text/x-latex","stex")})},15525:function(Ge,xe,ae){(function(de){de(ae(89780))})(function(de){"use strict";var Te={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},Ee={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};de.defineMode("xml",function(Re,je){var Ze=Re.indentUnit,we={},it=je.htmlMode?Te:Ee;for(var Je in it)we[Je]=it[Je];for(var Je in je)we[Je]=je[Je];var Ye,st;function ht(nt,Ut){function kt(qt){return Ut.tokenize=qt,qt(nt,Ut)}var dn=nt.next();if(dn=="<")return nt.eat("!")?nt.eat("[")?nt.match("CDATA[")?kt(ee("atom","]]>")):null:nt.match("--")?kt(ee("comment","-->")):nt.match("DOCTYPE",!0,!0)?(nt.eatWhile(/[\w\._\-]/),kt(ne(1))):null:nt.eat("?")?(nt.eatWhile(/[\w\._\-]/),Ut.tokenize=ee("meta","?>"),"meta"):(Ye=nt.eat("/")?"closeTag":"openTag",Ut.tokenize=Lt,"tag bracket");if(dn=="&"){var nn;return nt.eat("#")?nt.eat("x")?nn=nt.eatWhile(/[a-fA-F\d]/)&&nt.eat(";"):nn=nt.eatWhile(/[\d]/)&&nt.eat(";"):nn=nt.eatWhile(/[\w\.\-:]/)&&nt.eat(";"),nn?"atom":"error"}else return nt.eatWhile(/[^&<]/),null}ht.isInText=!0;function Lt(nt,Ut){var kt=nt.next();if(kt==">"||kt=="/"&&nt.eat(">"))return Ut.tokenize=ht,Ye=kt==">"?"endTag":"selfcloseTag","tag bracket";if(kt=="=")return Ye="equals",null;if(kt=="<"){Ut.tokenize=ht,Ut.state=Se,Ut.tagName=Ut.tagStart=null;var dn=Ut.tokenize(nt,Ut);return dn?dn+" tag error":"tag error"}else return/[\'\"]/.test(kt)?(Ut.tokenize=ze(kt),Ut.stringStartCol=nt.column(),Ut.tokenize(nt,Ut)):(nt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ze(nt){var Ut=function(kt,dn){for(;!kt.eol();)if(kt.next()==nt){dn.tokenize=Lt;break}return"string"};return Ut.isInAttribute=!0,Ut}function ee(nt,Ut){return function(kt,dn){for(;!kt.eol();){if(kt.match(Ut)){dn.tokenize=ht;break}kt.next()}return nt}}function ne(nt){return function(Ut,kt){for(var dn;(dn=Ut.next())!=null;){if(dn=="<")return kt.tokenize=ne(nt+1),kt.tokenize(Ut,kt);if(dn==">")if(nt==1){kt.tokenize=ht;break}else return kt.tokenize=ne(nt-1),kt.tokenize(Ut,kt)}return"meta"}}function fe(nt,Ut,kt){this.prev=nt.context,this.tagName=Ut,this.indent=nt.indented,this.startOfLine=kt,(we.doNotIndent.hasOwnProperty(Ut)||nt.context&&nt.context.noIndent)&&(this.noIndent=!0)}function le(nt){nt.context&&(nt.context=nt.context.prev)}function me(nt,Ut){for(var kt;;){if(!nt.context||(kt=nt.context.tagName,!we.contextGrabbers.hasOwnProperty(kt)||!we.contextGrabbers[kt].hasOwnProperty(Ut)))return;le(nt)}}function Se(nt,Ut,kt){return nt=="openTag"?(kt.tagStart=Ut.column(),ke):nt=="closeTag"?Be:Se}function ke(nt,Ut,kt){return nt=="word"?(kt.tagName=Ut.current(),st="tag",$e):we.allowMissingTagName&&nt=="endTag"?(st="tag bracket",$e(nt,Ut,kt)):(st="error",ke)}function Be(nt,Ut,kt){if(nt=="word"){var dn=Ut.current();return kt.context&&kt.context.tagName!=dn&&we.implicitlyClosed.hasOwnProperty(kt.context.tagName)&&le(kt),kt.context&&kt.context.tagName==dn||we.matchClosing===!1?(st="tag",Ne):(st="tag error",Ke)}else return we.allowMissingTagName&&nt=="endTag"?(st="tag bracket",Ne(nt,Ut,kt)):(st="error",Ke)}function Ne(nt,Ut,kt){return nt!="endTag"?(st="error",Ne):(le(kt),Se)}function Ke(nt,Ut,kt){return st="error",Ne(nt,Ut,kt)}function $e(nt,Ut,kt){if(nt=="word")return st="attribute",at;if(nt=="endTag"||nt=="selfcloseTag"){var dn=kt.tagName,nn=kt.tagStart;return kt.tagName=kt.tagStart=null,nt=="selfcloseTag"||we.autoSelfClosers.hasOwnProperty(dn)?me(kt,dn):(me(kt,dn),kt.context=new fe(kt,dn,nn==kt.indented)),Se}return st="error",$e}function at(nt,Ut,kt){return nt=="equals"?lt:(we.allowMissing||(st="error"),$e(nt,Ut,kt))}function lt(nt,Ut,kt){return nt=="string"?Tt:nt=="word"&&we.allowUnquoted?(st="string",$e):(st="error",$e(nt,Ut,kt))}function Tt(nt,Ut,kt){return nt=="string"?Tt:$e(nt,Ut,kt)}return{startState:function(nt){var Ut={tokenize:ht,state:Se,indented:nt||0,tagName:null,tagStart:null,context:null};return nt!=null&&(Ut.baseIndent=nt),Ut},token:function(nt,Ut){if(!Ut.tagName&&nt.sol()&&(Ut.indented=nt.indentation()),nt.eatSpace())return null;Ye=null;var kt=Ut.tokenize(nt,Ut);return(kt||Ye)&&kt!="comment"&&(st=null,Ut.state=Ut.state(Ye||kt,nt,Ut),st&&(kt=st=="error"?kt+" error":st)),kt},indent:function(nt,Ut,kt){var dn=nt.context;if(nt.tokenize.isInAttribute)return nt.tagStart==nt.indented?nt.stringStartCol+1:nt.indented+Ze;if(dn&&dn.noIndent)return de.Pass;if(nt.tokenize!=Lt&&nt.tokenize!=ht)return kt?kt.match(/^(\s*)/)[0].length:0;if(nt.tagName)return we.multilineTagIndentPastTag!==!1?nt.tagStart+nt.tagName.length+2:nt.tagStart+Ze*(we.multilineTagIndentFactor||1);if(we.alignCDATA&&/<!\[CDATA\[/.test(Ut))return 0;var nn=Ut&&/^<(\/)?([\w_:\.-]*)/.exec(Ut);if(nn&&nn[1])for(;dn;)if(dn.tagName==nn[2]){dn=dn.prev;break}else if(we.implicitlyClosed.hasOwnProperty(dn.tagName))dn=dn.prev;else break;else if(nn)for(;dn;){var qt=we.contextGrabbers[dn.tagName];if(qt&&qt.hasOwnProperty(nn[2]))dn=dn.prev;else break}for(;dn&&dn.prev&&!dn.startOfLine;)dn=dn.prev;return dn?dn.indent+Ze:nt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:we.htmlMode?"html":"xml",helperType:we.htmlMode?"html":"xml",skipAttribute:function(nt){nt.state==lt&&(nt.state=$e)},xmlCurrentTag:function(nt){return nt.tagName?{name:nt.tagName,close:nt.type=="closeTag"}:null},xmlCurrentContext:function(nt){for(var Ut=[],kt=nt.context;kt;kt=kt.prev)kt.tagName&&Ut.push(kt.tagName);return Ut.reverse()}}}),de.defineMIME("text/xml","xml"),de.defineMIME("application/xml","xml"),de.mimeModes.hasOwnProperty("text/html")||de.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Ge,xe){"use strict";var ae;xe.Q=Re,ae=je;var de=",",Te=" ",Ee="";function Re(Ze){for(var we=[],it=String(Ze||Ee),Je=it.indexOf(de),Ye=0,st=!1,ht;!st;)Je===-1&&(Je=it.length,st=!0),ht=it.slice(Ye,Je).trim(),(ht||!st)&&we.push(ht),Ye=Je+1,Je=it.indexOf(de,Ye);return we}function je(Ze,we){var it=we||{},Je=it.padLeft===!1?Ee:Te,Ye=it.padRight?Te:Ee;return Ze[Ze.length-1]===Ee&&(Ze=Ze.concat(Ee)),Ze.join(Ye+de+Je).trim()}},58847:function(Ge){"use strict";var xe=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,de=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Ee=function(it){return typeof Array.isArray=="function"?Array.isArray(it):ae.call(it)==="[object Array]"},Re=function(it){if(!it||ae.call(it)!=="[object Object]")return!1;var Je=xe.call(it,"constructor"),Ye=it.constructor&&it.constructor.prototype&&xe.call(it.constructor.prototype,"isPrototypeOf");if(it.constructor&&!Je&&!Ye)return!1;var st;for(st in it);return typeof st=="undefined"||xe.call(it,st)},je=function(it,Je){de&&Je.name==="__proto__"?de(it,Je.name,{enumerable:!0,configurable:!0,value:Je.newValue,writable:!0}):it[Je.name]=Je.newValue},Ze=function(it,Je){if(Je==="__proto__")if(xe.call(it,Je)){if(Te)return Te(it,Je).value}else return;return it[Je]};Ge.exports=function we(){var it,Je,Ye,st,ht,Lt,ze=arguments[0],ee=1,ne=arguments.length,fe=!1;for(typeof ze=="boolean"&&(fe=ze,ze=arguments[1]||{},ee=2),(ze==null||typeof ze!="object"&&typeof ze!="function")&&(ze={});ee<ne;++ee)if(it=arguments[ee],it!=null)for(Je in it)Ye=Ze(ze,Je),st=Ze(it,Je),ze!==st&&(fe&&st&&(Re(st)||(ht=Ee(st)))?(ht?(ht=!1,Lt=Ye&&Ee(Ye)?Ye:[]):Lt=Ye&&Re(Ye)?Ye:{},je(ze,{name:Je,newValue:we(fe,Lt,st)})):typeof st!="undefined"&&je(ze,{name:Je,newValue:st}));return ze}},12378:function(Ge,xe,ae){"use strict";ae.d(xe,{$u:function(){return Je},BD:function(){return xi},E9:function(){return it},FF:function(){return dr},FJ:function(){return Se},Hn:function(){return me},KX:function(){return Be},NB:function(){return _e},S0:function(){return Ot},UL:function(){return Ye},Vk:function(){return le},Vm:function(){return be},YI:function(){return kn},ZA:function(){return Ee},Zt:function(){return st},al:function(){return vt},bn:function(){return It},bx:function(){return xn},g2:function(){return $n},h1:function(){return lt},hD:function(){return ni},l4:function(){return Ze},rU:function(){return Pe},s_:function(){return Gt},uz:function(){return ft},z6:function(){return ht}}),Ge=ae.hmd(Ge),function(){var De;function jr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function hr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:jr(a)}}function oo(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Oo=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Do;if(typeof Object.setPrototypeOf=="function")Do=Object.setPrototypeOf;else{var Co;e:{var so={a:!0},En={};try{En.__proto__=so,Co=En.a;break e}catch(a){}Co=!1}Do=Co?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Tn=Do;function on(a,y){if(a.prototype=Oo(y.prototype),a.prototype.constructor=a,Tn)Tn(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 At=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,Dn=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},Qn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Kt(a,y){if(y){var x=At;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&&Qn(x,a,{writable:!0,value:y})}}Kt("Object.assign",function(a){return a||Dn}),Kt("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 Et=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};Et.requestAnimationFrame===void 0&&(Et.setImmediate===void 0?Et.requestAnimationFrame=function(a){Et.setTimeout(a,0)}:Et.requestAnimationFrame=Et.setImmediate);function Ln(){}function Jn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Et.clearTimeout(x),x=Ci(function(){x=-1,a.apply(b,E)},y)}}function Ci(a,y){return Et.setTimeout(a,y)}function Pn(a){return Et.document.createElement(a)}function Rt(a){throw Error(a)}function Yn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Rt(a)}function vi(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),Rt(x+" is not in the range "+y+": "+a)}function Oi(a){Et.console&&Et.console.log(a)}function Yt(a){return typeof a=="object"&&a!==null}function Fn(a){return Array.isArray(a)||Et.NodeList&&a instanceof Et.NodeList||Et.HTMLCollection&&a instanceof Et.HTMLCollection}function $t(a){return Array.prototype.slice.call(a)}function pn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Rt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function An(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Rt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function gn(){var a=Vi.pop();return a===void 0?[]:a}function In(a){a.length=0,Vi.push(a)}function Gn(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(Yt(a)&&a.constructor)return Gn(a.constructor);return typeof a}function qn(a){var y=a;return Yt(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 oi(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 Hn(a,y,x){Object.defineProperty(sa.prototype,a,{get:y,set:x})}function ui(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 Ki=Et.navigator!==void 0&&0<Et.navigator.userAgent.indexOf("Trident/7"),Er=Et.navigator!==void 0&&Et.navigator.platform!==void 0&&Et.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Vi=[];Object.freeze([]),Ln.className="Util",Ln.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Ln.adym="gojs.net",Ln.vfo="28e645fdb266",Ln.className="Util";function Ht(a,y,x){Mr(this),this.j=a,this.xa=y,this.o=x}Ht.prototype.toString=function(){return"EnumValue."+this.xa};function Pi(a,y){return y==null||y===""?null:a[y]}At.Object.defineProperties(Ht.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ht.className="EnumValue";function zi(){this.ew=[]}zi.prototype.toString=function(){return this.ew.join("")},zi.prototype.add=function(a){a!==""&&this.ew.push(a)},zi.className="StringBuilder";function Ti(){}Ti.className="PropertyCollection";var er={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Et.console&&Et.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 cr(){}cr.prototype.reset=function(){},cr.prototype.next=function(){return!1},cr.prototype.Ad=function(){return!1},cr.prototype.first=function(){return null},cr.prototype.any=function(){return!1},cr.prototype.all=function(){return!0},cr.prototype.each=function(){return this},cr.prototype.map=function(){return this},cr.prototype.filter=function(){return this},cr.prototype.de=function(){},cr.prototype.toString=function(){return"EmptyIterator"},At.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset;var Tr=null;cr.className="EmptyIterator",Tr=new cr;function Qi(a){this.key=-1,this.value=a}Qi.prototype.reset=function(){this.key=-1},Qi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Qi.prototype.Ad=function(){return this.next()},Qi.prototype.first=function(){return this.key=0,this.value},Qi.prototype.any=function(a){return this.key=-1,a(this.value)},Qi.prototype.all=function(a){return this.key=-1,a(this.value)},Qi.prototype.each=function(a){return this.key=-1,a(this.value),this},Qi.prototype.map=function(a){return new Qi(a(this.value))},Qi.prototype.filter=function(a){return a(this.value)?new Qi(this.value):Tr},Qi.prototype.de=function(){this.value=null},Qi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},At.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="SingletonIterator";function Fi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Fi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Fi.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},Fi.prototype.Ad=function(){return this.next()},Fi.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},Fi.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},Fi.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},Fi.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},Fi.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 ln,a.s=x,a.xb(),a.iterator},Fi.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 ln,a.s=x,a.xb(),a.iterator},Fi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Fi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},At.Object.defineProperties(Fi.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}}}),Fi.prototype.first=Fi.prototype.first,Fi.prototype.hasNext=Fi.prototype.Ad,Fi.prototype.next=Fi.prototype.next,Fi.prototype.reset=Fi.prototype.reset,Fi.className="ListIterator";function Rr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Rr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Rr.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)},Rr.prototype.Ad=function(){return this.next()},Rr.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},Rr.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},Rr.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},Rr.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},Rr.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 ln,a.s=x,a.xb(),a.iterator},Rr.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 ln,a.s=x,a.xb(),a.iterator},Rr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Rr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},At.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="ListIteratorBackwards";function ln(a){Mr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Rt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=ln.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"List()#"+Fr(this)},De.add=function(a){return a===null?this:(this._isFrozen&&Yn(this,a),this.s.push(a),this.xb(),this)},De.push=function(a){this.add(a)},De.addAll=function(a){if(a===null)return this;this._isFrozen&&Yn(this);var y=this.s;if(Fn(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},De.clear=function(){this._isFrozen&&Yn(this),this.s.length=0,this.xb()},De.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},De.has=function(a){return this.contains(a)},De.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},De.M=function(a){var y=this.s;return(0>a||a>=y.length)&&vi(a,"0 <= i < length",ln,"elt:i"),y[a]},De.get=function(a){return this.M(a)},De.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&vi(a,"0 <= i < length",ln,"setElt:i"),this._isFrozen&&Yn(this,a),x[a]=y},De.set=function(a,y){this.cd(a,y)},De.first=function(){var a=this.s;return a.length===0?null:a[0]},De.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},De.pop=function(){this._isFrozen&&Yn(this);var a=this.s;return 0<a.length?a.pop():null},ln.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},ln.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},ln.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},ln.prototype.map=function(a){for(var y=new ln,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},ln.prototype.filter=function(a){for(var y=new ln,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},De=ln.prototype,De.Gb=function(a,y){0>a&&vi(a,">= 0",ln,"insertAt:i"),this._isFrozen&&Yn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},De.remove=function(a){if(a===null)return!1;this._isFrozen&&Yn(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)},De.delete=function(a){return this.remove(a)},De.mb=function(a){var y=this.s;(0>a||a>=y.length)&&vi(a,"0 <= i < length",ln,"removeAt:i"),this._isFrozen&&Yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},De.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&&Yn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},ln.prototype.copy=function(){var a=new ln,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},De=ln.prototype,De.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},De.Iv=function(){for(var a=new bn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},De.sort=function(a){return this._isFrozen&&Yn(this),this.s.sort(a),this.xb(),this},De.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Yn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&vi(y,"0 <= from < length",ln,"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},De.reverse=function(){return this._isFrozen&&Yn(this),this.s.reverse(),this.xb(),this},At.Object.defineProperties(ln.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 Tr;var a=this.Sa;return a!==null?(a.reset(),a):new Fi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Tr;var a=this.Hg;return a!==null?(a.reset(),a):new Rr(this)}}}),ln.prototype.reverse=ln.prototype.reverse,ln.prototype.sortRange=ln.prototype.zi,ln.prototype.sort=ln.prototype.sort,ln.prototype.toSet=ln.prototype.Iv,ln.prototype.toArray=ln.prototype.Fa,ln.prototype.removeRange=ln.prototype.removeRange,ln.prototype.removeAt=ln.prototype.mb,ln.prototype.delete=ln.prototype.delete,ln.prototype.remove=ln.prototype.remove,ln.prototype.insertAt=ln.prototype.Gb,ln.prototype.pop=ln.prototype.pop,ln.prototype.last=ln.prototype.jc,ln.prototype.first=ln.prototype.first,ln.prototype.set=ln.prototype.set,ln.prototype.setElt=ln.prototype.cd,ln.prototype.get=ln.prototype.get,ln.prototype.elt=ln.prototype.M,ln.prototype.indexOf=ln.prototype.indexOf,ln.prototype.has=ln.prototype.has,ln.prototype.contains=ln.prototype.contains,ln.prototype.clear=ln.prototype.clear,ln.prototype.addAll=ln.prototype.addAll,ln.prototype.push=ln.prototype.push,ln.prototype.add=ln.prototype.add,ln.prototype.thaw=ln.prototype.ka,ln.prototype.freeze=ln.prototype.freeze,ln.className="List";function Ur(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ur.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ur.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)},Ur.prototype.Ad=function(){return this.next()},Ur.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},Ur.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},Ur.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},Ur.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},Ur.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ur.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ur.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ur.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},At.Object.defineProperties(Ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ur.prototype.first=Ur.prototype.first,Ur.prototype.hasNext=Ur.prototype.Ad,Ur.prototype.next=Ur.prototype.next,Ur.prototype.reset=Ur.prototype.reset,Ur.className="SetIterator";function bn(a){Mr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Rt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=bn.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"Set()#"+Fr(this)},De.add=function(a){if(a===null)return this;this._isFrozen&&Yn(this,a);var y=a;return Yt(a)&&(y=Ho(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Vr(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},De.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Yn(this),Fn(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},De.contains=function(a){if(a===null)return!1;var y=a;return Yt(a)&&(y=Fr(a),y===void 0)?!1:this.Tb[y]!==void 0},De.has=function(a){return this.contains(a)},De.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},De.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},De.first=function(){var a=this.ea;return a===null?null:a.value},bn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},bn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},bn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},bn.prototype.map=function(a){for(var y=new bn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},bn.prototype.filter=function(a){for(var y=new bn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},De=bn.prototype,De.remove=function(a){if(a===null)return!1;this._isFrozen&&Yn(this,a);var y=a;if(Yt(a)&&(y=Fr(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},De.delete=function(a){return this.remove(a)},De.hp=function(a){if(a===null)return this;if(this._isFrozen&&Yn(this),Fn(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},De.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Yn(this);var y=new bn;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},De.clear=function(){this._isFrozen&&Yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},bn.prototype.copy=function(){var a=new bn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},bn.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},bn.prototype.Hv=function(){var a=new ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Mr(a){a.__gohashid=vo++}function Ho(a){var y=a.__gohashid;return y===void 0&&(y=vo++,a.__gohashid=y),y}function Fr(a){return a.__gohashid}At.Object.defineProperties(bn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Tr;var a=this.Sa;return a!==null?(a.reset(),a):new Ur(this)}}}),bn.prototype.toList=bn.prototype.Hv,bn.prototype.toArray=bn.prototype.Fa,bn.prototype.clear=bn.prototype.clear,bn.prototype.retainAll=bn.prototype.pA,bn.prototype.removeAll=bn.prototype.hp,bn.prototype.delete=bn.prototype.delete,bn.prototype.remove=bn.prototype.remove,bn.prototype.first=bn.prototype.first,bn.prototype.containsAny=bn.prototype.Ty,bn.prototype.containsAll=bn.prototype.Sy,bn.prototype.has=bn.prototype.has,bn.prototype.contains=bn.prototype.contains,bn.prototype.addAll=bn.prototype.addAll,bn.prototype.add=bn.prototype.add,bn.prototype.thaw=bn.prototype.ka,bn.prototype.freeze=bn.prototype.freeze;var vo=1;bn.className="Set",bn.uniqueHash=Mr,bn.hashIdUnique=Ho,bn.hashId=Fr;function Ro(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ro.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ro.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)},Ro.prototype.Ad=function(){return this.next()},Ro.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},Ro.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},Ro.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},Ro.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},Ro.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new ln;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ro.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new ln;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Ro.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ro.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},At.Object.defineProperties(Ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ro.prototype.first=Ro.prototype.first,Ro.prototype.hasNext=Ro.prototype.Ad,Ro.prototype.next=Ro.prototype.next,Ro.prototype.reset=Ro.prototype.reset,Ro.className="MapKeySetIterator";function ir(a){bn.call(this),Mr(this),this._isFrozen=!0,this.ma=a}on(ir,bn),De=ir.prototype,De.freeze=function(){return this},De.ka=function(){return this},De.toString=function(){return"MapKeySet("+this.ma.toString()+")"},De.add=function(){Rt("This Set is read-only: "+this.toString())},De.contains=function(a){return this.ma.contains(a)},De.has=function(a){return this.contains(a)},De.remove=function(){Rt("This Set is read-only: "+this.toString())},De.delete=function(a){return this.remove(a)},De.clear=function(){Rt("This Set is read-only: "+this.toString())},De.first=function(){var a=this.ma.ea;return a!==null?a.key:null},ir.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ir.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ir.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},ir.prototype.map=function(a){for(var y=new bn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},ir.prototype.filter=function(a){for(var y=new bn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},ir.prototype.copy=function(){return new ir(this.ma)},ir.prototype.Iv=function(){var a=new bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ir.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},ir.prototype.Hv=function(){var a=new ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},At.Object.defineProperties(ir.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Tr:new Ro(this.ma)}}}),ir.prototype.toList=ir.prototype.Hv,ir.prototype.toArray=ir.prototype.Fa,ir.prototype.toSet=ir.prototype.Iv,ir.prototype.first=ir.prototype.first,ir.prototype.clear=ir.prototype.clear,ir.prototype.delete=ir.prototype.delete,ir.prototype.remove=ir.prototype.remove,ir.prototype.has=ir.prototype.has,ir.prototype.contains=ir.prototype.contains,ir.prototype.add=ir.prototype.add,ir.prototype.thaw=ir.prototype.ka,ir.prototype.freeze=ir.prototype.freeze,ir.className="MapKeySet";function qi(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}qi.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},qi.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)},qi.prototype.Ad=function(){return this.next()},qi.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},qi.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},qi.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},qi.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},qi.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qi.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},qi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},At.Object.defineProperties(qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qi.prototype.first=qi.prototype.first,qi.prototype.hasNext=qi.prototype.Ad,qi.prototype.next=qi.prototype.next,qi.prototype.reset=qi.prototype.reset,qi.className="MapValueSetIterator";function Vr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Vr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Vr.className="KeyValuePair";function lo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}lo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},lo.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)},lo.prototype.Ad=function(){return this.next()},lo.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},lo.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},lo.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},lo.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},lo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ln;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},lo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ln;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},lo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},lo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},At.Object.defineProperties(lo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),lo.prototype.first=lo.prototype.first,lo.prototype.hasNext=lo.prototype.Ad,lo.prototype.next=lo.prototype.next,lo.prototype.reset=lo.prototype.reset,lo.className="MapIterator";function ki(a){Mr(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"&&Rt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=ki.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"Map()#"+Fr(this)},De.add=function(a,y){this._isFrozen&&Yn(this,a);var x=a;Yt(a)&&(x=Ho(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Vr(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},De.set=function(a,y){return this.add(a,y)},De.addAll=function(a){if(a===null)return this;if(Fn(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 ki)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},De.first=function(){return this.ea},ki.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ki.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ki.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ki.prototype.map=function(a){for(var y=new ki,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ki.prototype.filter=function(a){for(var y=new ki,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},De=ki.prototype,De.contains=function(a){var y=a;return Yt(a)&&(y=Fr(a),y===void 0)?!1:this.Tb[y]!==void 0},De.has=function(a){return this.contains(a)},De.I=function(a){var y=a;return Yt(a)&&(y=Fr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},De.get=function(a){return this.I(a)},De.remove=function(a){if(a===null)return!1;this._isFrozen&&Yn(this,a);var y=a;if(Yt(a)&&(y=Fr(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},De.delete=function(a){return this.remove(a)},De.clear=function(){this._isFrozen&&Yn(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()},ki.prototype.copy=function(){var a=new ki,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},ki.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 Vr(E.key,E.value),x++}return y},ki.prototype.Lf=function(){return new ir(this)},At.Object.defineProperties(ki.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Tr;var a=this.Sa;return a!==null?(a.reset(),a):new lo(this)}},iteratorKeys:{get:function(){return 0>=this.count?Tr:new Ro(this)}},iteratorValues:{get:function(){if(0>=this.count)return Tr;var a=this.jf;return a!==null?(a.reset(),a):new qi(this)}}}),ki.prototype.toKeySet=ki.prototype.Lf,ki.prototype.toArray=ki.prototype.Fa,ki.prototype.clear=ki.prototype.clear,ki.prototype.delete=ki.prototype.delete,ki.prototype.remove=ki.prototype.remove,ki.prototype.get=ki.prototype.get,ki.prototype.getValue=ki.prototype.I,ki.prototype.has=ki.prototype.has,ki.prototype.contains=ki.prototype.contains,ki.prototype.first=ki.prototype.first,ki.prototype.addAll=ki.prototype.addAll,ki.prototype.set=ki.prototype.set,ki.prototype.add=ki.prototype.add,ki.prototype.thaw=ki.prototype.ka,ki.prototype.freeze=ki.prototype.freeze,ki.className="Map";function ot(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Rt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Gr,ta,Hr,Uo,kr;ot.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},ot.prototype.h=function(a,y){return this.x=a,this.y=y,this},ot.prototype.sg=function(a,y){return this.x=a,this.y=y,this},ot.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},ot.prototype.copy=function(){var a=new ot;return a.x=this.x,a.y=this.y,a},De=ot.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fr(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 ot(x,E)}return new ot}function no(a){return a.x.toString()+" "+a.y.toString()}De.toString=function(){return"Point("+this.x+","+this.y+")"},De.D=function(a){return a instanceof ot?this.x===a.x&&this.y===a.y:!1},De.hi=function(a,y){return this.x===a&&this.y===y},De.Xa=function(a){return Ft.B(this.x,a.x)&&Ft.B(this.y,a.y)},De.add=function(a){return this.x+=a.x,this.y+=a.y,this},De.re=function(a){return this.x-=a.x,this.y-=a.y,this},De.offset=function(a,y){return this.x+=a,this.y+=y,this},ot.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},De=ot.prototype,De.scale=function(a,y){return this.x*=a,this.y*=y,this},De.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},De.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},De.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},De.ab=function(a){return Po(a.x-this.x,a.y-this.y)},De.direction=function(a,y){return Po(a-this.x,y-this.y)};function Po(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}De.Ry=function(a,y){return Ft.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},De.fA=function(a,y,x,b){return Ft.qh(a,y,x,b,this.x,this.y,this),this},De.gA=function(a,y){return Ft.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},De.uA=function(a,y,x,b){return Ft.No(this.x,this.y,a,y,x,b,this),this},De.vA=function(a,y){return Ft.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},De.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},De.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},De.transform=function(a){return a.Ga(this),this};function Wr(a,y){return y.Cd(a),a}function na(a,y,x,b,E,z){var te=E-x,re=z-b,se=te*te+re*re;x-=a,b-=y;var ue=-x*te-b*re;return 0>=ue||ue>=se?(te=E-a,re=z-y,Math.min(x*x+b*b,te*te+re*re)):(a=te*b-re*x,a*a/se)}function tr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Zi(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)}De.w=function(){return isFinite(this.x)&&isFinite(this.y)},ot.alloc=function(){var a=Pr.pop();return a===void 0?new ot:a},ot.allocAt=function(a,y){var x=Pr.pop();return x===void 0?new ot(a,y):(x.x=a,x.y=y,x)},ot.free=function(a){Pr.push(a)},ot.prototype.isReal=ot.prototype.w,ot.prototype.setSpot=ot.prototype.yi,ot.prototype.setRectSpot=ot.prototype.xi,ot.prototype.snapToGridPoint=ot.prototype.vA,ot.prototype.snapToGrid=ot.prototype.uA,ot.prototype.projectOntoLineSegmentPoint=ot.prototype.gA,ot.prototype.projectOntoLineSegment=ot.prototype.fA,ot.intersectingLineSegments=function(a,y,x,b,E,z,te,re){return Ft.Rl(a,y,x,b,E,z,te,re)},ot.prototype.compareWithLineSegmentPoint=ot.prototype.Ry,ot.compareWithLineSegment=function(a,y,x,b,E,z){return Ft.Fl(a,y,x,b,E,z)},ot.prototype.direction=ot.prototype.direction,ot.prototype.directionPoint=ot.prototype.ab,ot.prototype.normalize=ot.prototype.normalize,ot.prototype.distanceSquared=ot.prototype.zd,ot.prototype.distanceSquaredPoint=ot.prototype.Bf,ot.prototype.scale=ot.prototype.scale,ot.prototype.rotate=ot.prototype.rotate,ot.prototype.offset=ot.prototype.offset,ot.prototype.subtract=ot.prototype.re,ot.prototype.add=ot.prototype.add,ot.prototype.equalsApprox=ot.prototype.Xa,ot.prototype.equalTo=ot.prototype.hi,ot.prototype.equals=ot.prototype.D,ot.prototype.set=ot.prototype.set,ot.prototype.setTo=ot.prototype.sg;var Pr=[];ot.className="Point",ot.parse=fr,ot.stringify=no,ot.distanceLineSegmentSquared=na,ot.distanceSquared=tr,ot.direction=Zi,ot.Origin=Gr=new ot(0,0).ja(),ot.InfiniteTopLeft=ta=new ot(-1/0,-1/0).ja(),ot.InfiniteBottomRight=Hr=new ot(1/0,1/0).ja(),ot.SixPoint=Uo=new ot(6,6).ja(),ot.NoPoint=kr=new ot(NaN,NaN).ja(),ot.parse=fr,ot.stringify=no,ot.distanceLineSegmentSquared=na,ot.distanceSquared=tr,ot.direction=Zi;function ai(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):Rt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var xo,_o,Wo,ea,ka,Ja,cs;ai.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ai.prototype.h=function(a,y){return this.width=a,this.height=y,this},ai.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ai.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ai.prototype.copy=function(){var a=new ai;return a.width=this.width,a.height=this.height,a},De=ai.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ts(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 ai(x,E)}return new ai}function al(a){return a.width.toString()+" "+a.height.toString()}De.toString=function(){return"Size("+this.width+","+this.height+")"},De.D=function(a){return a instanceof ai?this.width===a.width&&this.height===a.height:!1},De.hi=function(a,y){return this.width===a&&this.height===y},De.Xa=function(a){return Ft.B(this.width,a.width)&&Ft.B(this.height,a.height)},De.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},De.w=function(){return isFinite(this.width)&&isFinite(this.height)},ai.alloc=function(){var a=Js.pop();return a===void 0?new ai:a},ai.free=function(a){Js.push(a)},ai.prototype.isReal=ai.prototype.w,ai.prototype.inflate=ai.prototype.Bc,ai.prototype.equalsApprox=ai.prototype.Xa,ai.prototype.equalTo=ai.prototype.hi,ai.prototype.equals=ai.prototype.D,ai.prototype.set=ai.prototype.set,ai.prototype.setTo=ai.prototype.sg;var Js=[];ai.className="Size",ai.parse=Ts,ai.stringify=al,ai.ZeroSize=xo=new ai(0,0).ja(),ai.OneSize=_o=new ai(1,1).ja(),ai.SixSize=Wo=new ai(6,6).ja(),ai.EightSize=ea=new ai(8,8).ja(),ai.TenSize=ka=new ai(10,10).ja(),ai.InfiniteSize=Ja=new ai(1/0,1/0).ja(),ai.NoSize=cs=new ai(NaN,NaN).ja(),ai.parse=Ts,ai.stringify=al;function vn(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 ot?(x=a.x,a=a.y,y instanceof ot?(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 ai?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Rt("Incorrect second argument supplied to Rect constructor "+y)):Rt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}De=vn.prototype,De.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},De.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Ms(a,y,x){a.width=y,a.height=x}De.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},De.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},De.dd=function(a){return this.x=a.x,this.y=a.y,this},De.tA=function(a){return this.width=a.width,this.height=a.height,this},vn.prototype.copy=function(){var a=new vn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},De=vn.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fu(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 vn(x,E,z,te)}return new vn}function gu(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}De.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},De.D=function(a){return a instanceof vn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},De.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},De.Xa=function(a){return Ft.B(this.x,a.x)&&Ft.B(this.y,a.y)&&Ft.B(this.width,a.width)&&Ft.B(this.height,a.height)};function ho(a,y){return Ft.$(a.x,y.x)&&Ft.$(a.y,y.y)&&Ft.$(a.width,y.width)&&Ft.$(a.height,y.height)}De.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},De.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},De.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},De.offset=function(a,y){return this.x+=a,this.y+=y,this},De.Bc=function(a,y){return ia(this,y,a,y,a)},De.Co=function(a){return ia(this,a.top,a.right,a.bottom,a.left)},De.Fv=function(a){return ia(this,-a.top,-a.right,-a.bottom,-a.left)},De.Hz=function(a,y,x,b){return ia(this,a,y,x,b)};function ia(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}De.Ex=function(a){return ja(this,a.x,a.y,a.width,a.height)},De.Uu=function(a,y,x,b){return ja(this,a,y,x,b)};function ja(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}De.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},De.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 Ko(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))}De.Ye=function(a){return ao(this,a.x,a.y,0,0)},De.ed=function(a){return ao(this,a.x,a.y,a.width,a.height)},De.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),ao(this,a,y,x,b)};function ao(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}De.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 Jo(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 xs(a,y,x,b,E,z,te,re){return a>te+E||E>x+a?!1:!(y>re+z||z>b+y)}De.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},De.Mz=function(){return this.width===0&&this.height===0},vn.alloc=function(){var a=bo.pop();return a===void 0?new vn:a},vn.allocAt=function(a,y,x,b){var E=bo.pop();return E===void 0?new vn(a,y,x,b):E.h(a,y,x,b)},vn.free=function(a){bo.push(a)},At.Object.defineProperties(vn.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 ot(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ai(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new ot(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}}}),vn.prototype.isEmpty=vn.prototype.Mz,vn.prototype.isReal=vn.prototype.w,vn.intersectsLineSegment=function(a,y,x,b,E,z,te,re){return Ft.Fx(a,y,x,b,E,z,te,re)},vn.prototype.setSpot=vn.prototype.yi,vn.prototype.union=vn.prototype.Kv,vn.prototype.unionRect=vn.prototype.ed,vn.prototype.unionPoint=vn.prototype.Ye,vn.prototype.intersects=vn.prototype.Vu,vn.prototype.intersectsRect=vn.prototype.Yc,vn.prototype.intersect=vn.prototype.Uu,vn.prototype.intersectRect=vn.prototype.Ex,vn.prototype.grow=vn.prototype.Hz,vn.prototype.subtractMargin=vn.prototype.Fv,vn.prototype.addMargin=vn.prototype.Co,vn.prototype.inflate=vn.prototype.Bc,vn.prototype.offset=vn.prototype.offset,vn.prototype.contains=vn.prototype.contains,vn.prototype.containsRect=vn.prototype.Re,vn.prototype.containsPoint=vn.prototype.ca,vn.prototype.equalsApprox=vn.prototype.Xa,vn.prototype.equalTo=vn.prototype.hi,vn.prototype.equals=vn.prototype.D,vn.prototype.setSize=vn.prototype.tA,vn.prototype.setPoint=vn.prototype.dd,vn.prototype.set=vn.prototype.set,vn.prototype.setTo=vn.prototype.sg;var Kr=null,To=null,bo=[];vn.className="Rect",vn.parse=fu,vn.stringify=gu,vn.contains=Jo,vn.intersects=xs,vn.ZeroRect=Kr=new vn(0,0,0,0).ja(),vn.NoRect=To=new vn(NaN,NaN,NaN,NaN).ja(),vn.parse=fu,vn.stringify=gu,vn.contains=Jo,vn.intersects=xs;function ji(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):Rt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ji.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ji.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},ji.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ji.prototype.copy=function(){var a=new ji;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},De=ji.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ds(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 ji;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new ji(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new ji(x,E);for(var te=NaN;a[y]==="";)y++;return(b=a[y++])&&(te=parseFloat(b)),isNaN(te)?new ji(x,E):new ji(x,E,z,te)}return new ji}function hs(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}De.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},De.D=function(a){return a instanceof ji?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},De.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},De.Xa=function(a){return Ft.B(this.top,a.top)&&Ft.B(this.right,a.right)&&Ft.B(this.bottom,a.bottom)&&Ft.B(this.left,a.left)},De.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ji.alloc=function(){var a=Iu.pop();return a===void 0?new ji:a},ji.free=function(a){Iu.push(a)},ji.prototype.isReal=ji.prototype.w,ji.prototype.equalsApprox=ji.prototype.Xa,ji.prototype.equalTo=ji.prototype.hi,ji.prototype.equals=ji.prototype.D,ji.prototype.set=ji.prototype.set,ji.prototype.setTo=ji.prototype.sg;var dl=null,pu=null,Iu=[];ji.className="Margin",ji.parse=ds,ji.stringify=hs,ji.ZeroMargin=dl=new ji(0,0,0,0).ja(),ji.TwoMargin=pu=new ji(2,2,2,2).ja(),ji.parse=ds,ji.stringify=hs;function Ii(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 Da,bs,Xl,Ql,mu,Xr,Vc,bl,wl,pl,Ju,qu,ml,Il,ud,cd,Tc,Ed,dd,kc,hc,Ml,Cd,Ac,fc,wo,aa,hl,ks,fs,Ua,qa,ws,gs,gc,vu;Ii.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ii.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Ii.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ii.prototype.copy=function(){var a=new Ii;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},De=Ii.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this};function es(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Pd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Da;if(a==="TopLeft")return bs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Xl;if(a==="TopRight")return Ql;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return mu;if(a==="Center")return Xr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Vc;if(a==="BottomLeft")return bl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return wl;if(a==="BottomRight")return pl;if(a==="TopSide")return Ju;if(a==="LeftSide")return qu;if(a==="RightSide")return ml;if(a==="BottomSide")return Il;if(a==="TopBottomSides")return ud;if(a==="LeftRightSides")return cd;if(a==="TopLeftSides")return Tc;if(a==="TopRightSides")return Ed;if(a==="BottomLeftSides")return dd;if(a==="BottomRightSides")return kc;if(a==="NotTopSide")return hc;if(a==="NotLeftSide")return Ml;if(a==="NotRightSide")return Cd;if(a==="NotBottomSide")return Ac;if(a==="AllSides")return fc;if(a==="Default")return wo;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 Ii(x,E,z,te)}return new Ii}function vh(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}De.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(Da)?"None":this.D(bs)?"TopLeft":this.D(Xl)?"Top":this.D(Ql)?"TopRight":this.D(mu)?"Left":this.D(Xr)?"Center":this.D(Vc)?"Right":this.D(bl)?"BottomLeft":this.D(wl)?"Bottom":this.D(pl)?"BottomRight":this.D(Ju)?"TopSide":this.D(qu)?"LeftSide":this.D(ml)?"RightSide":this.D(Il)?"BottomSide":this.D(ud)?"TopBottomSides":this.D(cd)?"LeftRightSides":this.D(Tc)?"TopLeftSides":this.D(Ed)?"TopRightSides":this.D(dd)?"BottomLeftSides":this.D(kc)?"BottomRightSides":this.D(hc)?"NotTopSide":this.D(Ml)?"NotLeftSide":this.D(Cd)?"NotRightSide":this.D(Ac)?"NotBottomSide":this.D(fc)?"AllSides":this.D(wo)?"Default":"None"},De.D=function(a){return a instanceof Ii?(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},De.gv=function(){return new Ii(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},De.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(aa))a=qu;else if(a.D(hl))a=ml;else if(a.D(ks))a=Ju;else if(a.D(fs))a=Il;else return!1;return a=a.offsetY,(this.offsetY&a)===a},De.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},De.Mc=function(){return isNaN(this.x)||isNaN(this.y)},De.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},De.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},De.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Ii.alloc=function(){var a=hd.pop();return a===void 0?new Ii:a},Ii.free=function(a){hd.push(a)},Ii.prototype.isDefault=Ii.prototype.Xb,Ii.prototype.isNone=Ii.prototype.ys,Ii.prototype.isSide=Ii.prototype.$c,Ii.prototype.isNoSpot=Ii.prototype.Mc,Ii.prototype.isSpot=Ii.prototype.sb,Ii.prototype.includesSide=Ii.prototype.Hf,Ii.prototype.opposite=Ii.prototype.gv,Ii.prototype.equals=Ii.prototype.D,Ii.prototype.set=Ii.prototype.set,Ii.prototype.setTo=Ii.prototype.sg;var hd=[];Ii.className="Spot",Ii.parse=Pd,Ii.stringify=vh,Ii.None=Da=es(new Ii(0,0,0,0),0).ja(),Ii.Default=wo=es(new Ii(0,0,-1,0),-1).ja(),Ii.TopLeft=bs=new Ii(0,0,0,0).ja(),Ii.TopCenter=Xl=new Ii(.5,0,0,0).ja(),Ii.TopRight=Ql=new Ii(1,0,0,0).ja(),Ii.LeftCenter=mu=new Ii(0,.5,0,0).ja(),Ii.Center=Xr=new Ii(.5,.5,0,0).ja(),Ii.RightCenter=Vc=new Ii(1,.5,0,0).ja(),Ii.BottomLeft=bl=new Ii(0,1,0,0).ja(),Ii.BottomCenter=wl=new Ii(.5,1,0,0).ja(),Ii.BottomRight=pl=new Ii(1,1,0,0).ja(),Ii.MiddleTop=Ua=Xl,Ii.MiddleLeft=qa=mu,Ii.MiddleRight=ws=Vc,Ii.MiddleBottom=gs=wl,Ii.Top=ks=Xl,Ii.Left=aa=mu,Ii.Right=hl=Vc,Ii.Bottom=fs=wl,Ii.TopSide=Ju=es(new Ii(0,0,1,1),1).ja(),Ii.LeftSide=qu=es(new Ii(0,0,1,2),1).ja(),Ii.RightSide=ml=es(new Ii(0,0,1,4),1).ja(),Ii.BottomSide=Il=es(new Ii(0,0,1,8),1).ja(),Ii.TopBottomSides=ud=es(new Ii(0,0,1,9),1).ja(),Ii.LeftRightSides=cd=es(new Ii(0,0,1,6),1).ja(),Ii.TopLeftSides=Tc=es(new Ii(0,0,1,3),1).ja(),Ii.TopRightSides=Ed=es(new Ii(0,0,1,5),1).ja(),Ii.BottomLeftSides=dd=es(new Ii(0,0,1,10),1).ja(),Ii.BottomRightSides=kc=es(new Ii(0,0,1,12),1).ja(),Ii.NotTopSide=hc=es(new Ii(0,0,1,14),1).ja(),Ii.NotLeftSide=Ml=es(new Ii(0,0,1,13),1).ja(),Ii.NotRightSide=Cd=es(new Ii(0,0,1,11),1).ja(),Ii.NotBottomSide=Ac=es(new Ii(0,0,1,7),1).ja(),Ii.AllSides=fc=es(new Ii(0,0,1,15),1).ja(),gc=new Ii(.156,.156).ja(),vu=new Ii(.844,.844).ja(),Ii.parse=Pd,Ii.stringify=vh;function Ar(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ar.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},Ar.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},Ar.prototype.copy=function(){var a=new Ar;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},Ar.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ar.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},Ar.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ar.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ar.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},Ar.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},Ar.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},Ar.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},De=Ar.prototype,De.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},De.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},De.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)},De.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))},De.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))},De.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,se=this.m22,ue=this.dx,ce=this.dy,ve=y*z+x*re+ue,Ce=y*te+x*se+ce,Le=b*z+x*re+ue,Me=b*te+x*se+ce;return x=y*z+E*re+ue,y=y*te+E*se+ce,z=b*z+E*re+ue,b=b*te+E*se+ce,E=Math.min(ve,Le),ve=Math.max(ve,Le),Le=Math.min(Ce,Me),Ce=Math.max(Ce,Me),E=Math.min(E,x),ve=Math.max(ve,x),Le=Math.min(Le,y),Ce=Math.max(Ce,y),E=Math.min(E,z),ve=Math.max(ve,z),Le=Math.min(Le,b),Ce=Math.max(Ce,b),a.h(E,Le,ve-E,Ce-Le),a},Ar.alloc=function(){var a=Td.pop();return a===void 0?new Ar:a},Ar.free=function(a){Td.push(a)},Ar.prototype.transformRect=Ar.prototype.pp,Ar.prototype.transformPoint=Ar.prototype.Ga,Ar.prototype.scale=Ar.prototype.scale,Ar.prototype.translate=Ar.prototype.translate,Ar.prototype.rotate=Ar.prototype.rotate,Ar.prototype.invert=Ar.prototype.Vj,Ar.prototype.multiplyInverted=Ar.prototype.bv,Ar.prototype.multiply=Ar.prototype.multiply,Ar.prototype.reset=Ar.prototype.reset,Ar.prototype.isIdentity=Ar.prototype.ws,Ar.prototype.equals=Ar.prototype.D,Ar.prototype.setTransform=Ar.prototype.setTransform,Ar.prototype.set=Ar.prototype.set;var Td=[];Ar.className="Transform",Ar.xF="54a702f3e53909c447824c6706603faf4c";var Ft={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ft.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ft.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,se=x;else re=x,se=a;if(y<b)var ue=y,ce=b;else ue=b,ce=y;if(a===x)return ue<=te&&te<=ce&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=se&&y-E<=te&&te<=y+E;if(se+=E,re-=E,re<=z&&z<=se&&(ce+=E,ue-=E,ue<=te&&te<=ce))if(se-re>ce-ue)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,se,ue,ce,ve){if(Ft.Yb(a,y,te,re,ve,x,b)&&Ft.Yb(a,y,te,re,ve,E,z))return Ft.Yb(a,y,te,re,ve,ue,ce);var Ce=(a+x)/2,Le=(y+b)/2,Me=(x+E)/2,We=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Ce+Me)/2,x=(Le+We)/2,Me=(Me+E)/2,We=(We+z)/2;var ut=(b+Me)/2,tt=(x+We)/2;return Ft.cs(a,y,Ce,Le,b,x,ut,tt,se,ue,ce,ve)||Ft.cs(ut,tt,Me,We,E,z,te,re,se,ue,ce,ve)},ax:function(a,y,x,b,E,z,te,re,se){var ue=(x+E)/2,ce=(b+z)/2;return se.h((((a+x)/2+ue)/2+(ue+(E+te)/2)/2)/2,(((y+b)/2+ce)/2+(ce+(z+re)/2)/2)/2),se},My:function(a,y,x,b,E,z,te,re){var se=(x+E)/2,ue=(b+z)/2;return Zi(((a+x)/2+se)/2,((y+b)/2+ue)/2,(se+(E+te)/2)/2,(ue+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,te,re,se,ue){if(Ft.Yb(a,y,te,re,se,x,b)&&Ft.Yb(a,y,te,re,se,E,z))ao(ue,a,y,0,0),ao(ue,te,re,0,0);else{var ce=(a+x)/2,ve=(y+b)/2,Ce=(x+E)/2,Le=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(ce+Ce)/2,x=(ve+Le)/2,Ce=(Ce+E)/2,Le=(Le+z)/2;var Me=(b+Ce)/2,We=(x+Le)/2;Ft.Dl(a,y,ce,ve,b,x,Me,We,se,ue),Ft.Dl(Me,We,Ce,Le,E,z,te,re,se,ue)}return ue},Qe:function(a,y,x,b,E,z,te,re,se,ue){if(Ft.Yb(a,y,te,re,se,x,b)&&Ft.Yb(a,y,te,re,se,E,z))ue.length===0&&(ue.push(a),ue.push(y)),ue.push(te),ue.push(re);else{var ce=(a+x)/2,ve=(y+b)/2,Ce=(x+E)/2,Le=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(ce+Ce)/2,x=(ve+Le)/2,Ce=(Ce+E)/2,Le=(Le+z)/2;var Me=(b+Ce)/2,We=(x+Le)/2;Ft.Qe(a,y,ce,ve,b,x,Me,We,se,ue),Ft.Qe(Me,We,Ce,Le,E,z,te,re,se,ue)}return ue},jv:function(a,y,x,b,E,z,te,re,se,ue){if(Ft.Yb(a,y,E,z,ue,x,b))return Ft.Yb(a,y,E,z,ue,re,se);var ce=(a+x)/2,ve=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Ce=(ce+x)/2,Le=(ve+b)/2;return Ft.jv(a,y,ce,ve,Ce,Le,te,re,se,ue)||Ft.jv(Ce,Le,x,b,E,z,te,re,se,ue)},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(Ft.Yb(a,y,E,z,te,x,b))ao(re,a,y,0,0),ao(re,E,z,0,0);else{var se=(a+x)/2,ue=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ce=(se+x)/2,ve=(ue+b)/2;Ft.iv(a,y,se,ue,ce,ve,te,re),Ft.iv(ce,ve,x,b,E,z,te,re)}return re},ep:function(a,y,x,b,E,z,te,re){if(Ft.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 se=(a+x)/2,ue=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ce=(se+x)/2,ve=(ue+b)/2;Ft.ep(a,y,se,ue,ce,ve,te,re),Ft.ep(ce,ve,x,b,E,z,te,re)}return re},Eo:function(a,y,x,b,E,z,te,re,se,ue,ce,ve,Ce,Le){if(Ft.Yb(a,y,te,re,Ce,x,b)&&Ft.Yb(a,y,te,re,Ce,E,z))return!Ft.Rl(a,y,te,re,se,ue,ce,ve)||(Ce=(a-te)*(ue-ve)-(y-re)*(se-ce),Ce===0)?!1:(Le.h(((a*re-y*te)*(se-ce)-(a-te)*(se*ve-ue*ce))/Ce,((a*re-y*te)*(ue-ve)-(y-re)*(se*ve-ue*ce))/Ce),!0);var Me=(a+x)/2,We=(y+b)/2,ut=(x+E)/2,tt=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Me+ut)/2,x=(We+tt)/2,ut=(ut+E)/2,tt=(tt+z)/2;var mt=(b+ut)/2,xt=(x+tt)/2,Pt=1/0,Mt=!1,en=0,pi=0;return Ft.Eo(a,y,Me,We,b,x,mt,xt,se,ue,ce,ve,Ce,Le)&&(a=(Le.x-se)*(Le.x-se)+(Le.y-ue)*(Le.y-ue),a<Pt&&(Pt=a,Mt=!0,en=Le.x,pi=Le.y)),Ft.Eo(mt,xt,ut,tt,E,z,te,re,se,ue,ce,ve,Ce,Le)&&(Le.x-se)*(Le.x-se)+(Le.y-ue)*(Le.y-ue)<Pt&&(Mt=!0,en=Le.x,pi=Le.y),Mt&&(Le.x=en,Le.y=pi),Mt},Fo:function(a,y,x,b,E,z,te,re,se,ue,ce,ve,Ce){var Le=0;if(Ft.Yb(a,y,te,re,Ce,x,b)&&Ft.Yb(a,y,te,re,Ce,E,z)){if(Ce=(a-te)*(ue-ve)-(y-re)*(se-ce),Ce===0)return Le;var Me=((a*re-y*te)*(se-ce)-(a-te)*(se*ve-ue*ce))/Ce,We=((a*re-y*te)*(ue-ve)-(y-re)*(se*ve-ue*ce))/Ce;if(Me>=ce)return Le;if((se>ce?se-ce:ce-se)<(ue>ve?ue-ve:ve-ue)){if(y<re?(se=y,a=re):(se=re,a=y),We<se||We>a)return Le}else if(a<te?(se=a,a=te):se=te,Me<se||Me>a)return Le;0<Ce?Le++:0>Ce&&Le--}else{Me=(a+x)/2,We=(y+b)/2;var ut=(x+E)/2,tt=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Me+ut)/2,x=(We+tt)/2,ut=(ut+E)/2,tt=(tt+z)/2;var mt=(b+ut)/2,xt=(x+tt)/2;Le+=Ft.Fo(a,y,Me,We,b,x,mt,xt,se,ue,ce,ve,Ce),Le+=Ft.Fo(mt,xt,ut,tt,E,z,te,re,se,ue,ce,ve,Ce)}return Le},qh:function(a,y,x,b,E,z,te){return Ft.$(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)):Ft.$(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,se){return Ft.B(a,x)&&Ft.B(y,b)?(se.h(a,y),!1):Ft.$(E,te)?Ft.$(a,x)?(Ft.qh(a,y,x,b,E,z,se),!1):Ft.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,se):(re=(re-z)/(te-E),Ft.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(se.h(a,E),!1):x>y?(se.h(a,y),!1):(se.h(a,x),!0)):(te=(b-y)/(x-a),Ft.$(re,te)?(Ft.qh(a,y,x,b,E,z,se),!1):(E=(te*a-re*E+z-y)/(te-re),Ft.$(te,0)?(a<x?(b=a,a=x):b=x,E<b?(se.h(b,y),!1):E>a?(se.h(a,y),!1):(se.h(E,y),!0)):Ft.qh(a,y,x,b,E,te*(E-a)+y,se))))},MA:function(a,y,x,b,E){return Ft.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,se,ue){function ce(ut,tt){var mt=(ut-a)*(ut-a)+(tt-y)*(tt-y);mt<ve&&(ve=mt,se.h(ut,tt))}var ve=1/0;ce(se.x,se.y);var Ce=0,Le=0,Me=0,We=0;if(E<te?(Ce=E,Le=te):(Ce=te,Le=E),z<re?(Me=E,We=te):(Me=te,We=E),Ce=(Le-Ce)/2+ue,ue=(We-Me)/2+ue,E=(E+te)/2,z=(z+re)/2,Ce===0||ue===0)return se;if(.5>(x>a?x-a:a-x)){if(Ce=1-(x-E)*(x-E)/(Ce*Ce),0>Ce)return se;Ce=Math.sqrt(Ce),b=-ue*Ce+z,ce(x,ue*Ce+z),ce(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ce*Ce)+x*x/(ue*ue),re=2*x*(y-x*a)/(ue*ue)-2*x*z/(ue*ue)-2*E/(Ce*Ce),Ce=re*re-4*b*(2*x*a*z/(ue*ue)-2*y*z/(ue*ue)+z*z/(ue*ue)+E*E/(Ce*Ce)-1+(y-x*a)*(y-x*a)/(ue*ue)),0>Ce)return se;Ce=Math.sqrt(Ce),ue=(-re+Ce)/(2*b),ce(ue,x*ue-x*a+y),Ce=(-re-Ce)/(2*b),ce(Ce,x*Ce-x*a+y)}return se},Ff:function(a,y,x,b,E,z,te,re,se){var ue=1e21,ce=a,ve=y;if(Ft.Ve(a,y,a,b,E,z,te,re,se)){var Ce=(se.x-E)*(se.x-E)+(se.y-z)*(se.y-z);Ce<ue&&(ue=Ce,ce=se.x,ve=se.y)}return Ft.Ve(x,y,x,b,E,z,te,re,se)&&(Ce=(se.x-E)*(se.x-E)+(se.y-z)*(se.y-z),Ce<ue&&(ue=Ce,ce=se.x,ve=se.y)),Ft.Ve(a,y,x,y,E,z,te,re,se)&&(y=(se.x-E)*(se.x-E)+(se.y-z)*(se.y-z),y<ue&&(ue=y,ce=se.x,ve=se.y)),Ft.Ve(a,b,x,b,E,z,te,re,se)&&(a=(se.x-E)*(se.x-E)+(se.y-z)*(se.y-z),a<ue&&(ue=a,ce=se.x,ve=se.y)),se.h(ce,ve),1e21>ue},us:function(a,y,x){return Ft.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 se=a+x,ue=y+b;return E===te?(z<re?(te=z,z=re):te=re,a<=E&&E<=se&&te<=ue&&z>=y):z===re?(E<te?(re=E,E=te):re=te,y<=z&&z<=ue&&re<=se&&E>=a):!!(Jo(a,y,x,b,E,z)||Jo(a,y,x,b,te,re)||Ft.Rl(a,y,se,y,E,z,te,re)||Ft.Rl(se,y,se,ue,E,z,te,re)||Ft.Rl(se,ue,a,ue,E,z,te,re)||Ft.Rl(a,ue,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>=Ft.Fl(a,y,x,b,E,z)*Ft.Fl(a,y,x,b,te,re)&&0>=Ft.Fl(E,z,te,re,a,y)*Ft.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 se=te/2,ue=b;if(b=Math.min(2*te,Math.abs(E-b)),1e-5>b)return se=ue+re*Math.min(b,se),re=a+x*Math.cos(ue),ue=y+x*Math.sin(ue),a+=x*Math.cos(se),y+=x*Math.sin(se),x=(re+a)/2,se=(ue+y)/2,z.push([re,ue,x,se,x,se,a,y]),z;for(;1e-5<b;)E=ue+re*Math.min(b,se),z.push(Ft.Vy(x,ue,E,a,y)),b-=Math.abs(E-ue),ue=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),se=-re,ue=te*te+se*se,ce=ue+te*te+se*re;return ue=4/3*(Math.sqrt(2*ue*ce)-ce)/(te*re-se*te),re=te-ue*se,te=se+ue*te,se=-te,ue=z+y,z=Math.cos(ue),ue=Math.sin(ue),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-te*ue,E+re*ue+te*z,b+re*z-se*ue,E+re*ue+se*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 se=te===0?a:y,ue=te===0?x:b;return(te===0?E:z)&&(ue=-ue),te=re,x=te===0?x:b,(te===0?E:z)&&(x=-x),Ft.az(se,te===0?a:y,ue,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,se=-z+Math.sqrt(a*a+te*te);y=re;for(var ue=0;9999999999>ue&&(y=.5*(re+se),!(y===re||y===se));++ue){var ce=a/(y+E),ve=te/(y+z);if(ce=ce*ce+ve*ve-1,0<ce)re=y;else if(0>ce)se=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};Ft.za=Ft.AA;function si(a){Mr(this),this.l=2,a===void 0&&(a=si.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===si.o?this.ee=new ln:(si.V===null&&(si.V=new ln().freeze()),this.ee=si.V),this.aq=this.ee.Ja,this.Ip=new vn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=bs,this.gg=pl,this.Rk=this.Sk=NaN,this.Uf=Bn}si.prototype.copy=function(){var a=new si;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===si.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},si.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},si.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==si.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},si.prototype.ka=function(){if(Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==si.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},si.prototype.Xa=function(a){if(!(a instanceof si))return!1;if(this.type!==a.type)return this.type===si.j&&a.type===si.o?yh(this,a):a.type===si.j&&this.type===si.o?yh(a,this):!1;if(this.type===si.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 Ft.B(this.startX,a.startX)&&Ft.B(this.startY,a.startY)&&Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)};function yh(a,y){return a.type!==si.j||y.type!==si.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ft.B(a.startX,y.startX)&&Ft.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Go&&Ft.B(a.endX,y.endX)&&Ft.B(a.endY,y.endY))))}si.ia=function(a){return a.toString()},si.prototype.qb=function(a){a.classType===si&&(this.type=a)},si.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case si.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 si.u:var y=new vn(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 si.F:if(y=new vn(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 si.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()}},si.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},si.parse=function(a,y){function x(){return We>=Pt-1?!0:ue[We+1].match(Mt)!==null}function b(){return We++,ue[We]}function E(vr){var ar=parseFloat(b()),So=parseFloat(b());ut===ut.toLowerCase()&&(ar=xt.x+ar,So=xt.y+So),vr.h(ar,So)}function z(){return E(xt),xt}function te(){return E(mt),mt}function re(){var vr=tt.toLowerCase();return vr!=="c"&&vr!=="s"&&vr!=="q"&&vr!=="t"?xt:new ot(2*xt.x-mt.x,2*xt.y-mt.y)}y===void 0&&(y=!1);var se=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(se,"$1 $2"),a=a.replace(se,"$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 ue=a.split(" ");for(a=0;a<ue.length;a++){var ce=ue[a];if(ce.match(/(\.[0-9]*)(\.)/gm)!==null){se=gn();for(var ve="",Ce=!1,Le=0;Le<ce.length;Le++){var Me=ce[Le];Me!=="."||Ce?Me==="."?(se.push(ve),ve="."):ve+=Me:(Ce=!0,ve+=Me)}for(se.push(ve),ue.splice(a,1),ce=0;ce<se.length;ce++)ue.splice(a+ce,0,se[ce]);a+=se.length-1,In(se)}}var We=-1,ut="",tt="";se=new ot(0,0);var mt=new ot(0,0),xt=new ot(0,0),Pt=ue.length;a=RS(null),Ce=ve=ce=!1,Le=!0,Me=null;for(var Mt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(We>=Pt-1);)if(tt=ut,ut=b(),ut!=="")switch(ut.toUpperCase()){case"X":Le=!0,ve=ce=!1;break;case"M":for(Me=z(),a.mc===null||Le===!0?(np(a,Me.x,Me.y,ce,!ve,Ce),Le=!1):a.moveTo(Me.x,Me.y),se.assign(xt);!x();)Me=z(),a.lineTo(Me.x,Me.y);break;case"L":for(;!x();)Me=z(),a.lineTo(Me.x,Me.y);break;case"H":for(;!x();)xt=new ot((ut===ut.toLowerCase()?xt.x:0)+parseFloat(b()),xt.y),a.lineTo(xt.x,xt.y);break;case"V":for(;!x();)xt=new ot(xt.x,(ut===ut.toLowerCase()?xt.y:0)+parseFloat(b())),a.lineTo(xt.x,xt.y);break;case"C":for(;!x();){Me=new ot,E(Me);var en=te(),pi=z();Dh(a,Me.x,Me.y,en.x,en.y,pi.x,pi.y)}break;case"S":for(;!x();)Me=re(),en=te(),pi=z(),Dh(a,Me.x,Me.y,en.x,en.y,pi.x,pi.y);break;case"Q":for(;!x();)Me=te(),en=z(),nv(a,Me.x,Me.y,en.x,en.y);break;case"T":for(;!x();)mt=Me=re(),en=z(),nv(a,Me.x,Me.y,en.x,en.y);break;case"B":for(;!x();){Me=parseFloat(b()),en=parseFloat(b()),pi=parseFloat(b());var Ai=parseFloat(b()),Ei=parseFloat(b()),ii=Ei,Un=!1;x()||(ii=parseFloat(b()),x()||(Un=parseFloat(b())!==0)),ut===ut.toLowerCase()&&(pi+=xt.x,Ai+=xt.y),a.arcTo(Me,en,pi,Ai,Ei,ii,Un)}break;case"A":for(;!x();)Me=Math.abs(parseFloat(b())),en=Math.abs(parseFloat(b())),pi=parseFloat(b()),Ei=Ai=!1,Un=ii=0,ii=b(),ii.length===1?(Ai=!!parseFloat(ii),Ei=!!parseFloat(b()),ii=parseFloat(b())):ii.length===2?(Ai=!!parseFloat(ii[0]),Ei=!!parseFloat(ii[1]),ii=parseFloat(b())):(Ai=!!parseFloat(ii[0]),Ei=!!parseFloat(ii[1]),ii=parseFloat(ii.slice(2))),Un=parseFloat(b()),ut===ut.toLowerCase()&&(ii=xt.x+ii,Un=xt.y+Un),xt.h(ii,Un),c1(a,Me,en,pi,Ai,Ei,ii,Un);break;case"Z":u1(a),xt.assign(se);break;case"F":for(Me="",en=1;ue[We+en];)if(ue[We+en]==="0")Ce=!0,en++;else if(ue[We+en].match(/[Uu]/)!==null)en++;else if(ue[We+en].match(Mt)===null)en++;else{Me=ue[We+en];break}Me.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Me="",en=1;ue[We+en];)if(ue[We+en].match(/[Ff]/)!==null)en++;else if(ue[We+en].match(Mt)===null)en++;else{Me=ue[We+en];break}Me.match(/[Mm]/)?ve=!0:a.mc.isShadowed=!1}if(se=a.os,iv=a,y)for(y=se.figures.iterator;y.next();)y.value.isFilled=!0;return se},si.Ha=function(a,y){for(var x=a.length,b=ot.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}ot.free(b)},si.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===si.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},si.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===si.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),qh(this,a,!1),ao(a,0,0,0,0),a.freeze()},si.prototype.ix=function(){var a=new vn;return qh(this,a,!0),a};function qh(a,y,x){switch(a.type){case si.j:case si.u:case si.F:x?y.h(a.od,a.pd,0,0):ao(y,a.od,a.pd,0,0),ao(y,a.Dc,a.Ec,0,0);break;case si.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):ao(y,z.startX,z.startY,0,0);for(var te=z.segments.s,re=te.length,se=z.startX,ue=z.startY,ce=0;ce<re;ce++){var ve=te[ce];switch(ve.type){case Go:case Za:se=ve.endX,ue=ve.endY,ao(y,se,ue,0,0);break;case Ks:Ft.Dl(se,ue,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.5,y),se=ve.endX,ue=ve.endY;break;case Jl:Ft.iv(se,ue,ve.point1X,ve.point1Y,ve.endX,ve.endY,.5,y),se=ve.endX,ue=ve.endY;break;case Ga:case yu:var Ce=ve.type===Ga?El(ve,z):yl(ve,z,se,ue),Le=Ce.length;if(Le===0){se=ve.type===Ga?ve.centerX:ve.endX,ue=ve.type===Ga?ve.centerY:ve.endY,ao(y,se,ue,0,0);break}ve=null;for(var Me=0;Me<Le;Me++)ve=Ce[Me],Ft.Dl(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,y);ve!==null&&(se=ve[6],ue=ve[7]);break;default:Rt("Unknown Segment type: "+ve.type)}}}break;default:Rt("Unknown Geometry type: "+a.type)}}si.prototype.normalize=function(){this._isFrozen&&Yn(this);var a=this.ix();return this.offset(-a.x,-a.y),new ot(-a.x,-a.y)},si.prototype.offset=function(a,y){return this._isFrozen&&Yn(this),this.transform(1,0,0,1,a,y),this},si.prototype.scale=function(a,y){return this._isFrozen&&Yn(this),this.transform(a,0,0,y,0,0),this},si.prototype.rotate=function(a,y,x){this._isFrozen&&Yn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ar.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ar.free(b),this},De=si.prototype,De.transform=function(a,y,x,b,E,z){switch(this.type){case si.j:case si.u:case si.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 si.o:for(var se=this.figures.s,ue=se.length,ce=0;ce<ue;ce++){var ve=se[ce];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 Ce=ve.length,Le=0;Le<Ce;Le++){var Me=ve[Le];switch(Me.type){case Go:case Za:te=Me.endX,re=Me.endY,Me.endX=te*a+re*x+E,Me.endY=te*y+re*b+z;break;case Ks:te=Me.point1X,re=Me.point1Y,Me.point1X=te*a+re*x+E,Me.point1Y=te*y+re*b+z,te=Me.point2X,re=Me.point2Y,Me.point2X=te*a+re*x+E,Me.point2Y=te*y+re*b+z,te=Me.endX,re=Me.endY,Me.endX=te*a+re*x+E,Me.endY=te*y+re*b+z;break;case Jl:te=Me.point1X,re=Me.point1Y,Me.point1X=te*a+re*x+E,Me.point1Y=te*y+re*b+z,te=Me.endX,re=Me.endY,Me.endX=te*a+re*x+E,Me.endY=te*y+re*b+z;break;case Ga:te=Me.centerX,re=Me.centerY,Me.centerX=te*a+re*x+E,Me.centerY=te*y+re*b+z,y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Me.startAngle+=te),0>a&&(Me.startAngle=180-Me.startAngle,Me.sweepAngle=-Me.sweepAngle),0>b&&(Me.startAngle=-Me.startAngle,Me.sweepAngle=-Me.sweepAngle),Me.radiusX*=Math.sqrt(a*a+x*x),Me.radiusY!==void 0&&(Me.radiusY*=Math.sqrt(y*y+b*b));break;case yu:if(te=Me.endX,re=Me.endY,Me.endX=te*a+re*x+E,Me.endY=te*y+re*b+z,Me.radiusX===0||Me.radiusY===0)break;y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Me.xAxisRotation+=te),0>a&&(Me.xAxisRotation=180-Me.xAxisRotation,Me.isClockwiseArc=!Me.isClockwiseArc),0>b&&(Me.xAxisRotation=-Me.xAxisRotation,Me.isClockwiseArc=!Me.isClockwiseArc),Me.radiusX*=Math.sqrt(a*a+x*x),Me.radiusY*=Math.sqrt(y*y+b*b);break;default:Rt("Unknown Segment type: "+Me.type)}}}}return this._isInvalidBounds=!0,this},De.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 si.j:return Ft.Yb(x,b,E,z,y,a.x,a.y);case si.u:var te=vn.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),vn.free(te),a;case si.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 si.o:return pc(this,a,y,!0,!1);default:return!1}};function pc(a,y,x,b,E){var z=y.x;y=y.y;for(var te=a.bounds.x-20,re=0,se,ue,ce,ve,Ce=a.figures.s,Le=Ce.length,Me=0;Me<Le;Me++){var We=Ce[Me],ut=!We.isEvenOdd;if(We.isFilled){if(b&&We.ca(z,y,x))return!0;var tt=We.segments;se=We.startX,ue=We.startY;for(var mt=se,xt=ue,Pt=tt.s,Mt=0;Mt<=tt.length;Mt++){var en=void 0;if(Mt!==tt.length){en=Pt[Mt];var pi=en.type;a=en.endX,ve=en.endY}else pi=Go,a=mt,ve=xt;switch(pi){case Za:if(mt=mc(z,y,te,y,se,ue,mt,xt),isNaN(mt))return!0;re+=mt,mt=a,xt=ve;break;case Go:if(se=mc(z,y,te,y,se,ue,a,ve),isNaN(se))return!0;re+=se;break;case Ks:ce=Ft.Fo(se,ue,en.point1X,en.point1Y,en.point2X,en.point2Y,a,ve,te,y,z,y,.5),re+=ce;break;case Jl:ce=Ft.Fo(se,ue,(se+2*en.point1X)/3,(ue+2*en.point1Y)/3,(2*en.point1X+a)/3,(2*en.point1Y+ve)/3,a,ve,te,y,z,y,.5),re+=ce;break;case Ga:case yu:pi=en.type===Ga?El(en,We):yl(en,We,se,ue);var Ai=pi.length;if(Ai===0){if(se=mc(z,y,te,y,se,ue,en.type===Ga?en.centerX:en.endX,en.type===Ga?en.centerY:en.endY),isNaN(se))return!0;re+=se;break}en=null;for(var Ei=0;Ei<Ai;Ei++){if(en=pi[Ei],Ei===0){if(ce=mc(z,y,te,y,se,ue,en[0],en[1]),isNaN(ce))return!0;re+=ce}ce=Ft.Fo(en[0],en[1],en[2],en[3],en[4],en[5],en[6],en[7],te,y,z,y,.5),re+=ce}en!==null&&(a=en[6],ve=en[7]);break;default:Rt("Unknown Segment type: "+en.type)}se=a,ue=ve}if(ut){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(We.ca(z,y,E?x:x+2))return!0}return!1}function mc(a,y,x,b,E,z,te,re){if(Ft.Yb(E,z,te,re,.05,a,y))return NaN;var se=(a-x)*(z-re);if(se===0)return 0;var ue=((a*b-y*x)*(E-te)-(a-x)*(E*re-z*te))/se;if(y=(a*b-y*x)*(z-re)/se,ue>=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(ue<E||ue>te)return 0}else if(ue<te||ue>E)return 0;return 0<se?1:-1}function Lc(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}De.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new ot),this.type===si.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 se=b[re],ue=se.length;for(a=0;a<ue;a++){var ce=se[a];if(te+ce>=z)return b=z-te,b=ce===0?0:b/ce,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+=ce}}return y},De.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===si.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],se=re.length;for(a=0;a<se;a++){var ue=re[a];if(z+ue>=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+=ue}}return NaN},De.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===si.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 se=b[re],ue=se.length;for(a=0;a<ue;a++){var ce=se[a];if(te+ce>=z)return b=z-te,b=ce===0?0:b/ce,ce=x[re],x=ce[2*a],re=ce[2*a+1],E=ce[2*a+2],a=ce[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+=ce}}return y},De.xx=function(a){if(this.type===si.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=ot.alloc();return Ft.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,ot.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/te)}}else if(this.type===si.u){te=this.startX,re=this.startY;var se=this.endX;if(E=this.endY,te!==se||re!==E){y=se-te,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,te),se),a=Math.min(Math.max(a,re),E),te=Math.abs(b-te),se=Math.abs(b-se),re=Math.abs(a-re),E=Math.abs(a-E);var ue=Math.min(te,se,re,E);if(ue===re)return b/z;if(ue===se)return(y+a)/z;if(ue===E)return(2*y+x-b)/z;if(ue===te)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=ot.alloc(),E=1/0,re=te=0,se=y.length;for(var ce=ue=0,ve=0;ve<se;ve++)for(var Ce=y[ve],Le=x[ve],Me=Ce.length,We=0;We<Me;We+=2){var ut=Ce[We],tt=Ce[We+1];if(We!==0){Ft.qh(ue,ce,ut,tt,a.x,a.y,b);var mt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);mt<E&&(E=mt,te=re,te+=Math.sqrt((b.x-ue)*(b.x-ue)+(b.y-ce)*(b.y-ce))),re+=Le[(We-2)/2]}ue=ut,ce=tt}return ot.free(b),a=te/z,0>a?0:1<a?1:a}return 0};function Sh(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===si.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===si.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===si.F){var z=new ps;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var te=new io(Ga);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=El(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 se=a[re];Ft.Qe(te,z,se[2],se[3],se[4],se[5],se[6],se[7],.5,b),te=se[6],z=se[7]}}y.push(b),x.push(kd(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,se=z;for(var ue=E.segments.s,ce=ue.length,ve=0;ve<ce;ve++){var Ce=ue[ve];switch(Ce.type){case Za:4<=b.length&&(y.push(b),x.push(kd(b))),b=[],b.push(Ce.endX),b.push(Ce.endY),te=Ce.endX,z=Ce.endY,re=te,se=z;break;case Go:b.push(Ce.endX),b.push(Ce.endY),te=Ce.endX,z=Ce.endY;break;case Ks:Ft.Qe(te,z,Ce.point1X,Ce.point1Y,Ce.point2X,Ce.point2Y,Ce.endX,Ce.endY,.5,b),te=Ce.endX,z=Ce.endY;break;case Jl:Ft.ep(te,z,Ce.point1X,Ce.point1Y,Ce.endX,Ce.endY,.5,b),te=Ce.endX,z=Ce.endY;break;case Ga:var Le=El(Ce,E),Me=Le.length;if(Me===0){b.push(Ce.centerX),b.push(Ce.centerY),te=Ce.centerX,z=Ce.centerY;break}for(var We=0;We<Me;We++){var ut=Le[We];Ft.Qe(te,z,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,b),te=ut[6],z=ut[7]}break;case yu:if(Le=yl(Ce,E,te,z),Me=Le.length,We=Ce.endX,ut=Ce.endY,Me===0){b.push(We),b.push(ut),te=We,z=ut;break}for(We=0;We<Me;We++)ut=Le[We],Ft.Qe(te,z,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,b),te=ut[6],z=ut[7];break;default:Rt("Segment not of valid type: "+Ce.type)}Ce.isClosed&&(b.push(re),b.push(se))}4<=b.length&&(y.push(b),x.push(kd(b)))}}}function kd(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(tr(x,b,te,re))),x=te,b=re}return y}De.add=function(a){return this.ee.add(a),this},De.pm=function(a,y,x,b,E,z,te,re){return this._isFrozen&&Yn(this),this.fg=new Ii(a,y,E,z).freeze(),this.gg=new Ii(x,b,te,re).freeze(),this},At.Object.defineProperties(si.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 Sh(this),this.tk}},flattenedLengths:{get:function(){return Sh(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===si.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===si.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&&Yn(this,a),this.na=a,a===si.o?this.ee=new ln:(si.V===null&&(si.V=new ln().freeze()),this.ee=si.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Yn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Yn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Yn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Yn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Yn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Yn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Yn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Yn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),si.prototype.setSpots=si.prototype.pm,si.prototype.add=si.prototype.add,si.prototype.getFractionForPoint=si.prototype.xx,si.prototype.getPointAndAngleAlongPath=si.prototype.Qu,si.prototype.getAngleAlongPath=si.prototype.wx,si.prototype.getPointAlongPath=si.prototype.Pu,si.prototype.containsPoint=si.prototype.ca,si.prototype.transform=si.prototype.transform,si.prototype.rotate=si.prototype.rotate,si.prototype.scale=si.prototype.scale,si.prototype.offset=si.prototype.offset,si.prototype.normalize=si.prototype.normalize,si.prototype.computeBoundsWithoutOrigin=si.prototype.ix,si.prototype.equalsApprox=si.prototype.Xa,si.className="Geometry",si.j=new Ht(si,"Line",0),si.u=new Ht(si,"Rectangle",1),si.F=new Ht(si,"Ellipse",2),si.o=new Ht(si,"Path",3),si.V=null,si.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",si.className="Geometry",si.stringify=si.ia,si.fillPath=si.nb,si.parse=si.parse,si.Line=si.j,si.Rectangle=si.u,si.Ellipse=si.F,si.Path=si.o;function ps(a,y,x,b,E){Mr(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 ln,this.sr=this.pl.Ja,this.fw=null}ps.prototype.copy=function(){var a=new ps;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},De=ps.prototype,De.Xa=function(a){if(!(a instanceof ps&&Ft.B(this.startX,a.startX)&&Ft.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},De.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},De.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},De.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},De.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},De.add=function(a){return this.pl.add(a),this},De.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,te=E,re=this.segments.s,se=re.length,ue=0;ue<se;ue++){var ce=re[ue];switch(ce.type){case Za:z=ce.endX,te=ce.endY,b=ce.endX,E=ce.endY;break;case Go:if(Ft.Yb(b,E,ce.endX,ce.endY,x,a,y))return!0;b=ce.endX,E=ce.endY;break;case Ks:if(Ft.cs(b,E,ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,ce.endX,ce.endY,.5,a,y,x))return!0;b=ce.endX,E=ce.endY;break;case Jl:if(Ft.jv(b,E,ce.point1X,ce.point1Y,ce.endX,ce.endY,.5,a,y,x))return!0;b=ce.endX,E=ce.endY;break;case Ga:case yu:var ve=ce.type===Ga?El(ce,this):yl(ce,this,b,E),Ce=ve.length,Le=ce.type===Ga?ce.centerX:ce.endX,Me=ce.type===Ga?ce.centerY:ce.endY;if(Ce===0){if(Ft.Yb(b,E,Le,Me,x,a,y))return!0;b=Le,E=Me;break}for(Le=null,Me=0;Me<Ce;Me++)if(Le=ve[Me],Me===0&&Ft.Yb(b,E,Le[0],Le[1],x,a,y)||Ft.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:Rt("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(b!==z||E!==te)&&Ft.Yb(b,E,z,te,x,a,y))return!0}return!1},At.Object.defineProperties(ps.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&&Yn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Yn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Yn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Yn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Yn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Yn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ps.prototype.add=ps.prototype.add,ps.prototype.equalsApprox=ps.prototype.Xa,ps.className="PathFigure";function io(a,y,x,b,E,z,te,re){Mr(this),a===void 0&&(a=Go),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===yu?(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===Ga&&(z=Math.max(z,0)),this.Wh=z,typeof te=="number"?(a===Ga&&(te=Math.max(te,0)),this.Pg=te):this.Pg=0),this.ae=null}io.prototype.copy=function(){var a=new io;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},De=io.prototype,De.Xa=function(a){if(!(a instanceof io)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Za:case Go:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY);case Ks:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.point1X,a.point1X)&&Ft.B(this.point1Y,a.point1Y)&&Ft.B(this.point2X,a.point2X)&&Ft.B(this.point2Y,a.point2Y);case Jl:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.point1X,a.point1X)&&Ft.B(this.point1Y,a.point1Y);case Ga:return Ft.B(this.startAngle,a.startAngle)&&Ft.B(this.sweepAngle,a.sweepAngle)&&Ft.B(this.centerX,a.centerX)&&Ft.B(this.centerY,a.centerY)&&Ft.B(this.radiusX,a.radiusX)&&Ft.B(this.radiusY,a.radiusY);case yu:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ft.B(this.xAxisRotation,a.xAxisRotation)&&Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.radiusX,a.radiusX)&&Ft.B(this.radiusY,a.radiusY);default:return!1}},De.qb=function(a){a.classType===io&&(this.type=a)},De.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 Go:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ks: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 Jl: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 Ga: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 yu: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":"")},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.close=function(){return this.isClosed=!0,this};function El(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=Ft.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var te=Ar.alloc();te.reset(),x<b?te.scale(1,b/x):te.scale(x/b,1),si.Ha(z,te),Ar.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 yl(a,y,x,b){function E(We,ut,tt,mt){return(We*mt<ut*tt?-1:1)*Math.acos((We*tt+ut*mt)/(Math.sqrt(We*We+ut*ut)*Math.sqrt(tt*tt+mt*mt)))}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,se=a.isClockwiseArc,ue=a.Dc,ce=a.Ec,ve=Math.cos(te),Ce=Math.sin(te),Le=ve*(x-ue)/2+Ce*(b-ce)/2;te=-Ce*(x-ue)/2+ve*(b-ce)/2;var Me=Le*Le/(y*y)+te*te/(z*z);return 1<Me&&(y*=Math.sqrt(Me),z*=Math.sqrt(Me)),Me=(re===se?-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(Me)&&(Me=0),re=Me*y*te/z,Me=Me*-z*Le/y,isNaN(re)&&(re=0),isNaN(Me)&&(Me=0),x=(x+ue)/2+ve*re-Ce*Me,b=(b+ce)/2+Ce*re+ve*Me,ce=E(1,0,(Le-re)/y,(te-Me)/z),ve=(Le-re)/y,ue=(te-Me)/z,Le=(-Le-re)/y,re=(-te-Me)/z,te=E(ve,ue,Le,re),Le=(ve*Le+ue*re)/(Math.sqrt(ve*ve+ue*ue)*Math.sqrt(Le*Le+re*re)),-1>=Le?te=Math.PI:1<=Le&&(te=0),!se&&0<te&&(te-=2*Math.PI),se&&0>te&&(te+=2*Math.PI),se=y>z?1:y/z,Le=y>z?z/y:1,y=Ft.jx(0,0,y>z?y:z,ce,ce+te,!0),z=Ar.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(se,Le),si.Ha(y,z),Ar.free(z),a.ae=y,a.ae}At.Object.defineProperties(io.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&&Yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&vi(a,">= zero",io,"radiusX"),this._isFrozen&&Yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&vi(a,">= zero",io,"radiusY"),this._isFrozen&&Yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Yn(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&&Yn(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&&Yn(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&&Yn(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&&Yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),io.prototype.equalsApprox=io.prototype.Xa;var Za=new Ht(io,"Move",0),Go=new Ht(io,"Line",1),Ks=new Ht(io,"Bezier",2),Jl=new Ht(io,"QuadraticBezier",3),Ga=new Ht(io,"Arc",4),yu=new Ht(io,"SvgArc",4);io.className="PathSegment",io.Move=Za,io.Line=Go,io.Bezier=Ks,io.QuadraticBezier=Jl,io.Arc=Ga,io.SvgArc=yu;function sl(){this.H=null,this.xu=new ot(0,0).freeze(),this.mt=new ot(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||Ah(x,a,y),y},sl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ah(x,a,y),y.assign(x.Ps(y))),y},At.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 fd(){this.H=null,this.xa="",this.ar=this.Lr=null}fd.prototype.copy=function(){var a=new fd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},fd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},At.Object.defineProperties(fd.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}}}),fd.className="DiagramEvent";function da(){this.Fm=ha,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}da.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},da.prototype.copy=function(){var a=new da;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=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Yt(y)&&typeof y.J=="function"?y.J():y,a},da.prototype.qb=function(a){a.classType===da&&(this.change=a)},da.prototype.toString=function(){var a="";return a=this.change===Cl?a+"* ":this.change===ha?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===Cl?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=qn(this.object)),this.oldValue!==null&&(a+=" old: "+qn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+qn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},da.prototype.I=function(a){return a?this.oldValue:this.newValue},da.prototype.Dz=function(a){return a?this.oldParam:this.newParam},da.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},da.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},da.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},da.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},At.Object.defineProperties(da.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===Cl&&(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}}}),da.prototype.redo=da.prototype.redo,da.prototype.canRedo=da.prototype.canRedo,da.prototype.undo=da.prototype.undo,da.prototype.canUndo=da.prototype.canUndo,da.prototype.getParam=da.prototype.Dz,da.prototype.getValue=da.prototype.I,da.prototype.clear=da.prototype.clear;var Cl=new Ht(da,"Transaction",-1),ha=new Ht(da,"Property",0),Fa=new Ht(da,"Insert",1),rs=new Ht(da,"Remove",2);da.className="ChangedEvent",da.Transaction=Cl,da.Property=ha,da.Insert=Fa,da.Remove=rs;function ms(){this.o=new ln().freeze(),this.xa="",this.j=!1}ms.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},ms.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()},ms.prototype.canUndo=function(){return this.isComplete},ms.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()}},ms.prototype.canRedo=function(){return this.isComplete},ms.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()}},ms.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ki,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===ha&&b.object){var E=y.get(b.object);E||(E=new ki,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()}},At.Object.defineProperties(ms.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}}}),ms.prototype.optimize=ms.prototype.ak,ms.prototype.redo=ms.prototype.redo,ms.prototype.canRedo=ms.prototype.canRedo,ms.prototype.undo=ms.prototype.undo,ms.prototype.canUndo=ms.prototype.canUndo,ms.prototype.clear=ms.prototype.clear,ms.className="Transaction";function Sa(){this.Pt=new bn,this.Jd=!1,this.u=new ln().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new ln().freeze(),this.hl=new ln,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Sa.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},Sa.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},Sa.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},De=Sa.prototype,De.Xw=function(a){this.Pt.add(a)},De.Rx=function(a){this.Pt.remove(a)},De.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},De.eb=function(a){return a===void 0&&(a=""),gd(this,!0,a)},De.Kf=function(){return gd(this,!1,"")};function gd(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Oi("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}De.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()}},Sa.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Sa.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){Oi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Sa.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Sa.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){Oi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Sa.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new da;for(b.change=Cl,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Sa.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ms);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||Oi("Change not within a transaction: "+x.toString()))}},Sa.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},At.Object.defineProperties(Sa.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}}}),Sa.prototype.handleChanged=Sa.prototype.Tu,Sa.prototype.redo=Sa.prototype.redo,Sa.prototype.undo=Sa.prototype.undo,Sa.prototype.canUndo=Sa.prototype.canUndo,Sa.prototype.discardHistoryAfterIndex=Sa.prototype.lx,Sa.prototype.rollbackTransaction=Sa.prototype.Kf,Sa.prototype.commitTransaction=Sa.prototype.eb,Sa.prototype.startTransaction=Sa.prototype.Ea,Sa.prototype.removeModel=Sa.prototype.Rx,Sa.prototype.addModel=Sa.prototype.Xw,Sa.prototype.clear=Sa.prototype.clear,Sa.className="UndoManager";function eo(){Mr(this),this.H=tc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new sl,this.Zr=-1}eo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Gn(this.constructor)},eo.prototype.updateAdornments=function(){},eo.prototype.canStart=function(){return this.isEnabled},eo.prototype.doStart=function(){},eo.prototype.doActivate=function(){this.isActive=!0},eo.prototype.doDeactivate=function(){this.isActive=!1},eo.prototype.doStop=function(){},eo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},eo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},eo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},eo.prototype.doMouseMove=function(){},eo.prototype.doMouseUp=function(){this.stopTool()},eo.prototype.doMouseWheel=function(){},eo.prototype.canStartMultiTouch=function(){return!0},eo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ot.allocAt(NaN,NaN)),b=y.So(1,ot.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}ot.free(x),ot.free(b)},eo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ot.allocAt(NaN,NaN)),b=y.So(1,ot.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 ot((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}ot.free(x),ot.free(b)},eo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},eo.prototype.doKeyUp=function(){},eo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},eo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},eo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Er?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||(Er?y.meta:y.control)||y.shift||a.clearSelection()}},eo.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,ef(a,b,x),b.handled};function ef(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)}}}eo.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}},eo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},eo.prototype.doCurrentObjectChanged=function(){},eo.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===Ad&&!y.shift||E===Wu&&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===Ad&&y.shift||E===Wu&&!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)}}},eo.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},eo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Ci(function(){x.doWaitAfter(b)},a)},eo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Et.clearTimeout(this.Zr),this.Zr=-1},eo.prototype.doWaitAfter=function(){},eo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof co);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},eo.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},At.Object.defineProperties(eo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Qt&&(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}}}),eo.prototype.startTransaction=eo.prototype.Ea,eo.className="Tool";function sa(){eo.call(this),this.name="ToolManager",this.hb=new ln,this.ob=new ln,this.Hb=new ln,this.F=this.V=850,this.o=new ai(2,2).ja(),this.Ha=5e3,this.ia=Wu,this.u=Yd,this.Mp=this.j=null,this.zj=-1}on(sa,eo),sa.prototype.initializeStandardTools=function(){},sa.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof co&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},sa.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Zc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===$c){y.bubbles=!0;return}if(this.gestureBehavior===Zc)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===Wu?this.mouseWheelBehavior=Ad:this.mouseWheelBehavior===Ad&&(this.mouseWheelBehavior=Wu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},sa.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===$c){y.bubbles=!0;return}if(this.gestureBehavior===Zc)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}}Mf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Mf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}sa.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof co&&(y===a||y.rg(a))||this.hideToolTip()},sa.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()))},sa.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)},sa.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 co)||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()},sa.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof co){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 Nr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Et.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Ci(function(){E.hideToolTip()},a)}},sa.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}},sa.prototype.hideToolTip=function(){this.zj!==-1&&(Et.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof co?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Nr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},sa.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()},sa.prototype.doMouseWheel=function(){this.standardMouseWheel()},sa.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},sa.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},sa.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},sa.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},sa.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)},At.Object.defineProperties(sa.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 co?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}}}),sa.prototype.replaceStandardTool=sa.prototype.gb;var Wu=new Ht(sa,"WheelScroll",0),Ad=new Ht(sa,"WheelZoom",1),Of=new Ht(sa,"WheelNone",2),Yd=new Ht(sa,"GestureZoom",3),Zc=new Ht(sa,"GestureCancel",4),$c=new Ht(sa,"GestureNone",5);sa.className="ToolManager",sa.WheelScroll=Wu,sa.WheelZoom=Ad,sa.WheelNone=Of,sa.GestureZoom=Yd,sa.GestureCancel=Zc,sa.GestureNone=$c;function la(){eo.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 ot(NaN,NaN),this.Fr=new ot,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new bn().freeze(),this.ia=new oe,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Mu;on(la,eo),la.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},la.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},la.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,(Er?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},la.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),Vt=null,this.isActive=!0,this.tl.set(a.position),Ld(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&&ul(a),zf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Vt=this,hn=this.diagram,this.doSimulatedDragOut()))};function Ld(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ri?(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 Ni,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}la.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},la.prototype.Pd=function(a){return a===void 0?new Nn(Gr):this.isGridSnapEnabled?new Nn(new ot(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Nn(a.copy())},la.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Nc(this),nh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Mu.count){for(var y=Mu,x=y.length,b=0;b<x;b++){var E=y.M(b);Ic(E),Su(E),Nc(E),E.diagram.ug()}y.clear()}Ic(this),this.tl.h(NaN,NaN),hn!==null&&(hn.currentCursor=""),Vt=hn=null,Su(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Md(a,!0)},la.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Nc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,wh(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function xh(){var a=Vt;Su(a),Mc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}la.prototype.doCancel=function(){Su(this),Mc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},la.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},la.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ku(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")):Mc(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 ki,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 ri&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Ld(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,zh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Su(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 ri&&(x.value.point=new ot(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ic(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 Vu(a,y,x){var b=a.diagram,E=a.startPoint,z=ot.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),ot.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(ul(b),b.hk())}la.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Dc(b,a,y,this.dragOptions,x)};function Mc(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 ri&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),zh(b,-E.x,-E.y)}y.bd()}}function bh(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Ol(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=wh(a,E,b),!a.isActive&&Vt===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Sr)){var se=x.mouseDragOver;se!==null&&(se(E),te=!0)}if(!a.isActive&&Vt===null||(a.doDragOver(y,b),!a.isActive&&Vt===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)}la.prototype.findDragOverObject=function(a){var y=this;return Fl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof co||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},la.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 wh(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],se=re.mouseDragLeave;if(se!==null&&(se(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Vt===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Yc(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 Yc(a){var y=a.panel;return y!==null?y:a instanceof Bi&&!(a instanceof Sr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Rf(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ue){return b.findValidLinkablePort(ue,x)});a=ot.alloc();var z=1/0,te=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var se=re.ga(Xr,a);se=y.Bf(se),se<z&&(te=re,z=se)}}return ot.free(a),te}function Ol(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=Rf(a,x.i(0),!1),z!==null&&(te=z.part));var re=null,se=null;x.toNode===null&&(re=Rf(a,x.i(x.pointsCount-1),!0),re!==null&&(se=re.part)),E.isValidLink(te,z,se,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=se,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)):gr(E,te,z,se,re):gr(E,null,null,null,null)}}}}la.prototype.doDragOver=function(){};function Zu(a,y){var x=a.diagram;a.dragsLink&&Ol(a,!0),Nc(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;Eh(a,E,z),z=Yc(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Vt!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Si&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Vt!==null){for(a=vn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Si&&dt(x,b,a);vn.free(a)}}}function Eh(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Sr||(x=a.mouseDrop,x!==null&&x(y))}function dt(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 ri},!0,function(E){return E instanceof ri},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}la.prototype.doDropOnto=function(){},la.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()?(Ku(this,!1),zf(a,this.copiedParts),Vu(this,this.copiedParts,!1),nh(a,this.copiedParts)):this.mayMove()?(Su(this),Vu(this,this.draggedParts,!0)):this.mayDragOut()?(Ku(this,!1),Vu(this,this.copiedParts,!1)):Su(this),bh(this,a.lastInput.documentPoint))}},la.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?(Su(this),Ku(this,!0),zf(a,this.copiedParts),Vu(this,this.copiedParts,!1),nh(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,Su(this),this.mayMove()&&(Vu(this,this.draggedParts,!0),bh(this,a.lastInput.documentPoint))),this.Ym=!0,Zu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&pt(this),a.Ya(),nh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},la.prototype.simulatedMouseMove=function(a,y,x){if(Vt===null)return!1;var b=Vt.diagram;x instanceof Qt||(x=null);var E=hn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Vt.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),hn=x,x!==null&&x!==b&&(xh(),E=x.toolManager.findTool("Dragging"),E!==null&&(Mu.contains(E)||Mu.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)},la.prototype.simulatedMouseUp=function(a,y,x){if(Vt===null)return!1;var b=hn,E=Vt.diagram;if(x===null)return Vt.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Vt.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;hn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(xh(),Mu.contains(b)||Mu.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 ot),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=Vt,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function pt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Si&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}la.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Er?!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())},la.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())},la.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())},la.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},la.prototype.Az=function(){return Vt},la.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Vt;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},la.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Tl(a),a.animationManager.Cc(),a=Vt,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},la.prototype.doSimulatedDragLeave=function(){var a=Vt;a!==null&&a.doSimulatedDragOut(),this.doCancel()},la.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Vt;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;_t(this,y.draggedParts.Lf(),!1,a.firstInput),Vu(this,this.copiedParts,!1),bh(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},la.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Vt;if(y!==null){var x=y.diagram;if(y.Ym=!0,Su(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),_t(this,y.draggedParts.Lf(),!0,a.lastInput),Vu(this,this.copiedParts,!1);var b=new bn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Zu(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 _t(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=vn.alloc();E=b=1/0;for(var te=-1/0,re=-1/0,se=y.iterator;se.next();){var ue=se.value;if(ue.isVisible()){var ce=ue.location;ue=ce.x,ce=ce.y,isNaN(ue)||isNaN(ce)||(ue<b&&(b=ue),ce<E&&(E=ce),ue>te&&(te=ue),ce>re&&(re=ce))}}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,vn.free(z),z=a.Fr,te=new ki,re=ot.alloc(),se=y.iterator;se.next();)ue=se.value,ue instanceof ri&&ue.canCopy()&&(ce=x.I(ue),ce!==null&&(ce.points=ue.points,zh(ce,z.x-b,z.y-E),ce.suspendsRouting=!0,te.add(ce,a.Pd())));for(y=y.iterator;y.next();)ue=y.value,ue.Zc()&&ue.canCopy()&&(se=x.I(ue),se!==null&&(ue=ue.location,re.h(z.x-(b-ue.x),z.y-(E-ue.y)),se.location=re,se.Va(),te.add(se,a.Pd(re))));ot.free(re),a.copiedParts=te,Ld(a,te.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,zh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}la.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},la.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new ot},At.Object.defineProperties(la.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}}}),la.prototype.getDraggingSource=la.prototype.Az;var Vt=null,hn=null;la.className="DraggingTool",Mu=new ln,Hn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),sa.prototype.doCancel=function(){Vt!==null&&Vt.doCancel(),eo.prototype.doCancel.call(this)};function rn(){eo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ri,y=new Lr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Lr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Si,y=new Lr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=_o,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Si,y=new Lr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=_o,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 ki,this.Of=this.gj=this.Pf=null}on(rn,eo),rn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},rn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),te=ai.alloc();te.width=y.naturalBounds.width*z,te.height=y.naturalBounds.height*z,b.desiredSize=te,ai.free(te),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Xr,z=ot.alloc(),x.location=y.ga(Xr,z),ot.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},rn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=_o,y.fromSpot=Da,y.toSpot=Da),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},rn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},rn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Si){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)}},rn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Si))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Si)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},rn.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 Si){var se=te.ga(Xr,ot.alloc()),ue=x.x-se.x,ce=x.y-se.y;ot.free(se),se=ue*ue+ce*ce,se<b&&(ue=this.validPortsCache.I(te),ue!==null?ue&&(y=te,b=se):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=se):this.validPortsCache.add(te,!1))}}return y!==null&&(x=y.part,x instanceof Si&&(x.layer===null||x.layer.allowLink))?y:null},rn.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},rn.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},rn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},rn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Si))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Si))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},rn.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)},rn.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 bn;return b.add(a),Wn(this,x,y,b)};function Wn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Wn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Wn(a,y.labeledLink,x,b))))}rn.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!==sf){if(b===mg){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!Kn(this,a,y,x,!0)}if(b===vg){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!Kn(this,a,y,x,!0)}if(b===Vf)return a===y?a=!0:(b=new bn,b.add(y),a=jn(this,b,a,y,x)),!a;if(b===lf)return!Kn(this,a,y,x,!1);if(b===uf)return a===y?a=!0:(b=new bn,b.add(y),a=ci(this,b,a,y,x)),!a}return!0};function Kn(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&&Kn(a,te,x,b,E)))return!0}return!1}function jn(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&&jn(a,y,te,b,E)))return!0}return!1}function ci(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&&ci(a,y,re,b,E))return!0}}return!1}At.Object.defineProperties(rn.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}}}),rn.className="LinkingBaseTool";function yi(){rn.call(this),this.name="Linking",this.V={},this.F=null,this.K=mi,this.Xd=null}on(yi,rn),yi.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},yi.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 Si)))return null;var x=this.direction;if(x===mi||x===Ui){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===mi||x===Di)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},yi.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 Si&&(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 Si&&(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)},yi.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()},yi.prototype.doStop=function(){rn.prototype.doStop.call(this),this.startObject=null},yi.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 Si&&(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)}}},yi.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof ri)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)},yi.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},yi.prototype.doNoLink=function(){},At.Object.defineProperties(yi.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 mi=new Ht(yi,"Either",0),Ui=new Ht(yi,"ForwardsOnly",0),Di=new Ht(yi,"BackwardsOnly",0);yi.className="LinkingTool",yi.Either=mi,yi.ForwardsOnly=Ui,yi.BackwardsOnly=Di;function Ni(){rn.call(this),this.name="Relinking";var a=new Lr;a.figure="Diamond",a.desiredSize=ea,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Lr,a.figure="Diamond",a.desiredSize=ea,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new vn}on(Ni,rn),Ni.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ri){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)}},Ni.prototype.makeAdornment=function(a,y){var x=new co;return x.type=ei.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ni.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},Ni.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 co&&x.adornedPart instanceof ri))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=xo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=xo),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},Ni.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===jh)&&(x=_l),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}},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(){rn.prototype.doStop.call(this),this.handle=null},Ni.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 Si&&(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()}}},Ni.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},Ni.prototype.doNoRelink=function(){};function gr(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)}At.Object.defineProperties(Ni.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 co))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ni.className="RelinkingTool",Hn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Hn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ri(){eo.call(this),this.name="LinkReshaping";var a=new Lr;a.figure="Rectangle",a.desiredSize=Wo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Lr,a.figure="Diamond",a.desiredSize=ea,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new ot,this.Yq=new ln}on(Ri,eo),Ri.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:sr},Ri.prototype.om=function(a,y){a.reshapingBehavior=y},Ri.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ri){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)}},Ri.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new co,E.type=ei.Link,x=y.firstPickIndex;var z=y.lastPickIndex,te=b?1:0;if(y.resegmentable&&y.computeCurve()!==Yu)for(var re=x+te;re<z-te;re++){var se=this.makeResegmentHandle(a,re);se!==null&&(se.segmentIndex=re,se.segmentFraction=.5,se.fromMaxLinks=999,E.add(se))}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){se=y.i(x);var ue=y.i(x+1);Ft.B(se.x,ue.x)&&Ft.B(se.y,ue.y)&&(ue=y.i(x-1)),Ft.B(se.x,ue.x)?(this.om(re,Zr),re.cursor="n-resize"):Ft.B(se.y,ue.y)&&(this.om(re,br),re.cursor="w-resize")}else te===z-1&&b?(se=y.i(z-1),ue=y.i(z),Ft.B(se.x,ue.x)&&Ft.B(se.y,ue.y)&&(se=y.i(z+1)),Ft.B(se.x,ue.x)?(this.om(re,Zr),re.cursor="n-resize"):Ft.B(se.y,ue.y)&&(this.om(re,br),re.cursor="w-resize")):te!==z&&(this.om(re,ro),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Ri.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ri.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ri.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},Ri.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 ri){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}}},Ri.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ri.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ri.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ri.prototype.getResegmentingPoint=function(){return this.handle.ga(Xr)},Ri.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ri.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&&(ur(this,te,b,E,z,!0)||ur(this,te,b,E,z,!1))){var re=y.points.copy();ur(this,te,b,E,z,!0)?(re.cd(x-2,new ot(te.x,(z.y+te.y)/2)),re.cd(x+1,new ot(z.x,(z.y+te.y)/2))):(re.cd(x-2,new ot((z.x+te.x)/2,te.y)),re.cd(x+1,new ot((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&&(ur(this,b,E,z,te,!0)||ur(this,b,E,z,te,!1))&&(re=y.points.copy(),ur(this,b,E,z,te,!0)?(re.cd(x-1,new ot(b.x,(b.y+te.y)/2)),re.cd(x+2,new ot(te.x,(b.y+te.y)/2))):(re.cd(x-1,new ot((b.x+te.x)/2,b.y)),re.cd(x+2,new ot((b.x+te.x)/2,te.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else te=ot.alloc(),Ft.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()),ot.free(te)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ur(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}Ri.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===Zr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===br&&(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===Zr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===br&&(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);Ft.B(z.x,E.x)&&Ft.B(E.y,te.y)?(Ft.B(z.x,y.i(b-2).x)&&!Ft.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),Ft.B(te.y,y.i(b+2).y)&&!Ft.B(te.x,y.i(b+2).x)?y.m(b+1,te.x,a.y):y.L(b+1,te.x,a.y)):Ft.B(z.y,E.y)&&Ft.B(E.x,te.x)?(Ft.B(z.y,y.i(b-2).y)&&!Ft.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),Ft.B(te.x,y.i(b+2).x)&&!Ft.B(te.y,y.i(b+2).y)?y.m(b+1,a.x,te.y):y.L(b+1,a.x,te.y)):Ft.B(z.x,E.x)&&Ft.B(E.x,te.x)?(Ft.B(z.x,y.i(b-2).x)&&!Ft.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),Ft.B(te.x,y.i(b+2).x)&&!Ft.B(te.y,y.i(b+2).y)?y.m(b+1,a.x,te.y):y.L(b+1,a.x,te.y)):Ft.B(z.y,E.y)&&Ft.B(E.y,te.y)&&(Ft.B(z.y,y.i(b-2).y)&&!Ft.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),Ft.B(te.y,y.i(b+2).y)&&!Ft.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(Xr,ot.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,ot.alloc()),y.L(0,b.x,b.y),ot.free(z),ot.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(Xr,ot.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,ot.alloc()),y.L(y.pointsCount-1,a.x,a.y),ot.free(x),ot.free(a));y.zf()},Ri.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ro:return a;case Zr:return new ot(y.i(x).x,a.y);case br:return new ot(a.x,y.i(x).y);default:case sr:return y.i(x)}},At.Object.defineProperties(Ri.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 co))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}}}),Ri.prototype.setReshapingBehavior=Ri.prototype.om,Ri.prototype.getReshapingBehavior=Ri.prototype.Ru;var sr=new Ht(Ri,"None",0),br=new Ht(Ri,"Horizontal",1),Zr=new Ht(Ri,"Vertical",2),ro=new Ht(Ri,"All",3);Ri.className="LinkReshapingTool",Ri.None=sr,Ri.Horizontal=br,Ri.Vertical=Zr,Ri.All=ro,Hn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function pr(){eo.call(this),this.name="Resizing",this.o=new ai(1,1).freeze(),this.j=new ai(9999,9999).freeze(),this.yg=new ai(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Lr;a.alignmentFocus=Xr,a.figure="Rectangle",a.desiredSize=Wo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new ot,this.Dw=new ai,this.Tn=new ot,this.rt=new ai(0,0),this.qt=new ai(1/0,1/0),this.pt=new ai(1,1)}on(pr,eo),pr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ri)){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(),hf(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},pr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new co,y.type=ei.Spot,y.locationSpot=Xr;var x=new Hl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,bs)),y.add(this.makeHandle(a,Ql)),y.add(this.makeHandle(a,pl)),y.add(this.makeHandle(a,bl)),y.add(this.makeHandle(a,Ua)),y.add(this.makeHandle(a,ws)),y.add(this.makeHandle(a,gs)),y.add(this.makeHandle(a,qa))}else if(xc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},pr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},pr.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=Xr),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 ei)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},pr.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},pr.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))},pr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},pr.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},pr.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,ot.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),ot.free(E)}},pr.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,ot.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),ot.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},pr.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 Sr){var b=new ln;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new oe;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()}},pr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Xr);var te=this.adornedObject.naturalBounds,re=te.x,se=te.y,ue=te.x+te.width,ce=te.y+te.height,ve=1;if(!z){ve=te.width;var Ce=te.height;0>=ve&&(ve=1),0>=Ce&&(Ce=1),ve=Ce/ve}return Ce=ot.alloc(),Ft.No(a.x,a.y,re,se,E.width,E.height,Ce),a=te.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ce.x,ue-b.width),a.x=Math.min(a.x,ue-x.width),a.width=Math.max(ue-a.x,x.width),a.y=Math.max(Ce.y,ce-b.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-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=ue-a.width,a.y=ce-a.height)):1<=y.y?(a.x=Math.max(Ce.x,ue-b.width),a.x=Math.min(a.x,ue-x.width),a.width=Math.max(ue-a.x,x.width),a.height=Math.max(Math.min(Ce.y-se,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=ue-a.width)):(a.x=Math.max(Ce.x,ue-b.width),a.x=Math.min(a.x,ue-x.width),a.width=ue-a.x,z||(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve,a.y=se+.5*(ce-se-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ce.x-re,b.width),x.width),a.y=Math.max(Ce.y,ce-b.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-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=ce-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ce.x-re,b.width),x.width),a.height=Math.max(Math.min(Ce.y-se,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(Ce.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=se+.5*(ce-se-a.height))):0>=y.y?(a.y=Math.max(Ce.y,ce-b.height),a.y=Math.min(a.y,ce-x.height),a.height=ce-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*(ue-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ce.y-se,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*(ue-re-a.width))),ot.free(Ce),a},pr.prototype.computeReshape=function(){var a=Sn;return this.adornedObject instanceof Lr&&(a=D0(this.adornedObject)),!(a===ti||this.diagram.lastInput.shift)},pr.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},pr.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},pr.prototype.computeCellSize=function(){var a=new ai(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},At.Object.defineProperties(pr.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 co))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 co)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}}}),pr.className="ResizingTool",Hn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function _r(){eo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ot,this.ue=null;var a=new Lr;a.figure="Ellipse",a.desiredSize=ea,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new ot(NaN,NaN),this.u=0,this.F=50}on(_r,eo),_r.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)}},_r.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new co,y.type=ei.Position,y.locationSpot=Xr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(xc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_r.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},_r.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)},_r.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(Xr)},_r.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)},_r.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ot(NaN,NaN),this.isActive=a.isMouseCaptured=!1},_r.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_r.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},_r.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},_r.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()},_r.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()}},_r.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},At.Object.defineProperties(_r.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 co))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 co)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}}}),_r.className="RotatingTool",Hn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ko(){eo.call(this),this.name="ClickSelecting"}on(ko,eo),ko.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ko.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ko.className="ClickSelectingTool";function wr(){eo.call(this),this.name="Action",this.pk=null}on(wr,eo),wr.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},wr.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()},wr.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))}},wr.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()},wr.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())},wr.prototype.doStop=function(){this.pk=null},wr.className="ActionTool";function Br(){eo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ot(0,0)}on(Br,eo),Br.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)},Br.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Br.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 Bi)x.Zc()&&(xc(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Yt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=ot.allocAt(a.x,a.y);this.isGridSnapEnabled&&Bf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),ot.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},At.Object.defineProperties(Br.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}}}),Br.className="ClickCreatingTool";function xr(){eo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Bi;a.layerName="Tool",a.selectable=!1;var y=new Lr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}on(xr,eo),xr.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))},xr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},xr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},xr.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=ai.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ai.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},xr.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()},xr.prototype.computeBoxBounds=function(){var a=this.diagram;return new vn(a.firstInput.documentPoint,a.lastInput.documentPoint)},xr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Er?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 ln,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)}},At.Object.defineProperties(xr.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}}}),xr.className="DragSelectingTool";function $i(){eo.call(this),this.name="Panning",this.Xt=new ot,this.xy=new ot,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Et.document,"scroll",a.Kw,!1),a.stopTool()}}on($i,eo),$i.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())},$i.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Et.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},$i.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},$i.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},$i.prototype.doMouseMove=function(){this.move()},$i.prototype.doMouseUp=function(){this.move(),this.stopTool()},$i.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)}},At.Object.defineProperties($i.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),$i.className="PanningTool",Hn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Hn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Hn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Hn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Hn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Nr(){this.F=this.u=this.j=this.o=null}At.Object.defineProperties(Nr.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}}}),Nr.className="HTMLInfo";function Qr(a,y,x){this.text=a,this.hx=y,this.visible=x}Qr.className="ContextMenuButtonInfo";function fo(){eo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ot,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}on(fo,eo);function po(a){var y=new Nr;y.show=function(E,z,te){te.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ra=y,a.tu=function(){a.stopTool()},y=Pn("div");var x=Pn("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=Pn("style");Et.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",mr,!1),b.addEventListener(y,"selectstart",mr,!1),b.addEventListener(x,"contextmenu",mr,!1)),y.className="goCXforeground",x.className="goCXbackground",Et.document.body&&(Et.document.body.appendChild(y),Et.document.body.appendChild(x)),No=y,ts=x,os=!0}function mr(a){return a.preventDefault(),!1}fo.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)},fo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},fo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},fo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Qt||(a instanceof Nt?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},fo.prototype.doActivate=function(){},fo.prototype.doMouseDown=function(){if(eo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof co){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Lo(this)},fo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof co){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Lo(this)};function Lo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Nr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Fo(a,!0),a.isActive||a.stopTool())}fo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Fo(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=ra,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Nt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof co&&!a.currentContextMenu.visible&&a.stopTool()}}fo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},fo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof co){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 Nr&&a.show(y,x,this);this.currentContextMenu=a},fo.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}},fo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof co?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Nr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ea(a){var y=new ln;return y.add(new Qr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Qr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Qr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Qr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Qr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Qr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Qr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Qr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Qr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Qr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Qr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Qr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Qr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}fo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ea(this)),No.innerHTML="",ts.addEventListener("pointerdown",this.tu,!1);var y=this,x=Pn("ul");x.className="goCXul",No.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=Pn("li"),z.className="goCXli";var te=Pn("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)}}No.style.display="block",ts.style.display="block"},fo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ra){No.style.display="none",ts.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ts,"pointerdown",this.tu,!1),this.currentContextMenu=null}},At.Object.defineProperties(fo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof co?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return os===!1&&ra===null&&Ma&&po(this),ra},set:function(a){a===null&&(os=!0),ra=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ra=null,os=!1,ts=null,No=null;fo.className="ContextMenuTool",Hn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function to(){eo.call(this),this.name="TextEditing",this.Zh=new Xo,this.ia=null,this.V=$r,this.vj=null,this.qa=Yr,this.u=1,this.F=!0,this.o=null,this.j=new Nr,this.kt=null,ma(this,this.j)}on(to,eo);function ma(a,y){if(Ma){var x=Pn("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(uo)):E==="Tab"?(a.acceptText(yo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Yr){var b=a.kt;a.qa===Ao&&(a.qa=ua),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Yr){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 Xo&&z instanceof to)if(z.state===Vs)x.style.border="3px solid red",x.focus();else{var te=b.ga(Xr),re=E.position,se=E.scale,ue=b.Df()*se;ue<z.minimumEditorScale&&(ue=z.minimumEditorScale);var ce=b.naturalBounds.width*ue+6,ve=b.naturalBounds.height*ue+2,Ce=(te.x-re.x)*se;te=(te.y-re.y)*se,re=b.verticalAlignment,se=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ue,ve=re.y*ve-re.y*se+re.offsetY-(.5*ve-.5*se)-se/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*ue+"%",x.style.lineHeight="normal",x.style.width=ce+"px",x.style.left=(Ce-ce/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=ue,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)}}}to.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Sl&&Sl!==this&&(Sl.acceptText(Fs),Sl&&Sl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Xo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===$r&&!y.isSelected||this.starting===xa&&2>a.lastInput.clickCount)):!1},to.prototype.doStart=function(){Sl=this,this.textBlock!==null&&this.doActivate()},to.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 Xo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Ao;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new vn(this.textBlock.ga(bs),this.textBlock.ga(pl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},to.prototype.doCancel=function(){this.stopTool()},to.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},to.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Fs)},to.prototype.acceptText=function(a){switch(a){case Fs:this.qa===Os?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Ao||this.qa===Vs||this.qa===ua)&&(this.qa=ca,as(this));break;case $a:case uo:case yo:(uo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Ao||this.qa===Vs||this.qa===ua)&&(this.qa=ca,as(this))}};function as(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=Os,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=Vs,a.doError(E,z))}}to.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)},to.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},to.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Yr,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},to.prototype.doStop=function(){Sl=null},to.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)))},to.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},At.Object.defineProperties(to.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)}}}),to.prototype.measureTemporaryTextBlock=to.prototype.Lx;var $a=new Ht(to,"LostFocus",0),Fs=new Ht(to,"MouseDown",1),yo=new Ht(to,"Tab",2),uo=new Ht(to,"Enter",3),mo=new Ht(to,"SingleClick",0),$r=new Ht(to,"SingleClickSelected",1),xa=new Ht(to,"DoubleClick",2),Yr=new Ht(to,"StateNone",0),Ao=new Ht(to,"StateActive",1),ua=new Ht(to,"StateEditing",2),ca=new Ht(to,"StateValidating",3),Vs=new Ht(to,"StateInvalid",4),Os=new Ht(to,"StateValidated",5),Sl=null;to.className="TextEditingTool",to.LostFocus=$a,to.MouseDown=Fs,to.Tab=yo,to.Enter=uo,to.SingleClick=mo,to.SingleClickSelected=$r,to.DoubleClick=xa,to.StateNone=Yr,to.StateActive=Ao,to.StateEditing=ua,to.StateValidating=ca,to.StateInvalid=Vs,to.StateValidated=Os,Hn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ca(a){ql||(zs(),ql=!0),this.H=tc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ou,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new bn,this.ce=new Aa,this.ce.Yd=this,this.Ei=new bn,this.pu=new bn,this.Sr=new bn,this.pr=new bn,a&&Object.assign(this,a)}Ca.prototype.Xe=function(a){this.H=a},Ca.prototype.canStart=function(){return!0};function ll(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ys(a.H),a.zb=!0)}function Rs(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Ou?(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===bu&&y.vc.clear(),a.Qw=!!(a.Pk===Ru&&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(),Zs(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==vl&&b!==null&&(delete b.start.scale,delete b.end.scale),Et.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ul(x),Ph(x),a.zb=!1,y.start(),y.bc&&(za(a),x.Ya(),Oc(y,0),Tl(x,!0),vs(a),x.R("AnimationStarting",a)))}))}}function qs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function vc(a,y,x,b){a.isTicking||qs(a)||y instanceof ri&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}De=Ca.prototype,De.fv=function(a){return this.ce.fv(a)},De.Xu=function(a){return this.ce.Xu(a)};function ba(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 se=re.key;if(se instanceof Nt&&se.diagram!==null||se instanceof Qt){re=!0;break e}}re=!1}re?Rl(te,!1):te.Xk=!0}}E.pu.clear(),E.bc!==!1&&(za(E),Tl(E.H),vs(E)),Et.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Et.requestAnimationFrame(function(){x()}))}function Na(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function za(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}De.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(),Zs(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Zs(y,this.H)},De.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))},De.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ha(this,a))},De.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ys(this.ce,y,"position",y.position,y.position),Ha(this,a))};function Bs(a,y,x){!a.zb||y.D(x)||qs(a)||(a.H.pi||(y=x.copy()),ys(a.ce,a.H,"position",y,x))}function Vo(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ha(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function el(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 se=y[0],ue=y[1],ce=y[2];return y=y[3],re===0||re===100?(z=se,te=ue):(ce===0||ce===100)&&(se=z,ue=te),180<Math.abs(se-z)&&(se>z?z+=360:se+=360),z=E(x,z,se-z,b)%360,te=E(x,te,ue-te,b),re=E(x,re,ce-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+te+"%, "+re+"%, "+x+")"}function zs(){function a(x,b,E,z,te,re){x.position=new ot(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re))}var y=new ki;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 ot(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 ot(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 ot(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 se=x.actualBounds,ue=E.actualBounds;E=ue.x+ue.width/2-se.width/2,se=ue.y+ue.height/2-se.height/2,te<re?x.mm(z(te,b.x,E-b.x,re),z(te,b.y,se-b.y,re),!1):x.position=new ot(z(te,b.x,E-b.x,re),z(te,b.y,se-b.y,re))}),y.add("desiredSize",function(x,b,E,z,te,re){x.desiredSize=new vn(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=el(b,E,te,re,z)}),y.add("stroke",function(x,b,E,z,te,re){x.stroke=el(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=el(b,E,te,re,z)}),y.add("areaBackground",function(x,b,E,z,te,re){x.areaBackground=el(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)}),xu=y}At.Object.defineProperties(Ca.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&&vi(a,">= 1",Ca,"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}}}),Ca.prototype.stopAnimation=Ca.prototype.Cc;var xu=null,ql=!1,Ou=new Ht(Ca,"Default",1),Ru=new Ht(Ca,"AnimateLocations",2),bu=new Ht(Ca,"None",3);Ca.className="AnimationManager",Ca.defineAnimationEffect=function(a,y){ql||(zs(),ql=!0),xu.add(a,y)},Ca.Default=Ou,Ca.AnimateLocations=Ru,Ca.None=bu;function Aa(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=Du,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Gr,this.vc=new ki,this.Tt=new ki,this.yl=new bn,this.Ut=new bn,this.dw=he,a&&Object.assign(this,a)}Aa.prototype.suspend=function(){this.Xk=!0},Aa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Rl(this,!0),za(this.Yd),Tl(this.H),vs(this.Yd),this.H.redraw()};function Zs(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}De=Aa.prototype,De.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 Qt?a=x:x instanceof Nt&&(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===Ou&&this===y.defaultAnimation&&(this.Lp=Fu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Ae),za(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,ba(y,this),this)},De.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},De.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Qt?this.H=a:a instanceof Nt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Bi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ys(this,a,y,x,b,E),this};function ys(a,y,x,b,E,z){var te=a.vc;if(y instanceof Qt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(ah(b),v0(),b=[$u.j,$u.u,$u.o,$u.F],ah(E),v0(),E=[$u.j,$u.u,$u.o,$u.F]),te.contains(y)){var re=te.I(y),se=re.start,ue=re.end;se[x]===void 0&&(se[x]=_a(b)),ue[x]=_a(E)}else se={},ue={},se[x]=_a(b),ue[x]=_a(E),re=se.position,y instanceof Nt&&re instanceof ot&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(ue.position),re=new ec(se,ue,z),te.add(y,re);te=se[x],te instanceof ot&&!te.w()&&te.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Bi?re.Ku.location=_a(y.location):z&&(re.Ku[x]=_a(b))}function _a(a){return a instanceof ot||a instanceof ai?a.copy():a}De.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},De.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Rl(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),za(x),Oc(a,E),Tl(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 Oc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Nt&&z.diagram===null)){var te=b.value,re=E?te.end:te.start;te=E?te.start:te.end;var se=xu,ue;for(ue in te)ue==="position"&&(te["position:placeholder"]||te["position:nodeCollapse"])||se.get(ue)===null||se.get(ue)(z,re[ue],te[ue],a.Lp,y,x,a)}}}De.stop=function(){return this.bc?(this.Ml(!0),this):this},De.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,za(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=xu;b.next();){var te=b.key,re=b.value,se=E?re.end:re.start,ue=E?re.start:re.end,ce=re.Ku,ve;for(ve in ue)if(z.get(ve)!==null){var Ce=ve;!re.Hu||Ce!=="position:nodeCollapse"&&Ce!=="position:placeholder"||(Ce="position"),z.get(Ce)(te,se[ve],ce[ve]!==void 0?ce[ve]:re.Hu?se[ve]:ue[ve],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&te instanceof Bi&&(te.location=ce.location),re.nv&&te instanceof Bi&&te.Zb(!1)}if(y.As.clear(),Md(y,!1),y.Ya(),y.N(),Tl(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()}Tl(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),Zs(this,null),x.Ml(this),y.$b())}},De.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Sr&&(b=y.placeholder),b!==null?(x=b.ga(bs),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new ot(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Sr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Si&&this.Cj(b,y)},De.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Sr&&(x=y.placeholder),x!==null){var b=x.ga(bs);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 Sr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Si&&this.Aj(b,y)}},De.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},At.Object.defineProperties(Aa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&vi(a,">= 1",Aa,"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:Rt("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}}}),Aa.prototype.getTemporaryState=Aa.prototype.Ez,Aa.prototype.stop=Aa.prototype.stop,Aa.prototype.add=Aa.prototype.add,Aa.prototype.addTemporaryPart=Aa.prototype.Iy;function Du(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Fu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Aa.className="Animation",Aa.EaseLinear=function(a,y,x,b){return x*a/b+y},Aa.EaseInOutQuad=Du,Aa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Aa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Aa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Aa.EaseOutExpo=Fu;function ec(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}ec.className="AnimationState";function Pl(a,y,x){this.xd=null,this.rf=a,this.so=x||Wa,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$s))}Pl.prototype.copy=function(){var a=new Pl(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 fa(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))}At.Object.defineProperties(Pl.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 Wa=new Ht(Pl,"Default",1),$s=new Ht(Pl,"Immediate",2),Ya=new Ht(Pl,"Bundled",3);Pl.className="AnimationTrigger",Pl.Default=Wa,Pl.Immediate=$s,Pl.Bundled=Ya;function ga(a){Mr(this),this.H=null,this.Pa=new ln,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)}De=ga.prototype,De.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Bo(x)}a.clear(),this.Zq.length=0},De.Xe=function(a){this.H=a},De.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 se=re.value;se instanceof Sr?E++:se instanceof Si?b++:se instanceof ri?z++:se instanceof co?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&&Fr(b)&&(re+=" #"+Fr(b)),x instanceof Si?re+=" "+qn(b):x instanceof ri&&(re+=" "+qn(x.fromNode)+" "+qn(x.toNode));return y+" "+this.Pa.count+": "+re},De.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=ot.alloc(),z=this.Pa.s,te=z.length;te--;){var re=z[te];if((b!==!0||hf(re)!==!1)&&re.isVisible()&&(E.assign(a),Wr(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return ot.free(E),re}return ot.free(E),null},De.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof ln||b instanceof bn||(b=new bn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=ot.alloc(),te=this.Pa.s,re=te.length;re--;){var se=te[re];if((E!==!0||hf(se)!==!1)&&se.isVisible()){z.assign(a),Wr(z,se.oe);var ue=se;se.ji(z,y,x,b)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||b.add(ue))}}return ot.free(z),b},De.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 ln||E instanceof bn||(E=new bn),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 se=te[re];if((z!==!0||hf(se)!==!1)&&se.isVisible()){var ue=se;se.Cf(a,y,x,b,E)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||E.add(ue))}}return E},De.Nu=function(a,y,x,b,E,z,te){if(this.Uh===!1)return E;for(var re=this.Pa.s,se=re.length;se--;){var ue=re[se];if((te!==!0||hf(ue)!==!1)&&z(ue)&&ue.isVisible()){var ce=ue;ue.Cf(a,y,x,b,E)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||E.add(ce))}}return E},De.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 ln||E instanceof bn)&&(z=E),E=!0),z instanceof ln||z instanceof bn||(z=new bn),this.Uh===!1)return z;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(te=!0);for(var re=ot.alloc(),se=ot.alloc(),ue=this.Pa.s,ce=ue.length;ce--;){var ve=ue[ce];if((te!==!0||hf(ve)!==!1)&&ve.isVisible()){re.assign(a),Wr(re,ve.oe),se.h(a.x+y,a.y),Wr(se,ve.oe);var Ce=ve;ve.og(re,se,x,b,E,z)&&(x!==null&&(Ce=x(Ce)),Ce===null||b!==null&&!b(Ce)||z.add(Ce))}}return ot.free(re),ot.free(se),z},De.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 ri){if(te.fd===!1)continue}else if(te instanceof co&&te.adornedPart!==null)continue;var re=te.actualBounds;te.isVisible()&&Ko(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],V0(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++)V0(E[y]);In(a),In(E)}}};function js(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}De.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=js(this,a);var z=this.Zq;z.length=0;for(var te=y.scale,re=vn.alloc(),se=0;se<b;se++)this.Oj(a,x[se],y,z,te,re,!0);if(vn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Dl(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=js(a,y),re=a.Zq;re.length=0;for(var se=x.scale,ue=vn.alloc(),ce=0;ce<z;ce++){var ve=E[ce];b.contains(ve)&&a.Oj(y,ve,x,re,se,ue,!1)}vn.free(ue),y.globalAlpha=te}}}De.Oj=function(a,y,x,b,E,z,te){if(te&&!hf(y))a.Hs(y);else{if(b!==null&&y instanceof ri&&(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 lu?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&&(Yo(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Yo(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),Yo(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))}},De.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(ha,a,this,y,x,b,E)},De.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Bo(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)),wu(this,a,y),a},De.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,Bo(y),a};function wu(a,y,x){if(y=Xd(a,y,x),x instanceof Sr&&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&&wu(a,-1,y)}x.svg!==null&&x.svg.remove()}function Xd(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,se=NaN;re<E&&(se=a.M(re).zOrder,!!isNaN(se));)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(se)&&se<b)for(;;){if(re===E||se>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(se=NaN;++re<E&&(se=a.M(re).zOrder,isNaN(se)););}return y}At.Object.defineProperties(ga.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===""&&Rt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Rt("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)&&vi(a,"0 <= value <= 1",ga,"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))}}}),ga.prototype.findObjectsNear=ga.prototype.og,ga.prototype.findObjectsIn=ga.prototype.Cf,ga.prototype.findObjectsAt=ga.prototype.ji,ga.prototype.findObjectAt=ga.prototype.ic,ga.className="Layer";function Qt(a,y){if(On||(an(),On=!0),Mr(this),tc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ma){var x=this,b=function(){x.removeEventListener(Et.document,"DOMContentLoaded",b,!1),x.setRTL()};Et.document.body!==null?this.setRTL():x.addEventListener(Et.document,"DOMContentLoaded",b,!1)}this.ol=null,Kf.add("Model",Io);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===ha&&te.updateDataBindings(z.object,z.propertyName)}finally{te.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Nd(this),this.model=by(),this.Wg=!0,Qd(this),this.layout=new ya,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 Xn,a!==void 0&&(typeof a=="string"||Et.Element&&a instanceof Element?Ch(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Rc,tc;function Nd(a){a.Yd=new Ca,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new ln,a.pj=new ki,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new ot(NaN,NaN).freeze(),a.du=new ot(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new ot(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ar,a.zu=new ot(NaN,NaN).freeze(),a.ut=new vn(NaN,NaN,NaN,NaN).freeze(),a.rj=new ji(0,0,0,0).freeze(),a.sj=he,a.nu=!1,a.Zt=null,a.fu=null,a.yh=vl,a.zk=wo,a.Fg=vl,a.pq=wo,a.yt=bs,a.Bt=bs,a.Fc=!0,a.pn=!1,a.De=new bn,a.Eh=new ki,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new ji(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 bn,a.Ht=!0,a.uu=Ie,a.pw=!1,a.wu=sf,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 ki,a.Xn=new ln,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 ji(5).freeze(),a.Hw=new bn().freeze(),a.Nt=999999999,a.nw=new bn().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 bn,a.ow=new bn,a.Xh=null,a.aw=new ai(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new ot,bounds:new vn,Py:new ai,bA:new ai,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new vn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ai(NaN,NaN).freeze(),a.Sp=new vn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ki;var y=new Si,x=new Xo;x.bind(new ss("text","",qn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Si,x=new Xo,x.stroke="brown",x.bind(new ss("text","",qn)),y.add(x),a.Lg.add("Comment",y),y=new Si,y.selectable=!1,y.avoidable=!1,x=new Lr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ai(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ki,y=new Sr,y.selectionObjectName="GROUPPANEL",y.type=ei.Vertical,x=new Xo,x.font="bold 12pt sans-serif",x.bind(new ss("text","",qn)),y.add(x),x=new ei(ei.Auto),x.name="GROUPPANEL";var b=new Lr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Hl,b.padding=new ji(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ki,y=new ri,x=new Lr,x.isPanelMain=!0,y.add(x),x=new Lr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ri,x=new Lr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new co,y.type=ei.Auto,x=new Lr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Hl,x.margin=new ji(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new co,y.type=ei.Link,x=new Lr,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 Io,a.toolManager=new sa,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new oe,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=pd(),a.eq=null,a.fq=kr,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 ot,a.zy=500,a.wp=new ot,a.wq=!1}Qt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Mh=null,Fd="",Id(this,!1),this.Xn.clear(),ep(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Id(a,y){a.animationManager.Cc(!0),a.Hw=new bn().freeze(),a.nw=new bn().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 se=re.value;se!==E&&se.data===null&&z.push(se)}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(),Vi=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function pd(){return null}Qt.prototype.reset=function(){this.clear(),this.vb=!0,Nd(this),Bc(this),this.Wg=!0,Qd(this),this.layout=new ya,this.Wg=!1,this.model=by(),this.model.undoManager=new Sa,this.vb=this.rn=!1,this.N()},Qt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Et.document.body);var y=Pn("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},Qt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Et.document.body);var y=0;if(Ma){var x=Gg;y=Rc,x===null&&(x=Gg=Pn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Rc=Pn("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||Er||(y=11)}this.Db=y,this.Gw=!0},Qt.prototype.qb=function(a){a.classType===Qt&&(this.autoScale=a)},Qt.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 Ch(a,y){if(Ma){if(y!=null||Rt("Diagram setup requires an argument DIV."),a.Ka!==null&&Rt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Et.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Rt("No DIV or DIV id supplied: "+y),a.Ka===null&&Rt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Rt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Et.ResizeObserver){var x=Jn(function(){a.$b()},250);a.ol=new Et.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Et.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=Et.go;var E=new oa(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Et.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),eh(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,Ma){E=Pn("div");var z=Pn("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=Df,E.addEventListener("pointerdown",nf),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Jn(function(){a.Yh=null,a.N()},300),a.Ov=Jn(function(){Ph(a)},250),a.preventDefault=function(te){return te.preventDefault(),!1},a.$j=function(te){if(a.isEnabled){var re=Bl(a,te,!0);re.bubbles=!0;var se=0,ue=0;re.delta=0,te.deltaX!==void 0?(te.deltaX!==0&&(se=0<te.deltaX?1:-1),te.deltaY!==0&&(ue=0<te.deltaY?1:-1),re.delta=Math.abs(te.deltaX)>Math.abs(te.deltaY)?-se:-ue):te.wheelDeltaX!==void 0?(te.wheelDeltaX!==0&&(se=0<te.wheelDeltaX?-1:1),te.wheelDeltaY!==0&&(ue=0<te.wheelDeltaY?-1:1),re.delta=Math.abs(te.wheelDeltaX)>Math.abs(te.wheelDeltaY)?-se:-ue):te.wheelDelta!==void 0&&te.wheelDelta!==0&&(re.delta=0<te.wheelDelta?1:-1),a.doMouseWheel(),tu(re,te)}},a.aA=function(te){a.isEnabled&&(a.Vk=!1,Bl(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 se=!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,se=!0;else if(re[0]===null)re[0]=te;else if(re[1]===null)re[1]=te,se=!0;else{te.preventDefault();return}else re[0]=te;(re=te.pointerType==="touch"||te.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ue=se;se=kh(a,te,!0,!1,!0,ue),Dd(a,te,se),se.targetDiagram=Jd(te,te.target),se.targetObject=null,ue||se.clone(a.bq),ue=a.uw,re=re?25:10,te.timeStamp-a.tw<a.zy&&!(Math.abs(ue.x-te.screenX)>re||Math.abs(ue.y-te.screenY)>re)?a.yq++:a.yq=1,se.clickCount=a.yq,a.tw=te.timeStamp,a.uw.sg(te.screenX,te.screenY),a.doMouseDown(),te.button===1?te.preventDefault():tu(se,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 se=Et.document.elementFromPoint(te.clientX,te.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(te.clientX,te.clientY));var ue=a,ce=te;se&&se.H&&(ce=te,ue=se.H),re.targetDiagram=ue,Dd(a,ce,re),re.targetObject=null,a.doMouseMove(),tu(re,te)}}},a.fk=function(te){if(a.isEnabled){a.Vk=!0;var re=te.pointerType==="touch"||te.pointerType==="pen",se=a.Yt;if(re&&a.qu)delete se[te.pointerId],te.preventDefault();else if(se=a.oj,se[0]===null||se[0].pointerId!==te.pointerId&&se[0].pointerType===te.pointerType)se[1]!==null&&se[1].pointerId===te.pointerId&&(se[1]=null);else{se[0]=null,se=kh(a,te,!1,!0,!0,!1);var ue=Et.document.elementFromPoint(te.clientX,te.clientY)||null;ue!==null&&ue.shadowRoot!==void 0&&ue.shadowRoot!==null&&(ue=ue.shadowRoot.elementFromPoint(te.clientX,te.clientY)),ue!==null&&ue.H instanceof Qt&&ue.H!==a&&Dd(ue.H,te,se),ue===null&&(ue=te.target),Dd(a,te,se),se.clickCount=a.yq,se.targetDiagram=Jd(te,ue),se.targetObject=null,a.doMouseUp(),tu(se,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"+yr[1]+yr[2]+"wI"+Dt.slice(1,5)]["b"+x1.slice(1,y)](b.Z,cn,y,y),b.Vc(!0),cg(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Qt.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Qt.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cg(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(Et,"resize",a.Ov,!1)}function ul(a){30<a.Sq&&(a.Yh=1)}function Md(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),er&&er.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Qt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Et.devicePixelRatio||1},Qt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Qt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Qt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Qt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Qt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Qt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Qt.prototype.doFocus=function(){this.focus()},Qt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Et.scrollX||Et.pageXOffset,y=Et.scrollY||Et.pageYOffset;this.ta.focus(),Et.scrollTo(a,y)}},Qt.prototype.Oy=function(){this.H.R("GainedFocus")},Qt.prototype.Ny=function(){this.H.R("LostFocus")};function Ph(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===vl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Qd(a){var y=new ga;y.name="Background",a.Al(y),y=new ga,y.name="",a.Al(y),y=new ga,y.name="Foreground",a.Al(y),y=new ga,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ga,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ga,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function tf(a){var y=new ei(ei.Grid);y.name="GRID";var x=new Lr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Lr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Lr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Lr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Lr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Lr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Bi,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 Df(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Jc(this.H)}function nf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Jc(this.H)}Qt.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,se=b.width+z.left+z.right,ue=b.height+z.top+z.bottom,ce=b.right+z.right;z=b.bottom+z.bottom;var ve=E.x;b=E.y;var Ce=E.width,Le=E.height,Me=E.right,We=E.bottom;E=this.scale;var ut=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ut=ut+a.scrollWidth-a.clientWidth;break;case"reverse":ut=a.scrollWidth-ut-a.clientWidth}var tt=ut;Ce<se||Le<ue?(ut=ot.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==tt&&(ut.x=tt/E+te,this.ju=tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ut.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=ut,ot.free(ut),this.Ee=this.qr=!1):(ut=ot.alloc(),a.uy&&this.allowHorizontalScroll&&(te<ve&&(this.position=ut.h(tt+te,this.position.y)),ce>Me&&(this.position=ut.h(-(y.scrollWidth-this.Aa)+tt-this.Aa/E+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=ut.h(this.position.x,a.scrollTop+re)),z>We&&(this.position=ut.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),ot.free(ut),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ce=b.right,Me=E.right,z=b.bottom,We=E.bottom,te=b.x,ve=E.x,re=b.y,b=E.y,Ce>=se&&te>=ve&&ce<=Me&&(x.style.width="1px"),Le>=ue&&re>=b&&z<=We&&(x.style.height="1px"))}},Qt.prototype.computeBounds=function(a){return a===void 0&&(a=new vn),Ys(this),Od(this,a)};function Od(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,se=0;se<re;se++){var ue=te[se];ue.isInDocumentBounds&&ue.isVisible()&&(ue=ue.actualBounds,ue.w()&&(x?(x=!1,y.assign(ue)):y.ed(ue)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Qt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Fn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof ri||(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 ri||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new vn(NaN,NaN,0,0):x};function eu(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=ot.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=vn.allocAt(0,0,b.width,b.height);var E=ot.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,vn.free(b),ot.free(E),ot.free(x)}x=a.yh,y&&a.Fg!==vl&&(x=a.Fg);var z=x!==vl?Rd(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var te=a.ya/z,re=a.zk,se=a.pq;y&&!re.sb()&&(se.sb()||se.Xb())&&(re=se.Xb()?Xr:se),Th(a,a.documentBounds,E,te,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ft.B(z.x,x)&&Ft.B(z.y,b)&&Ft.B(z.width,E)&&Ft.B(z.height,te)||a.onViewportBoundsChanged(new vn(x,b,E,te),z,y,!1)}}function Rd(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,se=te/b;return y===iu?(y=Math.min(se,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===oh?(y=se>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}Qt.prototype.zoomToFit=function(){var a=this.sj;this.sj=he,this.scale=Rd(this,iu),a!==he&&(eu(this,!1),Th(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},De=Qt.prototype,De.BA=function(a,y){y===void 0&&(y=iu);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===iu||y===oh)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===oh?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 ot(a.x,a.y)}},De.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new ot(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))},De.zz=function(a){if(a instanceof Nt){this.eq=a;var y=ot.alloc();this.fq=this.op(a.ga(bs,y)),ot.free(y)}else this.eq=null,this.fq=kr};function Th(a,y,x,b,E,z){var te=ot.allocAt(a.pa.x,a.pa.y),re=te.x,se=te.y;if(a.eq!==null){var ue=ot.alloc();ue=a.eq.ga(bs,ue),re=ue.x-a.fq.x/a.scale,se=ue.y-a.fq.y/a.scale,E=Da,ot.free(ue)}(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&&(se=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?(se=Math.min(se+b/2,y.bottom+Math.max(x,E.bottom)-b/2),se=Math.max(se,y.top-Math.max(x,E.top)+b/2),se-=b/2):se>y.top?se=y.top:se<y.bottom-b&&(se=y.bottom-b)),te.x=isFinite(re)?re:-a.yb.left,te.y=isFinite(se)?se:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,te),te.x=y.x,te.y=y.y),Bs(a.Yd,a.pa,te),a.pa.h(te.x,te.y),Bc(a),ot.free(te)}De.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Fl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Bi)return a}else if(a=Fl(this,a,function(x){return x.part}),a instanceof Bi)return a;return null},De.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ys(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 Fl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Ys(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}De.lz=function(a,y,x){return y===void 0&&(y=!0),Xc(this,a,function(b){return b.part},y?function(b){return b instanceof Bi&&b.canSelect()}:null,x)};function Xc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof ln||E instanceof bn||(E=new bn),Ys(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}De.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof ln||b instanceof bn||(b=new bn),Ys(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},De.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Qc(this,a,function(E){return E instanceof Bi&&(!x||E.canSelect())},y,b)},De.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof ln||E instanceof bn||(E=new bn),Ys(this);for(var z=this.Wa.iteratorBackwards;z.next();){var te=z.value;te.visible&&te.Cf(a,y,x,b,E)}return E},De.Nu=function(a,y,x,b,E,z){var te=new bn;Ys(this);for(var re=this.Wa.iteratorBackwards;re.next();){var se=re.value;se.visible&&se.Nu(a,y,x,b,te,E,z)}return te};function Qc(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 ln||E instanceof bn||(E=new bn),Ys(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.Cf(y,z,x,b,E)}return E}De.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),md(this,a,y,function(z){return z instanceof Bi&&(!b||z.canSelect())},x,E)},De.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 ln||E instanceof bn)&&(z=E),E=!0),z instanceof ln||z instanceof bn||(z=new bn),Ys(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 md(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 ln||E instanceof bn)&&(z=E),E=!0),z instanceof ln||z instanceof bn||(z=new bn),Ys(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}Qt.prototype.acceptEvent=function(a){return Bl(this,a,a instanceof MouseEvent)};function Bl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Dd(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),Er&&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=Jd(y,y.target),b.targetObject=null,b}function Jd(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,Er&&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 tu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Qt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Bl(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(),tu(x,a)},Qt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Bl(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(),tu(x,a)},Qt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Bl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),tu(x,a)},Qt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Bl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),tu(x,a)},Qt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new ot(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?Wr(new ot(y,a),this.Ab):new ot(y,a)};function Dd(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=ot.allocAt(te,re),a.Ab.Cd(y),x.documentPoint.assign(y),ot.free(y)):x.documentPoint.h(te,re)}function Ah(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))}}Qt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function qd(a){a.ld||Ys(a),a.Va()}Qt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},De=Qt.prototype,De.Pz=function(){return this.kg},De.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Tl(this),this.hf=!1,this.du=new ot(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Ci(function(){b.ld=!1,ll(y,"Model"),a(b)},1)},De.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Et.requestAnimationFrame(function(){y.kg&&y.bd()})}},De.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Tl(this))};function nu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Jc(a)||(y&&Ys(a),x&&eu(a,!1))}function Tl(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];Ra(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(se){se.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ph(a),nu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Fc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ys(a),z=!1,(!a.hf||a.xh)&&(a.hf?Gf(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Gf(a,!1)),z=!0),a.Jk=!1,Ys(a),a.ou||qd(a),nu(a,!0,!1),te=!1,z?(x=vn.alloc(),x.assign(a.viewportBounds),a.hf||(te=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Lh(a)),a.R("LayoutCompleted"),nu(a,!0,!1),vn.free(x)):x.Ok&&x.Qw&&(a.Fg!==vl?a.scale=Rd(a,a.Fg):a.yh!==vl?a.scale=Rd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),eu(a,!0)),z&&te&&a.eb("Initial Layout"),Ys(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Lh(a){if(a.Fg!==vl)a.scale=Rd(a,a.Fg);else if(a.yh!==vl)a.scale=Rd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}eu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Fc(a)}function Ys(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 bn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Sr&&b.U&65536&&(b.U=b.U^65536)})}}De.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Sr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Sr&&x.isVisible()&&Pa(this,x);for(a.reset();a.next();)x=a.value,x instanceof ri&&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 co&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Pa(a,y){for(var x=gn(),b=gn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Sr?(Ul(z)||nl(z)||df(z))&&Pa(a,z):z instanceof ri?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(In(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();In(b)}De.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},De.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Rt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){zl(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,Hg(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),fl(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?Vn(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ar.prototype.Cd=Ar.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,zl(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 se=this.Ca,ue=Math.round(re.x*se)/se,ce=Math.round(re.y*se)/se;for(se!==1&&z.scale(se),re.x===0&&re.y===0||z.translate(-ue,-ce),a.setTransform(te,0,0,te,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),fl(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?Vn(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ar.prototype.Cd=Ar.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=er&&er.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 ns(a,y,x,b,E,z,te,re,se,ue){if(a.Ka!==null){a.ta===null&&Rt("No canvas specified"),te===void 0&&(te=null),re===void 0&&(re=null),se===void 0&&(se=!1),ue===void 0&&(ue=!1),zl(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ce=a.Ca;a.Ca=E;var ve=a.Wa.s,Ce=ve.length;try{var Le=new vn(z.x,z.y,b.width/E,b.height/E),Me=Le.copy();Me.Co(x),Fc(a,Me),Ys(a),a.Fd(ve,Ce,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 We=a.Mb;y.scale(We,We);var ut=Ar.alloc();ut.reset(),ut.translate(x.left,x.top),ut.scale(E),z.x===0&&z.y===0||ut.translate(-z.x,-z.y),y.setTransform(ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy),y.yc(),y instanceof lu&&Hg(y,ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy),Ar.free(ut),fl(a,y),y.globalAlpha=a.pb;var tt=a.Qj("Grid");if(te){var mt=new bn,xt=te.iterator;for(xt.reset();xt.next();){var Pt=xt.value;Pt instanceof Bi&&(ue||Pt.layer!==tt)&&(Pt.Gj(),mt.add(Pt))}for(ue=0;ue<Ce;ue++)Dl(ve[ue],y,a,mt,se);mt.each(function(en){return en.Gj()})}else for(mt=0;mt<Ce;mt++){var Mt=ve[mt];Mt===tt?ue&&Mt.gc(y,a,!0):Mt.gc(y,a,se)}a.$i=!1,a.Yf&&Vn(a.Yf,a)&&a.Vp()}finally{a.Ca=ce,a.ib.Vc(!0),a.vd=!0,a.Fd(ve,Ce,a,a.viewportBounds),Fc(a),a.ib instanceof lu&&(a.ib.Nj.PA(),a.redraw())}}}De.Gf=function(a){return this.Rg[a]},De.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},De.Tx=function(){this.Rg=new Ti,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Er||Ki),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function fl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}De.Ql=function(a){return this.on[a]},De.sA=function(a,y){this.on[a]=y},De.Sx=function(){this.on=new Ti,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},De.set=function(a){return Object.assign(this,a),this},De.Du=function(a){return this.nm(a)},De.nm=function(a){return Eu(this,a),this};function Eu(a,y){var x=a instanceof ei,b=a instanceof Qt,E;for(E in y){E===""&&Rt("Setting properties requires non-empty property names");var z=a,te=E;if(x||b){var re=E.indexOf(".");if(0<re){var se=E.substring(0,re);x?z=a.fb(se):(z=a[se],z==null&&(z=a.toolManager[se])),Yt(z)?te=E.substr(re+1):Rt("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+E)}}if(te[0]!=="_"&&!oi(z,te))if(b&&te==="ModelChanged"){a.Yw(y[te]);continue}else if(b&&te==="Changed"){a.Pe(y[te]);continue}else if(b&&oi(a.toolManager,te))z=a.toolManager;else if(b&&jg(a,te)){a.Bj(te,y[te]);continue}else if(a instanceof Mi&&te==="Changed"){a.Pe(y[te]);continue}else Rt('Trying to set undefined property "'+te+'" on object: '+z.toString());z[te]=y[E],te[0]==="_"&&z instanceof Nt&&z.Vw(te)}}De.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ki,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},De.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")},Qt.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!==Ae&&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=vn.alloc(),Nh(this,this.computeBounds(b)),vn.free(b)),b=this.ta,b===null||b instanceof yc)))){var te=this.Mb;E=this.Aa*te;var re=this.ya*te,se=this.scale*te;z=Math.round(Math.round(y.x*se)-Math.round(a.x*se)),y=Math.round(Math.round(y.y*se)-Math.round(a.y*se)),se=this.jw,a=this.oy,se.width!==E&&(se.width=E),se.height!==re&&(se.height=re),a.clearRect(0,0,E,re),se=190*te;var ue=70*te,ce=Math.max(z,0),ve=Math.max(y,0),Ce=Math.floor(E-ce),Le=Math.floor(re-ve);a.drawImage(b.Oa,ce,ve,Ce,Le,0,0,Ce,Le),Vn(this.Yf,this)&&a.clearRect(0,0,se,ue),b=gn(),a=gn(),Le=Math.abs(z),Ce=Math.abs(y);var Me=ce===0?0:E-Le;ce=ot.allocAt(Me,0),Le=ot.allocAt(Le+Me,re),a.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y)));var We=this.Ab;if(We.reset(),We.scale(te,te),this.Ca!==1&&We.scale(this.Ca),te=this.pa,(te.x!==0||te.y!==0)&&isFinite(te.x)&&isFinite(te.y)&&We.translate(-te.x,-te.y),Wr(ce,We),Wr(Le,We),b.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y))),Me=ve===0?0:re-Ce,ce.h(0,Me),Le.h(E,Ce+Me),a.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y))),Wr(ce,We),Wr(Le,We),b.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y))),Vn(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ce.h(E,re),Le.h(se+E,ue+re),a.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y))),Wr(ce,We),Wr(Le,We),b.push(new vn(Math.min(ce.x,Le.x),Math.min(ce.y,Le.y),Math.abs(ce.x-Le.x),Math.abs(ce.y-Le.y)))),ot.free(ce),ot.free(Le),nu(this,!1,!0),this.Ka===null&&Rt("No div specified"),this.ta===null&&Rt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(zl(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,se=Math.round(z.x*te)/te,ue=Math.round(z.y*te)/te,y=this.Ab,y.reset(),te!==1&&y.scale(te),z.x===0&&z.y===0||y.translate(-se,-ue),E.save(),E.beginPath(),z=a.length,te=0;te<z;te++)se=a[te],se.width!==0&&se.height!==0&&E.rect(Math.floor(se.x),Math.floor(se.y),Math.ceil(se.width),Math.ceil(se.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),fl(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(te=y[re],se=b,te.visible&&te.pb!==0){ue=js(te,E),ve=te.Zq,ve.length=0,ce=this.scale,Ce=vn.alloc(),Le=te.Pa.s,We=Le.length,Me=se.length;for(var ut=0;ut<We;ut++){var tt=Le[ut],mt=Jf(tt,tt.actualBounds);e:{for(var xt=2/ce,Pt=4/ce,Mt=0;Mt<Me;Mt++){var en=se[Mt];if(en.width!==0&&en.height!==0&&mt.Vu(en.x-xt,en.y-xt,en.width+Pt,en.height+Pt)){mt=!0;break e}}mt=!1}mt&&te.Oj(E,tt,this,ve,ce,Ce,!0)}vn.free(Ce),E.globalAlpha=ue}E.restore(),E.Vc(!0),this.Yf&&Vn(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}In(b),In(a),this.ld=!1}}else this.bd();x&&(ul(this),this.bd(),Md(this,!0))}else x?(ul(this),this.bd(),Md(this,!0)):this.bd()}};function zl(a){a.pn!==!1&&(a.pn=!1,eh(a,a.Aa,a.ya))}function eh(a,y,x){Bc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Jc(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,se=E.clientWidth||x+te,ue=E.clientHeight||b+re,ce=a.viewportBounds;E=ce.x;var ve=ce.y,Ce=ce.width,Le=ce.height;if((se!==x+te||ue!==b+re)&&(a.gf=!1,a.Be=!1,re=te=0,a.Aa=se,a.ya=ue,z=a.pn=!0,Bc(a)),!a.hf||!a.viewportBounds.w())return!0;var Me=a.ku,We=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ut=a.documentBounds,tt=0,mt=0,xt=0,Pt=0,Mt=ce.width,en=ce.height,pi=a.rj;a.contentAlignment.sb()?(ut.width>Mt&&(tt=pi.left,mt=pi.right),ut.height>en&&(xt=pi.top,Pt=pi.bottom)):(tt=pi.left,mt=pi.right,xt=pi.top,Pt=pi.bottom);var Ai=ut.width+tt+mt,Ei=ut.height+xt+Pt;pi=a.scale;var ii=Ai>se/pi,Un=Ei>ue/pi;if(!(z||a.gf||a.Be||ii||Un))return!0;tt=ut.x-tt,se=ce.x,mt=ut.right+mt,ue=ce.right+te,xt=ut.y-xt;var vr=ce.y;ut=ut.bottom+Pt,ce=ce.bottom+re;var ar="1px";if(Pt="1px",a.scrollMode===he&&(ii||Un)&&(ii&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ii=1,tt+1<se&&(ii=Math.max((se-tt)*pi+a.Aa,ii)),mt>ue+1&&(ii=Math.max((mt-ue)*pi+a.Aa,ii)),Mt+te+1<Ai&&(ii=Math.max((Ai-Mt)*pi+a.Aa,ii)),ar=ii.toString()+"px"),Un&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ii=1,xt+1<vr&&(ii=Math.max((vr-xt)*pi+a.ya,ii)),ut>ce+1&&(ii=Math.max((ut-ce)*pi+a.ya,ii)),en+re+1<Ei&&(ii=Math.max((Ei-en)*pi+a.ya,ii)),Pt=ii.toString()+"px")),ii=ar!=="1px",Un=Pt!=="1px",ii&&Un||!ii&&!Un||(Un&&(ue-=a.Db),ii&&(ce-=a.Db),Ai<Mt+te||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(te=1,tt+1<se&&(te=Math.max((se-tt)*pi+a.Aa,te)),mt>ue+1&&(te=Math.max((mt-ue)*pi+a.Aa,te)),Mt+1<Ai&&(te=Math.max((Ai-Mt)*pi+a.Aa,te)),ar=te.toString()+"px"),ii=ar!=="1px",te=a.ya,ii!==a.Be&&(te=ii?a.ya-a.Db:a.ya+a.Db),Ei<en+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,xt+1<vr&&(re=Math.max((vr-xt)*pi+te,re)),ut>ce+1&&(re=Math.max((ut-ce)*pi+te,re)),en+1<Ei&&(re=Math.max((Ei-en)*pi+te,re)),Pt=re.toString()+"px"),Un=Pt!=="1px"),a.qr&&ii===a.Be&&Un===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(ii!==a.Be&&(ar==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ii,We.style.width=ar,Un!==a.gf&&(Pt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=ot.alloc(),Un?(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)),ot.free(re))),z&&Bc(a),a.gf=Un,We.style.height=Pt,a.gu=!0,z&&(a.pn=!0),y=Me.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Mt+1<Ai?y=(a.position.x-tt)*pi:tt+1<se?y=Me.scrollWidth-Me.clientWidth:mt>ue+1&&(y=a.position.x*pi)),a.tn)switch(a.bu){case"negative":y=-(Me.scrollWidth-y-Me.clientWidth);break;case"reverse":y=Me.scrollWidth-y-Me.clientWidth}return Me.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(en+1<Ei?Me.scrollTop=(a.position.y-xt)*pi:xt+1<vr?Me.scrollTop=Me.scrollHeight-Me.clientHeight:ut>ce+1&&(Me.scrollTop=a.position.y*pi)),se=a.Aa,ue=a.ya,Me.style.width=se+(a.gf?a.Db:0)+"px",Me.style.height=ue+(a.Be?a.Db:0)+"px",x!==se||b!==ue||a.animationManager.zb?(x=vn.allocAt(E,ve,Ce,Le),a.onViewportBoundsChanged(x,a.viewportBounds,pi,z),vn.free(x),!1):!0}De=Qt.prototype,De.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Rt("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&&Rt('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(Fa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},De.oi=function(a){this.partManager.oi(a);var y=this;Yf(a,function(x){ih(y,x)}),(a instanceof co||a instanceof Sr&&a.placeholder!==null)&&a.v(),a.data!==null&&Yf(a,function(x){yy(y.partManager,x)}),nl(a)!==!0&&df(a)!==!0||this.De.add(a),GS(a,!0,this),_S(a)?(a.actualBounds.w()&&this.N(Jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jf(a,a.actualBounds)),this.$b()},De.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Yf(a,function(x){Sy(y.partManager,x,y)}),this.De.remove(a),_S(a)?(a.actualBounds.w()&&this.N(Jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jf(a,a.actualBounds)),this.$b()},De.remove=function(a){th(this,a,!0)};function th(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(rs,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}De.Is=function(a,y){if(y===void 0&&(y=!1),Fn(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 bn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},De.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Qt.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Ff(this)),this.toolManager!==null){var E=new ki;if(a!==null)if(Fn(a))for(var z=0;z<a.length;z++)Bu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Bu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Bu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Bu(this,E,a.value,x,b);for(a=this.links;a.next();)Bu(this,E,a.value,x,b)}Dc(this,E,y,b,x)}};function Bu(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=Ff(a)),x instanceof Si){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Sr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Bu(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,se=te.toNode;re!==null&&y.contains(re)&&se!==null&&y.contains(se)&&Bu(a,y,te,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Bu(a,y,x.value,b,E)}else if(x instanceof ri)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Bu(a,y,x.value,b,E);else x instanceof co||y.add(x,a.Pd(E,x,x.location))}function Dc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=ot.alloc(),te=ot.alloc();te.assign(x),isNaN(te.x)&&(te.x=0),isNaN(te.y)&&(te.y=0),(x=a.Mr)||zf(a,y);for(var re=gn(),se=gn(),ue=y.iterator,ce=ot.alloc();ue.next();){var ve=ue.key,Ce=ue.value;if(ve.Zc()){var Le=dg(a,ve,y);Le!==null?re.push(new ie(ve,Ce,Le)):(!E||ve.canMove())&&(Le=Ce.point,z.assign(Le),a.computeMove(ve,z.add(te),b,ce),ve.location=ce,Ce.shifted===void 0&&(Ce.shifted=new ot),Ce.shifted.assign(ce.re(Le)))}else ue.key instanceof ri&&se.push(ue.sa)}for(ot.free(ce),E=re.length,ue=0;ue<E;ue++)ve=re[ue],z.assign(ve.info.point),ve.Su.shifted===void 0&&(ve.Su.shifted=new ot),ve.node.location=z.add(ve.Su.shifted);for(E=ot.alloc(),ue=ot.alloc(),ve=se.length,Ce=0;Ce<ve;Ce++){var Me=se[Ce];if(Le=Me.key,Le instanceof ri)if(Le.suspendsRouting){Le.Tg=null,ce=Le.fromNode;var We=Le.toNode;if(a.draggedLink!==null&&b.dragsLink)if(We=Me.value.point,Le.dragComputation===null)y.add(Le,a.Pd(b,Le,te)),zh(Le,te.x-We.x,te.y-We.y);else{Me=ot.allocAt(0,0),(ce=Le.i(0))&&ce.w()&&Me.assign(ce);var ut=ce=ot.alloc().assign(Me).add(te);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ut=ot.alloc(),Bf(a,Le,ce,ut,b)),ce.assign(Le.dragComputation(Le,ce,ut)).re(Me),y.add(Le,a.Pd(b,Le,ce)),zh(Le,ce.x-We.x,ce.y-We.y),ot.free(Me),ot.free(ce),ut!==ce&&ot.free(ut)}else ce!==null&&(E.assign(ce.location),ut=y.I(ce),ut!==null&&E.re(ut.point)),We!==null&&(ue.assign(We.location),ut=y.I(We),ut!==null&&ue.re(ut.point)),ce!==null&&We!==null?E.Xa(ue)?(ce=Me.value.point,We=z,We.assign(E),We.re(ce),y.add(Le,a.Pd(b,Le,E)),zh(Le,We.x,We.y)):(Le.suspendsRouting=!1,Le.bb()):(Me=Me.value.point,ce=ce!==null?E:We!==null?ue:te,y.add(Le,a.Pd(b,Le,ce)),zh(Le,ce.x-Me.x,ce.y-Me.y))}else(Le.fromNode===null||Le.toNode===null)&&(ce=Me.value.point,y.add(Le,a.Pd(b,Le,te)),zh(Le,te.x-ce.x,te.y-ce.y))}ot.free(z),ot.free(te),ot.free(E),ot.free(ue),In(re),In(se),x||(Ys(a),nh(a,y))}}Qt.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new ot),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=ot.alloc(),Bf(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 se=a.maxLocation,ue=se.x;return isNaN(ue)&&(ue=z?Math.round(1e3*a.location.x)/1e3:a.location.x),se=se.y,isNaN(se)&&(se=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,ue)),Math.max(te,Math.min(x.y,se))),E!==y&&ot.free(E),b};function Ff(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Bf(a,y,x,b,E){if(E===void 0&&(E=Ff(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 se=z.gridCellSize;isNaN(a)&&(a=se.width),isNaN(y)&&(y=se.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(te)&&(te=z.y)}z=ot.allocAt(0,0),z.yi(0,0,a,y,E),Ft.No(x.x,x.y,re+z.x,te+z.y,a,y,b),ot.free(z)}}function zf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ri&&(y.suspendsRouting=!0)}function nh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ri&&(x.suspendsRouting=!1,ry(x)&&x.bb())}a.Mr=!1}}function dg(a,y,x){return y=y.containingGroup,y!==null&&(a=dg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}De=Qt.prototype,De.Pd=function(a,y,x){if(x===void 0)return new Nn(Gr);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Nn(new ot(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Nn(x.copy())};function jf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Rt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Rt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Rt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Rt("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&&Rt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}De.Al=function(a){jf(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(Fa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},De.Ww=function(a,y){jf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(rs,"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(Fa,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},De.Cy=function(a,y){jf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(rs,"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(Fa,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},De.kA=function(a){if(a.diagram!==this&&Rt("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(rs,"layers",this,a,null,x,null),this.N(),this.Ya()}}},De.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},De.Yw=function(a){return this.pf===null&&(this.pf=new ln),this.pf.add(a),this.model.Pe(a),this},De.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},De.Pe=function(a){return this.zg===null&&(this.zg=new ln),this.zg.add(a),this},De.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},De.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Cl&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},De.cb=function(a,y,x,b,E,z,te){z===void 0&&(z=null),te===void 0&&(te=null);var re=new da;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)},De.g=function(a,y,x,b,E){this.cb(ha,a,this,y,x,b,E)},Qt.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===ha){var E=a.object;if(pa(E,a.propertyName,a.I(y)),E instanceof Nt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Fa){var te=a.object,re=a.newParam,se=a.newValue;if(te instanceof ei)if(typeof re=="number"&&se instanceof Nt){y?te.pc(re):te.Gb(re,se);var ue=te.part;ue!==null&&ue.Wb()}else typeof re=="number"&&se instanceof Cs&&(se.isRow?gS(te,re,y?void 0:se):pS(te,re,y?void 0:se));else if(te instanceof ga){var ce=a.oldParam===!0;typeof re=="number"&&se instanceof Bi&&(y?(se.isSelected=!1,se.isHighlighted=!1,se.Wb(),te.pc(ce?re:-1,se,ce)):te.oi(re,se,ce))}else te instanceof Qt?typeof re=="number"&&se instanceof ga&&(y?this.Wa.mb(re):(se.Xe(this),this.Wa.Gb(re,se))):Rt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===rs){var ve=a.object,Ce=a.oldParam,Le=a.oldValue;if(ve instanceof ei)typeof Ce=="number"&&Le instanceof Nt?y?ve.Gb(Ce,Le):ve.pc(Ce):typeof Ce=="number"&&Le instanceof Cs&&(Le.isRow?gS(ve,Ce,y?Le:void 0):pS(ve,Ce,y?Le:void 0));else if(ve instanceof ga){var Me=a.newParam===!0;typeof Ce=="number"&&Le instanceof Bi&&(y?0>ve.Pa.indexOf(Le)&&ve.oi(Ce,Le,Me):(Le.isSelected=!1,Le.isHighlighted=!1,Le.Wb(),ve.pc(Me?Ce:-1,Le,Me)))}else ve instanceof Qt?typeof Ce=="number"&&Le instanceof ga&&(y?(Le.Xe(this),this.Wa.Gb(Ce,Le)):this.Wa.mb(Ce)):Rt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Cl&&Rt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Qt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Qt.prototype.eb=function(a){return this.undoManager.eb(a)},Qt.prototype.Kf=function(){return this.undoManager.Kf()},Qt.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}},Qt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Qt.prototype.rp=function(){this.partManager.rp()};function hg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Bc(a),a.N(),a.Ee=!0,b.zb&&(qs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Bc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,te=a.ya,re=a.zoomPoint.x,se=a.zoomPoint.y,ue=a.contentAlignment;isNaN(re)&&(ue.$c()?ue.Hf(qu)?re=0:ue.Hf(ml)&&(re=z-1):re=ue.sb()?ue.x*(z-1):z/2),isNaN(se)&&(ue.$c()?ue.Hf(Ju)?se=0:ue.Hf(Il)&&(se=te-1):se=ue.sb()?ue.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=ot.allocAt(a.pa.x+re/y-re/x,a.pa.y+se/y-se/x),a.position=z,ot.free(z),a.Ca=x,Bc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),eu(a,!1),b.zb&&(qs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Qt.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!==vl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof sa&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Mf(E,this)),this.vb||this.invalidateViewport(a,y),Fc(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 Fc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ai.alloc(),E=1,z=1,te=x.O.s,re=te.length,se=0;se<re;se++){var ue=te[se],ce=Math.abs(ue.interval);2>ce||(T0(ue.figure)?z=z*ce/Ft.vx(z,ce):E=E*ce/Ft.vx(E,ce))}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=vn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){vn.free(y);return}E=y.width,z=y.height,a=y.x,te=y.y,vn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=ot.alloc(),Ft.No(a,te,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ai.free(b),x.part.location=y,ot.free(y)}}Qt.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)}},Qt.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))},Qt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Fn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Bi||Rt("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 Bi||Rt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Qt.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()}},De=Qt.prototype,De.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},De.Jz=function(a){a=new bn().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 Bi||Rt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},De.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=ot.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)),ot.free(z);return}Rt("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):Rt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),ot.free(z)},De.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)},De.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},De.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)},De.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,se=y.m21,ue=y.m22,ce=y.dx,ve=y.dy,Ce=x*te+b*se+ce;y=x*re+b*ue+ve;var Le=E*te+b*se+ce;return a=E*re+b*ue+ve,b=x*te+z*se+ce,x=x*re+z*ue+ve,te=E*te+z*se+ce,E=E*re+z*ue+ve,z=Math.min(Ce,Le),Ce=Math.max(Ce,Le),Le=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Ce=Math.max(Ce,b),Le=Math.min(Le,x),y=Math.max(y,x),z=Math.min(z,te),Ce=Math.max(Ce,te),Le=Math.min(Le,E),y=Math.max(y,E),new vn(z,Le,Ce-z,y-Le)},De.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),Wr(a.copy(),this.Ab)};function Uf(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function rf(a){return a=Kf.get(a),a!==null?new a:new Io}Qt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Cl&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(se){return se.diagram=E}),a.mouseMoveTools.each(function(se){return se.diagram=E}),a.mouseUpTools.each(function(se){return se.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===Cl){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ys(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Rs(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&&(Uf(this),this.As.clear(),Na(this.animationManager)),!this.Rt&&te&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Ci(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function ih(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)qc(a,y[b])}function qc(a,y){if(y instanceof cu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof bn&&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 Us(a,y){if(y instanceof cu){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 bn&&x.Bg.remove(a),ep(b));break}}}}}Qt.prototype.Wd=function(){this.partManager.Wd()},Qt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Qt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Qt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Qt.prototype.Vb=function(a){return this.partManager.Vb(a)},Qt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},De=Qt.prototype,De.Lc=function(a){return this.partManager.Lc(a)},De.ii=function(a){return this.partManager.ii(a)},De.Kc=function(a){return this.partManager.Kc(a)},De.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:oo(hr(y)))},De.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:oo(hr(y)))};function Bc(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 Nh(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),eu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}De.Va=function(){if(this.Zi){var a=vn.alloc();Nh(this,this.computeBounds(a)),vn.free(a)}},De.rz=function(){for(var a=new bn,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},De.qz=function(){return this.ai.iterator},De.Uz=function(a){Ys(this),a&&of(this,!0),this.ld?Gf(this,!1):(this.Jk=!0,Tl(this))};function of(a,y){for(var x=a.ai.iterator;x.next();)fg(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function fg(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)fg(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Gf(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||ll(z,"Layout")),a.xh=!1;for(var te=a.ai.iterator;te.next();)Hf(a,te.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Ys(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||Rs(z),a.aa=x}}}function Hf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Hf(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),Pa(a,y),E.isValidLayout=!0):a.xh=!0)}}De.yz=function(){for(var a=new ln,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 ln;x.add(E,te),x.add(z,te),b.add(E,E),b.add(z,E)}var x=new ki,b=new ki;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 jg(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function gg(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Rt("Unknown DiagramEvent name: "+y)}De.Bj=function(a,y){return a=gg(this,a),a!==null&&a.add(y),this},De.am=function(a,y){a=gg(this,a),a!==null&&a.remove(y)},De.R=function(a,y,x){var b=gg(this,a),E=new fd;if(E.diagram=this,a=jg(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 _f(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}De.Yj=function(a,y){return Ia(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Qt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Od(this,a):a.assign(this.documentBounds)};function Ia(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=Wf(a,x)),x===null){y=vn.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&&Ih(a,te,b,y)}vn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=vn.alloc(),z=x.memberParts;z.next();)te=z.value,te instanceof Si&&Ih(a,te,b,y);vn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&lx(E);return E}function Wf(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Wf(a,y.containingGroup):null}function Ih(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(Uh,x,y+1);else for(var te=x;te<=y;te++)z[te]=Uh}else if(y instanceof Sr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Si&&Ih(a,E,x,b)}}function rh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Qt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():pg(this)};function pg(a){a.vk===-1&&(a.vk=Ci(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=vn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Nh(a,y),vn.free(y),a.Fc=!0,a.bd(),pg(a))}},a.vp))}Qt.prototype.ug=function(){this.vk!==-1&&(Et.clearTimeout(this.vk),this.vk=-1)},Qt.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=vn.allocAt(0,0,b.width*E,b.height*E);var z=ot.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(Gr)||(y=new ot(y.x+z.x/E,y.y+z.y/E)),vn.free(b),ot.free(z),y},De=Qt.prototype,De.Cs=function(){return null},De.av=function(){return null},De.bs=function(a,y){this.pj.add(a,y)},De.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Sr&&(y.$p=null)})};function af(a,y,x){function b(){var ce=+new Date;for(z=!0,te.reset();te.next();)if(!te.value[0].al){z=!1;break}z||ce-ue>se?y(x,E,re):Et.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,se=x.callbackTimeout||300,ue=+new Date;return Et.requestAnimationFrame(function(){b()}),null}De.Wz=function(a){return Ma?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},De.Jx=function(a){return a===void 0&&(a={}),af(this,this.Xz,a)},De.Xz=function(a,y,x){var b=Ug(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 Dt+"data":E=b.getImageData(0,0,x.width,x.height);break;case Dt:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Rt('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 Ug(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Rt("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 ai(1/0,1/0):new ai(2e3,2e3));var re=y.position||null,se=y.parts||null,ue=y.padding===void 0?1:y.padding,ce=y.background||null,ve=y.omitTemporary;ve===void 0&&(ve=!0);var Ce=y.document||document,Le=y.elementFinished||null,Me=y.showTemporary;Me===void 0&&(Me=!ve),y=y.showGrid,y===void 0&&(y=Me),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ue=="number"?ue=new ji(ue):ue instanceof ji||Rt("MakeImage padding must be a Margin or a number."),ue.left=Math.max(ue.left,0),ue.right=Math.max(ue.right,0),ue.top=Math.max(ue.top,0),ue.bottom=Math.max(ue.bottom,0),a.ib.Vc(!0),ve=new oa(null,Ce,void 0,!0);var We=ve.context;if(!(E||z||se||re))return ve.width=a.Aa+Math.ceil(ue.left+ue.right),ve.height=a.ya+Math.ceil(ue.top+ue.bottom),x==="SVG"?b===null?null:(b.resize(ve.width,ve.height,ve.width,ve.height),b.ownerDocument=Ce,b.hs=Le,ns(a,b.context,ue,new ai(ve.width,ve.height),a.Ca,a.pa,se,ce,Me,y),b.context):(a.Xm=!1,ns(a,We,ue,new ai(ve.width,ve.height),a.Ca,a.pa,se,ce,Me,y),a.Xm=!0,ve.context);var ut=a.Pp,tt=a.documentBounds.copy();if(tt.Fv(a.yb),Me)for(var mt=a.Wa.s,xt=mt.length,Pt=0;Pt<xt;Pt++){var Mt=mt[Pt];if(Mt.visible&&Mt.isTemporary){Mt=Mt.Pa.s;for(var en=Mt.length,pi=0;pi<en;pi++){var Ai=Mt[pi];Ai.isInDocumentBounds&&Ai.isVisible()&&(Ai=Ai.actualBounds,Ai.w()&&tt.ed(Ai))}}}if(mt=new ot(tt.x,tt.y),se!==null){for(xt=new vn(0,0,0,0),Pt=!0,Mt=se.iterator,Mt.reset();Mt.next();)en=Mt.value,en instanceof Bi&&(pi=en.layer,pi!==null&&!pi.visible||pi!==null&&!Me&&pi.isTemporary||!en.isVisible()||(en=en.actualBounds,en.w()&&(Pt?(Pt=!1,xt.assign(en)):xt.ed(en))));tt.width=xt.width,tt.height=xt.height,mt.x=xt.x,mt.y=xt.y}return re!==null&&re.w()&&(mt=re,z||(z=ut)),xt=re=0,ue!==null&&(re=ue.left+ue.right,xt=ue.top+ue.bottom),Pt=Mt=0,E!==null&&(Mt=E.width,Pt=E.height,isFinite(Mt)&&(Mt=Math.max(0,Mt-re)),isFinite(Pt)&&(Pt=Math.max(0,Pt-xt))),E!==null&&z!==null?(z==="NaN"&&(z=ut),E.w()?(E=Mt,tt=Pt):isNaN(Pt)?(E=Mt,tt=tt.height*z):(E=tt.width*z,tt=Pt)):E!==null?E.w()?(z=Math.min(Mt/tt.width,Pt/tt.height),E=Mt,tt=Pt):isNaN(Pt)?(z=Mt/tt.width,E=Mt,tt=tt.height*z):(z=Pt/tt.height,E=tt.width*z,tt=Pt):z!==null?z==="NaN"&&te.w()?(z=Math.min((te.width-re)/tt.width,(te.height-xt)/tt.height),z>ut?(z=ut,E=tt.width,tt=tt.height):(E=te.width,tt=te.height)):(E=tt.width*z,tt=tt.height*z):(z=ut,E=tt.width,tt=tt.height),ue!==null?(E+=re,tt+=xt):ue=new ji(0),te!==null&&(ut=te.width,te=te.height,isNaN(ut)&&(ut=2e3),isNaN(te)&&(te=2e3),isFinite(ut)&&(E=Math.min(E,ut)),isFinite(te)&&(tt=Math.min(tt,te))),ve.width=Math.ceil(E),ve.height=Math.ceil(tt),x==="SVG"?b===null?null:(b.resize(ve.width,ve.height,ve.width,ve.height),b.ownerDocument=Ce,b.hs=Le,ns(a,b.context,ue,new ai(Math.ceil(E),Math.ceil(tt)),z,mt,se,ce,Me,y),b.context):(a.Xm=!1,ns(a,We,ue,new ai(Math.ceil(E),Math.ceil(tt)),z,mt,se,ce,Me,y),a.Xm=!0,ve.context)}At.Object.defineProperties(Qt.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 yc(this,Et.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 yc(this,Et.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(Et,"resize",this.Ov,!1),this.removeEventListener(Et,"wheel",this.$j,!0),tc===this&&(tc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ch(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)&&vi(a,"0 <= value <= 1",Qt,"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),eu(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),eu(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),eu(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),eu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&vi(a,">= 0",Qt,"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&&vi(a,">= 0",Qt,"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 vi(a,">= 0",Qt,"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||Uf(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&&Rt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Id(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,ll(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=rf(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(Et,"pointermove",this.dk,!0),this.addEventListener(Et,"pointerdown",this.ui,!0),this.addEventListener(Et,"pointerup",this.fk,!0),this.addEventListener(Et,"pointerout",this.ek,!0),this.addEventListener(Et,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Et,"wheel",this.$j,!0),this.addEventListener(Et,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Et,"pointermove",this.dk,!0),this.removeEventListener(Et,"pointerdown",this.ui,!0),this.removeEventListener(Et,"pointerup",this.fk,!0),this.removeEventListener(Et,"pointerout",this.ek,!0),this.removeEventListener(Et,"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(Et,"wheel",this.$j,!0),this.removeEventListener(Et,"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=ot.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Bs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Bc(this):(this.vb=!0,a=this.scale,Th(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)}ot.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=tf(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tf(this)),a.type!==ei.Grid&&Rt("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),Fc(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),Bc(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||Rt("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 ji(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&&eu(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,eu(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,hg(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&&hg(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!==vl&&eu(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()||Rt("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()||Rt("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)):vi(a,"> 0",Qt,"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)):vi(a,"> 0",Qt,"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),eu(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 ji(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&&Rt("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();)_p(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Ie&&a!==He&&a!==rt&&Rt("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 ai(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 ji(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),At.Object.defineProperties(Qt,{licenseKey:{get:function(){return ct.jc()},set:function(a){ct.add(a.replace(/\s/g,""))}},version:{get:function(){return St}}}),Qt.prototype.makeImageData=Qt.prototype.Jx,Qt.prototype.makeImage=Qt.prototype.Wz,Qt.prototype.cacheGroupExternalLinks=Qt.prototype.Fu,Qt.prototype.addRenderer=Qt.prototype.bs,Qt.prototype.makeSVG=Qt.prototype.av,Qt.prototype.makeSvg=Qt.prototype.Cs,Qt.prototype.stopAutoScroll=Qt.prototype.ug,Qt.prototype.doAutoScroll=Qt.prototype.gs,Qt.prototype.isUnoccupied=Qt.prototype.Yj,Qt.prototype.raiseDiagramEvent=Qt.prototype.R,Qt.prototype.removeDiagramListener=Qt.prototype.am,Qt.prototype.addDiagramListener=Qt.prototype.Bj,Qt.prototype.findTreeRoots=Qt.prototype.yz,Qt.prototype.layoutDiagram=Qt.prototype.Uz,Qt.prototype.findTopLevelGroups=Qt.prototype.qz,Qt.prototype.findTopLevelNodesAndLinks=Qt.prototype.rz,Qt.prototype.ensureBounds=Qt.prototype.Va,Qt.prototype.findLinksByExample=Qt.prototype.ls,Qt.prototype.findNodesByExample=Qt.prototype.ms,Qt.prototype.findLinkForData=Qt.prototype.Kc,Qt.prototype.findNodeForData=Qt.prototype.ii,Qt.prototype.findPartForData=Qt.prototype.Lc,Qt.prototype.findLinkForKey=Qt.prototype.findLinkForKey,Qt.prototype.findNodeForKey=Qt.prototype.Vb,Qt.prototype.findPartForKey=Qt.prototype.findPartForKey,Qt.prototype.rebuildParts=Qt.prototype.Wd,Qt.prototype.transformViewToDoc=Qt.prototype.Ps,Qt.prototype.transformRectDocToView=Qt.prototype.zA,Qt.prototype.transformDocToView=Qt.prototype.op,Qt.prototype.centerRect=Qt.prototype.es,Qt.prototype.scrollToRect=Qt.prototype.tv,Qt.prototype.scroll=Qt.prototype.scroll,Qt.prototype.highlightCollection=Qt.prototype.Jz,Qt.prototype.highlight=Qt.prototype.Iz,Qt.prototype.selectCollection=Qt.prototype.rA,Qt.prototype.select=Qt.prototype.select,Qt.prototype.updateAllRelationshipsFromData=Qt.prototype.rp,Qt.prototype.updateAllTargetBindings=Qt.prototype.updateAllTargetBindings,Qt.prototype.commit=Qt.prototype.commit,Qt.prototype.rollbackTransaction=Qt.prototype.Kf,Qt.prototype.commitTransaction=Qt.prototype.eb,Qt.prototype.startTransaction=Qt.prototype.Ea,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.removeChangedListener=Qt.prototype.ik,Qt.prototype.addChangedListener=Qt.prototype.Pe,Qt.prototype.removeModelChangedListener=Qt.prototype.mA,Qt.prototype.addModelChangedListener=Qt.prototype.Yw,Qt.prototype.findLayer=Qt.prototype.Qj,Qt.prototype.removeLayer=Qt.prototype.kA,Qt.prototype.addLayerAfter=Qt.prototype.Cy,Qt.prototype.addLayerBefore=Qt.prototype.Ww,Qt.prototype.addLayer=Qt.prototype.Al,Qt.prototype.moveParts=Qt.prototype.moveParts,Qt.prototype.copyParts=Qt.prototype.Kj,Qt.prototype.removeParts=Qt.prototype.Is,Qt.prototype.remove=Qt.prototype.remove,Qt.prototype.add=Qt.prototype.add,Qt.prototype.clearDelayedGeometries=Qt.prototype.bx,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.resetInputOptions=Qt.prototype.Sx,Qt.prototype.setInputOption=Qt.prototype.sA,Qt.prototype.getInputOption=Qt.prototype.Ql,Qt.prototype.resetRenderingHints=Qt.prototype.Tx,Qt.prototype.setRenderingHint=Qt.prototype.Xx,Qt.prototype.getRenderingHint=Qt.prototype.Gf,Qt.prototype.maybeUpdate=Qt.prototype.bd,Qt.prototype.requestUpdate=Qt.prototype.$b,Qt.prototype.delayInitialization=Qt.prototype.Xy,Qt.prototype.isUpdateRequested=Qt.prototype.Pz,Qt.prototype.invalidateDocumentBounds=Qt.prototype.Ya,Qt.prototype.findObjectsNear=Qt.prototype.og,Qt.prototype.findPartsNear=Qt.prototype.mz,Qt.prototype.findObjectsIn=Qt.prototype.Cf,Qt.prototype.findPartsIn=Qt.prototype.ux,Qt.prototype.findObjectsAt=Qt.prototype.ji,Qt.prototype.findPartsAt=Qt.prototype.lz,Qt.prototype.findObjectAt=Qt.prototype.ic,Qt.prototype.findPartAt=Qt.prototype.Ol,Qt.prototype.focusObject=Qt.prototype.zz,Qt.prototype.alignDocument=Qt.prototype.Jy,Qt.prototype.zoomToRect=Qt.prototype.BA,Qt.prototype.zoomToFit=Qt.prototype.zoomToFit,Qt.prototype.diagramScroll=Qt.prototype.kx,Qt.prototype.focus=Qt.prototype.focus;var Kf=new ki,Gg=null,Ma=Et.document!==void 0,Mh=null,Fd="",vl=new Ht(Qt,"None",0),iu=new Ht(Qt,"Uniform",1),oh=new Ht(Qt,"UniformToFill",2),sf=new Ht(Qt,"CycleAll",10),Vf=new Ht(Qt,"CycleNotDirected",11),lf=new Ht(Qt,"CycleNotDirectedFast",12),uf=new Ht(Qt,"CycleNotUndirected",13),mg=new Ht(Qt,"CycleDestinationTree",14),vg=new Ht(Qt,"CycleSourceTree",15),he=new Ht(Qt,"DocumentScroll",1),Ae=new Ht(Qt,"InfiniteScroll",2),Ie=new Ht(Qt,"TreeParentCollapsed",21),He=new Ht(Qt,"AllParentsCollapsed",22),rt=new Ht(Qt,"AnyParentsCollapsed",23),ct=new ln,St="2.3.10",Dt="image",cn=null,On=!1;function an(){if(Ma){var a=Et.document.createElement("canvas"),y=a.getContext("2d"),x=ui("7ca11abfd022028846");y[x]=ui("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Ln.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ar.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ft.za],E=1;5>E;E++)y[ui("7ca11abfd7330390")](ui(b[E-1]),10,15*E);for(y[x]=ui("39f046ebb36e4b"),x=1;5>x;x++)y[ui("7ca11abfd7330390")](ui(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ar.prototype.Cd=Ar.prototype.Eu),cn=a}}Qt.className="Diagram",Qt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Et.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Qt?y.H:null},Qt.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},Qt.useDOM=function(a){Ma=a?Et.document!==void 0:!1},Qt.isUsingDOM=function(){return Ma},Qt.None=vl,Qt.Uniform=iu,Qt.UniformToFill=oh,Qt.CycleAll=sf,Qt.CycleNotDirected=Vf,Qt.CycleNotDirectedFast=lf,Qt.CycleNotUndirected=uf,Qt.CycleDestinationTree=mg,Qt.CycleSourceTree=vg,Qt.DocumentScroll=he,Qt.InfiniteScroll=Ae,Qt.TreeParentCollapsed=Ie,Qt.AllParentsCollapsed=He,Qt.AnyParentsCollapsed=rt;function Xn(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Vn(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=Et[ui("76a715b2f73f148a")][ui("72ba13b5")]||"";if(a.Rc=!0,Ma){var b=Qt[ui("76a115b6ed251eaf4692")];if(b)for(var E=ct.iterator;E.next()&&(b=E.value,b=ui(b).split(ui("39e9")),!(6>b.length));){var z=ui(b[1]).split(".");if(b[4]!=="7da71ca0")break;var te=ui(Ln[ui("6cae19")]).split(".");if(z[0]>te[0]||z[0]===te[0]&&z[1]>=te[1]){var re=Et[ui("74a900bae4370f8b51")][ui("6fbb13a1c2311e8a57")].toLowerCase();if(te=re[ui("73a612b6fb191d")](ui("3aad1ab6e022098b4dc4")),z=ui(b[2]),-1<te&&(re=re[ui("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<te),!a.Rc))break;for(te=x[ui("76ad18b4f73e")],re=x[ui("73a612b6fb191d")](ui("35e7"))+2;re<te;re++)y+=x[re];if(te=y[ui("73a612b6fb191d")](z),0>te&&z!==ui("7da71ca0ad381e90")&&(te=y[ui("73a612b6fb191d")](ui("76a715b2ef3e149757"))),0>te&&(te=y[ui("73a612b6fb191d")](ui("76a715b2ef3e149757"))),0>te&&(te=y[ui("73a612b6fb191d")](ui("2bfa41fdb3784bca12"))),0>te&&(te=x[ui("73a612b6fb191d")](ui("7baa19a6f76c1988428554"))),a.Rc=!(0<=te&&te<y[ui("73a612b6fb191d")](ui("35"))||y[ui("73a612b6fb191d")](ui("35"))===-1),!a.Rc||x[ui("73a612b6fb191d")](ui("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ui("73a612b6fb191d")](z)),!a.Rc)||(te=Et[ui("76a715b2f73f148a")][ui("69ad17a1e03e")],re=te[ui("73a612b6fb191d")](ui("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(te[ui("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){te=Et.document.createElement("div");for(var se=b[0].replace(/[A-Za-z]/g,"");4>se.length;)se+="9";if(re=se,se=se.substr(se.length-4),b="",b+=["gsh","gsf"][parseInt(se.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(se.substr(0,1),10)%4],te[ui("79a417a0f0181a8946")]=b,Et.document[ui("78a712aa")]){Et.document[ui("78a712aa")][ui("7bb806b6ed32388c4a875b")](te),se=Et.getComputedStyle(te).getPropertyValue(ui("78a704b7e62456904c9b12701b6532a8"));var ue=Et.getComputedStyle(te).getPropertyValue(ui("75b817b0ea2202"));if(Et.document[ui("78a712aa")][ui("68ad1bbcf533388c4a875b")](te),se){if(te=Et[ui("77a902b0eb1b1e804a8a")],ue==="0."+parseInt(re,10)%100||se.indexOf(parseInt(z[1]+z[2],16))!==-1&&se.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(te&&te(ui("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){te=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ce in te)if(b===te[ce].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ce=x[ui("76ad18b4f73e")],E=x[ui("73a612b6fb191d")](ui("35e7"))+2;E<ce;E++)y+=x[E];x=y[ui("73a612b6fb191d")](ui("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ui("73a612b6fb191d")](ui("35")))}}}return 0<a.Rc&&a!==a.wy}Xn.className="DiagramHelper";function Nn(a){this.j=a===void 0?new ot:a,this.o=new ot}At.Object.defineProperties(Nn.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 yr="DraggingInfo";Nn.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function oe(){this.reset()}oe.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ai(NaN,NaN).freeze(),this.gridSnapCellSpot=bs,this.gridSnapOrigin=new ot(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},oe.className="DraggingOptions";function ge(a,y){if(typeof a=="string"||Et.Element&&a instanceof Element)var x=Qt.call(this,a)||this;else x=Qt.call(this)||this,y=a;return pe(x),y&&x.nm(y),x}on(ge,Qt);function pe(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Xl,a.layout=new rl}ge.prototype.reset=function(){Qt.prototype.reset.call(this),pe(this)},ge.className="Palette";function ye(a,y){if(typeof a=="string"||Et.Element&&a instanceof Element)var x=Qt.call(this,a)||this;else x=Qt.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 Bi;var E=new Lr;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 ji(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Xe,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var te=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new ot(re.x-te.width/2,re.y-te.height/2)}},x.Pf=function(){b.Ya(),Ve(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&&Ve(b)},x.autoScale=iu,x.vb=!1,y&&Object.assign(x,y),x}on(ye,Qt),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(zl(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),Oe(this)}finally{this.ta=a,this.ib=y}}}Qt.prototype.redraw.call(this)},ye.prototype.gc=function(){if(this.Ka===null&&Rt("No div specified"),this.ta===null&&Rt("No canvas specified"),!(this.ta instanceof yc)&&(V0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){zl(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?Oe(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 Oe(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=vn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Fc(y,E),vn.free(E),Ys(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],se=a;if(re.visible&&re.opacity!==0){var ue=re.diagram.grid.part;if(!x&&re.isTemporary)b&&ue.layer===re&&(re=js(re,E),ue.gc(E,se),E.globalAlpha=re);else{for(var ce=js(re,E),ve=se.scale,Ce=vn.alloc(),Le=re.Pa.s,Me=Le.length,We=0;We<Me;We++){var ut=Le[We];(b||ut!==ue)&&re.Oj(E,ut,se,null,ve,Ce,!1)}vn.free(Ce),E.globalAlpha=ce}}}}}function Ve(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=ai.alloc();E.h(x.width,x.height),b.desiredSize=E,ai.free(E),a=2/a.scale,b instanceof Lr&&(b.strokeWidth=a),y.location=new ot(x.x-a/2,x.y-a/2),y.isSelected=!0}}}ye.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Kr;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(),Ve(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))},At.Object.defineProperties(ye.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof ye&&Rt("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),Ve(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),Ve(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 Xe(){la.call(this),this.j=null}on(Xe,la),Xe.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 ot(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new ot(a.x-this.j.x,a.y-this.j.y)),!0)},Xe.prototype.doActivate=function(){this.j=null,la.prototype.doActivate.call(this)},Xe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Xe.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 ot(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new ot(a.x-this.j.x,a.y-this.j.y)}}},Xe.className="OverviewDraggingTool";function et(){Mr(this),this.H=tc,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=Kr,this.hb=!0,this.cg=null,this.ob=200}et.prototype.toString=function(){return"CommandHandler"},et.prototype.Xe=function(a){this.H=a},et.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Er?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()},et.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},et.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof sa&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},et.prototype.canStopCommand=function(){return!0},et.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=""}},et.prototype.canSelectAll=function(){return this.diagram.allowSelect},et.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 bn,x=a.selection.iterator;x.next();)ff(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=""}},et.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},et.prototype.copySelection=function(){var a=this.diagram,y=new bn;for(a=a.selection.iterator;a.next();)ff(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},et.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},et.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},et.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},et.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Mh=null,Fd="";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 ln,x.addAll(z),Mh=x,Fd=y.model.dataFormat}}y.R("ClipboardChanged",x)},et.prototype.pasteFromClipboard=function(){var a=new bn,y=Mh;if(y===null)return a;var x=this.diagram;if(Fd!==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},et.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);Dc(y,z,new ot(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=""}},et.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Mh===null||Mh.count===0||Fd!==a.model.dataFormat)},et.prototype.undo=function(){this.diagram.undoManager.undo()},et.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},et.prototype.redo=function(){this.diagram.undoManager.redo()},et.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},et.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===vl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},et.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==vl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},et.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===vl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},et.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==vl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},et.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},et.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},et.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;ll(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=Kr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Rs(y)},et.prototype.canZoomToFit=function(){return this.diagram.allowZoom},et.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(se){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;ll(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=wt(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 se=E.pop();0<E.length&&se instanceof Si&&se.isTreeExpanded&&(!(se instanceof Sr)||se.isSubGraphExpanded);)se=E.pop();0<E.length?(se instanceof Bi&&y.tv(se.actualBounds),se instanceof Si&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof Sr&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof Bi&&y.es(se.actualBounds),y.am("LayoutCompleted",te)),y.eb("Scroll To Part")},te=function(){Ci(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 wt(a,y,x){if(y.isVisible())return x;if(y instanceof co)wt(a,y.adornedPart,x);else if(y instanceof ri){var b=y.fromNode;b!==null&&wt(a,b,x),y=y.toNode,y!==null&&wt(a,y,x)}else y instanceof Si&&(b=y.labeledLink,b!==null&&wt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),wt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),wt(a,y,x));return x}et.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Bi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},et.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ll(y.animationManager,"Collapse Tree");var x=new ln;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 Si&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},et.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Si&&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 Si&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},et.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ll(y.animationManager,"Expand Tree");var x=new ln;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 Si&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},et.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Si)||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 Si&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},et.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 ln,z=a.selection.iterator;z.next();){var te=z.value;te.Zc()&&te.canGroup()&&E.add(te)}for(var re=new ln,se=E.iterator;se.next();){var ue=se.value;z=!1;for(var ce=E.iterator;ce.next();)if(ue.Td(ce.value)){z=!0;break}z||re.add(ue)}if(0<re.count){var ve=re.first().containingGroup;if(ve!==null)for(;ve!==null;){E=!1;for(var Ce=re.iterator;Ce.next();)if(!Ce.value.Td(ve)){E=!0;break}if(E)ve=ve.containingGroup;else break}if(x instanceof Sr)xc(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Le=y.copyNodeData(x);Yt(Le)&&(y.xf(Le),b=a.ii(Le))}if(b!==null){ve!==null&&this.isValidMember(ve,b)&&(b.containingGroup=ve);for(var Me=re.iterator;Me.next();){var We=Me.value;this.isValidMember(b,We)&&(We.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},et.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 Jt(a){var y=gn();for(a=a.iterator;a.next();){var x=a.value;x instanceof ri||y.push(x)}a=new bn,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 In(y),a}et.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ri)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},et.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 ln;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Sr&&z.canUngroup()&&b.add(z)}var te=new ln;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var se=re.value;se.expandSubGraph();var ue=se.containingGroup,ce=ue!==null&&ue.data!==null?x.wa(ue.data):void 0;te.addAll(se.memberParts);for(var ve=te.iterator;ve.next();){var Ce=ve.value;if(Ce.isSelected=!0,!(Ce instanceof ri)){var Le=Ce.data;Le!==null?x.mp(Le,ce):Ce.containingGroup=ue}}y.remove(se)}}y.R("SelectionUngrouped",b,te)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},et.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 Sr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Sr&&y.canUngroup())return!0;return!1},et.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Jt(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},et.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ll(y.animationManager,"Collapse SubGraph");var x=new ln;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 Sr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},et.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Sr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Sr&&y.isSubGraphExpanded)return!0;return!1},et.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ll(y.animationManager,"Expand SubGraph");var x=new ln;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 Sr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},et.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Sr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Sr&&!y.isSubGraphExpanded)return!0;return!1},et.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 Xo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},et.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 Xo))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 Xo&&x.editable}),a!==null))return!0;return!1},et.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 Nt?E=a.ga(Xr):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new ot(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,Fo(x,!1,a)}},et.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)},et.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 ki,a===null)return b;for(var z=a.iterator;z.next();)Bu(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 ri&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},At.Object.defineProperties(et.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||Rt("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}}}),et.className="CommandHandler",pd=function(){return new et};function Nt(){Mr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ot(NaN,NaN).freeze(),this.jd=cs,this.Ab=new Ar,this.wh=new Ar,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=dl,this.uc=new vn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new vn(NaN,NaN,NaN,NaN).freeze(),this.dc=new vn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=wo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Bn,Sn,ti,gi,bi,Gi,lr,rr,Cr,wn;Nt.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=$t(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Nt.prototype.Vw=function(a){var y=this.Dh;if(Fn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Nt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Nt.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},Nt.prototype.copy=function(){return this.clone()},De=Nt.prototype,De.qb=function(a){a.classType===ri?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Rt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Nt&&(this.stretch=a)},De.toString=function(){return Gn(this.constructor)+"#"+Fr(this)},De.th=function(){this.A!==null&&(this.A.nc=!0)};function or(a){a.A===null?a.A=new nc:a.A.nc&&(a.A=a.A.copy())}De.Xc=function(){if(this.ba===null){var a=new su;a.Xi=Da,a.yj=Da,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},De.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===ha&&Ba(this)&&Eo(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 ki),te=z.undoManager.transactionLevel===0,a.startCondition===$s?te=!0:a.startCondition===Ya&&(te=!1),te?(z=new Aa,fa(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()):(ll(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof ei&&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 ei&&Yf(re,function(se){se.data!==null&&se.l&16777216&&se.La(y)})};function Eo(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=Nx(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 se=y.diagram;se===null||se.skipsModelSourceBindings||z.sp(a,re,x,b)}te===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,te,x))}}De.ks=function(a){return this.bindingId===a?this:null},De.g=function(a,y,x){this.cb(ha,a,this,y,x)},De.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 Ar);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function _n(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}De.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?na(a.x,a.y,0,0,0,b.height)<=y||na(a.x,a.y,0,b.height,b.width,b.height)<=y||na(a.x,a.y,b.width,b.height,b.width,0)<=y||na(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},De.se=function(){return!0},De.ca=function(a){var y=ot.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return ot.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 se=1/b;if(re.width*b<E&&re.height*b<E)return a=Jo(x.x-te*se,x.y-te*se,x.width+z*se,x.height+z*se,y.x,y.y),ot.free(y),a}return E=!1,(this instanceof co||this instanceof Lr?Jo(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)),ot.free(y),E},De.gh=function(a){var y=this.naturalBounds;return Jo(0,0,y.width,y.height,a.x,a.y)},De.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=vn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=ot.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)))),ot.free(E),vn.free(y),b},De.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=ot.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)))),ot.free(E),b},De.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=ot.allocAt(0,0),E=ot.allocAt(0,x.height),z=ot.allocAt(x.width,x.height),te=ot.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=vn.allocAt(0,0,x.width,x.height);var se=ot.allocAt(a.x,a.y);x.ca(y.Cd(se))?re=!0:(se.h(a.x,a.bottom),x.ca(y.Cd(se))?re=!0:(se.h(a.right,a.bottom),x.ca(y.Cd(se))?re=!0:(se.h(a.right,a.y),x.ca(y.Cd(se))&&(re=!0)))),ot.free(se),vn.free(x),!re&&(Ft.us(a,b,E)||Ft.us(a,E,z)||Ft.us(a,z,te)||Ft.us(a,te,b))&&(re=!0)}return ot.free(b),ot.free(E),ot.free(z),ot.free(te),re},De.ga=function(a,y){if(y===void 0&&(y=new ot),a instanceof Ii){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},De.mi=function(a){a===void 0&&(a=new vn);var y=this.naturalBounds,x=this.oe,b=ot.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),ao(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),ao(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),ao(a,b.x,b.y,0,0),ot.free(b),a},De.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},De.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},De.qs=function(a,y){return y===void 0&&(y=new ot),y.assign(a),this.oe.Cd(y),y},De.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},De.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,se=-z.m12*te,ue=-z.m21*te,ce=z.m11*te,ve=te*(z.m21*z.dy-z.m22*z.dx),Ce=te*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ft.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(te=a*re+y*ue+ve,a=a*se+y*ce+Ce,y=x*re+b*ue+ve,x=x*se+b*ce+Ce,E.h(0,0),b=this.naturalBounds,x=Ft.Ff(0,0,b.width,b.height,te,a,y,x,E),E.transform(z),x)},Nt.prototype.measure=function(a,y,x,b){if(Ul(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 ei;switch(Ka(this,!0)){case Sn:te=E=0,re&&(y=a=1/0);break;case Bn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(te=y);break;case gi:isFinite(a)&&a>x&&(E=a),te=0,re&&(y=1/0);break;case bi:isFinite(y)&&y>b&&(te=y),E=0,re&&(a=1/0)}re=this.maxSize;var se=this.minSize;E>re.width&&se.width<re.width&&(E=re.width),te>re.height&&se.height<re.height&&(te=re.height),x=Math.max(E,se.width),b=Math.max(te,se.height),re.width<x&&(x=Math.min(se.width,x)),re.height<b&&(b=Math.min(se.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()||Rt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ra(this,!1)}},Nt.prototype.Wl=function(){},Nt.prototype.Dd=function(){return!1},Nt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=vn.alloc();z.assign(this.Ib),this.Ib.ka(),nl(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&&Rh(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 Xo&&(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()||Rt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Hi(this,!1),vn.free(z)},De=Nt.prototype,De.eh=function(){};function Oa(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=Ka(a,!0),x===b&&z===E&&(y=Sn),y){case Sn:(x>b||z>E)&&(Ra(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Bn:Ra(a,!0),a.measure(b,E,0,0);break;case gi:Ra(a,!0),a.measure(b,z,0,0);break;case bi:Ra(a,!0),a.measure(x,E,0,0)}}}De.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Y0(x,!0),this.N(),ho(a,y)||(x.oh(),this.Pn(x)))},De.Pn=function(a){this.portId!==null&&(Y0(a,!0),a instanceof Si&&ZS(a,this))},De.gc=function(a,y){if(!Ds(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 ei&&Rh(this),te=this.Ib;if(z){var re=this.Ib,se=this.dc,ue=this.areaBackground,ce=this.Ma;ue===null&&ce===null||a.yc(),ue!==null&&(Yo(this,a,ue,!0,!0,se,re),ue instanceof qr&&ue.type===ac?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),ce!==null&&(Yo(this,a,ce,!0,!1,se,re),ce instanceof qr&&ce.type===ac?(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)),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&&Xa(this),ue=this.part,se=!1;var ve=0;ue&&y.Gf("drawShadows")&&(se=ue.isShadowed)&&(ce=ue.shadowOffset,ve=Math.max(ce.y,ce.x)*y.scale*y.Mb),ce=this.Dd();var Ce;if(!(Ce=y.$i||!ce)){var Le=this.naturalBounds;Ce=this.wh;var Me=Ce.m11,We=Ce.m21,ut=Ce.dx,tt=Ce.m12,mt=Ce.m22,xt=Ce.dy,Pt,Mt=Pt=0;Ce=Pt*Me+Mt*We+ut;var en=Pt*tt+Mt*mt+xt;Pt=Le.width+ve,Mt=0;var pi=Pt*Me+Mt*We+ut;Pt=Pt*tt+Mt*mt+xt,Mt=Math.min(Ce,pi);var Ai=Math.min(en,Pt),Ei=Math.max(Ce+0,pi)-Mt,ii=Math.max(en+0,Pt)-Ai;Ce=Mt,en=Ai,Pt=Le.width+ve,Mt=Le.height+ve,pi=Pt*Me+Mt*We+ut,Pt=Pt*tt+Mt*mt+xt,Mt=Math.min(Ce,pi),Ai=Math.min(en,Pt),Ei=Math.max(Ce+Ei,pi)-Mt,ii=Math.max(en+ii,Pt)-Ai,Ce=Mt,en=Ai,Pt=0,Mt=Le.height+ve,pi=Pt*Me+Mt*We+ut,Pt=Pt*tt+Mt*mt+xt,Mt=Math.min(Ce,pi),Ai=Math.min(en,Pt),Ei=Math.max(Ce+Ei,pi)-Mt,ii=Math.max(en+ii,Pt)-Ai,Ce=Mt,en=Ai,ve=y.viewportBounds,Le=ve.x,Me=ve.y,Ce=!(Ce>ve.width+Le||Le>Ei+Ce||en>ve.height+Me||Me>ii+en)}if(Ce){if(Ce=(this.l&256)!==0,a.clipInsteadOfFill&&(Ce=!1),this instanceof Xo&&(a.font=this.font),Ce){if(en=re.se()?re.naturalBounds:re.actualBounds,Ei=Math.max(te.x,en.x),ii=Math.max(te.y,en.y),ve=Math.min(te.right,en.right)-Ei,Le=Math.min(te.bottom,en.bottom)-ii,Me=this.tb,Me!==null&&(Ei=Me.x,ii=Me.y,ve=Me.width,Le=Me.height),Ei>te.width+te.x||te.x>en.width+en.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Ei,ii,ve,Le),a.clip()}if(ce){if(!ue.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}se&&(en=ue.shadowOffset,a.Ev(en.x*y.scale*this.scale*y.Mb,en.y*y.scale*this.scale*y.Mb,ue.shadowBlur),jo(a),a.shadowColor=ue.shadowColor)}se&&this.shadowVisible===!0?jo(a):se&&this.shadowVisible===!1&&nr(a),ue=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Gs(this,a,ue,te)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),se&&Ta(this,re)&&this.shadowVisible===null&&nr(a),this.Ma!==null&&(a.yc(),Hs(this,a,ue,te)),se&&(this.Ma!==null||this.areaBackground!==null||Ta(this,re))?(ru(this,!0),this.shadowVisible===null&&nr(a)):ru(this,!1),this.hh(a,y),se&&this.l&512&&jo(a),ce&&se&&nr(a),Ce&&(a.restore(),a.Vc(this instanceof ei)),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 Ta(a,y){return y===null?!1:(Rh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ei.Auto||y.type===ei.Spot)&&y.Pb()!==a)}De.Dv=function(){};function Gs(a,y,x,b){Yo(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof qr&&a.areaBackground.type===ac?(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 Hs(a,y,x,b){var E=a.kq(),z=x.x,te=x.y,re=x.width+E,se=x.height+E;Yo(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof qr&&a.Ma.type===ac?(y.beginPath(),y.rect(z-E/2,te-E/2,re,se),y.ng(a.Ma)):y.fillRect(z-E/2,te-E/2,re,se)}function wa(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===ei.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 Ds(a,y,x){if(!(y instanceof lu))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&&wa(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),jo(y),y.shadowColor=a.shadowColor}a instanceof Xo&&(y.font=a.font),y.yd=null;var te=a.transform;z=a instanceof ei;var re=a instanceof ei?Rh(a):!1;a.l&4096&&Xa(a);var se=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(yg(y,1,0,0,1,0,0),a.svg=y.ad):z?(yg(y,te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.svg=y.ad):yg(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ue=te.copy().Vj();y.rb.ha=[ue.m11,ue.m12,ue.m21,ue.m22,ue.dx,ue.dy],Gs(a,y,E,se),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]),Hs(a,y,E,se),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],Hs(a,y,E,se)),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&&jo(y),re&&a.shadowVisible===!0?jo(y):re&&a.shadowVisible===!1&&nr(y),E=a.panel,re&&Ta(a,E)&&a.shadowVisible===null&&nr(y),y.Il&&(ue=x.computePixelRatio(),ue="drop-shadow("+y.shadowOffsetX/ue+"px "+y.shadowOffsetY/ue+"px "+y.shadowBlur/ue/2+"px "+y.shadowColor+")",a.background!==null&&te.Ma.setAttributeNS(null,"filter",ue),a.areaBackground!==null&&te.gd.setAttributeNS(null,"filter",ue)),re&&(a.Ma!==null||a.areaBackground!==null||Ta(a,E))?(ru(a,!0),a.shadowVisible===null&&nr(y)):ru(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,ue=a.svg,!z&&ue!==null&&re!==ue&&ue.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,se,re),Es(y,ue),!0):(a.svg=re,te!==null&&re===null&&(_g(y),y.nh.pop()),re===null||(a.$o(y,b,se,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&&jo(y),a.Dd()&&nr(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&&wa(a,b,re),te!==null&&te(a,re)),!0)}De.$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"+vo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:te,height:x}),this instanceof ei&&(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"),Es(a,b)};function Es(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Bo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=hr(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()}}De.hh=function(){},De.lv=function(){this.Uc=!0},De.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 ei?Rh(this):!1;if(!(this instanceof ei&&E))if(this instanceof cu){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",Zf(a)):y.setAttributeNS(null,"transform",Zf(a))}else if(!x||this instanceof ei)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Lr){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],Gs(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&&Ls(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Ls(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof ei))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Hs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Ls(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&&Ls(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},De.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 Yo(a,y,x,b,E,z,te){if(x!==null){var re=1,se=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Oh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ue=a.kq();if(re=z.width,se=z.height,E?(re=te.width,se=te.height):b||(re+=ue,se+=ue),(z=y instanceof cl)&&x.xe&&(x.type===Yg||x.yk===re&&x.ft===se))var ce=x.xe;else{var ve=0,Ce=0,Le=0,Me=0,We=0,ut=0;if(ut=We=0,E?(We=te.x,ut=te.y):b||(We-=ue/2,ut-=ue/2),ve=x.start.x*re+x.start.offsetX,Ce=x.start.y*se+x.start.offsetY,Le=x.end.x*re+x.end.offsetX,Me=x.end.y*se+x.end.offsetY,ve+=We,Le+=We,Ce+=ut,Me+=ut,x.type===sh)ce=y.createLinearGradient(ve,Ce,Le,Me);else if(x.type===ac)ut=isNaN(x.endRadius)?Math.max(re,se)/2:x.endRadius,isNaN(x.startRadius)?(We=0,ut=Math.max(re,se)/2):We=x.startRadius,ce=y.createRadialGradient(ve,Ce,We,Le,Me,ut);else if(x.type===Yg)try{ce=y.createPattern(x.pattern,"repeat")}catch(mt){ce=null}if(x.type!==Yg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ce.addColorStop(E.key,E.value);if(z&&(x.xe=ce,ce!==null&&(x.yk=re,x.ft=se),ce===null&&x.type===Yg&&x.yk!==-1)){x.yk=-1;var tt=a.diagram;tt!==null&&x.yk===-1&&Ci(function(){tt.redraw()},600)}}b?y.fillStyle=ce:y.strokeStyle=ce}}}De.rg=function(a){if(a instanceof ei)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},De.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},De.If=function(){for(var a=this instanceof ei?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){kl(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)}kl(a,!1),ou(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ou(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,ou(a,!1)))}De.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ot.alloc();z.yi(y,x,b,E,Xr),a.rotate(this.Kb,z.x,z.y),ot.free(z)}},De.v=function(a){if(!Ul(this)){a===void 0&&(a=!1),Ra(this,!0),Hi(this,!0);var y=this.panel;y===null||a||y.v()}},De.Uj=function(){Ul(this)||(Ra(this,!0),Hi(this,!0))};function As(a){if(!nl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Si&&a.Bd(),y.$b())),Hi(a,!0)}}De.Uk=function(){!(this.l&2048)&&(kl(this,!0),ou(this,!0))},De.Wu=function(){ou(this,!0)},De.N=function(){var a=this.part;a!==null&&a.N()};function Ka(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===ei.Table?tl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===ei.Auto&&b.Pb()===a?Zo(a,Bn,y):x===Gi?b!==null?b.type===ei.Spot&&b.Pb()===a?Zo(a,Bn,y):(x=b.defaultStretch,x===Gi?Zo(a,Sn,y):Zo(a,x,y)):Zo(a,Sn,y):Zo(a,x,y)}function tl(a,y,x,b){var E=a.stretch;if(E!==Gi)return Zo(a,E,b);var z=E=null;switch(y.stretch){case bi:z=!0;break;case Bn:z=!0}switch(x.stretch){case gi:E=!0;break;case Bn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===gi||y===Bn),z===null&&(z=y===bi||y===Bn),E===!0&&z===!0?Zo(a,Bn,b):E===!0?Zo(a,gi,b):z===!0?Zo(a,bi,b):Zo(a,Sn,b)}function Zo(a,y,x){if(x)return y;if(y===Sn||(x=a.desiredSize,x.w()))return Sn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===gi)return Sn;if(y===Bn)return bi}else{if(y===bi)return Sn;if(y===Bn)return gi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===bi)return Sn;if(y===Bn)return gi}else{if(y===gi)return Sn;if(y===Bn)return bi}return y}function ru(a,y){a.l=y?a.l|512:a.l&-513}function Ba(a){return(a.l&1024)!==0}function jl(a,y){a.l=y?a.l|1024:a.l&-1025}function kl(a,y){a.l=y?a.l|2048:a.l&-2049}function ou(a,y){a.l=y?a.l|4096:a.l&-4097}function Ul(a){return(a.l&8192)!==0}function Ra(a,y){a.l=y?a.l|8192:a.l&-8193}function nl(a){return(a.l&16384)!==0}function Hi(a,y){a.l=y?a.l|16384:a.l&-16385}De.Gj=function(){this.svg=null},De.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},De.Av=function(){},De.zv=function(a){return this.pa=a,As(this),!0},De.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},De.kq=function(){return 0};function Or(a){var y=a.part;if(y instanceof Si&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||ZS(y,a)}}function va(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ei?a instanceof Si?a.Bd():a.qm(a,function(x){Or(x)}):Or(a))}De.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ss(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&mS(a)&&Rt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new ln),this.localBindings.add(E),this},De.set=function(a){return Object.assign(this,a),this},De.Du=function(a){return Qa(this,a),this},De.apply=function(a){return a(this),this},De.nm=function(a){return Eu(this,a),this},De.pz=function(){return this.ih()},De.ih=function(){for(var a=this instanceof ei?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},De.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ki),this.animationTriggers.add(a.propertyName,a),this};function zo(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=au.I(a);typeof z=="function"?(x=$t(arguments),b=z(x),Yt(b)||Rt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Et.go[a]}if(b===null&&(E!=null&&E.constructor||Rt("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 Qt&&1<x.length){z=b;var te=x[1];(typeof te=="string"||te instanceof HTMLDivElement)&&(Ch(z,te),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Rt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Qa(b,z);return b}function Qa(a,y){if(typeof y=="string")if(a instanceof Xo)a.text=y;else if(a instanceof Lr)a.figure=y;else if(a instanceof cu)a.source=y;else if(a instanceof ei)y=zc.I(y),y!==null&&(a.type=y);else if(a instanceof qr){var x=Pi(qr,y);x!==null?a.type=x:Rt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof si?(y=Pi(si,y),y!==null&&(a.type=y)):a instanceof io&&(y=Pi(io,y),y!==null&&(a.type=y));else if(y instanceof Nt)a instanceof ei||Rt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Cs){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 Cs?Km(b,y):Rt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Ht)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ns)a.type=y;else if(y instanceof ss)a instanceof Nt||a instanceof Cs?a.bind(y):Rt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Pl)a instanceof Nt?a.Jv(y):Rt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ps)a instanceof si&&a.type===si.o?a.figures.add(y):Rt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof io)a instanceof ps?a.segments.add(y):Rt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ya)a instanceof Qt||a instanceof Sr?a.layout=y:Rt("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++)Qa(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof qr){x=new Ti;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Eu(a,x)}else if(a instanceof Cs){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Rt("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)&&Rt("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]);Eu(a,E)}else Eu(a,y);else Rt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function il(a,y){au.add(a,y)}function Cu(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}At.Object.defineProperties(Nt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new nc),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 nc),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 nc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(or(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&&(or(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:_l},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===_l&&(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:Gr},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:Gi},set:function(a){var y=this.stretch;y!==a&&(or(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&&(or(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)&&vi(a,"0 <= value <= 1",Nt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Jf(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(Jf(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(),va(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&&Sg(a,"GraphObject.areaBackground"),a instanceof qr&&a.freeze(),or(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&&Sg(a,"GraphObject.background"),a instanceof qr&&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 Bi)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 ot(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&&Rt("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,va(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 Lr&&this.qc(),this.g("desiredSize",b,a),Ba(this)&&(a=this.part,a!==null&&(Eo(this,a,"width"),Eo(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 ai(a,this.jd.height).freeze(),this.v(),this instanceof Lr&&this.qc(),this.g("desiredSize",y,a),Ba(this)&&(a=this.part,a!==null&&Eo(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 ai(this.jd.width,a).freeze(),this.v(),this instanceof Lr&&this.qc(),this.g("desiredSize",y,a),Ba(this)&&(a=this.part,a!==null&&Eo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:xo},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(),or(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ja},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(),or(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 ji(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&&Xa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(or(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Sn},set:function(a){this.reshapingBehavior!==a&&(or(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()&&Rt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),As(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&&vi(a,">= 0",Nt,"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&&vi(a,">= 1",Nt,"columnSpan"),or(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&&vi(a,">= 0",Nt,"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&&vi(a,">= 1",Nt,"rowSpan"),or(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&&(or(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 Si||Rt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&q0(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:Da},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Or(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&vi(a,">= 0",Nt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Or(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),Or(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&&vi(a,">= 0",Nt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Da},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Or(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&vi(a,">= 0",Nt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Or(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),Or(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&&vi(a,">= 0",Nt,"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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(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&&(or(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Nt.prototype.trigger=Nt.prototype.Jv,Nt.prototype.findBindingPanel=Nt.prototype.ih,Nt.prototype.findTemplateBinder=Nt.prototype.pz,Nt.prototype.setProperties=Nt.prototype.nm,Nt.prototype.apply=Nt.prototype.apply,Nt.prototype.attach=Nt.prototype.Du,Nt.prototype.set=Nt.prototype.set,Nt.prototype.isEnabledObject=Nt.prototype.If,Nt.prototype.isVisibleObject=Nt.prototype.Ed,Nt.prototype.isContainedBy=Nt.prototype.rg,Nt.prototype.getNearestIntersectionPoint=Nt.prototype.rs,Nt.prototype.getLocalPoint=Nt.prototype.qs,Nt.prototype.getDocumentScale=Nt.prototype.Df,Nt.prototype.getDocumentAngle=Nt.prototype.li,Nt.prototype.getDocumentBounds=Nt.prototype.mi,Nt.prototype.getDocumentPoint=Nt.prototype.ga,Nt.prototype.intersectsRect=Nt.prototype.Yc,Nt.prototype.containedInRect=Nt.prototype.fh,Nt.prototype.containsRect=Nt.prototype.Re,Nt.prototype.containsPoint=Nt.prototype.ca,Nt.prototype.raiseChanged=Nt.prototype.g,Nt.prototype.raiseChangedEvent=Nt.prototype.cb,Nt.prototype.addCopyProperty=Nt.prototype.Vw;var au=null;Nt.className="GraphObject",au=new ki,il("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=zo(ei,ei.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof ei){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"},zo(Lr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Ii(0,0,2.76142374915397,2.761423749153969),spot2:new Ii(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 ei&&(x=b.fb("ButtonBorder"),x instanceof Lr)){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 ei&&(x=b.fb("ButtonBorder"),x instanceof Lr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof ei&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Lr){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 ei&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Lr){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 ei&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Lr){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 ei&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Lr))){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}),il("TreeExpanderButton",function(){var a=zo("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},zo(Lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ea},new ss("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ss("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof co&&(x=x.adornedPart),x instanceof Si){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}),il("SubGraphExpanderButton",function(){var a=zo("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},zo(Lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ea},new ss("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 co&&(x=x.adornedPart),x instanceof Sr){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}),il("ToolTip",function(){return zo(co,ei.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ot(0,3),shadowBlur:5},zo(Lr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Ii(0,0,4,6),spot2:new Ii(1,1,-4,-4)}))}),il("ContextMenu",function(){return zo(co,ei.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ot(0,3),shadowBlur:5},new ss("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),il("ContextMenuButton",function(){var a=zo("Button");a.stretch=gi;var y=a.fb("ButtonBorder");return y instanceof Lr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Ii(0,0,2,3),y.spot2=new Ii(1,1,-2,-2)),a}),il("PanelExpanderButton",function(a){var y=Cu(a,"COLLAPSIBLE"),x=zo("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},zo(Lr,{name:"ButtonIcon",strokeWidth:2},new ss("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Lr&&(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}),il("CheckBoxButton",function(a){var y=Cu(a);return a=zo("Button",{desiredSize:new ai(14,14)},zo(Lr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Bn,geometryStretch:ti,visible:!1},y!==""?new ss("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof ei){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}),il("CheckBox",function(a){a=Cu(a),a=zo("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ji(0,1,0,0)});var y=zo(ei,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ji(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}),Nt.None=Sn=new Ht(Nt,"None",0),Nt.Default=Gi=new Ht(Nt,"Default",0),Nt.Vertical=bi=new Ht(Nt,"Vertical",4),Nt.Horizontal=gi=new Ht(Nt,"Horizontal",5),Nt.Fill=Bn=new Ht(Nt,"Fill",3),Nt.Uniform=ti=new Ht(Nt,"Uniform",1),Nt.UniformToFill=lr=new Ht(Nt,"UniformToFill",2),Nt.FlipVertical=rr=new Ht(Nt,"FlipVertical",1),Nt.FlipHorizontal=Cr=new Ht(Nt,"FlipHorizontal",2),Nt.FlipBoth=wn=new Ht(Nt,"FlipBoth",3),Nt.make=zo,Nt.getBuilders=function(){var a=new ki,y;for(y in au)if(y!==y.toLowerCase()){var x=au.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Nt.defineBuilder=il,Nt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=au.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Nt))return y&&b.set(y),b;Rt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Nt.takeBuilderArgument=Cu;function nc(){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=xo,this.o=Ja,this.hg=Gi,this.ob=this.Bi=1,this.Pf=Sn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}nc.prototype.copy=function(){var a=new nc;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=Gr,this.rr=_l,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 su(){this.yj=this.Xi=wo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}su.prototype.copy=function(){var a=new su;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},su.className="LinkSettings";function rc(){this.ha=[1,0,0,1,0,0]}rc.prototype.copy=function(){var a=new rc;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},rc.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},rc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},rc.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)}},rc.className="STransform";function Pu(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Pu.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Pu.className="SGradient";function yc(a,y,x){this.ownerDocument=a=y===void 0?Et.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 lu(this,x)}yc.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},yc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Yt(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},yc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yc.prototype.focus=function(){this.Oa.focus()},yc.prototype.mx=function(){this.ownerDocument=null},At.Object.defineProperties(yc.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}}}),yc.className="SVGSurface";function lu(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 rc,this.j=_g(this),this.Nj=_g(this,"gojs-diagram"),this.Hl=this.ti=null;var x=vo++,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 Hg(a,y,x,b,E,z,te){a.Nj===void 0?yg(a,y,x,b,E,z,te):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+te+")")}De=lu.prototype,De.arc=function(a,y,x,b,E,z,te,re){var se=2*Math.PI,ue=se-1e-6,ce=x*Math.cos(b),ve=x*Math.sin(b),Ce=a+ce,Le=y+ve,Me=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(te-Ce)||1e-6<Math.abs(re-Le))&&this.path.push(["L",Ce,+Le]),0>b&&(b=b%se+se),b>ue?(this.path.push(["A",x,x,0,1,Me,a-ce,y-ve]),this.path.push(["A",x,x,0,1,Me,Ce,Le])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Me,a+x*Math.cos(E),y+x*Math.sin(E)])},De.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},De.Se=function(a){this.addPath(this.path,this.rb,a||0)},De.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},De.clearRect=function(){},De.clip=function(){this.Yl.clipPath=!0},De.closePath=function(){this.path.push(["z"])},De.createLinearGradient=function(a,y,x,b){var E=new Pu("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},De.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"+vo++,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(Dt,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},De.createRadialGradient=function(a,y,x,b,E,z){var te=new Pu("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,se){b=re/b,E=se/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)}De.drawImage=function(a,y,x,b,E,z,te,re,se){var ue="";a instanceof HTMLCanvasElement&&(ue=a.toDataURL()),a instanceof HTMLImageElement&&(ue=a.getAttribute("src"));var ce=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,te=x,re=b=ce,se=E=a),b=b||0,E=E||0,re=re||0,se=se||0,Lm(this,y,x,b,E,z||0,te||0,re,se),z={x:0,y:0,width:ce||b,height:a||E,href:ue},Ft.$(b,re)&&Ft.$(E,se)?ue.toLowerCase().indexOf(".svg")===-1&&ue.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ce||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),$f(this,Dt,z,this.rb),this.addElement(Dt,z)},De.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Np(this,this.Yl)},De.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},De.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},$f(this,"fill",a,this.rb),this.addElement("rect",a)},De.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},$f(this,"fill",a,this.rb),Np(this,a),this.svg.prepend(this.Ud("rect",a))},De.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},$f(this,"fill",y,this.rb),this.addElement("text",y,a[0])},De.lineTo=function(a,y){this.path.push(["L",a,y])},De.moveTo=function(a,y){this.path.push(["M",a,y])},De.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},De.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"])},De.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},De.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())},De.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||yg(this,a,y,x,b,E,z)};function Zf(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}De.scale=function(a,y){this.rb.scale(a,y)},De.translate=function(a,y){this.rb.translate(a,y)},De.transform=function(){},De.yc=function(){},De.stroke=function(){Mp(this,this.Yl)},De.jk=function(){this.clipInsteadOfFill||this.stroke()},De.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},De.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 $f(a,y,x,b){y==="fill"?Np(a,x):y==="stroke"&&Mp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Np(a,y){a.fillStyle instanceof Pu?y.fill=Op(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 Pu?y.setAttributeNS(null,"fill",Op(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 Mp(a,y){if(a.strokeStyle instanceof Pu)y.stroke=Op(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 Op(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"+vo++,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],se=re.color;re={offset:re.offset,"stop-color":se},/^rgba\(/.test(se)&&(se=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(se),re["stop-color"]="rgb("+se[1]+","+se[2]+","+se[3]+")",re["stop-opacity"]=se[4]),z.push(re)}for(z.sort(function(ue,ce){return ue.offset>ce.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}De.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=$t(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,$f(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 se in a)se!=="transform"&&re[x].setAttributeNS(null,se,a[se])}else this.addElement("path",a)};function yg(a,y,x,b,E,z,te){var re=new rc;re.ha=[y,x,b,E,z,te],y={},$f(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function _g(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}De.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function nr(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function jo(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}De.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},De.fs=function(){this.Ct=!1},De.Vc=function(){},De.Wx=function(){},lu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},lu.prototype.getImageData=function(){return null},lu.prototype.measureText=function(){return null};function Ls(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()))}lu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},lu.className="SVGContext",Qt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new yc(this,Et.document));var y=new yc(this,Et.document,!0);a===void 0&&(a=new Ti);var x=this;return af(this,function(b,E){return b=Ug(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Qt.prototype.makeSvg=Qt.prototype.Cs,Qt.prototype.av=function(a){return this.Cs(a)},Qt.prototype.makeSVG=Qt.prototype.av;function oa(a,y,x,b){this.ownerDocument=y=y===void 0?Et.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new cl(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},At.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 cl(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Rt("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 Ar,this.isTemporary=!!x}De=cl.prototype,De.Wx=function(a){this.Z.imageSmoothingEnabled=a},De.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},De.beginPath=function(){this.Z.beginPath()},De.Se=function(){},De.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},De.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},De.clip=function(){this.Z.clip()},De.closePath=function(){this.Z.closePath()},De.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},De.createPattern=function(a,y){return this.Z.createPattern(a,y)},De.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},De.drawImage=function(a,y,x,b,E,z,te,re,se){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,te,re,se)},De.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},De.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},De.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},De.fillText=function(a,y,x){this.Z.fillText(a,y,x)},De.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},De.lineTo=function(a,y){this.Z.lineTo(a,y)},De.measureText=function(a){return this.Z.measureText(a)},De.moveTo=function(a,y){this.Z.moveTo(a,y)},De.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},De.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},De.restore=function(){this.Z.restore()},De.save=function(){this.yc(),this.Z.save()},cl.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},De=cl.prototype,De.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},De.scale=function(a,y){this.El.scale(a,y)},De.translate=function(a,y){this.El.translate(a,y)},De.stroke=function(){this.Z.stroke()},De.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}},De.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},De.ng=function(a,y){if(a instanceof qr&&a.type===ac){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)},De.jk=function(){this.Hm||this.stroke()},De.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},De.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},De.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Sc),a.lineDashOffset=0)},De.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},De.Hs=function(){},At.Object.defineProperties(cl.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 Sc=Object.freeze([]);cl.className="CanvasSurfaceContext";function oc(){this.F=this.o=this.u=this.j=0}oc.className="ColorNumbers";function qr(a,y){$g||(b0(),$g=!0),Mr(this),this._isFrozen=!1,a===void 0?(this.na=Oh,this.xk="black"):typeof a=="string"?(this.na=Oh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===sh?(this.Qd=Xl,this.Lk=wl):this.Lk=a===ac?this.Qd=Xr:this.Qd=Da,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}qr.prototype.copy=function(){var a=new qr;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},De=qr.prototype,De.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},De.ka=function(){return Object.isFrozen(this)&&Rt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},De.qb=function(a){a.classType===qr&&(this.type=a)},De.toString=function(){var a="Brush(";if(this.type===Oh)a+=this.color;else if(a=this.type===sh?a+"Linear ":this.type===ac?a+"Radial ":this.type===Yg?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+")"},De.addColorStop=function(a,y){return this._isFrozen&&Yn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&vi(a,"0 <= loc <= 1",qr,"addColorStop:loc"),this.we===null&&(this.we=new ki),this.we.add(a,y),this.na===Oh&&(this.type=sh),this.xe=null,this},De.Vz=function(a,y){if(this._isFrozen&&Yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Xg:y,this.type===Oh)ah(this.color),this.color=Vg(a,y);else if((this.type===sh||this.type===ac)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ah(x.value),this.addColorStop(x.key,Vg(a,y));return this};function cf(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Xg:x,ah(a),Vg(y,x)}De.Wy=function(a,y){if(this._isFrozen&&Yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Xg:y,this.type===Oh)ah(this.color),this.color=Vg(-a,y);else if((this.type===sh||this.type===ac)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ah(x.value),this.addColorStop(x.key,Vg(-a,y));return this};function Rp(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Xg:x,ah(a),Vg(-y,x)}function Wg(a,y,x){ah(a),a=qo.j;var b=qo.u,E=qo.o,z=qo.F;return ah(y),x===void 0&&(x=.5),"rgba("+Math.round((qo.j-a)*x+a)+", "+Math.round((qo.u-b)*x+b)+", "+Math.round((qo.o-E)*x+E)+", "+Math.round((qo.F-z)*x+z)+")"}De.Gx=function(){if(this.type===Oh)return Kg(this.color);if((this.type===sh||this.type===ac)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ac)return Kg(a.first().value);if(a.get(.5)!==null)return Kg(a.get(.5));if(a.count===2)return a=a.Fa(),Kg(Wg(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,Kg(Wg(a.get(x),a.get(b),1-z/E))}return!1};function Kg(a){return a?a instanceof qr?a.Gx():(ah(a),128>(299*qo.j+587*qo.u+114*qo.o)/1e3):!1}function Vg(a,y){switch(y){case Xg:y=100*y0(qo.j);var x=100*y0(qo.u),b=100*y0(qo.o);return Gl.j=.4124564*y+.3575761*x+.1804375*b,Gl.u=.2126729*y+.7151522*x+.072175*b,Gl.o=.0193339*y+.119192*x+.9503041*b,Gl.F=qo.F,y=x0(Gl.j/Zg[0]),x=x0(Gl.u/Zg[1]),b=x0(Gl.o/Zg[2]),Bd.j=116*x-16,Bd.u=500*(y-x),Bd.o=200*(x-b),Bd.F=Gl.F,Bd.j=Math.min(100,Math.max(0,Bd.j+100*a)),a=(Bd.j+16)/116,y=a-Bd.o/200,Gl.j=Zg[0]*oS(Bd.u/500+a),Gl.u=Zg[1]*(Bd.j>Nm*w0?Math.pow(a,3):Bd.j/Nm),Gl.o=Zg[2]*oS(y),Gl.F=Bd.F,a=-.969266*Gl.j+1.8760108*Gl.u+.041556*Gl.o,y=.0556434*Gl.j+-.2040259*Gl.u+1.0572252*Gl.o,qo.j=255*S0((3.2404542*Gl.j+-1.5371385*Gl.u+-.4985314*Gl.o)/100),qo.u=255*S0(a/100),qo.o=255*S0(y/100),qo.F=Gl.F,qo.j=Math.round(qo.j),255<qo.j?qo.j=255:0>qo.j&&(qo.j=0),qo.u=Math.round(qo.u),255<qo.u?qo.u=255:0>qo.u&&(qo.u=0),qo.o=Math.round(qo.o),255<qo.o?qo.o=255:0>qo.o&&(qo.o=0),"rgba("+qo.j+", "+qo.u+", "+qo.o+", "+qo.F+")";case aS:return v0(),$u.o=Math.min(100,Math.max(0,$u.o+100*a)),"hsla("+$u.j+", "+$u.u+"%, "+$u.o+"%, "+$u.F+")";default:Rt("Unknown color space: "+y)}}function ah(a){$g||(b0(),$g=!0);var y=E0;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,qo.j=a[0],qo.u=a[1],qo.o=a[2],qo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,qo.j=0,qo.u=0,qo.o=0,qo.F=1)}}function v0(){var a=qo.j/255,y=qo.u/255,x=qo.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))}$u.j=Math.round(te),$u.u=Math.round(100*a),$u.o=Math.round(100*E),$u.F=qo.F}function y0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function S0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function x0(a){return a>w0?Math.pow(a,1/3):(Nm*a+16)/116}function oS(a){var y=a*a*a;return y>w0?y:(116*a-16)/Nm}function Sg(a,y){typeof a!="string"&&(a instanceof qr||Rt("Value for "+y+" must be a color string or a Brush, not "+a))}function b0(){E0=Ma?new oa(null,void 0,{willReadFrequently:!0}).context:null}At.Object.defineProperties(qr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Yn(this,a),this.na=a,this.start.Mc()&&(a===sh?this.start=Xl:a===ac&&(this.start=Xr)),this.end.Mc()&&(a===sh?this.end=wl:a===ac&&(this.end=Xr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Yn(this,a),0>a&&vi(a,">= zero",qr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Yn(this,a),0>a&&vi(a,">= zero",qr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Yn(this,a),this.cr=a,this.xe=null}}}),qr.prototype.isDark=qr.prototype.Gx,qr.prototype.darkenBy=qr.prototype.Wy,qr.prototype.lightenBy=qr.prototype.Vz,qr.prototype.addColorStop=qr.prototype.addColorStop;var w0=216/24389,Nm=24389/27,Zg=[95.047,100,108.883],E0=null,qo=new oc,$u=new oc,Gl=new oc,Bd=new oc,$g=!1;qr.className="Brush";var Oh;qr.Solid=Oh=new Ht(qr,"Solid",0);var sh;qr.Linear=sh=new Ht(qr,"Linear",1);var ac;qr.Radial=ac=new Ht(qr,"Radial",2);var Yg;qr.Pattern=Yg=new Ht(qr,"Pattern",4);var Xg;qr.Lab=Xg=new Ht(qr,"Lab",5);var aS;qr.HSL=aS=new Ht(qr,"HSL",6),qr.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},qr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;$g||(b0(),$g=!0);var y=E0;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)},qr.lighten=function(a){return cf(a)},qr.lightenBy=cf,qr.darken=function(a){return Rp(a)},qr.darkenBy=Rp,qr.mix=Wg,qr.isDark=Kg;function Ns(){this.xa="Base"}Ns.prototype.measure=function(){},Ns.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ns.prototype.arrange=function(){},Ns.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ns.prototype.iA=function(a){a.Uj()},Ns.prototype.gc=function(){},At.Object.defineProperties(Ns.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ei}}}),Ns.prototype.remeasureObject=Ns.prototype.iA,Ns.prototype.arrangeElement=Ns.prototype.Ly,Ns.prototype.measureElement=Ns.prototype.Yz,Ns.className="PanelLayout";function Im(){this.xa="Base"}on(Im,Ns),Im.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length;a=lh(a);for(var se=0;se<re;se++){var ue=b[se];if(ue.visible||ue===a){var ce=ue.margin,ve=ce.right+ce.left;ce=ce.top+ce.bottom,ue.measure(y,x,z,te);var Ce=ue.measuredBounds;ve=Math.max(Ce.width+ve,0),ce=Math.max(Ce.height+ce,0),Ce=ue.position.x;var Le=ue.position.y;isFinite(Ce)||(Ce=0),isFinite(Le)||(Le=0),ue instanceof Lr&&ue.isGeometryPositioned&&(ue=ue.strokeWidth/2,Ce-=ue,Le-=ue),ao(E,Ce,Le,ve,ce)}}},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,se=z.position.x,ue=z.position.y;if(se=isNaN(se)?-a:se-a,ue=isNaN(ue)?-x:ue-x,z instanceof Lr&&z.isGeometryPositioned){var ce=z.strokeWidth/2;se-=ce,ue-=ce}z.visible&&z.arrange(se+re.left,ue+re.top,te.width,te.height)}};function Mm(){this.xa="Base"}on(Mm,Ns),Mm.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length;y=gn(),z=lh(a);for(var se=0;se<re;se++){var ue=b[se];if(ue.visible||ue===z){var ce=Ka(ue,!1);if(ce!==Sn&&ce!==gi)y.push(ue);else{ue.measure(1/0,x,0,te),ce=ue.margin,ue=ue.measuredBounds;var ve=Math.max(ue.height+ce.top+ce.bottom,0);E.width+=Math.max(ue.width+ce.right+ce.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++)se=y[a],(se.visible||se===z)&&(ce=se.margin,re=ce.right+ce.left,ce=ce.top+ce.bottom,se.measure(1/0,x,0,te),se=se.measuredBounds,ce=Math.max(se.height+ce,0),E.width+=Math.max(se.width+re,0),E.height=Math.max(E.height,ce));In(y)},Mm.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,se=0;se<b;se++){var ue=z,ce=y[se];if(ce.visible){var ve=ce.measuredBounds,Ce=ce.margin,Le=Ce.top+Ce.bottom,Me=z+E.bottom,We=ve.height,ut=Ka(ce,!1);(isNaN(ce.desiredSize.height)&&ut===Bn||ut===bi)&&(We=Math.max(x.height-Le-Me,0)),Le=We+Le+Me,Me=ce.alignment,Me.Xb()&&(Me=a.defaultAlignment),Me.sb()||(Me=Xr),te&&(re-=ve.width+Ce.left+Ce.right),ce.arrange(re+Me.offsetX+Ce.left,ue+Me.offsetY+Ce.top+(x.height*Me.y-Le*Me.y),ve.width,We),te||(re+=ve.width+Ce.left+Ce.right)}}};function Om(){this.xa="Base"}on(Om,Ns),Om.prototype.measure=function(a,y,x,b,E,z){var te=b.length;x=gn();for(var re=lh(a),se=0;se<te;se++){var ue=b[se];if(ue.visible||ue===re){var ce=Ka(ue,!1);if(ce!==Sn&&ce!==bi)x.push(ue);else{var ve=ue.margin;ce=ve.right+ve.left,ve=ve.top+ve.bottom,ue.measure(y,1/0,z,0),ue=ue.measuredBounds,Ms(E,Math.max(E.width,Math.max(ue.width+ce,0)),E.height+Math.max(ue.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++)se=x[a],(se.visible||se===re)&&(ue=se.margin,te=ue.right+ue.left,ue=ue.top+ue.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,ue=Math.max(se.height+ue,0),E.width=Math.max(E.width,Math.max(se.width+te,0)),E.height+=ue);In(x)}},Om.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,se=0;se<b;se++){var ue=z,ce=y[se];if(ce.visible){var ve=ce.measuredBounds,Ce=ce.margin,Le=Ce.left+Ce.right,Me=z+E.right,We=ve.width,ut=Ka(ce,!1);(isNaN(ce.desiredSize.width)&&ut===Bn||ut===gi)&&(We=Math.max(x.width-Le-Me,0)),Le=We+Le+Me,Me=ce.alignment,Me.Xb()&&(Me=a.defaultAlignment),Me.sb()||(Me=Xr),te&&(re-=ve.height+Ce.bottom+Ce.top),ce.arrange(ue+Me.offsetX+Ce.left+(x.width*Me.x-Le*Me.x),re+Me.offsetY+Ce.top,We,ve.height),te||(re+=ve.height+Ce.bottom+Ce.top)}}};function Rm(){this.xa="Base"}on(Rm,Ns),Rm.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length,se=a.Pb(),ue=se.margin,ce=ue.right+ue.left,ve=ue.top+ue.bottom;se.measure(y,x,z,te);var Ce=se.measuredBounds;z=Ce.width,te=Ce.height;var Le=Math.max(z+ce,0),Me=Math.max(te+ve,0),We=a.isClipping,ut=vn.allocAt(-ue.left,-ue.top,Le,Me),tt=vn.allocAt(0,0,z,te);C0(se,tt,!0),z=tt.width,te=tt.height;for(var mt=!0,xt=lh(a),Pt=0;Pt<re;Pt++){var Mt=b[Pt];Ce=y;var en=x;if(Mt!==se&&(Mt.visible||Mt===xt)){ue=Mt.margin;var pi=ue.left,Ai=ue.top;switch(Le=ue.right+ue.left,Me=ue.top+ue.bottom,ue=Ka(Mt,!1),ue){case Bn:Ce=z,en=te,Ai=pi=Me=Le=0;break;case gi:Ce=z,pi=Le=0;break;case bi:en=te,Ai=Me=0}Mt.measure(Ce,en,0,0),Ce=Mt.measuredBounds,Le=Math.max(Ce.width+Le,0),Me=Math.max(Ce.height+Me,0),ue=Mt.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Xr);var Ei=Mt.alignmentFocus;if(Ei.Xb()&&(Ei=Xr),en=null,Mt instanceof ei&&Mt.$e!==""&&(en=Mt.fb(Mt.$e),en===Mt&&(en=null)),pi=tt.x-pi,Ai=tt.y-Ai,en!==null){for(Mt.arrange(0,0,Ce.width,Ce.height),Ce=en.actualBounds,Ce=ot.allocAt(Ce.x+(Ei.x*Ce.width-Ei.offsetX),Ce.y+(Ei.y*Ce.height-Ei.offsetY)),en=en.panel;en!==Mt;)en.transform.Ga(Ce),en=en.panel;pi+=ue.x*z+ue.offsetX-Ce.x,Ai+=ue.y*te+ue.offsetY-Ce.y,ot.free(Ce)}else pi+=ue.x*z+ue.offsetX-(Ei.x*Ce.width+Ei.offsetX),Ai+=ue.y*te+ue.offsetY-(Ei.y*Ce.height+Ei.offsetY);mt?(mt=!1,E.h(pi,Ai,Le,Me)):ao(E,pi,Ai,Le,Me)}}switch(mt?E.assign(ut):We?E.Uu(tt.x,tt.y,tt.width,tt.height):ao(E,ut.x,ut.y,ut.width,ut.height),vn.free(ut),vn.free(tt),ue=se.stretch,ue===Gi&&(ue=Ka(se,!1)),ue){case Sn:return;case Bn:if(!isFinite(y)&&!isFinite(x))return;break;case gi:if(!isFinite(y))return;break;case bi:if(!isFinite(x))return}for(Ce=se.measuredBounds,z=Ce.width,te=Ce.height,Le=Math.max(z+ce,0),Me=Math.max(te+ve,0),ue=se.margin,tt=vn.allocAt(-ue.left,-ue.top,Le,Me),C0(se,tt,!0),z=tt.width,te=tt.height,y=0;y<re;y++)x=b[y],x===se||!x.visible&&x!==xt||(ue=x.margin,Le=ue.right+ue.left,Me=ue.top+ue.bottom,Ce=x.measuredBounds,Le=Math.max(Ce.width+Le,0),Me=Math.max(Ce.height+Me,0),ce=x.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Xr),x=x.alignmentFocus,x.Xb()&&(x=Xr),mt?(mt=!1,E.h(ce.x*z+ce.offsetX-(x.x*Ce.width+x.offsetX)-ue.left,ce.y*te+ce.offsetY-(x.y*Ce.height+x.offsetY)-ue.top,Le,Me)):ao(E,ce.x*z+ce.offsetX-(x.x*Ce.width+x.offsetX)-ue.left,ce.y*te+ce.offsetY-(x.y*Ce.height+x.offsetY)-ue.top,Le,Me));mt?E.assign(ut):We?E.Uu(tt.x,tt.y,tt.width,tt.height):ao(E,ut.x,ut.y,ut.width,ut.height),vn.free(tt)},Rm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,te=z.width,re=z.height,se=a.padding;z=se.left,se=se.top;var ue=z-x.x,ce=se-x.y;for(E.arrange(ue,ce,te,re),te=vn.allocAt(0,0,te,re),C0(E,te,!1),re=0;re<b;re++){var ve=y[re];if(ve!==E){ue=ve.measuredBounds;var Ce=ue.width,Le=ue.height;ce=ve.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Xr);var Me=ve.alignmentFocus;if(Me.Xb()&&(Me=Xr),ue=null,ve instanceof ei&&ve.$e!==""&&(ue=ve.fb(ve.$e),ue===ve&&(ue=null)),ue!==null){var We=ue.actualBounds;for(Me=ot.allocAt(We.x+(Me.x*We.width-Me.offsetX),We.y+(Me.y*We.height-Me.offsetY)),ue=ue.panel;ue!==ve;)ue.transform.Ga(Me),ue=ue.panel;ue=ce.x*te.width+ce.offsetX-Me.x,ce=ce.y*te.height+ce.offsetY-Me.y,ot.free(Me)}else ue=ce.x*te.width+ce.offsetX-(Me.x*Ce+Me.offsetX),ce=ce.y*te.height+ce.offsetY-(Me.y*Le+Me.offsetY);ue+=te.x-x.x,ce+=te.y-x.y,ve.visible&&ve.arrange(z+ue,se+ce,Ce,Le)}}vn.free(te)};function C0(a,y,x){var b=null;if(a instanceof ei&&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 Dm(){this.xa="Base"}on(Dm,Ns),Dm.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length,se=a.Pb(),ue=se.margin,ce=y,ve=x,Ce=ue.right+ue.left,Le=ue.top+ue.bottom;se.measure(y,x,z,te),ue=se.measuredBounds;var Me=0,We=null;se instanceof Lr&&(We=se,Me=We.strokeWidth*We.scale);var ut=Math.max(ue.width+Ce,0);ue=Math.max(ue.height+Le,0);var tt=A0(se),mt=tt.x*ut+tt.offsetX;tt=tt.y*ue+tt.offsetY;var xt=L0(se),Pt=xt.x*ut+xt.offsetX;for(xt=xt.y*ue+xt.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(mt-Pt)-Me,0)),isFinite(x)&&(ve=Math.max(Math.abs(tt-xt)-Me,0)),Me=ai.alloc(),Me.h(0,0),a=lh(a),xt=0;xt<re;xt++)tt=b[xt],tt===se||!tt.visible&&tt!==a||(ue=tt.margin,ut=ue.right+ue.left,mt=ue.top+ue.bottom,tt.measure(ce,ve,0,0),ue=tt.measuredBounds,ut=Math.max(ue.width+ut,0),ue=Math.max(ue.height+mt,0),Me.h(Math.max(ut,Me.width),Math.max(ue,Me.height)));if(re===1)E.width=ut,E.height=ue,ai.free(Me);else{switch(tt=A0(se),xt=L0(se),re=b=0,xt.x!==tt.x&&xt.y!==tt.y&&(b=Me.width/Math.abs(xt.x-tt.x),re=Me.height/Math.abs(xt.y-tt.y)),ai.free(Me),Me=0,We!==null&&(Me=We.strokeWidth*We.scale,D0(We)===ti&&(b=re=Math.max(b,re))),b+=Math.abs(tt.offsetX)+Math.abs(xt.offsetX)+Me,re+=Math.abs(tt.offsetY)+Math.abs(xt.offsetY)+Me,We=se.stretch,We===Gi&&(We=Ka(se,!1)),We){case Sn:te=z=0;break;case Bn:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case gi:isFinite(y)&&(b=y),te=0;break;case bi:z=0,isFinite(x)&&(re=x)}se.Uj(),se.measure(b,re,z,te),E.width=se.measuredBounds.width+Ce,E.height=se.measuredBounds.height+Le}},Dm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=vn.alloc();z.h(0,0,1,1);var te=b.margin,re=te.left;te=te.top;var se=a.padding,ue=se.left;se=se.top,b.arrange(ue+re,se+te,E.width,E.height);var ce=A0(b),ve=L0(b),Ce=ce.y*E.height+ce.offsetY,Le=ve.x*E.width+ve.offsetX;for(ve=ve.y*E.height+ve.offsetY,z.x=ce.x*E.width+ce.offsetX,z.y=Ce,ao(z,Le,ve,0,0),z.x+=re+ue,z.y+=te+se,E=0;E<x;E++)re=y[E],re!==b&&(ue=re.measuredBounds,te=re.margin,se=Math.max(ue.width+te.right+te.left,0),ce=Math.max(ue.height+te.top+te.bottom,0),Ce=re.alignment,Ce.Xb()&&(Ce=a.defaultAlignment),Ce.sb()||(Ce=Xr),se=z.width*Ce.x+Ce.offsetX-se*Ce.x+te.left+z.x,te=z.height*Ce.y+Ce.offsetY-ce*Ce.y+te.top+z.y,re.visible&&(Jo(z.x,z.y,z.width,z.height,se,te,ue.width,ue.height)?re.arrange(se,te,ue.width,ue.height):re.arrange(se,te,ue.width,ue.height,new vn(z.x,z.y,z.width,z.height))));vn.free(z)};function Fm(){this.xa="Base",this.name="Table"}on(Fm,Ns),Fm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,te=gn(),re=gn(),se=0;se<z;se++){var ue=b[se],ce=ue instanceof ei?ue:null;if(ce!==null&&Rh(ce)&&ue.visible){re.push(ce);for(var ve=ce.O.s,Ce=ve.length,Le=0;Le<Ce;Le++){var Me=ve[Le];ce.type===ei.TableRow?Me.row=ue.row:ce.type===ei.TableColumn&&(Me.column=ue.column),te.push(Me)}}else te.push(ue)}z=te.length,z===0&&(a.Fb(0),a.Eb(0));for(var We=[],ut=0;ut<z;ut++){var tt=te[ut];tt.visible&&(Ra(tt,!0),Hi(tt,!0),We[tt.row]||(We[tt.row]=[]),We[tt.row][tt.column]||(We[tt.row][tt.column]=[]),We[tt.row][tt.column].push(tt))}In(te);var mt=gn(),xt=gn(),Pt=gn(),Mt={count:0},en={count:0},pi=y,Ai=x,Ei=a.rowDefs,ii=a.colDefs,Un=null;z=Ei.length;for(var vr=0;vr<z;vr++)Un=Ei[vr],Un!==void 0&&(Un.actual=0);z=ii.length;for(var ar=0;ar<z;ar++)Un=ii[ar],Un!==void 0&&(Un.actual=0);for(var So=We.length,$o=0,_s=0;_s<So;_s++)We[_s]&&($o=Math.max($o,We[_s].length));var Qs=Math.min(a.topIndex,So-1),Al=Math.min(a.leftIndex,$o-1),Ws=0;So=We.length;for(var Wh=lh(a),ls=0;ls<So;ls++)if(We[ls]){$o=We[ls].length;var rd=a.Fb(ls);rd.actual=0;for(var Ll=rd.oc=0;Ll<$o;Ll++)if(We[ls][Ll]){var Kh=a.Eb(Ll);mt[Ll]===void 0&&(Kh.actual=0,Kh.oc=0,mt[Ll]=!0);for(var Qu=We[ls][Ll],Ec=Qu.length,Uu=0;Uu<Ec;Uu++){var ku=Qu[Uu];if(ku.visible||ku===Wh){var Cf=1<ku.rowSpan||1<ku.columnSpan;Cf&&(ls<Qs||Ll<Al||xt.push(ku));var od=ku.margin,Sp=od.right+od.left,Gu=od.top+od.bottom,Nl=tl(ku,rd,Kh,!1),bm=ku.desiredSize,Ig=!isNaN(bm.height),Sd=!isNaN(bm.width)&&Ig;if(Cf||Nl===Sn||Sd||ls<Qs||Ll<Al||(Mt[Ll]!==void 0||Nl!==Bn&&Nl!==gi||(Mt[Ll]=-1,Mt.count++),en[ls]!==void 0||Nl!==Bn&&Nl!==bi||(en[ls]=-1,en.count++),Pt.push(ku)),ku.measure(1/0,1/0,0,0),!(ls<Qs||Ll<Al)){var Au=ku.measuredBounds,ig=Math.max(Au.width+Sp,0),Hu=Math.max(Au.height+Gu,0);if(ku.rowSpan===1&&(Nl===Sn||Nl===gi)){Un=a.Fb(ls);var Pf=Un.Wc();Ws=Math.max(Hu-Un.actual,0),Ws+Pf>Ai&&(Ws=Math.max(Ai-Pf,0));var o0=Un.oa===0;Un.oc=Un.oc+Ws,Un.actual=Un.oa+Ws,Ai=Math.max(Ai-(Ws+(o0?Pf:0)),0)}if(ku.columnSpan===1&&(Nl===Sn||Nl===bi)){Un=a.Eb(Ll);var wm=Un.Wc();Ws=Math.max(ig-Un.actual,0),Ws+wm>pi&&(Ws=Math.max(pi-wm,0));var Qy=Un.oa===0;Un.oc=Un.oc+Ws,Un.actual=Un.oa+Ws,pi=Math.max(pi-(Ws+(Qy?wm:0)),0)}Cf&&ku.Uj()}}}}}In(mt);var Vd=0,dh=0;z=a.columnCount;for(var Mg=0;Mg<z;Mg++){var Tf=ii[Mg];Tf!==void 0&&(Vd+=isNaN(Tf.Hc)?Tf.oc:Tf.Hc,Tf.oc!==0&&(Vd+=Tf.Wc()))}z=a.rowCount;for(var xp=0;xp<z;xp++){var kf=Ei[xp];kf!==void 0&&(dh+=isNaN(kf.Hc)?kf.oc:kf.Hc,kf.oc!==0&&(dh+=kf.Wc()))}pi=Math.max(y-Vd,0);var Zd=Ai=Math.max(x-dh,0),Vh=pi;z=Pt.length;for(var Lu=0;Lu<z;Lu++){var xd=Pt[Lu],a0=a.Fb(xd.row),hh=a.Eb(xd.column),bp=xd.measuredBounds,ad=xd.margin,rg=ad.right+ad.left,bd=ad.top+ad.bottom;Mt[xd.column]=hh.oc===0&&Mt[xd.column]!==void 0?Math.max(bp.width+rg,Mt[xd.column]):null,en[xd.row]=a0.oc===0&&en[xd.row]!==void 0?Math.max(bp.height+bd,en[xd.row]):null}var Og=0,wp=0,Wc;for(Wc in en)Wc!=="count"&&(Og+=en[Wc]);for(Wc in Mt)Wc!=="count"&&(wp+=Mt[Wc]);for(var ol=ai.alloc(),Em=0;Em<z;Em++){var $l=Pt[Em];if($l.visible||$l===Wh){var us=a.Fb($l.row),Yl=a.Eb($l.column),fh=0;isFinite(Yl.width)?fh=Yl.width:(isFinite(pi)&&Mt[$l.column]!==null?wp===0?fh=Yl.actual+pi:fh=Mt[$l.column]/wp*Vh:Mt[$l.column]!==null?fh=pi:fh=Yl.actual||pi,fh=Math.max(0,fh-Yl.Wc()));var Zh=0;switch(isFinite(us.height)?Zh=us.height:(isFinite(Ai)&&en[$l.row]!==null?Og===0?Zh=us.actual+Ai:Zh=en[$l.row]/Og*Zd:en[$l.row]!==null?Zh=Ai:Zh=us.actual||Ai,Zh=Math.max(0,Zh-us.Wc())),ol.h(Math.max(Yl.minimum,Math.min(fh,Yl.maximum)),Math.max(us.minimum,Math.min(Zh,us.maximum))),Nl=tl($l,us,Yl,!1),Nl){case gi:ol.height=Math.max(ol.height,us.actual+Ai);break;case bi:ol.width=Math.max(ol.width,Yl.actual+pi)}var og=$l.margin,Jy=og.right+og.left,s0=og.top+og.bottom;$l.Uj(),$l.measure(ol.width,ol.height,Yl.minimum,us.minimum);var Ep=$l.measuredBounds,ag=Math.max(Ep.width+Jy,0),Rg=Math.max(Ep.height+s0,0);isFinite(pi)&&(ag=Math.min(ag,ol.width)),isFinite(Ai)&&(Rg=Math.min(Rg,ol.height));var Nu=0;Nu=us.actual,us.actual=Math.max(us.actual,Rg),us.oc=Math.max(us.oc,Rg),Ws=us.actual-Nu,Ai=Math.max(Ai-Ws,0),en[$l.row]===null&&(Zd=Math.max(Zd-Ws,0)),Nu=Yl.actual,Yl.actual=Math.max(Yl.actual,ag),Yl.oc=Math.max(Yl.oc,ag),Ws=Yl.actual-Nu,pi=Math.max(pi-Ws,0),Mt[$l.column]===null&&(Vh=Math.max(Vh-Ws,0))}}In(Pt);var gh=ai.alloc(),sd=gn(),dc=gn();if(z=xt.length,z!==0){for(var Af=0;Af<So;Af++)if(We[Af]){$o=We[Af].length;var Cp=a.Fb(Af);sd[Af]=Cp.actual;for(var Lf=0;Lf<$o;Lf++)if(We[Af][Lf]){var l0=a.Eb(Lf);dc[Lf]=l0.actual}}}for(var Pp=0;Pp<z;Pp++){var Va=xt[Pp];if(Va.visible||Va===Wh){var Kc=a.Fb(Va.row),Cc=a.Eb(Va.column);switch(ol.h(Math.max(Cc.minimum,Math.min(y,Cc.maximum)),Math.max(Kc.minimum,Math.min(x,Kc.maximum))),Nl=tl(Va,Kc,Cc,!1),Nl){case Bn:dc[Cc.index]!==0&&(ol.width=Math.min(ol.width,dc[Cc.index])),sd[Kc.index]!==0&&(ol.height=Math.min(ol.height,sd[Kc.index]));break;case gi:dc[Cc.index]!==0&&(ol.width=Math.min(ol.width,dc[Cc.index]));break;case bi:sd[Kc.index]!==0&&(ol.height=Math.min(ol.height,sd[Kc.index]))}isFinite(Cc.width)&&(ol.width=Cc.width),isFinite(Kc.height)&&(ol.height=Kc.height),gh.h(0,0);for(var u0=Cc.minimum,_u=Kc.minimum,$h=1;$h<Va.rowSpan&&!(Va.row+$h>=a.rowCount);$h++)Un=a.Fb(Va.row+$h),Ws=0,Ws=Nl===Bn||Nl===bi?Math.max(Un.minimum,sd[Va.row+$h]===0?Un.maximum:Math.min(sd[Va.row+$h],Un.maximum)):Math.max(Un.minimum,isNaN(Un.Hc)?Un.maximum:Math.min(Un.Hc,Un.maximum)),gh.height+=Ws,_u+=Un.minimum;for(var Pc=1;Pc<Va.columnSpan&&!(Va.column+Pc>=a.columnCount);Pc++)Un=a.Eb(Va.column+Pc),Ws=0,Ws=Nl===Bn||Nl===gi?Math.max(Un.minimum,dc[Va.column+Pc]===0?Un.maximum:Math.min(dc[Va.column+Pc],Un.maximum)):Math.max(Un.minimum,isNaN(Un.Hc)?Un.maximum:Math.min(Un.Hc,Un.maximum)),gh.width+=Ws,u0+=Un.minimum;ol.width+=gh.width,ol.height+=gh.height;var Tp=Va.margin,Nf=Tp.right+Tp.left,Cm=Tp.top+Tp.bottom;Va.measure(ol.width,ol.height,u0,_u);for(var kp=Va.measuredBounds,wd=Math.max(kp.width+Nf,0),sg=Math.max(kp.height+Cm,0),If=0,Ap=0;Ap<Va.rowSpan&&!(Va.row+Ap>=a.rowCount);Ap++)Un=a.Fb(Va.row+Ap),If+=Un.total||0;if(If<sg){var Yh=sg-If,$d=sg-If;if(Va.spanAllocation!==null)for(var Xh=Va.spanAllocation,ph=0;ph<Va.rowSpan&&!(0>=Yh)&&!(Va.row+ph>=a.rowCount);ph++){Un=a.Fb(Va.row+ph);var Qh=Un.oa||0,lg=Xh(Va,Un,$d);Un.actual=Math.min(Un.maximum,Qh+lg),Un.oa!==Qh&&(Yh-=Un.oa-Qh)}for(;0<Yh;){var ld=Un.oa||0;if(isNaN(Un.height)&&Un.maximum>ld&&(Un.actual=Math.min(Un.maximum,ld+Yh),Un.oa!==ld&&(Yh-=Un.oa-ld)),Un.index===0)break;Un=a.Fb(Un.index-1)}}for(var Dg=0,Jh=0;Jh<Va.columnSpan&&!(Va.column+Jh>=a.columnCount);Jh++)Un=a.Eb(Va.column+Jh),Dg+=Un.total||0;if(Dg<wd){var Fg=wd-Dg,qy=wd-Dg;if(Va.spanAllocation!==null)for(var mh=Va.spanAllocation,ug=0;ug<Va.columnSpan&&!(0>=Fg)&&!(Va.column+ug>=a.columnCount);ug++){Un=a.Eb(Va.column+ug);var Pm=Un.oa||0,eS=mh(Va,Un,qy);Un.actual=Math.min(Un.maximum,Pm+eS),Un.oa!==Pm&&(Fg-=Un.oa-Pm)}for(;0<Fg;){var c0=Un.oa||0;if(isNaN(Un.width)&&Un.maximum>c0&&(Un.actual=Math.min(Un.maximum,c0+Fg),Un.oa!==c0&&(Fg-=Un.oa-c0)),Un.index===0)break;Un=a.Eb(Un.index-1)}}}}In(xt),ai.free(gh),ai.free(ol),sd!==void 0&&In(sd),dc!==void 0&&In(dc);var Bg=0,zg=0,d0=a.desiredSize,Xb=a.maxSize;Nl=Ka(a,!0);var Tm=dh=Vd=0,km=0;z=a.columnCount;for(var h0=0;h0<z;h0++)ii[h0]!==void 0&&(Un=a.Eb(h0),isFinite(Un.width)?(Tm+=Un.width,Tm+=Un.Wc()):Vm(Un)===zp?(Tm+=Un.oa,Tm+=Un.Wc()):Un.oa!==0&&(Vd+=Un.oa,Vd+=Un.Wc()));isFinite(d0.width)?Bg=Math.min(d0.width,Xb.width):Bg=Nl!==Sn&&isFinite(y)?y:Vd,Bg=Math.max(Bg,a.minSize.width),Bg=Math.max(Bg-Tm,0);for(var j1=Vd===0?1:Math.max(Bg/Vd,1),f0=0;f0<z;f0++)ii[f0]!==void 0&&(Un=a.Eb(f0),isFinite(Un.width)||Vm(Un)===zp||(Un.actual=Un.oa*j1),Un.position=E.width,Un.oa!==0&&(E.width+=Un.oa,E.width+=Un.Wc()));z=a.rowCount;for(var g0=0;g0<z;g0++)Ei[g0]!==void 0&&(Un=a.Fb(g0),isFinite(Un.height)?(km+=Un.height,km+=Un.Wc()):Vm(Un)===zp?(km+=Un.oa,km+=Un.Wc()):Un.oa!==0&&(dh+=Un.oa,dh+=Un.Wc()));isFinite(d0.height)?zg=Math.min(d0.height,Xb.height):zg=Nl!==Sn&&isFinite(x)?x:dh,zg=Math.max(zg,a.minSize.height),zg=Math.max(zg-km,0);for(var U1=dh===0?1:Math.max(zg/dh,1),p0=0;p0<z;p0++)Ei[p0]!==void 0&&(Un=a.Fb(p0),isFinite(Un.height)||Vm(Un)===zp||(Un.actual=Un.oa*U1),Un.position=E.height,Un.oa!==0&&(E.height+=Un.oa,E.height+=Un.Wc()));z=re.length;for(var tS=0;tS<z;tS++){var Am=re[tS],nS=0,iS=0;Am.type===ei.TableRow?(nS=E.width,Un=a.Fb(Am.row),iS=Un.actual):(Un=a.Eb(Am.column),nS=Un.actual,iS=E.height),Am.measuredBounds.h(0,0,nS,iS),Ra(Am,!1)}In(re),a.inRowsCols=We},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,se,ue=te.length,ce=0,ve=0;ve<ue;ve++)te[ve]&&(ce=Math.max(ce,te[ve].length));se=a.rowDefs,re=a.colDefs;var Ce=ve=0,Le=Math.min(a.topIndex,ue-1);if(0<se.length){for(;Le!==ue&&(se[Le]===void 0||se[Le].oa===0);)Le++;Le=Math.max(Math.min(Le,ue-1),0),ve=-se[Le].position}var Me=Math.min(a.leftIndex,ce-1);if(0<re.length){for(;Me!==ce&&(re[Me]===void 0||re[Me].oa===0);)Me++;Me=Math.max(Math.min(Me,ce-1),0),Ce=-re[Me].position}for(var We=0,ut=0;We!==ue&&se[We]===void 0;)We++;for(;ut!==ue&&re[ut]===void 0;)ut++;ce=a.part,a.Fb(We),a.Eb(ut);for(var tt=0;tt<y.length;tt++){var mt=y[tt];if(mt instanceof ei&&mt.visible&&Rh(mt)){if(mt.type===ei.TableRow){re=a.Fb(mt.row);var xt=a.Eb(ut)}else re=a.Fb(We),xt=a.Eb(mt.column);se=re.position+ve+E,re.oa!==0&&(se+=re.Io(Math.max(We,Le))),re=xt.position+Ce+z,xt.oa!==0&&(re+=xt.Io(Math.max(ut,Me))),xt=mt.measuredBounds,mt.Uk(),mt.actualBounds.ka();var Pt=mt.actualBounds,Mt=vn.allocAt(Pt.x,Pt.y,Pt.width,Pt.height);Pt.x=mt.type===ei.TableRow?z:re,Pt.y=mt.type===ei.TableColumn?E:se,Pt.width=xt.width,Pt.height=xt.height,mt.actualBounds.freeze(),Hi(mt,!1),ho(Mt,Pt)||ce===null||(ce.oh(),mt.Pn(ce)),vn.free(Mt)}}for(tt=ai.alloc(),mt=0;mt<ue;mt++)if(te[mt]){for(ce=te[mt].length,xt=a.Fb(mt),se=xt.position+ve+E,xt.oa!==0&&(se+=xt.Io(Math.max(We,Le))),Pt=0;Pt<ce;Pt++)if(te[mt][Pt]){Mt=a.Eb(Pt),re=Mt.position+Ce+z,Mt.oa!==0&&(re+=Mt.Io(Math.max(ut,Me)));for(var en=te[mt][Pt],pi=en.length,Ai=0;Ai<pi;Ai++){var Ei=en[Ai],ii=Ei.measuredBounds;tt.h(0,0);for(var Un=1;Un<Ei.rowSpan&&!(mt+Un>=a.rowCount);Un++){var vr=a.Fb(mt+Un);vr.oa!==0&&(tt.height+=vr.total)}for(Un=1;Un<Ei.columnSpan&&!(Pt+Un>=a.columnCount);Un++)vr=a.Eb(Pt+Un),vr.oa!==0&&(tt.width+=vr.total);var ar=Mt.oa+tt.width,So=xt.oa+tt.height;Un=re,vr=se;var $o=ar,_s=So,Qs=re,Al=se,Ws=ar,Wh=So;re+ar>x.width&&(Ws=Math.max(x.width-re,0)),se+So>x.height&&(Wh=Math.max(x.height-se,0));var ls=Ei.alignment;if(ls.Xb()){ls=a.defaultAlignment,ls.sb()||(ls=Xr);var rd=ls.x,Ll=ls.y,Kh=ls.offsetX;ls=ls.offsetY;var Qu=Mt.alignment,Ec=xt.alignment;Qu.sb()&&(rd=Qu.x,Kh=Qu.offsetX),Ec.sb()&&(Ll=Ec.y,ls=Ec.offsetY)}else rd=ls.x,Ll=ls.y,Kh=ls.offsetX,ls=ls.offsetY;(isNaN(rd)||isNaN(Ll))&&(Ll=rd=.5,ls=Kh=0),Qu=ii.width,Ec=ii.height;var Uu=Ei.margin,ku=Uu.left+Uu.right,Cf=Uu.top+Uu.bottom,od=tl(Ei,xt,Mt,!1);!isNaN(Ei.desiredSize.width)||od!==Bn&&od!==gi||(Qu=Math.max(ar-ku,0)),!isNaN(Ei.desiredSize.height)||od!==Bn&&od!==bi||(Ec=Math.max(So-Cf,0)),ar=Ei.maxSize,So=Ei.minSize,Qu=Math.min(ar.width,Qu),Ec=Math.min(ar.height,Ec),Qu=Math.max(So.width,Qu),Ec=Math.max(So.height,Ec),ar=Ec+Cf,Un+=$o*rd-(Qu+ku)*rd+Kh+Uu.left,vr+=_s*Ll-ar*Ll+ls+Uu.top,Ei.visible&&(Jo(Qs,Al,Ws,Wh,Un,vr,ii.width,ii.height)?Ei.arrange(Un,vr,Qu,Ec):Ei.arrange(Un,vr,Qu,Ec,new vn(Qs,Al,Ws,Wh)))}}}for(ai.free(tt),a=0;a<b;a++)x=y[a],z=x instanceof ei?x:null,z!==null&&Rh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Bm(){this.xa="Base"}on(Bm,Ns),Bm.prototype.measure=function(){},Bm.prototype.arrange=function(){};function zm(){this.xa="Base"}on(zm,Ns),zm.prototype.measure=function(){},zm.prototype.arrange=function(){};function jm(){this.xa="Base"}on(jm,Ns),jm.prototype.measure=function(a,y,x,b,E,z,te){1<b.length&&Rt("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,se=b.margin,ue=se.right+se.left;if(se=se.top+se.bottom,isFinite(y)||isFinite(x)){var ce=b.scale,ve=re.width;re=re.height;var Ce=Math.max(y-ue,0),Le=Math.max(x-se,0),Me=1;a.viewboxStretch===ti?ve!==0&&re!==0&&(Me=Math.min(Ce/ve,Le/re)):ve!==0&&re!==0&&(Me=Math.max(Ce/ve,Le/re)),Me===0&&(Me=1e-4),b.Ca*=Me,ce!==b.scale&&(Ra(b,!0),b.measure(1/0,1/0,z,te))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+ue,0),E.height=isFinite(x)?x:Math.max(re.height+se,0)},jm.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=Xr),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 Dp(){this.xa="Base"}on(Dp,Ns),Dp.prototype.measure=function(){},Dp.prototype.arrange=function(){},Dp.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,se=z.height,ue=Math.ceil(re/E),ce=Math.ceil(se/b),ve=a.gridOrigin,Ce=ve.x;ve=ve.y,y.save(),y.beginPath(),y.rect(0,0,re,se),y.clip(),y.Se();for(var Le=[],Me=a.O.s,We=Me.length,ut=0;ut<We;ut++){var tt=Me[ut],mt=[];if(Le.push(mt),tt.visible){var xt=tt.interval;if(!(0>xt)){tt=T0(tt.figure);for(var Pt=0;Pt<We;Pt++)if(Pt!==ut){var Mt=Me[Pt];Mt.visible&&T0(Mt.figure)===tt&&(Mt=Mt.interval,Mt>xt&&mt.push(Mt))}}}}for(Me=a.O.s,We=Me.length,ut=0;ut<We;ut++){var en=Me[ut];if(en.visible&&(mt=en.interval||1,tt=Math.abs(mt),!(2>E*tt*x))){if(xt=en.segmentIndex,(!isFinite(xt)||isNaN(xt))&&(xt=0),0>xt&&(xt=tt-Math.min(-xt,tt)),xt=Math.round(xt%tt),tt=en.opacity,Pt=1,tt!==1){if(tt===0)continue;Pt=y.globalAlpha,y.globalAlpha=Pt*tt}Mt=Le[ut];var pi=!1,Ai=en.strokeDashArray;if(Ai!==null&&(pi=!0,y.js(Ai,en.strokeDashOffset)),en.figure==="LineV"&&en.stroke!==null&&0<en.strokeWidth){for(y.lineWidth=en.strokeWidth,Yo(a,y,en.stroke,!1,!1,z,te),y.beginPath(),Ai=en=Math.floor((Ce-E)/E);Ai<=en+ue;Ai++){var Ei=Ai*E+Ce;0<=Ei&&Ei<=re&&Um(Ai,mt,xt,Mt)&&(y.moveTo(Ei,0),y.lineTo(Ei,se))}y.stroke(),y.Se()}else if(en.figure==="LineH"&&en.stroke!==null&&0<en.strokeWidth){for(y.lineWidth=en.strokeWidth,Yo(a,y,en.stroke,!1,!1,z,te),y.beginPath(),Ai=en=Math.floor((ve-b)/b);Ai<=en+ce;Ai++)Ei=Ai*b+ve,0<=Ei&&Ei<=se&&Um(Ai,mt,xt,Mt)&&(y.moveTo(0,Ei),y.lineTo(re,Ei));y.stroke(),y.Se()}else if(en.figure==="BarV"&&en.fill!==null)for(Yo(a,y,en.fill,!0,!1,z,te),en=en.width,isNaN(en)&&(en=E),Ei=Ai=Math.floor((Ce-E)/E);Ei<=Ai+ue;Ei++){var ii=Ei*E+Ce;0<=ii+en&&ii<=re&&Um(Ei,mt,xt,Mt)&&y.fillRect(ii,0,en,se)}else if(en.figure==="BarH"&&en.fill!==null)for(Yo(a,y,en.fill,!0,!1,z,te),en=en.height,isNaN(en)&&(en=b),Ei=Ai=Math.floor((ve-b)/b);Ei<=Ai+ce;Ei++)ii=Ei*b+ve,0<=ii+en&&ii<=se&&Um(Ei,mt,xt,Mt)&&y.fillRect(0,ii,re,en);pi&&y.fs(),tt!==1&&(y.globalAlpha=Pt)}}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 Gm(){this.xa="Base"}on(Gm,Ns),Gm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof co||a instanceof ri){var te=null,re=null;if(a instanceof ri&&(te=a),a instanceof co&&(re=a,te=re.adornedPart,a.j===null&&(a.j=[])),te instanceof ri){var se=te;if(z===0)Ms(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ue=a instanceof co?null:te.path;y=te.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ce=se.points,ve=te.pointsCount;re!==null?re.Ul(!1):te!==null&&te.Ul(!1),re=y.width;var Ce=y.height,Le=a.j;if(Le.length=0,ue!==null){sS(a,re,Ce,ue);var Me=ue.measuredBounds;x.ed(Me),Le.push(Me)}Me=Ar.alloc();for(var We=ot.alloc(),ut=ot.alloc(),tt=0;tt<z;tt++){var mt=b[tt];if(mt!==ue)if(mt.isPanelMain&&mt instanceof Lr){sS(a,re,Ce,mt);var xt=mt.measuredBounds;x.ed(xt),Le.push(xt)}else if(2>ve)mt.measure(1/0,1/0,0,0),xt=mt.measuredBounds,x.ed(xt),Le.push(xt);else{var Pt=mt.segmentIndex,Mt=mt.segmentFraction,en=mt.alignmentFocus;en.Mc()&&(en=Xr);var pi=mt.segmentOrientation,Ai=mt.segmentOffset;if(isNaN(Pt)){var Ei=se.ua;xt=gn(),Ei.Qu(Mt,xt);var ii=ot.allocAt(xt[0],xt[1]);if(ii.add(se.i(0)),Ei.type===si.j?ii.offset(-Ei.startX,-Ei.startY):(Ei=Ei.figures.first(),Ei!==null&&ii.offset(-Ei.startX,-Ei.startY)),Ei=xt[2],pi!==_l){var Un=se.computeAngle(mt,pi,Ei);mt.Kb=Un}Un=ii.x-y.x;var vr=ii.y-y.y;ot.free(ii),In(xt)}else if(Pt<-ve||Pt>=ve)xt=ot.alloc(),se.vg(),se.computeMidPoint(xt),Ei=se.midAngle,pi!==_l&&(Un=se.computeAngle(mt,pi,Ei),mt.Kb=Un),Un=xt.x-y.x,vr=xt.y-y.y,ot.free(xt);else{if(Un=0,0<=Pt?(vr=ce.M(Pt),xt=Pt<ve-1?ce.M(Pt+1):vr):(Un=ve+Pt,vr=ce.M(Un),xt=0<Un?ce.M(Un-1):vr),vr.Xa(xt)){0<=Pt?(Ei=0<Pt?ce.M(Pt-1):vr,Un=Pt<ve-2?ce.M(Pt+2):xt):(Ei=Un<ve-1?ce.M(Un+1):vr,Un=1<Un?ce.M(Un-2):xt),ii=Ei.Bf(vr);var ar=xt.Bf(Un);Ei=ii>ar+10?0<=Pt?Ei.ab(vr):vr.ab(Ei):ar>ii+10?0<=Pt?xt.ab(Un):Un.ab(xt):0<=Pt?Ei.ab(Un):Un.ab(Ei)}else Ei=0<=Pt?vr.ab(xt):xt.ab(vr);pi!==_l&&(Un=se.computeAngle(mt,pi,Ei),mt.Kb=Un),Un=vr.x+(xt.x-vr.x)*Mt-y.x,vr=vr.y+(xt.y-vr.y)*Mt-y.y}mt.measure(1/0,1/0,0,0),xt=mt.measuredBounds,ii=mt.naturalBounds;var So=0;mt instanceof Lr&&(So=mt.strokeWidth),ar=ii.width+So;var $o=ii.height+So;Me.reset(),Me.translate(-xt.x,-xt.y),Me.scale(mt.scale,mt.scale),Me.rotate(pi===_l?mt.angle:Ei,ar/2,$o/2),pi!==$p&&pi!==Xp||Me.rotate(90,ar/2,$o/2),pi!==Yp&&pi!==Qp||Me.rotate(-90,ar/2,$o/2),pi===vv&&(45<Ei&&135>Ei||225<Ei&&315>Ei)&&Me.rotate(-Ei,ar/2,$o/2),ii=new vn(0,0,ar,$o),We.xi(ii,en),Me.Ga(We),en=-We.x+So/2*mt.scale,mt=-We.y+So/2*mt.scale,ut.assign(Ai),So=isNaN(Ai.x);var _s=isNaN(Ai.y);if(So||_s){ar=ar/2+3,$o=$o/2+3;var Qs=45<=Ei&&135>=Ei,Al=225<=Ei&&315>=Ei;pi===_l&&(Qs||Al)?(ut.x=_s?ar:Ai.y,ut.y=So?$o:Ai.x,Qs?0<=Pt||isNaN(Pt)&&.5>Mt||!So||(ut.y=-$o):Al&&((0<=Pt||isNaN(Pt)&&.5>Mt)&&So&&(ut.y=-$o),_s&&(ut.x=-ar))):(So&&(ut.x=0<=Pt||isNaN(Pt)&&.5>Mt?ar:-ar),_s&&(ut.y=-$o),ut.rotate(Ei))}else ut.rotate(Ei);Un+=ut.x,vr+=ut.y,ii.set(xt),ii.h(Un+en,vr+mt,xt.width,xt.height),Le.push(ii),x.ed(ii)}}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),Ms(E,x.width||0,x.height||0),Ar.free(Me),ot.free(We),ot.free(ut)}}}},Gm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof co||a instanceof ri){var b=a,E=null;a instanceof co&&(E=a,b=E.adornedPart);var z=a instanceof co?null:b.path,te=a.j;if(te.length!==0){var re=0;if(z!==null&&re<te.length){var se=te[re];re++,z.arrange(se.x-a.jg.x,se.y-a.jg.y,se.width,se.height)}for(se=0;se<x;se++){var ue=y[se];if(ue!==z&&re<te.length){var ce=te[re];re++,ue.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof ri)for(z=a.labelNodes;z.next();){var ve=a;te=z.value,re=te.segmentIndex,se=te.segmentFraction;var Ce=te.alignmentFocus;if(ue=te.segmentOrientation,ce=te.segmentOffset,isNaN(re)){var Le=ve.ua,Me=gn();Le.Qu(se,Me);var We=ot.allocAt(Me[0],Me[1]);We.add(ve.i(0)),Le.type===si.j||(Le=Le.figures.first()),We.offset(-Le.startX,-Le.startY),Le=Me[2],ue!==_l&&(ve=ve.computeAngle(te,ue,Le),te.angle=ve),ve=We.x;var ut=We.y;ot.free(We),In(Me)}else if(re<-x||re>=x)Me=ot.alloc(),Le=ve,ut=Me,Le.vg(),Le.computeMidPoint(ut),Le=ve.midAngle,ue!==_l&&(ve=ve.computeAngle(te,ue,Le),te.angle=ve),ve=Me.x,ut=Me.y,ot.free(Me);else{if(We=0,0<=re?(Me=y.s[re],ut=re<x-1?y.s[re+1]:Me):(We=x+re,Me=y.s[We],ut=0<We?y.s[We-1]:Me),Me.Xa(ut)){0<=re?(Le=0<re?y.s[re-1]:Me,We=re<x-2?y.s[re+2]:ut):(Le=We<x-1?y.s[We+1]:Me,We=1<We?y.s[We-2]:ut);var tt=Le.Bf(Me),mt=ut.Bf(We);Le=tt>mt+10?0<=re?Le.ab(Me):Me.ab(Le):mt>tt+10?0<=re?ut.ab(We):We.ab(ut):0<=re?Le.ab(We):We.ab(Le)}else Le=0<=re?Me.ab(ut):ut.ab(Me);ue!==_l&&(ve=ve.computeAngle(te,ue,Le),te.angle=ve),ve=Me.x+(ut.x-Me.x)*se,ut=Me.y+(ut.y-Me.y)*se}if(Ce.ys())te.location=new ot(ve,ut);else{Ce.Mc()&&(Ce=Xr),Me=Ar.alloc(),Me.reset(),Me.scale(te.scale,te.scale),Me.rotate(te.angle,0,0);var xt=te.naturalBounds;We=vn.allocAt(0,0,xt.width,xt.height),tt=ot.alloc(),tt.xi(We,Ce),Me.Ga(tt),Ce=-tt.x,mt=-tt.y;var Pt=xt.width,Mt=xt.height;xt=ot.alloc(),xt.assign(ce);var en=isNaN(ce.x),pi=isNaN(ce.y);if(en||pi){Pt=Pt/2+3,Mt=Mt/2+3;var Ai=45<=Le&&135>=Le,Ei=225<=Le&&315>=Le;ue===_l&&(Ai||Ei)?(xt.x=pi?Pt:ce.y,xt.y=en?Mt:ce.x,Ai?0<=re||isNaN(re)&&.5>se||!en||(xt.y=-Mt):Ei&&((0<=re||isNaN(re)&&.5>se)&&en&&(xt.y=-Mt),pi&&(xt.x=-Pt))):(en&&(xt.x=0<=re||isNaN(re)&&.5>se?Pt:-Pt),pi&&(xt.y=-Mt),xt.rotate(Le))}else xt.rotate(Le);ve+=xt.x,ut+=xt.y,Me.pp(We),Ce+=We.x,mt+=We.y,re=ot.allocAt(ve+Ce,ut+mt),te.move(re),ot.free(re),ot.free(xt),ot.free(tt),vn.free(We),Ar.free(Me)}}E!==null?E.Ul(!1):b.Ul(!1),b=FS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),ot.free(b)}};function sS(a,y,x,b){if(Ul(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof co&&a.type===ei.Link&&a.adornedObject instanceof Lr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof ri&&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 co&&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),Ra(b,!1)}}function Fp(){this.xa="Base"}on(Fp,Ns),Fp.prototype.measure=function(a,y,x,b,E,z,te){var re=a.Pb();a.graduatedBounds=[];var se=re.margin,ue=se.right+se.left,ce=se.top+se.bottom;re.measure(y,x,z,te);var ve=re.measuredBounds,Ce=new vn(-se.left,-se.top,Math.max(ve.width+ue,0),Math.max(ve.height+ce,0));a.graduatedBounds.push(Ce),E.assign(Ce);for(var Le=re.geometry,Me=re.strokeWidth,We=Le.flattenedSegments,ut=Le.flattenedLengths,tt=Le.flattenedTotalLength,mt=We.length,xt=0,Pt=0,Mt=gn(),en=0;en<mt;en++){var pi=We[en],Ai=[];Pt=xt=0;for(var Ei=pi.length,ii=0;ii<Ei;ii+=2){var Un=pi[ii],vr=pi[ii+1];if(ii!==0){var ar=180*Math.atan2(vr-Pt,Un-xt)/Math.PI;0>ar&&(ar+=360),Ai.push(ar)}xt=Un,Pt=vr}Mt.push(Ai)}if(a.graduatedIntervals===null){for(var So=[],$o=a.O.s,_s=$o.length,Qs=0;Qs<_s;Qs++){var Al=$o[Qs],Ws=[];if(So.push(Ws),Al.visible){var Wh=Al.interval;if(!(0>Wh)){for(var ls=0;ls<_s;ls++)if(ls!==Qs){var rd=$o[ls];if(rd.visible&&Al.constructor===rd.constructor){var Ll=rd.interval;Ll>Wh&&Ws.push(Ll)}}}}}a.graduatedIntervals=So}var Kh=a.graduatedIntervals,Qu=a.O.s,Ec=Qu.length,Uu=0,ku=0,Cf=tt;a.graduatedMarks=[];for(var od,Sp=0;Sp<Ec;Sp++){var Gu=Qu[Sp];if(od=[],Gu.visible&&Gu!==re){var Nl=Math.abs(Gu.interval),bm=a.graduatedTickUnit;if(!(2>bm*Nl*tt/a.graduatedRange&&Gu.graduatedSkip===null)){var Ig=ut[0][0],Sd=0,Au=0;ku=tt*Gu.graduatedStart-1e-4,Cf=tt*Gu.graduatedEnd+1e-4;var ig=bm*Nl,Hu=a.graduatedTickBase;if(Hu<a.graduatedMin){var Pf=(a.graduatedMin-Hu)/ig;Pf=Pf%1===0?Pf:Math.floor(Pf+1),Hu+=Pf*ig}else Hu>a.graduatedMin+ig&&(Hu-=Math.floor((Hu-a.graduatedMin)/ig)*ig);for(var o0=Kh[Sp],wm=Hu,Qy=1e-6*a.graduatedMax,Vd=1;Hu<=a.graduatedMax+Qy;Vd++){e:{for(var dh=o0.length,Mg=0;Mg<dh;Mg++){var Tf=(Hu-a.graduatedTickBase)%(o0[Mg]*a.graduatedTickUnit),xp=1e-6*a.graduatedTickUnit;if(Tf<xp&&Tf>-xp){var kf=!1;break e}}kf=!0}if(kf&&(Hu>a.graduatedMax&&(Hu=a.graduatedMax),Gu.graduatedSkip===null||Gu instanceof Xo&&!Gu.graduatedSkip(Hu,Gu)||Gu instanceof Lr&&!Gu.graduatedSkip(Hu,Gu))&&(Uu=(Hu-a.graduatedMin)*tt/a.graduatedRange,Uu>tt&&(Uu=tt),ku<=Uu&&Uu<=Cf)){for(var Zd=Mt[Sd][Au],Vh=ut[Sd][Au];Sd<ut.length;){for(;Uu>Ig&&Au<ut[Sd].length-1;)Au++,Zd=Mt[Sd][Au],Vh=ut[Sd][Au],Ig+=Vh;if(Uu<=Ig)break;Sd++,Au=0,Zd=Mt[Sd][Au],Vh=ut[Sd][Au],Ig+=Vh}var Lu=We[Sd],xd=Lu[2*Au],a0=Lu[2*Au+1],hh=(Uu-(Ig-Vh))/Vh,bp=new ot(xd+(Lu[2*Au+2]-xd)*hh+Me/2-Le.bounds.x,a0+(Lu[2*Au+3]-a0)*hh+Me/2-Le.bounds.y);bp.scale(re.scale,re.scale);e:{var ad=Zd,rg=Mt[Sd];if(!(.5005>hh&&.4995<hh)){var bd=ad;if(.5>hh?0<Au?bd=rg[Au-1]:Ft.$(Lu[0],Lu[Lu.length-2])&&Ft.$(Lu[1],Lu[Lu.length-1])&&(bd=rg[rg.length-1]):.5<hh&&(Au+1<rg.length?bd=rg[Au+1]:Ft.$(Lu[0],Lu[Lu.length-2])&&Ft.$(Lu[1],Lu[Lu.length-1])&&(bd=rg[0])),ad!==bd){var Og=Math.abs(ad-bd);if(180<Og&&(ad<bd?ad+=360:bd+=360,Og=Math.abs(ad-bd)),5e-4>hh||.9995<hh){Zd=(ad+bd)/2%360;break e}if(10>Og){var wp=1-Math.abs(.5-hh);Zd=(ad*wp+bd*(1-wp))%360;break e}}}Zd=ad}if(Gu instanceof Xo){var Wc="";Gu.graduatedFunction!==null?(Wc=Gu.graduatedFunction(Hu,Gu),Wc=Wc!=null?Wc.toString():""):Wc=(+Hu.toFixed(2)).toString(),Wc!==""&&od.push({$l:bp,angle:Zd,text:Wc})}else od.push({$l:bp,angle:Zd})}Hu=wm+Vd*ig}}}a.graduatedMarks.push(od)}In(Mt);var ol=a.graduatedMarks;if(ol!==null)for(var Em=b.length,$l=0;$l<Em;$l++){var us=b[$l],Yl=ol[$l];if(us.visible&&us!==re&&Yl.length!==0){if(us instanceof Lr){var fh=a,Zh=E,og=us.alignmentFocus;og.Mc()&&(og=Xl);var Jy=us.angle;us.Kb=0,us.measure(1/0,1/0,0,0),us.Kb=Jy;var s0=us.measuredBounds,Ep=s0.width,ag=s0.height,Rg=vn.allocAt(0,0,Ep,ag),Nu=ot.alloc();Nu.xi(Rg,og),vn.free(Rg);for(var gh=-Nu.x,sd=-Nu.y,dc=new vn,Af=Yl.length,Cp=0;Cp<Af;Cp++)for(var Lf=Yl[Cp],l0=Lf.$l.x,Pp=Lf.$l.y,Va=Lf.angle,Kc=0;4>Kc;Kc++){switch(Kc){case 0:Nu.h(gh,sd);break;case 1:Nu.h(gh+Ep,sd);break;case 2:Nu.h(gh,sd+ag);break;case 3:Nu.h(gh+Ep,sd+ag)}Nu.rotate(Va+us.angle),Nu.offset(l0,Pp),Cp===0&&Kc===0?dc.h(Nu.x,Nu.y,0,0):dc.Ye(Nu),Nu.offset(-l0,-Pp),Nu.rotate(-Va-us.angle)}ot.free(Nu),fh.graduatedBounds!==null&&fh.graduatedBounds.push(dc),ao(Zh,dc.x,dc.y,dc.width,dc.height)}else if(us instanceof Xo){var Cc=a,u0=E;Cc.temporaryTextBlock===null&&(Cc.temporaryTextBlock=new Xo);var _u=Cc.temporaryTextBlock;wS(_u,us);var $h=us.alignmentFocus;$h.Mc()&&($h=Xl);for(var Pc=us.segmentOrientation,Tp=us.segmentOffset,Nf=new vn,Cm=0,kp=0,wd=0,sg=0,If=0,Ap=Yl.length,Yh=0;Yh<Ap;Yh++){var $d=Yl[Yh];Cm=$d.$l.x,kp=$d.$l.y,wd=$d.angle,If=sg=us.angle,Pc!==_l&&(If=Pc===Zp||Pc===mv?wd+us.angle:wd,sg=ri.computeAngle(Pc,If)),_u.Kb=sg,_u.text=$d.text||"",_u.measure(1/0,1/0,0,0);var Xh=_u.measuredBounds,ph=_u.naturalBounds,Qh=ph.width,lg=ph.height,ld=Ar.alloc();ld.reset(),ld.translate(-Xh.x,-Xh.y),ld.scale(_u.scale,_u.scale),ld.rotate(If,Qh/2,lg/2),Pc!==$p&&Pc!==Xp||ld.rotate(90,Qh/2,lg/2),Pc!==Yp&&Pc!==Qp||ld.rotate(-90,Qh/2,lg/2),Pc===vv&&(45<wd&&135>wd||225<wd&&315>wd)&&ld.rotate(-wd,Qh/2,lg/2);var Dg=vn.allocAt(0,0,Qh,lg),Jh=ot.alloc();Jh.xi(Dg,$h),ld.Ga(Jh);var Fg=-Jh.x,qy=-Jh.y,mh=ot.alloc();mh.assign(Tp),isNaN(mh.x)&&(mh.x=Qh/2+3),isNaN(mh.y)&&(mh.y=-(lg/2+3)),mh.rotate(wd),Cm+=mh.x+Fg,kp+=mh.y+qy;var ug=new vn(Cm,kp,Xh.width,Xh.height),Pm=new vn(Xh.x,Xh.y,Xh.width,Xh.height),eS=new vn(ph.x,ph.y,ph.width,ph.height);$d.Sz=sg,$d.lineCount=_u.lineCount,$d.lines=[_u.Cb,_u.Ih,_u.df,_u.Le,_u.Qc,_u.Qb,_u.ze],$d.actualBounds=ug,$d.measuredBounds=Pm,$d.naturalBounds=eS,Yh===0?Nf.assign(ug):Nf.ed(ug),ot.free(mh),ot.free(Jh),vn.free(Dg),Ar.free(ld)}Cc.graduatedBounds!==null&&Cc.graduatedBounds.push(Nf),ao(u0,Nf.x,Nf.y,Nf.width,Nf.height)}Ra(us,!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 se=y.length,ue=0;ue<se;ue++){var ce=y[ue];re=E[ue],ce.visible&&ce!==b&&re.length!==0&&(re=z[te],te++,ce.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 lu,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,se=a.O.s,ue=a.graduatedMarks,ce=se.length,ve=0;ve<ce;ve++){var Ce=se[ve],Le=ue[ve],Me=Le.length;if(Ce.visible&&Ce!==z&&Le.length!==0){if(Ce instanceof Lr){if(!(2>a.graduatedTickUnit*Ce.interval*z.geometry.flattenedTotalLength/a.graduatedRange*te&&Ce.graduatedSkip===null)){var We=Ce.measuredBounds,ut=Ce.strokeWidth*Ce.scale,tt=Ce.alignmentFocus;tt.Mc()&&(tt=Xl);for(var mt=0;mt<Me;mt++){var xt=Le[mt].$l,Pt=Le[mt].angle,Mt=tt,en=Ce.Ab;en.reset(),en.translate(xt.x+re.x,xt.y+re.y),en.rotate(Pt+Ce.angle,0,0),en.translate(-We.width*Mt.x+Mt.offsetX+ut/2,-We.height*Mt.y+Mt.offsetY+ut/2),en.scale(Ce.scale,Ce.scale),kl(Ce,!1),Ce.wh.set(Ce.Ab),Ce.Kk=Ce.scale,ou(Ce,!1),Ce.gc(y,x),E&&(a.svg.appendChild(Ce.svg),Ce.svg=null),Ce.Ab.reset()}}}else if(Ce instanceof Xo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Xo),We=a.temporaryTextBlock,wS(We,Ce),ut=0;ut<Me;ut++)tt=Le[ut],tt.actualBounds&&tt.measuredBounds&&tt.naturalBounds&&(We.ec=tt.text||"",We.Kb=tt.Sz||0,We.Gc=tt.lineCount||0,mt=tt.lines,mt!==void 0&&(We.Cb=mt[0],We.Ih=mt[1],We.df=mt[2],We.Le=mt[3],We.Qc=mt[4],We.Qb=mt[5],We.ze=mt[6]),tt.naturalBounds&&(We.dc=tt.naturalBounds),tt.actualBounds&&(mt=tt.actualBounds,We.arrange(mt.x,mt.y,mt.width,mt.height)),mt=tt.actualBounds,We.arrange(mt.x,mt.y,mt.width,mt.height),xt=tt.measuredBounds,tt=tt.naturalBounds,Pt=We.Ab,Pt.reset(),Pt.translate(mt.x+re.x,mt.y+re.y),Pt.translate(-xt.x,-xt.y),We.no(Pt,tt.x,tt.y,tt.width,tt.height),kl(We,!1),We.wh.set(We.Ab),We.Kk=We.scale,ou(We,!1),We.Ng=Ce.part,We.Me=Ce.panel,We.gc(y,x),We.Me=null,We.Ng=null,E&&(a.svg.appendChild(We.svg),We.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function ei(a,y){if(Nt.call(this),this.na=null,a===void 0)this.na=ei.Position;else if(typeof a=="string"){var x=zc.I(a);x!==null&&(this.na=x)}else a instanceof Ns?this.na=a:a&&(this.na=ei.Position,y=a);this.na===null&&Rt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ei.Grid?1048576:0),this.O=new ln,this.yb=dl,this.Tm=wo,this.Uf=Gi,this.$g=null,this.$e="",this.jg=new vn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ti,this.jn=ka,this.kn=Gr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}on(ei,Nt),ei.prototype.cloneProtected=function(a){Nt.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},ei.prototype.Af=function(a){Nt.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},ei.prototype.copy=function(){var a=Nt.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 Si&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Fa,"elements",a,null,E,null,te)}}return a}return null},De=ei.prototype,De.toString=function(){return"Panel("+this.type.name+")#"+Fr(this)},De.Pn=function(a){Nt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},De.hh=function(a,y){if(this.na===ei.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ei.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ei.Table)if(a.yc(),a instanceof lu){var x=a.yd;a.yd=_g(a,"gojs-ts"),P0(this,a),a.nh.pop(),a.yd=x}else P0(this,a);(x=this.isClipping&&this.na===ei.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 P0(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Hm(a,y,!0,x,!0),b!==null&&Hm(a,y,!1,b,!0),x!==null&&lS(a,y,!0,x),b!==null&&lS(a,y,!1,b),x!==null&&Hm(a,y,!0,x,!1),b!==null&&Hm(a,y,!1,b,!1)}function lS(a,y,x,b){for(var E=b.length,z=a.actualBounds,te=a.naturalBounds,re=!0,se=0;se<E;se++){var ue=b[se];if(ue!==void 0&&ue.actual!==0)if(re)re=!1;else{if(x){if(ue.position>te.height)continue}else if(ue.position>te.width)continue;var ce=ue.separatorStrokeWidth;isNaN(ce)&&(ce=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ve=ue.separatorStroke;if(ve===null&&(ve=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ce!==0&&ve!==null){Yo(a,y,ve,!1,!1,te,z),ve=!1;var Ce=ue.separatorDashArray;Ce===null&&(Ce=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ce!==null&&(ve=!0,y.js(Ce,0)),y.beginPath(),Ce=ue.position+ce,x?Ce>te.height&&(ce-=Ce-te.height):Ce>te.width&&(ce-=Ce-te.width),ue=ue.position+ce/2,y.lineWidth=ce,ce=a.yb,x?(ue+=ce.top,Ce=te.width-ce.right,y.moveTo(ce.left,ue),y.lineTo(Ce,ue)):(ue+=ce.left,Ce=te.height-ce.bottom,y.moveTo(ue,ce.top),y.lineTo(ue,Ce)),y.stroke(),y.Se(),ve&&y.fs()}}}}function Hm(a,y,x,b,E){for(var z=b.length,te=a.actualBounds,re=a.naturalBounds,se=uS(a,!0),ue=uS(a,!1),ce=0;ce<z;ce++){var ve=b[ce];if(ve!==void 0&&ve.background!==null&&ve.coversSeparators!==E&&ve.actual!==0){var Ce=x?te.height:te.width;if(!(ve.position>Ce)){var Le=ve.Wc(),Me=ve.separatorStrokeWidth;isNaN(Me)&&(Me=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var We=ve.separatorStroke;We===null&&(We=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(We===null||ve.index===(x?se:ue))&&(Me=0),Le-=Me,Me=ve.position+Me,Le+=ve.actual,Me+Le>Ce&&(Le=Ce-Me),0>=Le||(Ce=a.yb,Yo(a,y,ve.background,!0,!1,re,te),x?y.fillRect(Ce.left,Me+Ce.top,te.width-(Ce.left+Ce.right),Le):y.fillRect(Me+Ce.left,Ce.top,Le,te.height-(Ce.top+Ce.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 T0(a){return a==="LineV"||a==="BarV"}De.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},De.kk=function(a,y,x){if(!Nt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ei.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,P0(this,a),a.yd=null;else if(this.na===ei.Grid||this.na===ei.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},De.nk=function(){return!0},De.$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 Nt.prototype.$o.call(this,a,y,x,b)},De.Sj=function(a,y,x,b,E){var z=this.se(),te=this.transform,re=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*re,ue=-te.m12*re,ce=-te.m21*re,ve=te.m11*re,Ce=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,Ft.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E);if(this.background!==null)return z=a*se+y*ce+Ce,re=a*ue+y*ve+Le,a=x*se+b*ce+Ce,se=x*ue+b*ve+Le,E.h(0,0),x=this.naturalBounds,z=Ft.Ff(0,0,x.width,x.height,z,re,a,se,E),E.transform(te),z;z||(se=1,ce=ue=0,ve=1,Le=Ce=0),re=a*se+y*ce+Ce,a=a*ue+y*ve+Le,se=x*se+b*ce+Ce,x=x*ue+b*ve+Le,E.h(se,x),b=(se-re)*(se-re)+(x-a)*(x-a),ue=!1,ve=this.O.s,Le=ve.length,ce=ot.alloc(),Ce=null,y=1/0;var Me=null,We=this.isClipping&&this.na===ei.Spot;We&&(Me=ot.alloc(),Ce=this.Pb(),(ue=Ce.Sj(re,a,se,x,Me))&&(y=(re-Me.x)*(re-Me.x)+(a-Me.y)*(a-Me.y)));for(var ut=0;ut<Le;ut++){var tt=ve[ut];tt.visible&&tt!==Ce&&tt.Sj(re,a,se,x,ce)&&(ue=!0,tt=(re-ce.x)*(re-ce.x)+(a-ce.y)*(a-ce.y),tt<b&&(b=tt,E.set(ce)))}return We&&(y>b&&E.set(Me),ot.free(Me)),ot.free(ce),z&&E.transform(te),ue},De.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Nt.prototype.Gj.call(this)},De.v=function(a){if(!Ul(this)){Nt.prototype.v.call(this,a),a=null,(this.na===ei.Auto||this.na===ei.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=Ka(E,!1);(E instanceof Hl||E instanceof ei||E instanceof Xo||z!==Sn)&&E.v(!0)}}}},De.Uj=function(){if(!Ul(this)){Ra(this,!0),Hi(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},De.Uk=function(){if(!(this.l&2048)){kl(this,!0),ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},De.Wu=function(){ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},De.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 se=this.yb;a=Math.max(a-se.left-se.right,0),y=Math.max(y-se.top-se.bottom,0);var ue=this.O.s;ue.length!==0&&this.na.measure(this,a,y,ue,E,x,b),a=E.width+se.left+se.right,se=E.height+se.top+se.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(se=z.height),a=Math.min(re.width,a),se=Math.min(re.height,se),a=Math.max(te.width,a),se=Math.max(te.height,se),a=Math.max(x,a),se=Math.max(b,se),Ms(E,a,se),Ms(this.naturalBounds,a,se),this.Ge(0,0,a,se)},De.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 lh(a){return a.part!==null?a.part.locationObject:null}De.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=Ka(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=Sn),a){case Sn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Bn:this.v(!0),this.measure(x+re,b+te,0,0);break;case gi:this.v(!0),this.measure(x+re,z+te,0,0);break;case bi:this.v(!0),this.measure(y+re,b+te,0,0)}}this.na.arrange(this,E,this.jg)}},De.gh=function(a){var y=this.naturalBounds,x=lh(this);if(Jo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=ot.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Wr(E.set(a),z.transform),z.ca(E)))return ot.free(E),!0}return ot.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},De.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},De.qm=function(a,y){if(y(this,a),a instanceof ei){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Yf(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 ei&&cS(a,z,x)}}function o1(a,y){dS(a,a,y)}function dS(a,y,x){if(x(y),y instanceof ei){y=y.O.s;for(var b=y.length,E=0;E<b;E++)dS(a,y[E],x)}}De.Nl=function(a){return hS(this,this,a)};function hS(a,y,x){if(x(y))return y;if(y instanceof ei){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}De.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 ei){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function fS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof ei?x=Math.max(x,fS(E)):E instanceof Lr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}De.se=function(){return!(this.type===ei.TableRow||this.type===ei.TableColumn)};function Rh(a){return a.type===ei.TableRow||a.type===ei.TableColumn}De.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),nl(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),te=z?a:Wr(ot.allocAt(a.x,a.y),this.transform),re=this.diagram,se=10,ue=5;if(re!==null&&(se=re.Ql("extraTouchArea"),ue=se/2),Jo(-(ue*E),-(ue*E),b.width+se*E,b.height+se*E,te.x,te.y)){if(!this.isAtomic){E=this.O.s;var ce=E.length;if(re=ot.alloc(),ue=(se=this.isClipping&&this.na===ei.Spot)?this.Pb():null,se&&(ue.se()?Wr(re.set(a),ue.transform):re.set(a),!ue.ca(re)))return ot.free(re),z||ot.free(te),null;for(var ve=lh(this);ce--;){var Ce=E[ce];if((Ce.visible||Ce===ve)&&(Ce.se()?Wr(re.set(a),Ce.transform):re.set(a),!se||Ce!==ue)){var Le=null;if(Ce instanceof ei?Le=Ce.ic(re,y,x):Ce.pickable===!0&&Ce.ca(re)&&(Le=Ce),Le!==null&&(y!==null&&(Le=y(Le)),Le!==null&&(x===null||x(Le))))return ot.free(re),z||ot.free(te),Le}}ot.free(re)}return this.background===null&&this.areaBackground===null?(z||ot.free(te),null):(a=Jo(0,0,b.width,b.height,te.x,te.y)?this:null,z||ot.free(te),a)}return z||ot.free(te),null},De.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:Wr(ot.allocAt(a.x,a.y),this.transform);if(E=Jo(0,0,E.width,E.height,te.x,te.y),Rh(this)||E){if(!this.isAtomic){for(var re=this.O.s,se=re.length,ue=ot.alloc(),ce=lh(this);se--;){var ve=re[se];if(ve.visible||ve===ce){ve.se()?Wr(ue.set(a),ve.transform):ue.set(a);var Ce=ve;ve=ve instanceof ei?ve:null,(ve!==null?ve.ji(ue,y,x,b):Ce.ca(ue))&&Ce.pickable!==!1&&(y!==null&&(Ce=y(Ce)),Ce===null||x!==null&&!x(Ce)||b.add(Ce))}}ot.free(ue)}return z||ot.free(te),E&&(this.background!==null||this.areaBackground!==null)}return z||ot.free(te),!1},De.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=Ar.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return k0(this,y,x,E),z===void 0&&Ar.free(te),!0;if(this.Yc(a,te)){if(!this.isAtomic)for(var re=lh(this),se=this.O.s,ue=se.length;ue--;){var ce=se[ue];if(ce.visible||ce===re){var ve=ce.actualBounds,Ce=this.naturalBounds;ve.x>Ce.width||ve.y>Ce.height||0>ve.x+ve.width||0>ve.y+ve.height||(ve=ce,ce=ce instanceof ei?ce:null,Ce=Ar.alloc(),Ce.set(te),(ce!==null?ce.Cf(a,y,x,b,E,Ce):_n(ve,a,b,Ce))&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||E.add(ve)),Ar.free(Ce))}}return z===void 0&&Ar.free(te),b}return z===void 0&&Ar.free(te),!1};function k0(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,se=a.naturalBounds;re.x>se.width||re.y>se.height||0>re.x+re.width||0>re.y+re.height||(te instanceof ei&&k0(te,y,x,b),y!==null&&(te=y(te)),te===null||x!==null&&!x(te)||b.add(te))}}}De.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(),se=re?a:Wr(ot.allocAt(a.x,a.y),this.transform),ue=re?y:Wr(ot.allocAt(y.x,y.y),this.transform),ce=se.Bf(ue),ve=0<se.x&&se.x<te.width&&0<se.y&&se.y<te.height||na(se.x,se.y,0,0,0,te.height)<=ce||na(se.x,se.y,0,te.height,te.width,te.height)<=ce||na(se.x,se.y,te.width,te.height,te.width,0)<=ce||na(se.x,se.y,te.width,0,0,0)<=ce;if(te=se.zd(0,0)<=ce&&se.zd(0,te.height)<=ce&&se.zd(te.width,0)<=ce&&se.zd(te.width,te.height)<=ce,re||(ot.free(se),ot.free(ue)),ve){if(!this.isAtomic){se=ot.alloc(),ue=ot.alloc(),ce=lh(this);for(var Ce=this.O.s,Le=Ce.length;Le--;){var Me=Ce[Le];if(Me.visible||Me===ce){var We=Me.actualBounds,ut=this.naturalBounds;(!re||!(We.x>ut.width||We.y>ut.height||0>We.x+We.width||0>We.y+We.height))&&(Me.se()?(We=Me.transform,Wr(se.set(a),We),Wr(ue.set(y),We)):(se.set(a),ue.set(y)),We=Me,Me=Me instanceof ei?Me:null,(Me!==null?Me.og(se,ue,x,b,E,z):We.tx(se,ue,E))&&(x!==null&&(We=x(We)),We===null||b!==null&&!b(We)||z.add(We)))}}ot.free(se),ot.free(ue)}return E?ve:te}return!1};function A0(a){var y=null;return a instanceof Lr&&(y=a.spot1,y===wo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=bs),y}function L0(a){var y=null;return a instanceof Lr&&(y=a.spot2,y===wo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=pl),y}De.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},De.M=function(a){return this.O.M(a)},De.Gb=function(a,y){y instanceof Bi&&Rt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Rt("Cannot make a Panel contain itself: "+this.toString()),Rt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Rt("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!==ei.Grid||y instanceof Lr||Rt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ei.Graduated||y instanceof Lr||y instanceof Xo||Rt("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 ki),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,se=0;se<re;se++)if(te[se]===y){z=se;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Rt("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),Ul(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ei&&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 Si&&(x.Te=!0),x.Te&&x instanceof Si&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(rs,"elements",this,y,null,b,null),x.cb(Fa,"elements",this,null,y,null,a)))};function N0(a,y){a.l=y?a.l|16777216:a.l&-16777217}De.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)},De.mb=function(a){0<=a&&this.pc(a,!0)},De.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),Ra(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 Si&&(b instanceof ei?b.qm(b,function(te,re){q0(z,re,y)}):q0(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(rs,"elements",this,b,null,a,null))},De.Fb=function(a){0>a&&vi(a,">= 0",ei,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Cs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Fa,"rowdefs",this,null,x,null,a)}return y[a]},De.oA=function(a){if(0>a&&vi(a,">= 0",ei,"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(rs,"rowdefs",this,x,null,a,null),this.v()}}};function gS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Cs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}De.Eb=function(a){0>a&&vi(a,">= 0",ei,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Cs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Fa,"coldefs",this,null,x,null,a)}return y[a]},De.jA=function(a){if(0>a&&vi(a,">= 0",ei,"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(rs,"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 Cs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}De.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Km(y,a),this},De.Hy=function(a,y){return(a=this.Fb(a))&&Km(a,new Cs(y)),this},De.By=function(a,y){return(a=this.Eb(a))&&Km(a,new Cs(y)),this},De.nz=function(a){if(0>a||this.type!==ei.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},De.fz=function(a){if(0>a||this.type!==ei.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},De.Fz=function(a,y){if(y===void 0&&(y=new ot(NaN,NaN)),this.type!==ei.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)},De.Gz=function(a){if(this.type!==ei.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 xc(a){var y=a.allBindings;if(y===null)a.data!==null&&Rt("Template cannot have .data be non-null: "+a),a.allBindings=y=new ln;else if(y._isFrozen)return;var x=new ln;N0(a,!1),a.qm(a,function(ue,ce){ce.th();var ve=ce.localBindings;if(ve!==null)for(jl(ce,!1),ve=ve.iterator;ve.next();){var Ce=ve.value;Ce.mode===om&&jl(ce,!0);var Le=Ce.sourceName;Le!==null&&(Le==="/"&&N0(ue,!0),Le=Nx(Ce,ue,ce),Le!==null&&(x.add(Le),Le.srcBindings===null&&(Le.srcBindings=new ln),Le.srcBindings.add(Ce))),y.add(Ce)}if(ce instanceof ei&&ce.type===ei.Table){if(0<ce.rowCount){for(ue=ce.rowDefs,ve=ue.length,Ce=0;Ce<ve;Ce++)if(Le=ue[Ce],Le!==void 0&&Le.be!==null)for(var Me=Le.be.iterator;Me.next();){var We=Me.value;We.xd=Le,We.to=2,We.wl=Le.index,y.add(We)}}if(0<ce.columnCount){for(ce=ce.colDefs,ue=ce.length,ve=0;ve<ue;ve++)if(Ce=ce[ve],Ce!==void 0&&Ce.be!==null)for(Le=Ce.be.iterator;Le.next();)Me=Le.value,Me.xd=Ce,Me.to=1,Me.wl=Ce.index,y.add(Me)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){jl(E,!0);for(var z=E.srcBindings.iterator;z.next();){var te=z.value;E.localBindings===null&&(E.localBindings=new ln),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,se=re.indexOf(".");0<se&&z instanceof ei&&(te=re.substring(0,se),re=re.substr(se+1),se=z.fb(te),se!==null?(z=se,E.targetProperty=re):Oi('Warning: unable to find GraphObject named "'+te+'" for Binding: '+E.toString())),z instanceof Cs?(te=Fr(z.panel),E.Ai=te===void 0?-1:te,z.panel.bindingId=E.Ai):z instanceof Nt?(te=Fr(z),E.Ai=te===void 0?-1:te,z.bindingId=E.Ai):Rt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Bi&&a.Zc()&&a.Va()}De.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return o1(y,function(x){x instanceof ei&&(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&&xc(y),y},De.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 ei))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},De.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function a1(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 ei&&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 ei)||z.data!==y[te])return!0;E++,te++}return!1}function Bp(a){if(a.type===ei.Spot||a.type===ei.Auto)return Math.min(a.O.length,1);if(a.type===ei.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Lr&&b.isPanelMain))break}return x}return a.type===ei.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ei&&Rh(a))?1:0}De.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++)_m(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 ei){if(te.data!==z){var re=M0(a,te.data),se=M0(a,z),ue=se!==re;ue||(re=O0(a,re),ue=O0(a,se)!==re),ue?(a.pc(b,!1),_m(a,z,E,!1)):te.data=z}}else _m(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,I0(a,x,0),Ul(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 Si&&(y.Te=!0),y.Te&&y instanceof Si&&(y.wc=null))}}function _m(a,y,x,b){if(!(y==null||0>x)){var E=M0(a,y);if(E=O0(a,E),E!==null){if(xc(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&N0(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ki),a.ge.add(y,E)),z=x+Bp(a),a.Gb(z,E),b&&(E.ub=y,I0(a,z,x),E.ub=null),E.data=y}}}function I0(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof ei){var E=y,z=x;b.type===ei.TableRow?b.row=E:b.type===ei.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function M0(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=is(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Rt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function O0(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,Oi('No item template Panel found for category "'+y+'" on '+a),Oi(" Using default item template."),a=new ei,y=new Xo,y.bind(new ss("text","",qn)),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 ei){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof ei&&!z.isEnabled||Wm(a,z,x)}}}function vd(a,y){y.name=a,zc.add(a,y)}At.Object.defineProperties(ei.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ei.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&&vi(a,">= 0",ei,"padding"),a=new ji(a)):(0>a.left&&vi(a.left,">= 0",ei,"padding:value.left"),0>a.right&&vi(a.right,">= 0",ei,"padding:value.right"),0>a.top&&vi(a.top,">= 0",ei,"padding:value.top"),0>a.bottom&&vi(a.bottom,">= 0",ei,"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:dl},set:function(a){typeof a=="number"&&(a=new ji(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new sc),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 qr)&&(a instanceof qr&&a.freeze(),this.T===null&&(this.T=new sc),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 sc),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)||Rt("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 sc),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 qr)&&(a instanceof qr&&a.freeze(),this.T===null&&(this.T=new sc),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 sc),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)||Rt("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 sc),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 sc),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||Rt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Fc(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()||Rt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Fc(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 uh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ba(this)&&(a=this.part,a!==null&&Eo(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 uh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ba(this)&&(a=this.part,a!==null&&Eo(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 uh),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 uh),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 uh,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 uh,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 uh,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 uh,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 sc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new sc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Zm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new sc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Zm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new sc),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)&&Rt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new sc),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)&&Rt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new sc),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 Bi&&!(this instanceof co);xc(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof ri?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Bi&&(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 nc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&a1(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 ki}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Bi||a.isPanelMain)&&Rt("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(););or(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&&(or(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 Sr&&(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))}}}),At.Object.defineProperties(ei,{Position:{get:function(){return zc.I("Position")}},Horizontal:{get:function(){return zc.I("Horizontal")}},Vertical:{get:function(){return zc.I("Vertical")}},Spot:{get:function(){return zc.I("Spot")}},Auto:{get:function(){return zc.I("Auto")}},Table:{get:function(){return zc.I("Table")}},Viewbox:{get:function(){return zc.I("Viewbox")}},TableRow:{get:function(){return zc.I("TableRow")}},TableColumn:{get:function(){return zc.I("TableColumn")}},Link:{get:function(){return zc.I("Link")}},Grid:{get:function(){return zc.I("Grid")}},Graduated:{get:function(){return zc.I("Graduated")}}}),ei.prototype.rebuildItemElements=ei.prototype.mv,ei.prototype.findItemPanelForData=ei.prototype.sx,ei.prototype.updateTargetBindings=ei.prototype.La,ei.prototype.copyTemplate=ei.prototype.Uy,ei.prototype.graduatedValueForPoint=ei.prototype.Gz,ei.prototype.graduatedPointForValue=ei.prototype.Fz,ei.prototype.findColumnForLocalX=ei.prototype.fz,ei.prototype.findRowForLocalY=ei.prototype.nz,ei.prototype.addColumnDefinition=ei.prototype.By,ei.prototype.addRowDefinition=ei.prototype.Hy,ei.prototype.addRowColumnDefinition=ei.prototype.Gy,ei.prototype.removeColumnDefinition=ei.prototype.jA,ei.prototype.getColumnDefinition=ei.prototype.Eb,ei.prototype.removeRowDefinition=ei.prototype.oA,ei.prototype.getRowDefinition=ei.prototype.Fb,ei.prototype.removeAt=ei.prototype.mb,ei.prototype.remove=ei.prototype.remove,ei.prototype.insertAt=ei.prototype.Gb,ei.prototype.elt=ei.prototype.M,ei.prototype.add=ei.prototype.add,ei.prototype.findObject=ei.prototype.fb,ei.prototype.findInVisualTree=ei.prototype.Nl,ei.prototype.walkVisualTreeFrom=ei.prototype.qm,ei.prototype.findMainElement=ei.prototype.Pb;var yS=!1,SS=null,zc=new ki;ei.className="Panel",ei.definePanelLayout=vd,vd("Position",new Im),vd("Vertical",new Om),vd("Auto",new Dm),vd("Link",new Gm);function uh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}uh.prototype.copy=function(){var a=new uh;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},uh.className="GradPanelSettings";function sc(){this.Pc=[],this.Oc=[],this.j=this.ob=Zm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}sc.prototype.copy=function(a){for(var y=new sc,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},sc.className="TablePanelSettings";function Cs(a){Mr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=wo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=R0,this.hg=Gi,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))}Cs.prototype.copy=function(){var a=new Cs;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=$t(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Km(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=$t(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}De=Cs.prototype,De.qb=function(a){a.classType===Cs&&(this.sizing=a)},De.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Fr(this)},De.wi=function(a){this.Me=a},De.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)},De.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===ei.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)},De.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(ha,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===R0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}De.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ss(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&mS(y)&&Rt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new ln),this.be.add(E),this},At.Object.defineProperties(Cs.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&&vi(a,">= 0",Cs,"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&&vi(a,">= 0",Cs,"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))&&vi(a,">= 0",Cs,"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&&vi(a,">= 0",Cs,"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 ji(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&&Sg(a,"RowColumnDefinition.separatorStroke"),a instanceof qr&&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)||Rt("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&&Sg(a,"RowColumnDefinition.background"),a instanceof qr&&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}}}),Cs.prototype.computeEffectiveSpacing=Cs.prototype.Wc,Cs.prototype.computeEffectiveSpacingTop=Cs.prototype.Io;var R0=new Ht(Cs,"Default",0),zp=new Ht(Cs,"None",1),Zm=new Ht(Cs,"ProportionalExtra",2);Cs.className="RowColumnDefinition",Cs.Default=R0,Cs.None=zp,Cs.ProportionalExtra=Zm;function Lr(a,y){Nt.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)}on(Lr,Nt),Lr.prototype.cloneProtected=function(a){Nt.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=$t(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 Xf(a){a.Na===null?a.Na=new B0:a.Na.nc&&(a.Na=a.Na.copy())}De=Lr.prototype,De.th=function(){Nt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},De.qb=function(a){a===Sn||a===ti||a===lr||a===Gi?this.geometryStretch=a:Nt.prototype.qb.call(this,a)},De.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Fr(this)};function Qg(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],se=x[1],ue,ce,ve,Ce,Le,Me,We=0,ut=gn(),tt=2;tt<E;tt+=2)ue=x[tt],ce=x[tt+1],ve=ue-re,re=ce-se,ve===0&&(ve=.001),Ce=re/ve,Le=Math.atan2(re,ve),Me=Math.sqrt(ve*ve+re*re),ut.push([ve,Le,Ce,Me]),We+=Me,re=ue,se=ce;re=x[0],se=x[1],ve=b.measuredBounds.width,b instanceof Lr&&(ve-=b.strokeWidth),1>ve&&(ve=1),E=x=ve,ue=te/2,ce=ue!==0,tt=0,Me=ut[tt],ve=Me[0],Le=Me[1],Ce=Me[2],Me=Me[3];for(var mt=0;.1<=We;){if(mt===0&&(ce?(E=x,E-=ue,We-=ue,ce=!1):E=x,E===0&&(E=1)),E>We){In(ut);return}E>Me?(mt=E-Me,E=Me):mt=0;var xt=Math.sqrt(E*E/(1+Ce*Ce));if(0>ve&&(xt=-xt),re+=xt,se+=Ce*xt,a.translate(re,se),a.rotate(Le),a.translate(-(te/2),-(z/2)),mt===0&&b.hh(a,y),a.translate(te/2,z/2),a.rotate(-Le),a.translate(-re,-se),We-=E,Me-=E,mt!==0){if(tt++,tt===ut.length){In(ut);return}Me=ut[tt],ve=Me[0],Le=Me[1],Ce=Me[2],Me=Me[3],E=mt}}In(ut)}}De.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&&Yo(this,a,b,!0,!1,te,z);var re=this.part,se=this.ig;if(x===null||se!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(se=re.type===ei.Link&&re instanceof co&&re.category==="Selection"&&re.adornedObject instanceof Lr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),se===0&&(x=null),x!==null&&se!==0&&(Yo(this,a,x,!1,!1,te,z),a.lineWidth=se,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,se=this.strokeDashArray,se!==null&&(te=!0,a.js(se,this.strokeDashOffset)),E.type===si.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===si.u){var ue=E.startX;se=E.startY;var ce=E.endX,ve=E.endY;E=Math.min(ue,ce);var Ce=Math.min(se,ve);ue=Math.abs(ce-ue),se=Math.abs(ve-se),a.beginPath(),a.rect(E,Ce,ue,se),b!==null&&a.ng(b),x!==null&&(re&&z&&nr(a),a.jk(),re&&z&&jo(a)),a.Se()}else if(E.type===si.F)ue=E.startX,se=E.startY,ce=E.endX,ve=E.endY,E=Math.abs(ce-ue)/2,Ce=Math.abs(ve-se)/2,ue=Math.min(ue,ce)+E,se=Math.min(se,ve)+Ce,a.beginPath(),a.moveTo(ue,se-Ce),a.bezierCurveTo(ue+Ft.wg*E,se-Ce,ue+E,se-Ft.wg*Ce,ue+E,se),a.bezierCurveTo(ue+E,se+Ft.wg*Ce,ue+Ft.wg*E,se+Ce,ue,se+Ce),a.bezierCurveTo(ue-Ft.wg*E,se+Ce,ue-E,se+Ft.wg*Ce,ue-E,se),a.bezierCurveTo(ue-E,se-Ft.wg*Ce,ue-Ft.wg*E,se-Ce,ue,se-Ce),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&nr(a),a.jk(),re&&z&&jo(a)),a.Se();else if(E.type===si.o)for(E=E.figures,se=E.length,Ce=0;Ce<se;Ce++){ue=E.s[Ce],a.beginPath(),a.moveTo(ue.startX,ue.startY),ce=ue.segments.s,ve=ce.length;for(var Le=null,Me=0;Me<ve;Me++){var We=ce[Me];switch(We.type){case Za:a.moveTo(We.endX,We.endY);break;case Go:a.lineTo(We.endX,We.endY);break;case Ks:a.bezierCurveTo(We.point1X,We.point1Y,We.point2X,We.point2Y,We.endX,We.endY);break;case Jl:a.quadraticCurveTo(We.point1X,We.point1Y,We.endX,We.endY);break;case Ga:if(We.radiusX===We.radiusY){var ut=Math.PI/180;a.arc(We.point1X,We.point1Y,We.radiusX,We.startAngle*ut,(We.startAngle+We.sweepAngle)*ut,0>We.sweepAngle,Le!==null?Le.endX:ue.startX,Le!==null?Le.endY:ue.startY)}else if(Le=El(We,ue),ut=Le.length,ut===0)a.lineTo(We.centerX,We.centerY);else for(var tt=0;tt<ut;tt++){var mt=Le[tt];tt===0&&a.lineTo(mt[0],mt[1]),a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7])}break;case yu:if(tt=ut=0,Le!==null&&Le.type===Ga){if(Le=El(Le,ue),mt=Le.length,mt===0){a.lineTo(We.endX,We.endY);break}Le=Le[mt-1]||null,Le!==null&&(ut=Le[6],tt=Le[7])}else ut=Le!==null?Le.endX:ue.startX,tt=Le!==null?Le.endY:ue.startY;if(Le=yl(We,ue,ut,tt),ut=Le.length,ut===0){a.lineTo(We.endX,We.endY);break}for(tt=0;tt<ut;tt++)mt=Le[tt],a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7]);break;default:Rt("Segment not of valid type: "+We.type)}We.isClosed&&a.closePath(),Le=We}ce=ue.isFilled,z?ue.isShadowed?(ce===!0&&b!=="transparent"&&b!==null&&a.ng(b,ue.isEvenOdd),x!==null&&(ce&&re&&nr(a),a.jk(),ce&&re&&jo(a))):(nr(a),ce&&b!=="transparent"&&b!==null&&a.ng(b,ue.isEvenOdd),x!==null&&a.jk(),jo(a)):(ce&&b!==null&&a.ng(b,ue.isEvenOdd),x!==null&&a.jk()),a.Se(Ce)}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===si.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Qg(a,y,b,x);else if(z.type===si.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,se=te,Ce=E,ue=re.segments.s,ce=ue.length,ve=0;ve<ce;ve++){switch(Me=ue[ve],Me.type){case Za:Qg(a,y,b,x),b.length=0,b.push(Me.endX),b.push(Me.endY),te=Me.endX,E=Me.endY,se=te,Ce=E;break;case Go:b.push(Me.endX),b.push(Me.endY),te=Me.endX,E=Me.endY;break;case Ks:Ft.Qe(te,E,Me.point1X,Me.point1Y,Me.point2X,Me.point2Y,Me.endX,Me.endY,.5,b),te=Me.endX,E=Me.endY;break;case Jl:Ft.ep(te,E,Me.point1X,Me.point1Y,Me.endX,Me.endY,.5,b),te=Me.endX,E=Me.endY;break;case Ga:if(We=El(Me,re),Le=We.length,Le===0){b.push(Me.centerX),b.push(Me.centerY),te=Me.centerX,E=Me.centerY;break}for(ut=0;ut<Le;ut++)tt=We[ut],Ft.Qe(te,E,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,b),te=tt[6],E=tt[7];break;case yu:if(We=yl(Me,re,te,E),Le=We.length,Le===0){b.push(Me.endX),b.push(Me.endY),te=Me.endX,E=Me.endY;break}for(ut=0;ut<Le;ut++)tt=We[ut],Ft.Qe(te,E,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,b),te=tt[6],E=tt[7];break;default:Rt("Segment not of valid type: "+Me.type)}Me.isClosed&&(b.push(se),b.push(Ce),Qg(a,y,b,x))}Qg(a,y,b,x)}else if(z.type===si.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),Qg(a,y,b,x);else if(z.type===si.F){if(E=new ps,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,te=new io(Ga),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=El(te,E),re=z.length,re===0)b.push(te.centerX),b.push(te.centerY);else for(te=E.startX,E=E.startY,se=0;se<re;se++)Ce=z[se],Ft.Qe(te,E,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,b),te=Ce[6],E=Ce[7];Qg(a,y,b,x)}In(b),a.restore(),a.Vc(!1)}}}},De.kk=function(a,y,x){return!Nt.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)},De.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Nt.prototype.nk.call(this,a)},De.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)}},De.ga=function(a,y){if(y===void 0&&(y=new ot),a instanceof Ii){a.Mc()&&Rt("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},De.mi=function(a){a===void 0&&(a=new vn);var y=this.naturalBounds,x=this.oe;y=vn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=ot.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),ao(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),ao(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),ao(a,b.x,b.y,0,0),vn.free(y),ot.free(b),a},De.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!==si.j||y||(E+=2);var z=vn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return vn.free(z),!1;if(b=E+1e-4,x.type===si.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:(vn.free(z),Ft.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===si.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 vn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),vn.free(z),a}if(x.type===si.F){te=x.startX,E=x.startY,re=x.endX;var se=x.endY;if(x=Math.min(te,re),y=Math.min(E,se),te=Math.abs(re-te)/2,E=Math.abs(se-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 vn.free(z),!1;te+=b,E+=b}return this.stroke!==null&&(te+=b,E+=b),vn.free(z),0>=te||0>=E?!1:1>=x*x/(te*te)+y*y/(E*E)}if(x.type===si.o)return vn.free(z),this.fill===null?Lc(x,a.x,a.y,E):pc(x,a,E,1<this.strokeWidth,y);Rt("Unknown Geometry type: "+x.type)},De.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,se=F0[re];if(se===void 0){var ue=Ft.Ze[re];typeof ue=="string"&&(ue=Ft.Ze[ue]),typeof ue=="function"?(se=ue(null,100,100),F0[re]=se):Rt("Unsupported Figure: "+re)}te=se.bounds}re=te.width,se=te.height,ue=te.width;var ce=te.height;switch(Ka(this,!0)){case Sn:b=x=0;break;case Bn:ue=Math.max(a-z,0),ce=Math.max(y-z,0);break;case gi:ue=Math.max(a-z,0),b=0;break;case bi:x=0,ce=Math.max(y-z,0)}isFinite(E.width)&&(ue=E.width),isFinite(E.height)&&(ce=E.height);var ve=this.maxSize,Ce=this.minSize;switch(x=Math.max(x-z,Ce.width),b=Math.max(b-z,Ce.height),ue=Math.min(ve.width,ue),ce=Math.min(ve.height,ce),ue=isFinite(ue)?Math.max(x,ue):Math.max(re,x),ce=isFinite(ce)?Math.max(b,ce):Math.max(se,b),x=D0(this),x){case Sn:break;case Bn:re=ue,se=ce;break;case ti:x=Math.min(ue/re,ce/se),isFinite(x)||(x=1),re*=x,se*=x;break;default:Rt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),se===0&&(se=.001),x=this.Rd!==null?this.Rd:this.ua,te=x.bounds,b=re/te.width,te=se/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&&Ft.$(this.ua.Sk,a-z)&&Ft.$(this.ua.Rk,y-z)||(this.ua=Lr.makeGeometry(this,re,se)),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&&se===0?0:te.height+z):this.Ge(-(z/2),-(z/2),ue+z,ce+z),E.w()?(ue=E.width,ce=E.height,ue=Math.min(ve.width,ue),ce=Math.min(ve.height,ce),ue=Math.max(Ce.width,ue),ce=Math.max(Ce.height,ce),this.dc.h(0,0,ue,ce)):this.dc.assign(te)};function D0(a){var y=a.geometryStretch;return a.Rd!==null?y===Gi?Bn:y:y===Gi?F0[a.figure].defaultStretch:y}De.eh=function(a,y,x,b){Oa(this,a,y,x,b)},De.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},De.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,se=-z.m12*te,ue=-z.m21*te,ce=z.m11*te,ve=te*(z.m21*z.dy-z.m22*z.dx),Ce=te*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*ue+ve,te=a*se+y*ce+Ce,re=x*re+b*ue+ve,se=x*se+b*ce+Ce,ve=this.ig/2,ue=this.ua,ue===null&&(this.measure(1/0,1/0),ue=this.ua);var Le=ue.bounds;if(ce=!1,ue.type===si.j)if(1.5>=this.strokeWidth)ce=Ft.Ve(ue.startX,ue.startY,ue.endX,ue.endY,z,te,re,se,E);else{if(ue.startX===ue.endX?(b=ve,ce=0):(y=(ue.endY-ue.startY)/(ue.endX-ue.startX),ce=ve/Math.sqrt(1+y*y),b=ce*y),y=gn(),a=new ot,Ft.Ve(ue.startX+b,ue.startY+ce,ue.endX+b,ue.endY+ce,z,te,re,se,a)&&y.push(a),a=new ot,Ft.Ve(ue.startX-b,ue.startY-ce,ue.endX-b,ue.endY-ce,z,te,re,se,a)&&y.push(a),a=new ot,Ft.Ve(ue.startX+b,ue.startY+ce,ue.startX-b,ue.startY-ce,z,te,re,se,a)&&y.push(a),a=new ot,Ft.Ve(ue.endX+b,ue.endY+ce,ue.endX-b,ue.endY-ce,z,te,re,se,a)&&y.push(a),re=y.length,re===0)return In(y),!1;for(ce=!0,se=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-te)*(a.y-te),x<se&&(se=x,E.x=a.x,E.y=a.y);In(y)}else if(ue.type===si.u)ce=Ft.Ff(Le.x-ve,Le.y-ve,Le.x+Le.width+ve,Le.y+Le.height+ve,z,te,re,se,E);else if(ue.type===si.F){y=vn.allocAt(Le.x,Le.y,Le.width,Le.height).Bc(ve,ve);e:if(y.width===0)ce=Ft.Ve(y.x,y.y,y.x,y.y+y.height,z,te,re,se,E);else if(y.height===0)ce=Ft.Ve(y.x,y.y,y.x+y.width,y.y,z,te,re,se,E);else{if(a=y.width/2,ue=y.height/2,b=y.x+a,ce=y.y+ue,x=9999,z!==re&&(x=(te-se)/(z-re)),9999>Math.abs(x)){if(se=te-ce-x*(z-b),0>a*a*x*x+ue*ue-se*se){E.x=NaN,E.y=NaN,ce=!1;break e}ve=Math.sqrt(a*a*x*x+ue*ue-se*se),re=(-(a*a*x*se)+a*ue*ve)/(ue*ue+a*a*x*x)+b,a=(-(a*a*x*se)-a*ue*ve)/(ue*ue+a*a*x*x)+b,ue=x*(re-b)+se+ce,se=x*(a-b)+se+ce,Math.abs((z-re)*(z-re))+Math.abs((te-ue)*(te-ue))<Math.abs((z-a)*(z-a))+Math.abs((te-se)*(te-se))?(E.x=re,E.y=ue):(E.x=a,E.y=se)}else{if(re=ue*ue,se=z-b,re-=re/(a*a)*se*se,0>re){E.x=NaN,E.y=NaN,ce=!1;break e}se=Math.sqrt(re),re=ce+se,se=ce-se,Math.abs(re-te)<Math.abs(se-te)?(E.x=z,E.y=re):(E.x=z,E.y=se)}ce=!0}vn.free(y)}else if(ue.type===si.o){Ce=ot.alloc();var Me=re-z,We=se-te,ut=Me*Me+We*We,tt=z,mt=te;if(0<ut&&Le.contains(tt,mt)&&(Ce.x=tt,Ce.y=mt,this.ca(Ce)))for(Me!==0&&.5>Math.abs(Me)?(We*=.5/Me,Me=.5):We!==0&&.5>Math.abs(We)&&(Me*=.5/We,We=.5),tt-=Me,mt-=We;Le.contains(tt,mt);)tt-=Me,mt-=We;for(E.x=re,E.y=se,We=0;We<ue.figures.count;We++){var xt=ue.figures.s[We],Pt=xt.isFilled?tt:z,Mt=xt.isFilled?mt:te,en=xt.segments;Le=xt.startX,Me=xt.startY;for(var pi=Le,Ai=Me,Ei=0;Ei<en.count;Ei++){var ii=en.s[Ei],Un=ii.type,vr=ii.endX,ar=ii.endY,So=!1;switch(Un){case Za:pi=vr,Ai=ar;break;case Go:So=Ym(Le,Me,vr,ar,Pt,Mt,re,se,Ce);break;case Ks:So=Ft.Eo(Le,Me,ii.point1X,ii.point1Y,ii.point2X,ii.point2Y,vr,ar,Pt,Mt,re,se,.6,Ce);break;case Jl:So=Ft.Eo(Le,Me,Le+2/3*(ii.point1X-Le),Me+2/3*(ii.point1Y-Me),vr+2/3*(ii.point1X-vr),ar+2/3*(ii.point1Y-ar),vr,ar,Pt,Mt,re,se,.6,Ce);break;case Ga:case yu:Un=ii.type===Ga?El(ii,xt):yl(ii,xt,Le,Me);var $o=Un.length;if($o===0){So=Ym(Le,Me,ii.type===Ga?ii.centerX:ii.endX,ii.type===Ga?ii.centerY:ii.endY,Pt,Mt,re,se,Ce);break}for(ar=null,vr=0;vr<$o;vr++){if(ar=Un[vr],vr===0&&Ym(Le,Me,ar[0],ar[1],Pt,Mt,re,se,Ce)){var _s=$m(Pt,Mt,Ce,ut,E);_s<ut&&(ut=_s,ce=!0)}Ft.Eo(ar[0],ar[1],ar[2],ar[3],ar[4],ar[5],ar[6],ar[7],Pt,Mt,re,se,.6,Ce)&&(_s=$m(Pt,Mt,Ce,ut,E),_s<ut&&(ut=_s,ce=!0))}vr=ar[6],ar=ar[7];break;default:Rt("Unknown Segment type: "+Un)}Le=vr,Me=ar,So&&(So=$m(Pt,Mt,Ce,ut,E),So<ut&&(ut=So,ce=!0)),ii.isClosed&&(vr=pi,ar=Ai,Ym(Le,Me,vr,ar,Pt,Mt,re,se,Ce)&&(ii=$m(Pt,Mt,Ce,ut,E),ii<ut&&(ut=ii,ce=!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,ot.free(Ce)}else Rt("Unknown Geometry type: "+ue.type);return ce?(this.transform.Ga(E),!0):!1};function $m(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 Ym(a,y,x,b,E,z,te,re,se){if(Ft.$(a,x)&&Ft.$(y,b)||Ft.$(E,te)&&Ft.$(z,re))return!1;var ue=!1,ce=(E-te)*(y-b)-(z-re)*(a-x);return ce===0?!1:(se.x=((E*re-z*te)*(a-x)-(E-te)*(a*b-y*x))/ce,se.y=((E*re-z*te)*(y-b)-(z-re)*(a*b-y*x))/ce,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(se.y>a||Ft.$(se.y,a))&&(se.y<y||Ft.$(se.y,y))&&(ue=!0)):(y=a<x?a:x,a=a<x?x:a,(se.x>y||Ft.$(se.x,y))&&(se.x<a||Ft.$(se.x,a))&&(ue=!0)),ue)}De.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=ot.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)))),ot.free(z),E},De.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ar.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var te=ot.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 ot.free(te),!0;var re=ot.alloc(),se=ot.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,Qf(this,te,re,se)?y=!0:(te.x=E,te.y=a,te.transform(x),Qf(this,te,re,se)?y=!0:(re.x=b,re.y=a,re.transform(x),Qf(this,te,re,se)?y=!0:(te.x=b,te.y=z,te.transform(x),Qf(this,te,re,se)&&(y=!0)))),ot.free(te),Ar.free(x),ot.free(re),ot.free(se),y};function Qf(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)}De.tx=function(a,y,x){function b(ut,tt){for(var mt=ut.length,xt=0;xt<mt;xt+=2)if(tt.zd(ut[xt],ut[xt+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,se=te.y,ue=te.x+te.width;if(te=te.y+te.height,tr(a.x,a.y,re,se)<=E&&tr(a.x,a.y,ue,se)<=E&&tr(a.x,a.y,re,te)<=E&&tr(a.x,a.y,ue,te)<=E)return!0}if(re=y.startX,se=y.startY,ue=y.endX,te=y.endY,y.type===si.j){if(x=(re-ue)*(a.x-ue)+(se-te)*(a.y-te),na(a.x,a.y,re,se,ue,te)<=(0<=(ue-re)*(a.x-re)+(te-se)*(a.y-se)&&0<=x?E:z))return!0}else{if(y.type===si.u)return y=!1,x&&(y=na(a.x,a.y,re,se,re,te)<=E||na(a.x,a.y,re,se,ue,se)<=E||na(a.x,a.y,ue,se,ue,te)<=E||na(a.x,a.y,re,te,ue,te)<=E),y;if(y.type===si.F){y=a.x-(re+ue)/2,z=a.y-(se+te)/2;var ce=Math.abs(ue-re)/2,ve=Math.abs(te-se)/2;if(ce===0||ve===0)return na(a.x,a.y,re,se,ue,te)<=E;if(x){if(a=Ft.$y(ce,ve,y,z),a*a<=E)return!0}else return!(tr(y,z,-ce,0)>=E||tr(y,z,0,-ve)>=E||tr(y,z,0,ve)>=E||tr(y,z,ce,0)>=E)}else if(y.type===si.o){if(ue=y.bounds,z=ue.x,re=ue.y,se=ue.x+ue.width,ue=ue.y+ue.height,a.x>se&&a.x<z&&a.y>ue&&a.y<re&&na(a.x,a.y,z,re,z,ue)>E&&na(a.x,a.y,z,re,se,re)>E&&na(a.x,a.y,se,ue,z,ue)>E&&na(a.x,a.y,se,ue,se,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Lc(y,a.x,a.y,z):pc(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,ce=z.startY,a.zd(te,ce)>E)return!1;for(re=z.segments.s,se=re.length,ue=0;ue<se;ue++)switch(ve=re[ue],ve.type){case Za:case Go:if(te=ve.endX,ce=ve.endY,a.zd(te,ce)>E)return!1;break;case Ks:var Ce=gn();if(Ft.Qe(te,ce,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.8,Ce),te=b(Ce,a),In(Ce),te||(te=ve.endX,ce=ve.endY,a.zd(te,ce)>E))return!1;break;case Jl:if(Ce=gn(),Ft.ep(te,ce,ve.point1X,ve.point1Y,ve.endX,ve.endY,.8,Ce),te=b(Ce,a),In(Ce),te||(te=ve.endX,ce=ve.endY,a.zd(te,ce)>E))return!1;break;case Ga:case yu:Ce=ve.type===Ga?El(ve,z):yl(ve,z,te,ce);var Le=Ce.length;if(Le===0){if(te=ve.type===Ga?ve.centerX:ve.endX,ce=ve.type===Ga?ve.centerY:ve.endY,a.zd(te,ce)>E)return!1;break}ve=null;for(var Me=gn(),We=0;We<Le;We++)if(ve=Ce[We],Me.length=0,Ft.Qe(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.8,Me),b(Me,a))return In(Me),!1;In(Me),ve!==null&&(te=ve[6],ce=ve[7]);break;default:Rt("Unknown Segment type: "+ve.type)}}return!0}}}return!1},De.qc=function(){this.ua=null},De.kq=function(){return this.ig};function xS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Zp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=ws):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Ii(1-ws.x,ws.y)))}Lr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=zd[a.toArrow];else a.fromArrow!=="None"?b=zd[a.fromArrow]:(b=Ft.Ze[a.figure],typeof b=="string"&&(b=Ft.Ze[b]),b===void 0&&Rt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ft.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function bS(a){var y=zd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=zd[x],y===void 0){var b=null,E;for(E in Ft.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=si.parse(Ft.um[b],!1),zd[b]=a,x!==b&&(zd[x]=b),b}}return typeof y=="string"?y:y instanceof si?a:null}At.Object.defineProperties(Lr.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),Ba(this)&&(a=this.part,a!==null&&Eo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=si.parse(a);var y=a.normalize();this.geometry=a,this.position=a=ot.allocAt(-y.x,-y.y),ot.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&&Sg(a,"Shape.fill"),a instanceof qr&&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&&Sg(a,"Shape.stroke"),a instanceof qr&&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 vi(a,"value >= 0",Lr,"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"?vi(a,'"butt", "round", or "square"',Lr,"strokeCap"):(Xf(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"?vi(a,'"miter", "bevel", or "round"',Lr,"strokeJoin"):(Xf(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){Xf(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)||Rt("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&&(Xf(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=Ft.Ze[a];typeof x=="function"?x=a:(x=Ft.Ze[a.toLowerCase()])||Rt("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?Rt("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?Rt("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:wo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Xf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:wo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Xf(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&&(Xf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Gi},set:function(a){var y=this.geometryStretch;y!==a&&(Xf(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 jd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Fc(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 jd),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 jd),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 jd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Lr.prototype.intersectsRect=Lr.prototype.Yc,Lr.prototype.containedInRect=Lr.prototype.fh,Lr.prototype.getNearestIntersectionPoint=Lr.prototype.rs,Lr.prototype.getDocumentBounds=Lr.prototype.mi,Lr.prototype.getDocumentPoint=Lr.prototype.ga;var zd=new Ti,F0=new Ti;Lr.className="Shape",Lr.getFigureGenerators=function(){var a=new ki,y;for(y in Ft.Ze)y!==y.toLowerCase()&&a.add(y,Ft.Ze[y]);return a.freeze(),a},Lr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ft.Ze;b[a]=y,b[x]=a},Lr.getArrowheadGeometries=function(){var a=new ki;for(b in Ft.um)if(zd[b]===void 0){var y=si.parse(Ft.um[b],!1);zd[b]=y,y=b.toLowerCase(),y!==b&&(zd[y]=b)}for(var x in zd)if(x!==x.toLowerCase()){var b=zd[x];b instanceof si&&a.add(x,b)}return a.freeze(),a},Lr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=si.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Rt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=zd;b[a]=x,b[y]=a};function B0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Gi,this.gg=this.fg=wo}B0.prototype.copy=function(){var a=new B0;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 Xo(a,y){return Nt.call(this),ev||(uu=Ma?new oa(null).context:null,ev=!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}on(Xo,Nt),Xo.prototype.cloneProtected=function(a){Nt.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 yd(a){a.da===null?a.da=new W0:a.da.nc&&(a.da=a.da.copy())}De=Xo.prototype,De.th=function(){Nt.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}De.qb=function(a){a.classType===Xo?this.wrap=a:Nt.prototype.qb.call(this,a)},De.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},De.v=function(){Nt.prototype.v.call(this)},De.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,se=y.tn;re==="start"?re=se?"right":"left":re==="end"&&(re=se?"left":"right"),se=this.isUnderline;var ue=this.isStrikethrough;Yo(this,a,this.xc,!0,!1,x,b),(se||ue)&&Yo(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ce=this.oe,ve=ce.dx-(te*ce.m21+ce.dx);ce=ce.dy-(te*ce.m22+ce.dy);var Ce=y.scale;switch(8>(ve*ve+ce*ce)*Ce*Ce&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof lu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ve=this.spacingBelow,this.flip){case Cr:a.translate(E,0),a.scale(-1,1);break;case rr:a.translate(0,z),a.scale(1,-1);break;case wn:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ce=this.Gc,Ce=(y+te+ve)*ce,z>Ce&&(b=this.verticalAlignment,b=b.y*z-b.y*Ce+b.offsetY),ce===1&&this.ze!==null)ve=this.Cb,ve>E&&(ve=E),this.Oj(this.ze,a,0,b+y,E,te,ve,x,re,se,ue);else if(this.Qc!==null&&this.Qb!==null)for(Ce=0;Ce<ce;Ce++){var Le=this.Qc[Ce];Le>E&&(Le=E),b+=y,this.Oj(this.Qb[Ce],a,0,b,E,te,Le,x,re,se,ue),b+=te+ve}switch(this.flip){case Cr:a.scale(-1,1),a.translate(-E,0);break;case rr:a.scale(1,-1),a.translate(0,-z);break;case wn:a.scale(-1,-1),a.translate(-E,-z)}}},De.Oj=function(a,y,x,b,E,z,te,re,se,ue,ce){var ve=0;if(re)se==="left"?ve=0:se==="right"?ve=E-te:se==="center"&&(ve=(E-te)/2),y.fillRect(x+ve,b+.25*z,te,1);else{if(se==="left"?ve=0:se==="right"?ve=E:se==="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),se==="right"?ve-=te:se==="center"&&(ve-=te/2),ue){re=Qm!==null?Qm(this,z):.8*z,se=x+ve,ue=b+re,E=x+ve+te,re=b+re;var Ce=a;y.beginPath(),y.lineWidth=Ce,y.moveTo(se,ue),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof lu&&y.ad.classList.add("gojs-td")}ce&&(ce=b+z-z/2.2|0,a%2!==0&&(ce+=.5),b=x+ve,z=ce,x=x+ve+te,te=ce,ve=a,y.beginPath(),y.lineWidth=ve,y.moveTo(b,z),y.lineTo(x,te),y.stroke(),y.Se(),y instanceof lu&&y.ad.classList.add("gojs-td"))}},De.kk=function(a,y,x){if(!Nt.prototype.kk.call(this,a,y,x))return!1;if(Yo(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},De.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Nt.prototype.nk.call(this,a)},De.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)}},De.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;uu!==null&&LS!==z&&(LS=uu.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,se=!1;!se;){var ue=z.indexOf(`
`,re);ue===-1&&(ue=z.length,se=!0),re=z.substr(re,ue-re),this.formatting===Gp&&(re=re.trim()),te=Math.max(te,jc(re)),re=ue+1}z=te}else te=z.indexOf(`
`,0),0<=te&&(z=z.substr(0,te)),z=jc(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,se=te,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Jm&&(y=this.Ae,y=this.overflow===Jm?ES(y):0,ue=this.spacingAbove+this.spacingBelow,ue=Math.max(0,Up(this)+ue),se=Math.min(this.maxLines-1,Math.max(Math.floor(se/ue+.01)-1,0)),!(se+1>=this.Qb.length))){for(this.l|=16777216,ue=this.Qb[se],y=Math.max(1,a-y);jc(ue)>y&&1<ue.length;)ue=ue.substr(0,ue.length-1);ue+=Hp,y=jc(ue),this.Qb[se]=ue,this.Qb=this.Qb.slice(0,se+1),this.Qc[se]=y,this.Qc=this.Qc.slice(0,se+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),Ms(this.dc,z,te),this.Ge(0,0,z,te),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},De.eh=function(a,y,x,b){Oa(this,a,y,x,b)};function jp(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 z0(a,y,x,b){var E=a.formatting===Gp;E&&(y=y.trim());var z=0,te=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Up(a)+re);var se=a.overflow===Jm?ES(te):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(te=y,a.wrap===j0){a.Le=1;var ue=jc(y);if(se===0||ue<=x)a.Cb=Math.max(a.Cb,ue),jp(a,y,a.Cb),b!==null&&b.h(ue,re);else{for(z=Jg(a,te),te=te.substr(z.length),y=Jg(a,te),ue=jc(z+y);0<y.length&&ue<=x;)z+=y,te=te.substr(y.length),y=Jg(a,te),ue=z+y,E&&(ue=ue.trim()),ue=jc(ue);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-se);jc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Hp;var ce=jc(z);a.Cb=ce,jp(a,z,ce),b!==null&&b.h(ce,re)}}else{for(se=0,te.length===0&&(se=1,jp(a,te,0));0<te.length;){for(y=Jg(a,te),te=te.substr(y.length);jc(y)>x;){var ve=1;for(ue=jc(y.substr(0,ve)),ce=0;ue<=x;)ve++,ce=ue,ue=jc(y.substr(0,ve));if(ve===1){var Ce=ue;z=Math.max(z,ue)}else Ce=ce,z=Math.max(z,ce);if(ve--,1>ve&&(ve=1),jp(a,y.substr(0,ve),Ce),se++,y=y.substr(ve),a.Gc+se>a.maxLines)break}for(ce=Jg(a,te),ue=jc(y+ce);0<ce.length&&ue<=x;)y+=ce,te=te.substr(ce.length),ce=Jg(a,te),ue=y+ce,E&&(ue=ue.trim()),ue=jc(ue);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ce.length===0?(ve=ue,z=Math.max(z,ue)):(ve=ce=jc(y),z=Math.max(z,ce)),jp(a,y,ve),se++,a.Gc+se>a.maxLines))break}a.Le=Math.min(a.maxLines,se),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Jg(a,y){if(a.wrap===TS)return y.substr(0,1);for(var x=y.length,b=0,E=s1;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===kS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function jc(a){return uu===null?8*a.length:uu.measureText(a).width}function Up(a){if(a.df!==null)return a.df;var y=a.Ae;if(uu===null){var x=16;return a.df=x}return H0[y]!==void 0&&5e3>AS?x=H0[y]:(x=1.3*uu.measureText("M").width,H0[y]=x,AS++),a.df=x}function ES(a){if(uu===null)return 6;if(qm[a]!==void 0&&5e3>_0)var y=qm[a];else y=uu.measureText(Hp).width,qm[a]=y,_0++;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!==j0){a.Le=0;var se=ai.alloc();z0(a,z,y,se),E+=se.height,ai.free(se),a.Gc+=a.Le}else z0(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=te+1}return a.Lq=E}At.Object.defineProperties(Xo.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"||(yd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Sn},set:function(a){var y=this.flip;y!==a&&(yd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ks},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),yd(this),this.da.Yr=a,As(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ai.alloc();z0(this,this.ec,999999,a);var y=a.width;ai.free(a),a=CS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ms(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:U0},set:function(a){var y=this.wrap;y!==a&&(yd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:G0},set:function(a){var y=this.overflow;y!==a&&(yd(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&&Sg(a,"TextBlock.stroke"),a instanceof qr&&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&&(yd(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&&(yd(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 jd),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 jd),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 jd),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 jd),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 jd),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&&(yd(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&&(yd(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&&(yd(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&&(yd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Gp},set:function(a){var y=this.formatting;y!==a&&(yd(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&&vi(a,"> 0",Xo,"maxLines"),yd(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,j0=new Ht(Xo,"None",0),PS=new Ht(Xo,"WrapFit",1),U0=new Ht(Xo,"WrapDesiredSize",2),TS=new Ht(Xo,"WrapBreakAll",3),G0=new Ht(Xo,"OverflowClip",0),Jm=new Ht(Xo,"OverflowEllipsis",1),Gp=new Ht(Xo,"FormatTrim",0),kS=new Ht(Xo,"FormatNone",0),s1=/[ \u200b\u00ad]/,H0=new Ti,AS=0,qm=new Ti,_0=0,Hp="...",LS="",uu=null,ev=!1;Xo.className="TextBlock";function W0(){this.nc=!1,this.Hd=null,this.Xf=Sn,this.gq=Gp,this.Jq=1/0,this.$q=G0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ks,this.$r=U0}W0.prototype.copy=function(){var a=new W0;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},Xo.getEllipsis=function(){return Hp},Xo.setEllipsis=function(a){Hp=a,qm=new Ti,_0=0},Xo.getBaseline=function(){return Xm},Xo.setBaseline=function(a){Xm=a},Xo.getUnderline=function(){return Qm},Xo.setUnderline=function(a){Qm=a},Xo.isValidFont=function(a){if(ev||(uu=Ma?new oa(null).context:null,ev=!0),uu===null)return!0;var y=uu.font;if(a===y||a==="10px sans-serif")return!0;uu.font="10px sans-serif",uu.font=a;var x=uu.font;if(x!=="10px sans-serif")return uu.font=y,!0;uu.font="19px serif";var b=uu.font;return uu.font=a,x=uu.font,uu.font=y,x!==b},Xo.FormatNone=kS,Xo.FormatTrim=Gp,Xo.None=j0,Xo.OverflowClip=G0,Xo.OverflowEllipsis=Jm,Xo.WrapBreakAll=TS,Xo.WrapDesiredSize=U0,Xo.WrapFit=PS;function jd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}jd.prototype.copy=function(){var a=new jd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},jd.className="GradElementSettings";function cu(a,y){Nt.call(this),this.Eg=null,this.qo="",this.Xg=To,this.Nk=Bn,this.Zg=this.Hd=null,this.Mk=Xr,this.Xf=Sn,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 qg;on(cu,Nt),cu.prototype.cloneProtected=function(a){Nt.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},cu.prototype.qb=function(a){a===Sn||a===ti||a===lr?this.imageStretch=a:Nt.prototype.qb.call(this,a)},cu.prototype.toString=function(){return"Picture("+this.source+")#"+Fr(this)};function ep(a){a===void 0&&(a=""),a!==""?qg[a]&&(delete qg[a],tv--):(qg=new Ti,tv=0)}function NS(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,se=0;se<re;se++)z=te[se],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()||(Ra(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);In(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}cu.prototype.hA=function(){if(this.source!==""){ep(this.source);var a=this.source;this.source="",this.source=a}},cu.prototype.redraw=function(){this.N(),this.Uc=!0},cu.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 cl)){var E=a instanceof lu;b=this.naturalBounds;var z=0,te=0,re=this.qn,se=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,se===void 0&&x.videoWidth&&(se=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),se=se||b.width,re=re||b.height,se!==0&&re!==0){var ue=se,ce=re;this.sourceRect.w()&&(z=this.Xg.x,te=this.Xg.y,se=this.Xg.width,re=this.Xg.height);var ve=se,Ce=re,Le=this.Nk,Me=this.Mk;switch(Le){case Sn:if(this.sourceRect.w())break;ve>=b.width&&(z=z+Me.offsetX+(ve*Me.x-b.width*Me.x)),Ce>=b.height&&(te=te+Me.offsetY+(Ce*Me.y-b.height*Me.y)),se=Math.min(b.width,ve),re=Math.min(b.height,Ce);break;case Bn:ve=b.width,Ce=b.height;break;case ti:case lr:Le===ti?(Le=Math.min(b.height/Ce,b.width/ve),ve*=Le,Ce*=Le):Le===lr&&(Le=Math.max(b.height/Ce,b.width/ve),ve*=Le,Ce*=Le,ve>=b.width&&(z=(z+Me.offsetX+(ve*Me.x-b.width*Me.x)/ve)*se),Ce>=b.height&&(te=(te+Me.offsetY+(Ce*Me.y-b.height*Me.y)/Ce)*re),se*=1/(ve/b.width),re*=1/(Ce/b.height),ve=b.width,Ce=b.height)}Le=this.Df()*y.scale;var We=ve*Le*Ce*Le,ut=se*re/We,tt=x.__goCache;Le=null;var mt=l1;if(!E){if(x.sq&&tt!==void 0&&4<We&&ut>mt*mt)for(tt.gi===null&&(MS(tt,4,ue,ce,x),MS(tt,16,ue,ce,x)),E=tt.gi,ue=E.length,ce=0;ce<ue&&E[ce].ratio*E[ce].ratio<ut;ce++)Le=E[ce];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(xt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(xt){this.vl=!0}}if(this.vl)return}}switch(E=ve<b.width?Me.offsetX+(b.width*Me.x-ve*Me.x):0,Me=Ce<b.height?Me.offsetY+(b.height*Me.y-Ce*Me.y):0,this.flip){case Cr:a.translate(Math.min(b.width,ve),0),a.scale(-1,1);break;case rr:a.translate(0,Math.min(b.height,Ce)),a.scale(1,-1);break;case wn:a.translate(Math.min(b.width,ve),Math.min(b.height,Ce)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&tt!==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,se/y),Math.min(Le.source.height,re/y),E,Me,Math.min(b.width,ve),Math.min(b.height,Ce)),a instanceof lu&&(this.bt=[z/y,te/y,Math.min(Le.source.width,se/y),Math.min(Le.source.height,re/y),E,Me,Math.min(b.width,ve),Math.min(b.height,Ce)])}catch(xt){this.en=!1}a.restore()}else try{a.drawImage(x,z,te,se,re,E,Me,Math.min(b.width,ve),Math.min(b.height,Ce)),a instanceof lu&&(this.bt=[z,te,se,re,E,Me,Math.min(b.width,ve),Math.min(b.height,Ce)])}catch(xt){this.en=!1}switch(this.flip){case Cr:a.scale(-1,1),a.translate(-Math.min(b.width,ve),0);break;case rr:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ce));break;case wn:a.scale(-1,-1),a.translate(-Math.min(b.width,ve),-Math.min(b.height,Ce))}}}}},cu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Ka(this,!0),te=this.Eg,re=this.qn,se=0,ue=0;(re||!this.al&&te&&te.complete)&&(this.al=!0),te===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(se=re?+te.width:te.naturalWidth,ue=re?+te.height:te.naturalHeight),isFinite(E.width)||z===Bn||z===gi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:te!==null&&(a=se)),x=0):te!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:se),isFinite(E.height)||z===Bn||z===bi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:te!==null&&(y=ue)),b=0):te!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ue),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)),Ms(this.dc,a,y),this.Ge(0,0,a,y)},cu.prototype.eh=function(a,y,x,b){Oa(this,a,y,x,b)},At.Object.defineProperties(cu.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||Rt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Us(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new bn),b!==null&&x&&qc(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()||(Ra(this,!1),this.v())):x&&NS(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=qg;if(Ma){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<tv&&(ep(),x=qg),b=Pn("img"),b.hn=!0,NS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,tv++}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}}}),cu.prototype.redraw=cu.prototype.redraw,cu.prototype.reloadSource=cu.prototype.hA;var tv=0,l1=4;cu.className="Picture",qg=new Ti,cu.clearCache=ep;function IS(){this.gi=null}function MS(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 OS(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 OS(a,y){this.source=a,this.ratio=y}OS.className="PictureCacheInstance";function tp(){this.os=new si,this.mc=null}tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new si,this.mc=null};function np(a,y,x,b,E,z){a.mc=new ps,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 u1(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 io(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 io(Go);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Dh(a,y,x,b,E,z,te){var re;re===void 0&&(re=!1);var se=new io(Ks);se.point1X=y,se.point1Y=x,se.point2X=b,se.point2Y=E,se.endX=z,se.endY=te,re&&se.close(),a.mc.segments.add(se)}function nv(a,y,x,b,E){var z;z===void 0&&(z=!1);var te=new io(Jl);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 io(Ga);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 c1(a,y,x,b,E,z,te,re){var se;se===void 0&&(se=!1),y=new io(yu,te,re,y,x,b,E,z),se&&y.close(),a.mc.segments.add(y)}function RS(a){var y=iv;return y!==null?(iv=null,y.reset(a),y):(y=new tp,y.reset(a),y)}var iv=null;tp.className="StreamGeometryContext";function xl(a,y){var x=a.toLowerCase(),b=Ft.Ze;b[a]=y,b[x]=a}xl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ft.Mf[a];return b!==void 0||(b=new si(si.u),b.endX=y,b.endY=x,Ft.Nf<Ft.vm&&(Ft.Mf[a]=b,Ft.Nf++)),b}),xl("Square",function(a,y,x){a="s"+y+","+x;var b=Ft.Mf[a];return b!==void 0||(b=new si(si.u),b.endX=y,b.endY=x,b.defaultStretch=ti,Ft.Nf<Ft.vm&&(Ft.Mf[a]=b,Ft.Nf++)),b}),xl("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=Ft.Mf[b];if(E!==void 0)return E;var z=a*Ft.wg;return E=new si().add(new ps(a,0,!0).add(new io(Go,y-a,0)).add(new io(Ks,y,a,y-z,0,y,z)).add(new io(Go,y,x-a)).add(new io(Ks,y-a,x,y,x-z,y-z,x)).add(new io(Go,a,x)).add(new io(Ks,0,x-a,z,x,0,x-z)).add(new io(Go,0,a)).add(new io(Ks,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Ii(0,0,z,z),E.spot2=new Ii(1,1,-z,-z)),Ft.Nf<Ft.vm&&(Ft.Mf[b]=E,Ft.Nf++),E}),xl("Border","RoundedRectangle"),xl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ft.Mf[a];return b!==void 0||(b=new si(si.F),b.endX=y,b.endY=x,b.spot1=gc,b.spot2=vu,Ft.Nf<Ft.vm&&(Ft.Mf[a]=b,Ft.Nf++)),b}),xl("Circle",function(a,y,x){a="c"+y+","+x;var b=Ft.Mf[a];return b!==void 0||(b=new si(si.F),b.endX=y,b.endY=x,b.spot1=gc,b.spot2=vu,b.defaultStretch=ti,Ft.Nf<Ft.vm&&(Ft.Mf[a]=b,Ft.Nf++)),b}),xl("TriangleRight",function(a,y,x){return new si().add(new ps(0,0).add(new io(Go,y,.5*x)).add(new io(Go,0,x).close())).pm(0,.25,.5,.75)}),xl("TriangleDown",function(a,y,x){return new si().add(new ps(0,0).add(new io(Go,y,0)).add(new io(Go,.5*y,x).close())).pm(.25,0,.75,.5)}),xl("TriangleLeft",function(a,y,x){return new si().add(new ps(y,x).add(new io(Go,0,.5*x)).add(new io(Go,y,0).close())).pm(.5,.25,1,.75)}),xl("TriangleUp",function(a,y,x){return new si().add(new ps(y,x).add(new io(Go,0,x)).add(new io(Go,.5*y,0).close())).pm(.25,.5,.75,1)}),xl("Triangle","TriangleUp"),xl("Diamond",function(a,y,x){return new si().add(new ps(.5*y,0).add(new io(Go,0,.5*x)).add(new io(Go,.5*y,x)).add(new io(Go,y,.5*x).close())).pm(.25,.25,.75,.75)}),xl("LineH",function(a,y,x){return a=new si(si.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),xl("LineV",function(a,y,x){return a=new si(si.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),xl("None","Rectangle"),xl("BarH","Rectangle"),xl("BarV","Rectangle"),xl("MinusLine","LineH"),xl("PlusLine",function(a,y,x){return new si().add(new ps(0,x/2,!1).add(new io(Go,y,x/2)).add(new io(Za,y/2,0)).add(new io(Go,y/2,x)))}),xl("XLine",function(a,y,x){return new si().add(new ps(0,x,!1).add(new io(Go,y,0)).add(new io(Za,0,0)).add(new io(Go,y,x)))}),xl("LineRight",function(a,y,x){return new si().add(new ps(.25*y,0,!1).add(new io(Go,.75*y,.5*x)).add(new io(Go,.25*y,x)))}),xl("LineDown",function(a,y,x){return new si().add(new ps(0,.25*x,!1).add(new io(Go,.5*y,.75*x)).add(new io(Go,y,.25*x)))}),xl("LineLeft",function(a,y,x){return new si().add(new ps(.75*y,0,!1).add(new io(Go,.25*y,.5*x)).add(new io(Go,.75*y,x)))}),xl("LineUp",function(a,y,x){return new si().add(new ps(0,.75*x,!1).add(new io(Go,.5*y,.25*x)).add(new io(Go,y,.75*x)))}),Ft.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 K0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=cs,this.ir=null,this.jr="",this.lr=wo,this.Gq="",this.Hq=bs,this.Pq=ta,this.Kq=Hr,this.Up=null,this.Cq=127,this.zr=Uo,this.yr="gray",this.Vg=4}K0.prototype.copy=function(){var a=new K0;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 Bi(a,y){a===void 0||a instanceof Ns||typeof a=="string"?ei.call(this,a):(ei.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 ot(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new vn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}on(Bi,ei),Bi.prototype.cloneProtected=function(a){ei.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},De=Bi.prototype,De.Af=function(a){ei.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},De.toString=function(){var a=Gn(this.constructor)+"#"+Fr(this);return this.data!==null&&(a+="("+qn(this.data)+")"),a};function du(a){a.P===null?a.P=new K0:a.P.nc&&(a.P=a.P.copy())}De.th=function(){ei.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},De.gk=function(a,y,x,b,E,z,te){var re=this.diagram;re!==null&&(a===Fa&&y==="elements"?E instanceof ei?Yf(E,function(se){yy(re.partManager,se),ih(re,se)}):qc(re,E):a===rs&&y==="elements"&&(E instanceof ei?Yf(E,function(se){Sy(re.partManager,se,re)}):Us(re,E)),re.cb(a,y,x,b,E,z,te))},De.La=function(a){if(ei.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 ei&&Yf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Bi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Bi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Bi.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 ki),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)))}}},Bi.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)}},Bi.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]);In(y)}},Bi.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 Sr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof co))break e;xc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ei.Link),x.adornedObject=y)}if(x!==null){x.type===ei.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(d1(this,a),y=this.adornments;y.next();)y.value.La()}},Bi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function V0(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function d1(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function rv(a){if(df(a)===!1){$0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function DS(a){if(a.G|=2097152,df(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||zS(a,y,x),x=a.Ib;var b=vn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),vn.free(b),$0(a,!1)}}Bi.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ar);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Bi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Xr;this.locationSpot.sb()&&(z=this.locationSpot);var te=ot.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),ot.free(te)}},Bi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Bi.prototype.moveTo=function(a,y,x){a=ot.allocAt(a,y),this.move(a,x),ot.free(a)},Bi.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())},Bi.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())},Bi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ki),y.I(a)!==null)return y.I(a);var x=ei.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Fh(a,y,x,b){b===void 0&&(b=new ot),x=x.Mc()?Xr: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}Bi.prototype.mi=function(a){return a===void 0&&(a=new vn),a.assign(this.actualBounds)},Bi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function FS(a){var y=ot.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Lr?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 Jf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=fS(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}Bi.prototype.arrange=function(){if(nl(this)===!1)DS(this);else{Hi(this,!1);var a=this.Ib,y=vn.alloc();y.assign(a);var x=hf(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;zS(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()||Ft.B(y.width,a.width)&&Ft.B(y.height,a.height)||0<=this.vw&&this.C(16),vn.free(y),$0(this,!1)}},De=Bi.prototype,De.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=vn.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),vn.free(E)}!(this.G&65536)&&a.D(y)||GS(this,b,x),x.N(),!a.w()&&!y.w()||ho(a,y)||(this instanceof Si&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},De.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 ot(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),df(this)===!1&&nl(this)===!1&&(rv(this),DS(this)),!0};function BS(a,y,x,b,E){y===null||a instanceof co||(y=y.animationManager,y.zb&&vc(y,a,new ot(b,E),x))}De.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;df(this)||nl(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)}rv(this)},De.Av=function(){this.G&=-2097153,rv(this)};function zS(a,y,x){var b=FS(a),E=a.diagram,z=x.w(),te=y.w();z&&te?a.G&2097152?jS(a,y,x,E,b):US(a,y,x,E,b):z?jS(a,y,x,E,b):te&&US(a,y,x,E,b),a.G|=2097152,ot.free(b),a.Uk()}function jS(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 co||vc(x,a,new ot(z,te),y),b||y.x===z&&y.y===te||a.g("position",new ot(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 GS(a,y,x){Y0(a,!1),a instanceof Si&&rh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?hf(a)?(Ko(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}De.si=function(){return!0},De.Zc=function(){return!0},De.ph=function(){return!1},De.Dd=function(){return!0};function Z0(a,y,x,b){y.constructor===a.constructor||WS||(WS=!0,Oi('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Oi(" Old class: "+Gn(a.constructor)+", new class: "+Gn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,te=a.isHighlighted,re=!0,se=!0,ue=!1;a instanceof Si&&(re=a.isTreeLeaf,se=a.isTreeExpanded,ue=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 Si&&(a.U=re?a.U|4:a.U&-5,a.U=se?a.U|1:a.U&-2,a.U=ue?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)}Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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 df(a){return(a.G&32768)!==0}function $0(a,y){a.G=y?a.G|32768:a.G&-32769}function Y0(a,y){a.G=y?a.G|65536:a.G&-65537}function hf(a){return(a.G&131072)!==0}De=Bi.prototype,De.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function ov(a,y){a.G=y?a.G|1048576:a.G&-1048577}De.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},De.N=function(){var a=this.diagram;a!==null&&!nl(this)&&!df(this)&&this.isVisible()&&this.Ib.w()&&a.N(Jf(this,this.Ib))},De.v=function(){ei.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Si&&this.labeledLink!==null&&As(this.labeledLink),a.$b(!0))},De.Vo=function(a){a||(a=this.Ah,a!==null&&ty(a,this))},De.Wo=function(a){a||(a=this.Ah,a!==null&&ny(a,this))},De.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},De.oz=function(){return X0(this,this)};function X0(a,y){var x=y.containingGroup;return x!==null?1+X0(a,x):y instanceof Si&&(y=y.labeledLink,y!==null)?X0(a,y):0}De.sz=function(){return HS(this,this)};function HS(a,y){var x=y.containingGroup;return x!==null||y instanceof Si&&(x=y.labeledLink,x!==null)?HS(a,x):y}De.Td=function(a){return a instanceof Sr?Q0(this,this,a):!1};function Q0(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Q0(a,b,x)?y instanceof Si&&(y=y.labeledLink,y!==null)?Q0(a,y,x):!1:!0}De.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Sr&&ov(y,!0),y instanceof Si){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 Si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Sr&&ov(y,!1),y instanceof Si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Bi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Si&&this.isLinkLabel)},Bi.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 Si&&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 _S(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ff(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof co)){if(a.add(y),y instanceof Si){if(x&&y instanceof Sr)for(var te=y.memberParts;te.next();)ff(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 se=re.fromNode,ue=re.toNode;se=se===null||a.contains(se),ue=ue===null||a.contains(ue),(E?se&&ue:se||ue)&&ff(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ff(a,y.value,x,b-1,E,z)}else if(y instanceof ri)for(y=y.labelNodes;y.next();)ff(a,y.value,x,b,E,z)}}At.Object.defineProperties(Bi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Tr: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(rs,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Fa,"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&&(du(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&&wu(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 co?this.type!==ei.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:ta},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),du(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Hr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),du(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&&(du(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:bs},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),du(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,nl(this)===!1&&(rv(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 co)){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 co?this instanceof co&&(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&&(xc(x),x=x.copy(),x!==null&&Z0(this,x,y,a))):(z!==null&&z.jm(b,a),x=px(x.partManager,b,a),x!==null&&(xc(x),x=x.copy(),x===null||x instanceof ri||(b=this.location.copy(),Z0(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){Z0(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&&(du(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&&(du(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&&(du(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 ri?(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&&(du(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&&(du(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&&(du(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:cs},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),du(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&&(du(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&&(du(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:wo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),du(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&&Rt("Cannot make a Group a member of itself: "+this.toString()),Rt("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 Sr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?ty(a,this):this instanceof Sr&&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 Sr){for(x=new bn,ff(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Si)for(b=b.linksConnected;b.next();)ip(b.value)}if(this instanceof Si){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&&wu(y,-1,a))}}else Rt("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&&(du(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Si&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(du(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&&(du(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Uo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),du(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&&(du(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&&(du(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Bi.prototype.invalidateLayout=Bi.prototype.C,Bi.prototype.findCommonContainingGroup=Bi.prototype.px,Bi.prototype.isMemberOf=Bi.prototype.Td,Bi.prototype.findTopLevelPart=Bi.prototype.sz,Bi.prototype.findSubGraphLevel=Bi.prototype.oz,Bi.prototype.ensureBounds=Bi.prototype.Va,Bi.prototype.getDocumentBounds=Bi.prototype.mi,Bi.prototype.findObject=Bi.prototype.fb,Bi.prototype.moveTo=Bi.prototype.moveTo,Bi.prototype.invalidateAdornments=Bi.prototype.Wb,Bi.prototype.clearAdornments=Bi.prototype.Ej,Bi.prototype.removeAdornment=Bi.prototype.Jf,Bi.prototype.addAdornment=Bi.prototype.bh,Bi.prototype.findAdornment=Bi.prototype.Pj,Bi.prototype.updateTargetBindings=Bi.prototype.La;var WS=!1;Bi.className="Part",Bi.LayoutNone=0,Bi.LayoutAdded=1,Bi.LayoutRemoved=2,Bi.LayoutShown=4,Bi.LayoutHidden=8,Bi.LayoutNodeSized=16,Bi.LayoutGroupLayout=32,Bi.LayoutNodeReplaced=64,Bi.LayoutStandard=127,Bi.LayoutAll=16777215;function co(a,y){a===void 0||a instanceof Ns||typeof a=="string"?Bi.call(this,a):(Bi.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)}on(co,Bi),co.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},co.prototype.updateRelationshipsFromData=function(){},co.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ri&&y instanceof Lr){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 Lr&&(E.ua=a)}}},co.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!nl(a))},co.prototype.Zc=function(){return!1},co.prototype.gk=function(a,y,x,b,E,z,te){if(a===Fa&&y==="elements"){if(E instanceof Hl)this.$a===null&&(this.$a=E);else if(E instanceof ei){var re=E.Nl(function(se){return se instanceof Hl});re instanceof Hl&&this.$a===null&&(this.$a=re)}}else a===rs&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ei&&this.$a.rg(b)&&(this.$a=null));Bi.prototype.gk.call(this,a,y,x,b,E,z,te)},co.prototype.updateAdornments=function(){},co.prototype.Lj=function(){},At.Object.defineProperties(co.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}}}),co.className="Adornment";function J0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=pu,this.er=lv,this.Kr=this.ij=this.Nq=this.Mq=null}J0.prototype.copy=function(){var a=new J0;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 Si(a,y){a===void 0||a instanceof Ns||typeof a=="string"?Bi.call(this,a):(Bi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new ln,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}on(Si,Bi),Si.prototype.cloneProtected=function(a){Bi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},De=Si.prototype,De.Af=function(a){Bi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Bh(a){a.Ba===null?a.Ba=new J0:a.Ba.nc&&(a.Ba=a.Ba.copy())}De.th=function(){Bi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function KS(a,y){y!==null&&(a.af===null&&(a.af=new bn),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}De.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=VS(this,a,y,x),a!==null&&a.Sl()},De.gk=function(a,y,x,b,E,z,te){a===Fa&&y==="elements"?this.wc=null:a===rs&&y==="elements"&&(this.wc=null),Bi.prototype.gk.call(this,a,y,x,b,E,z,te)},De.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(zu(x.fromPort),zu(x.toPort),x.bb())}};function ZS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(zu(x.fromPort),zu(x.toPort),x.bb())}}function zu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||zu(y.port)}}De.si=function(){return!0},Si.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Si.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Si.prototype.isVisible=function(){if(!Bi.prototype.isVisible.call(this))return!1;var a=!0,y=Ie,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Ie){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===rt&&(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},Si.prototype.Zb=function(a){Bi.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)}},Si.prototype.qx=function(){var a=new bn,y=new bn;return $S(this,this,a,y),y.iterator};function $S(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)&&$S(a,E?te.toNode:te.fromNode,x,b):b.add(te)})}}Si.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Fi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},De=Si.prototype,De.Mo=function(a){a===void 0&&(a=null);var y=new Fi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},De.Sd=function(a){a===void 0&&(a=null);var y=new Fi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},De.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 bn,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 bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Qi(x):Tr},De.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 bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Qi(x):Tr},De.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 bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Qi(x):Tr},De.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Fi(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},De.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Fi(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 av(a,y,x){zu(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 sv(a,y,x){zu(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)):_p(y)))}function _p(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}}}Si.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},De=Si.prototype,De.Vo=function(a){Bi.prototype.Vo.call(this,a),a||(_p(this),a=this.Yk,a!==null&&ix(a,this))},De.Wo=function(a){Bi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},De.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,Bi.prototype.Lj.call(this)},De.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;YS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function YS(a){a.wc===null?a.wc=new ki: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 q0(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]);In(x)}}}De.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},De.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}},De.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)ov(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;)ov(y,!1),y=y.pg();return x},De.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},De.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Si)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},De.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 bn;return a(this,y),y},De.uz=function(){return QS(this,this)};function QS(a,y){return y=y.pg(),y===null?0:1+QS(a,y)}De.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Fi(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},De.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 ln,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 ln,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Qi(x):Tr},De.wz=function(a){a===void 0&&(a=1/0);var y=new bn;return ff(y,this,!1,a,!0),y},Si.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 bn;x.add(this),JS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ie),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 se=re.value;se.isTreeLink&&(se=se.To(a),se===null||se===a||y.contains(se)||(y.add(se),JS(se,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(),se={};re.next();){var ue=re.value;if(ue.isTreeLink&&(ue=ue.To(a),ue!==null&&ue!==a)){var ce=y.contains(ue);if(ce||y.add(ue),te){var ve=x?ue.Oo():ue.Po();se.uv=a,ve.all(function(Ce){return function(Le){return Le===Ce.uv||!Le.isTreeExpanded}}(se))&&b.Aj(ue,E),ue.oh(),ue.Zb(!1)}ue.isTreeExpanded&&(ue.wasTreeExpanded=ue.isTreeExpanded,ce||qS(ue,y,x,b,E,z))}se={uv:se.uv}}a.isTreeExpanded=!1}Si.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 bn;x.add(this),ex(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ie),y.Ue=!1}};function ex(a,y,x,b,E,z,te){for(var re=z===a?!1:a.isTreeExpanded,se=x?a.Mo():a.Sd(),ue={};se.next();){var ce=se.value;if(ce.isTreeLink&&(re||ce.fd||ce.bb(),ce=ce.To(a),ce!==null&&ce!==a&&!y.contains(ce))){if(y.add(ce),!re){ce.Zb(!0),ce.oh();var ve=x?ce.Oo():ce.Po();ue.vv=a,ve.all(function(Ce){return function(Le){return Le===Ce.vv||!Le.isTreeExpanded}}(ue))&&E.Cj(ce,z)}(2<b||ce.wasTreeExpanded)&&(ce.wasTreeExpanded=!1,ex(ce,y,x,b-1,E,z,te))}ue={vv:ue.vv}}a.isTreeExpanded=!0}At.Object.defineProperties(Si.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:lv},set:function(a){var y=this.portSpreading;y!==a&&(Bh(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&&rh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:pu},set:function(a){typeof a=="number"&&(a=new ji(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Bh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&rh(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&&(Bh(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&&(Bh(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&&(Bh(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),As(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&YS(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&&(Bh(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))}}}),Si.prototype.expandTree=Si.prototype.expandTree,Si.prototype.collapseTree=Si.prototype.collapseTree,Si.prototype.findTreeParts=Si.prototype.wz,Si.prototype.findTreeChildrenNodes=Si.prototype.Ou,Si.prototype.findTreeChildrenLinks=Si.prototype.Qo,Si.prototype.findTreeLevel=Si.prototype.uz,Si.prototype.findTreeParentChain=Si.prototype.vz,Si.prototype.findTreeParentNode=Si.prototype.pg,Si.prototype.findTreeParentLink=Si.prototype.kh,Si.prototype.findCommonTreeParent=Si.prototype.gz,Si.prototype.findTreeRoot=Si.prototype.xz,Si.prototype.isInTreeOf=Si.prototype.Nz,Si.prototype.findPort=Si.prototype.ns,Si.prototype.findLinksTo=Si.prototype.kz,Si.prototype.findLinksBetween=Si.prototype.jz,Si.prototype.findNodesInto=Si.prototype.Oo,Si.prototype.findNodesOutOf=Si.prototype.Po,Si.prototype.findNodesConnected=Si.prototype.Mu,Si.prototype.findLinksInto=Si.prototype.Sd,Si.prototype.findLinksOutOf=Si.prototype.Mo,Si.prototype.findExternalTreeLinksConnected=Si.prototype.qx,Si.prototype.invalidateConnectedLinks=Si.prototype.Bd,Si.prototype.invalidateLinkBundle=Si.prototype.Lz;var h1=new Ht(Si,"SpreadingNone",10),lv=new Ht(Si,"SpreadingEvenly",11),ey=new Ht(Si,"SpreadingPacked",12);Si.className="Node",Si.SpreadingNone=h1,Si.SpreadingEvenly=lv,Si.SpreadingPacked=ey;function Sr(a,y){a===void 0||a instanceof Ns||typeof a=="string"?Si.call(this,a):(Si.call(this),a&&(y=a)),this.U|=4608,this.Gn=new bn,this.$a=null,this.Sc=new ya,this.Sc.group=this,this.gl=new bn,this.tb=this.$p=null,y&&Object.assign(this,y)}on(Sr,Si),Sr.prototype.cloneProtected=function(a){Si.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Hl});y instanceof Hl?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())},De=Sr.prototype,De.Af=function(a){Si.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 Si)x.Bd(y);else if(x instanceof ri)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},De.gk=function(a,y,x,b,E,z,te){if(a===Fa&&y==="elements"){if(E instanceof Hl)this.$a===null?this.$a=E:this.$a!==E&&Rt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof ei){var re=E.Nl(function(se){return se instanceof Hl});re instanceof Hl&&(this.$a===null?this.$a=re:this.$a!==re&&Rt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===rs&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ei&&this.$a.rg(b)&&(this.$a=null));Si.prototype.gk.call(this,a,y,x,b,E,z,te)},De.Xl=function(a,y){Si.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ei.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ei&&(a=a.Pb()),this.tb===null&&(this.tb=new vn),a.mi(this.tb),a instanceof Lr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},De.eh=function(a,y,x,b){this.nf=this.$a,Si.prototype.eh.call(this,a,y,x,b)},De.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ri||y.Va()}),Si.prototype.Va.call(this)},De.si=function(){if(!Si.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Si){if(y.isVisible()&&nl(y))return!1}else if(y instanceof ri&&y.isVisible()&&nl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ty(a,y){if(a.Gn.add(y)){y instanceof Sr&&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 ri&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function ny(a,y){if(a.Gn.remove(y)){y instanceof Sr&&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 ri&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}De.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)}Si.prototype.Lj.call(this)},Sr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Jt(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Sr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Jt(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Sr.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))},De=Sr.prototype,De.Bd=function(a){var y=(this.U&65536)!==0;if(Si.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()?(zu(x.fromPort),zu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(zu(x.fromPort),zu(x.toPort),x.bb()))}}},De.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 bn,b=y.iterator;b.next();){var E=b.value;if(E instanceof Si)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},De.iz=function(){var a=this.Rj();a.add(this);for(var y=new bn,x=a.iterator;x.next();){var b=x.value;if(b instanceof Si)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},De.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new bn;return a(this,y),y},De.Rj=function(){var a=new bn;return ff(a,this,!0,0,!0),a.remove(this),a},De.Zb=function(a){Si.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Sr.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 Sr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,tx(z,y,x,b)),z instanceof Si)z.Bd(y),x.Aj(z,b);else if(z instanceof ri)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Sr.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 Sr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,nx(z,y,x,b)),z instanceof Si)z.Bd(y),x.Cj(z,b);else if(z instanceof ri)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Sr.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=ot.alloc(),Si.prototype.move.call(this,a,y),a=new bn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof ri&&(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 Si&&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 ri&&(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());ot.free(z)}},At.Object.defineProperties(Sr.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&&Rt("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&&(Bh(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&&(Bh(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&&(Bh(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&&(Bh(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)}}}),Sr.prototype.expandSubGraph=Sr.prototype.expandSubGraph,Sr.prototype.collapseSubGraph=Sr.prototype.collapseSubGraph,Sr.prototype.findSubGraphParts=Sr.prototype.Rj,Sr.prototype.findContainingGroupChain=Sr.prototype.hz,Sr.prototype.findExternalNodesConnected=Sr.prototype.iz,Sr.prototype.findExternalLinksConnected=Sr.prototype.Lu,Sr.prototype.ensureBounds=Sr.prototype.Va,Sr.className="Group";function Hl(a){Nt.call(this),this.yb=dl,this.ko=new vn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}on(Hl,Nt),Hl.prototype.cloneProtected=function(a){Nt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Hl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Jo(0,0,y.width,y.height,a.x,a.y)},Hl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Sr||a instanceof co)||Rt("Placeholder is not inside a Group or Adornment."),a instanceof Sr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Ms(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=ot.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),ot.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 Lr&&(te=z.strokeWidth);var re=z.Df(),se=z.naturalBounds,ue=(se.width+te)*re;te=(se.height+te)*re,a.type!==ei.Link&&(re=z.ga(a.category==="Selection"?bs:a.locationSpot,ot.alloc()),a.location=re,ot.free(re)),isNaN(ue)||isNaN(te)?(a=z.ga(bs,ot.alloc()),ue=vn.allocAt(a.x,a.y,0,0),ue.Ye(z.ga(pl,a)),ue.Ye(z.ga(Ql,a)),ue.Ye(z.ga(bl,a)),Ms(y,ue.width+b||0,ue.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),ot.free(a),vn.free(ue)):(Ms(y,ue+b||0,te+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Hl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Hl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Sr&&!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=vn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Sr&&!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)),vn.free(x),b&&y instanceof Sr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Hl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Sr))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 ri&&(!y.computesBoundsIncludingLinks||Ul(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},At.Object.defineProperties(Hl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ji(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Hl.className="Placeholder";function ri(a){Bi.call(this,ei.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=_l,this.Om=0,this.Qm=_l,this.Rm=NaN,this.qj=sy,this.po=.5,this.wd=null,this.Nb=new ln().freeze(),this.Tg=this.Mg=null,this.ml=new vn,this.ua=new si,this.u=this.o=this.Sf=this.Wf=null,this.su=new ot,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}on(ri,Bi),ri.prototype.cloneProtected=function(a){Bi.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())},De=ri.prototype,De.Af=function(a){Bi.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&&zu(y),a=a.toPort,a!==null&&zu(a)},De.qb=function(a){a.classType===ri?(a.value&2)===2?this.routing=a:a===Yu||a===jh||a===op?this.curve=a:a===Vp||a===gv||a===pv?this.adjusting=a:a!==sy&&a!==_l&&Rt("Unknown Link enum value for a Link property: "+a):Bi.prototype.qb.call(this,a)},De.Xc=function(){this.ba===null&&(this.ba=new su)},De.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),nl(a)||df(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),nl(a)||df(a)))},De.zv=function(){return!1},De.Av=function(){},De.Zc=function(){return!1},ri.prototype.computeAngle=function(a,y,x){return ri.computeAngle(y,x)},ri.computeAngle=function(a,y){switch(a){default:case _l:a=0;break;case Zp:a=y;break;case $p:a=y+90;break;case Yp:a=y-90;break;case ly:a=y+180;break;case mv:a=Ft.bp(y),90<a&&270>a&&(a-=180);break;case Xp:a=Ft.bp(y+90),90<a&&270>a&&(a-=180);break;case Qp:a=Ft.bp(y-90),90<a&&270>a&&(a-=180);break;case vv:if(a=Ft.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ft.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}De=ri.prototype,De.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Bi.prototype.oh.call(this)},De.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},De.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function ix(a,y){a.wd===null&&(a.wd=new bn),a.wd.add(y),a.v()}De.Vo=function(a){if(Bi.prototype.Vo.call(this,a),qf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,av(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||av(x,this,b)}Wp(this)}},De.Wo=function(a){if(Bi.prototype.Wo.call(this,a),qf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,sv(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||sv(x,this,b)}Kp(this)}},De.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))},ri.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ri.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?Bi.prototype.move.call(this,a,!1):(a=ot.allocAt(x.x+b,x.y+E),Bi.prototype.move.call(this,a,!1),ot.free(a)),zh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},ri.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},ri.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},ri.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(kr),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()===Yu))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()===Yu){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ft.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),Ft.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},ri.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()===Yu))return this.ua.wx(.5);if(this.computeCurve()===Yu&&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),Ft.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)},De=ri.prototype,De.i=function(a){return this.Nb.s[a]},De.dd=function(a,y){this.Nb.cd(a,y)},De.L=function(a,y,x){this.Nb.cd(a,new ot(y,x))},De.Kz=function(a,y){this.Nb.Gb(a,y)},De.m=function(a,y,x){this.Nb.Gb(a,new ot(y,x))},De.ne=function(a){this.Nb.add(a)},De.yf=function(a,y){this.Nb.add(new ot(a,y))},De.pv=function(a){this.Nb.mb(a)},De.Fj=function(){this.Nb.clear()};function zh(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 ln,z=a.Nb.iterator;z.next();){var te=z.value;E.add(new ot(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),As(a)),b?uv(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),te!==null&&te.animationManager.zb&&Vo(te.animationManager,a,E),a.g("points",z,E)}}De.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},De.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 se=y.s,ue=se.length,ce=0;ce<ue;ce++){var ve=se[ce];te=Math.min(ve.x,te),re=Math.min(ve.y,re),ve.freeze()}if(y.freeze(),ue===z){for(z=0;z<ue;z++)if(ce=E[z],ve=se[z],ce.x-x!==ve.x-te||ce.y-b!==ve.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Vo(x.animationManager,this,y),uv(this),this.g("points",a,y)}},De.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function uv(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),fv(a,!1))}De.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())}},De.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()}}},ri.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(wg||(wg=new Si,wg.desiredSize=xo,wg.Va()),this.defaultFromPoint&&(wg.location=this.defaultFromPoint,wg.Va(),y=a=wg)):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?(Eg||(Eg=new Si,Eg.desiredSize=xo,Eg.Va()),this.defaultToPoint&&(Eg.location=this.defaultToPoint,Eg.Va(),E=b=Eg)):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),se=rp(x),ue=y===E&&y!==null,ce=this.isOrthogonal,ve=this.curve===Yu;this.Wf=ue&&!ce?ve=!0:!1;var Ce=this.computeAdjusting()===_l||ue;if(!ce&&!ue&&re&&se){if(re=!1,!Ce&&3<=z&&(Ce=this.getLinkPoint(a,y,te,!0,!1,b,E),se=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,Ce,z-1,se))&&(Ce=this.getLinkPoint(a,y,te,!0,!1,b,E),se=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ce,z-1,se)),!re)if(this.Fj(),ve){z=this.getLinkPoint(a,y,te,!0,!1,b,E),Ce=this.getLinkPoint(b,E,x,!1,!1,a,y),re=Ce.x-z.x,se=Ce.y-z.y,ue=this.computeCurviness(),ve=ce=0;var Le=z.x+re/3,Me=z.y+se/3,We=Le,ut=Me;Ft.B(se,0)?ut=0<re?ut-ue:ut+ue:(ce=-re/se,ve=Math.sqrt(ue*ue/(ce*ce+1)),0>ue&&(ve=-ve),We=(0>se?-1:1)*ve+Le,ut=ce*(We-Le)+Me),Le=z.x+2*re/3,Me=z.y+2*se/3;var tt=Le,mt=Me;Ft.B(se,0)?mt=0<re?mt-ue:mt+ue:(tt=(0>se?-1:1)*ve+Le,mt=ce*(tt-Le)+Me),this.Fj(),this.ne(z),this.yf(We,ut),this.yf(tt,mt),this.ne(Ce),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,Ce=E,b=this.getLinkPoint(a,y,te,!0,!1,z,Ce),E=this.getLinkPoint(z,Ce,x,!1,!1,a,y),this.hasCurviness()?(Ce=E.x-b.x,x=E.y-b.y,te=this.computeCurviness(),a=b.x+Ce/2,y=b.y+x/2,z=a,re=y,Ft.B(x,0)?re=0<Ce?re-te:re+te:(Ce=-Ce/x,z=Math.sqrt(te*te/(Ce*Ce+1)),0>te&&(z=-z),z=(0>x?-1:1)*z+a,re=Ce*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=vn.alloc(),y.mi(re),se=re.ca(E),Ce.mi(re),ue=re.ca(b),(se||ue)&&(te=y.ga(dv(te),new ot),this.dd(0,this.getLinkPointFromPoint(a,y,te,E,!0,te)),x=Ce.ga(dv(x),new ot),this.dd(1,this.getLinkPointFromPoint(z,Ce,x,b,!1,x))),vn.free(re))}else{ve=this.isAvoiding,Ce&&(ce&&ve||ue)&&this.Fj();var xt=ue?this.computeCurviness():0;ve=this.getLinkPoint(a,y,te,!0,ce,b,E),Le=We=Me=0,(ce||!re||ue)&&(ut=this.computeEndSegmentLength(a,y,te,!0),Le=this.getLinkDirection(a,y,ve,te,!0,ce,b,E),ue&&(re||te.D(x)||!ce&&te.x+x.x===1&&te.y+x.y===1)&&(Le-=ce?90:30,0>xt&&(Le-=180)),0>Le?Le+=360:360<=Le&&(Le-=360),ue&&(ut+=Math.abs(xt)*(ce?1:2)),Le===0?Me=ut:Le===90?We=ut:Le===180?Me=-ut:Le===270?We=-ut:(Me=ut*Math.cos(Le*Math.PI/180),We=ut*Math.sin(Le*Math.PI/180)),te.Mc()&&ue&&(ut=y.ga(Xr,ot.alloc()),tt=ot.allocAt(ut.x+1e3*Me,ut.y+1e3*We),this.getLinkPointFromPoint(a,y,ut,tt,!0,ve),ot.free(ut),ot.free(tt))),ut=this.getLinkPoint(b,E,x,!1,ce,a,y);var Pt=mt=tt=0;if(ce||!se||ue){var Mt=this.computeEndSegmentLength(b,E,x,!1);Pt=this.getLinkDirection(b,E,ut,x,!1,ce,a,y),ue&&(se||te.D(x)||!ce&&te.x+x.x===1&&te.y+x.y===1)&&(Pt+=ce?0:30,0>xt&&(Pt+=180)),0>Pt?Pt+=360:360<=Pt&&(Pt-=360),ue&&(Mt+=Math.abs(xt)*(ce?1:2)),Pt===0?tt=Mt:Pt===90?mt=Mt:Pt===180?tt=-Mt:Pt===270?mt=-Mt:(tt=Mt*Math.cos(Pt*Math.PI/180),mt=Mt*Math.sin(Pt*Math.PI/180)),x.Mc()&&ue&&(x=E.ga(Xr,ot.alloc()),te=ot.allocAt(x.x+1e3*tt,x.y+1e3*mt),this.getLinkPointFromPoint(b,E,x,te,!1,ut),ot.free(x),ot.free(te))}x=ve,(ce||!re||ue)&&(x=new ot(ve.x+Me,ve.y+We)),te=ut,(ce||!se||ue)&&(te=new ot(ut.x+tt,ut.y+mt)),!Ce&&!ce&&re&&3<z&&this.adjustPoints(0,ve,z-2,te)?this.dd(z-1,ut):!Ce&&!ce&&se&&3<z&&this.adjustPoints(1,x,z-1,ut)?this.dd(0,ve):!Ce&&(ce?6<=z:4<z)&&this.adjustPoints(1,x,z-2,te)?(this.dd(0,ve),this.dd(z-1,ut)):(this.Fj(),this.ne(ve),(ce||!re||ue)&&this.ne(x),ce&&this.addOrthoPoints(x,Le,te,Pt,a,b),(ce||!se||ue)&&this.ne(te),this.ne(ut))}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}ri.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new ot),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,se=-a.m21*E,ue=a.m11*E,ce=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*se+ce,b=b.x*re+b.y*ue+ve,te=x.x*te+x.y*se+ce,x=x.x*re+x.y*ue+ve}return y.Sj(E,b,te,x,z),a!==null&&z.transform(a),z};function cv(a,y){var x=y.Zn;return x===null&&(x=new Cg,x.port=y,x.node=y.part,y.Zn=x),dx(x,a)}ri.prototype.getLinkPoint=function(a,y,x,b,E,z,te,re){if(re===void 0&&(re=new ot),x.sb()&&!rp(x))return y.ga(x,re),re;if(x.$c()){var se=cv(this,y);if(se!==null){if(re.assign(se.Zo),E&&this.routing===ox){var ue=cv(this,te);if(ue!==null&&se.Gl<ue.Gl){se=ot.alloc(),ue=ot.alloc();var ce=new vn(y.ga(bs,se),y.ga(pl,ue)),ve=this.computeSpot(!b,te);a=this.getLinkPoint(z,te,ve,!b,E,a,y,ue),(x.Hf(qu)||x.Hf(ml))&&a.y>=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(Ju)||x.Hf(Il))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),ot.free(se),ot.free(ue)}}return re}}return x=y.ga(dv(x),ot.alloc()),this.pointsCount>(E?6:2)?(te=b?this.i(1):this.i(this.pointsCount-2),E&&(te=iy(x,te.copy()))):(se=this.computeSpot(!b,te),z=ot.alloc(),te=te.ga(dv(se),z),E&&(te=iy(x,te)),ot.free(z)),this.getLinkPointFromPoint(a,y,x,te,b,re),ot.free(x),re},ri.prototype.getLinkDirection=function(a,y,x,b,E,z,te,re){e:if(b.sb())var se=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()&&(se=cv(this,y),se!==null))switch(se.Nc){case 1:se=270;break e;case 2:se=180;break e;default:case 4:se=0;break e;case 8:se=90;break e}se=y.ga(Xr,ot.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?iy(se,re.copy()):x):(x=ot.alloc(),re=re.ga(Xr,x),ot.free(x)),x=Math.abs(re.x-se.x)>Math.abs(re.y-se.y)?re.x>=se.x?0:180:re.y>=se.y?90:270,ot.free(se),se=x}return b.Mc()&&te.Td(a)&&(se+=180,360<=se&&(se-=360)),rp(b)||(a=y.li(),a===0)||(45<=a&&135>a?se+=90:135<=a&&225>a?se+=180:225<=a&&315>a&&(se+=270),360<=se&&(se-=360)),se},ri.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=cv(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)},ri.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Xr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===wo?Da:y)):(a=y||this.toPort,a===null?a=Xr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===wo?Da:y)),a};function rp(a){return a===Da||a.x===.5&&a.y===.5}function dv(a){return a.x===.5&&a.y===.5?a:Xr}ri.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==_l&&4<this.pointsCount?this.computeMidPoint(new ot):(a=y.Zn,a=a!==null?dx(a,this):null,a!==null?a.Zo:y.ga(Xr))},ri.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},ri.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=Ar.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return k0(this,y,x,E),z===void 0&&Ar.free(te),!0;if(this.Yc(a,te)){var re=!1;if(!this.isAtomic)for(var se=this.O.s,ue=se.length;ue--;){var ce=se[ue];if(ce.visible||ce===this.locationObject){var ve=ce.actualBounds,Ce=this.naturalBounds;if(!(ve.x>Ce.width||ve.y>Ce.height||0>ve.x+ve.width||0>ve.y+ve.height)){if(ve=Ar.alloc(),ve.set(te),ce instanceof ei)re=ce.Cf(a,y,x,b,E,ve);else if(this.path===ce){if(ce instanceof Lr)if(re=a,Ce=b,ce.pickable===!1)re=!1;else if(ve.multiply(ce.transform),Ce)e:{var Le=re,Me=ve;if(ce.fh(Le,Me))re=!0;else{if(Me===void 0&&(Me=ce.transform,Le.Re(ce.actualBounds))){re=!0;break e}re=Le.left,Ce=Le.right;var We=Le.top;Le=Le.bottom;var ut=ot.alloc(),tt=ot.alloc(),mt=ot.alloc(),xt=Ar.alloc();xt.set(Me),xt.bv(ce.transform),xt.Vj(),tt.x=Ce,tt.y=We,tt.transform(xt),ut.x=re,ut.y=We,ut.transform(xt),Me=!1,Qf(ce,ut,tt,mt)?Me=!0:(ut.x=Ce,ut.y=Le,ut.transform(xt),Qf(ce,ut,tt,mt)?Me=!0:(tt.x=re,tt.y=Le,tt.transform(xt),Qf(ce,ut,tt,mt)?Me=!0:(ut.x=re,ut.y=We,ut.transform(xt),Qf(ce,ut,tt,mt)&&(Me=!0)))),Ar.free(xt),ot.free(ut),ot.free(tt),ot.free(mt),re=Me}}else re=ce.fh(re,ve)}else re=_n(ce,a,b,ve);re&&(Ce=ce,y!==null&&(Ce=y(ce)),Ce&&(x===null||x(Ce))&&E.add(Ce)),Ar.free(ve)}}}return z===void 0&&Ar.free(te),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Ar.free(te),!1},ri.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?Yu:this.curve},ri.prototype.computeCorner=function(){if(this.curve===Yu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ri.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},ri.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===Zp||b===mv||b===ly?a=Math.max(a,E):b===Yp||b===Qp||b===$p||b===Xp?a=Math.max(a,te):(y=y.ga(Xr).ab(x.ga(Xr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*te)+Math.abs(Math.cos(y)*E)+1)),this.curve===Yu&&(a*=1.333)}}return a},ri.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===_l&&x.bb()}},ri.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),In(x)}}return a},ri.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ri.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ri.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===gv)return!1;E===pv&&(E=Vp)}switch(E){case gv: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,se=te.y-z,ue=Math.sqrt(re*re+se*se);if(!Ft.$(ue,0)){if(Ft.$(re,0))var ce=0>se?-Math.PI/2:Math.PI/2;else ce=Math.atan(se/Math.abs(re)),0>re&&(ce=Math.PI-ce);te=y.x;var ve=y.y;re=b.x-te;var Ce=b.y-ve;for(se=Math.sqrt(re*re+Ce*Ce),Ft.$(re,0)?Ce=0>Ce?-Math.PI/2:Math.PI/2:(Ce=Math.atan(Ce/Math.abs(re)),0>re&&(Ce=Math.PI-Ce)),ue=se/ue,ce=Ce-ce,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,se=y.y-z,y=Math.sqrt(re*re+se*se),Ft.$(y,0)||(Ft.$(re,0)?se=0>se?-Math.PI/2:Math.PI/2:(se=Math.atan(se/Math.abs(re)),0>re&&(se=Math.PI-se)),re=se+ce,y*=ue,this.L(a,te+y*Math.cos(re),ve+y*Math.sin(re)));this.dd(x,b)}}return!0;case pv: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,ue=(te-E)*(te-E)+(ve-z)*(ve-z),re=y.x,ce=y.y,se=b.x,Ce=b.y;var Le=1;if(se-re!==0){var Me=(Ce-ce)/(se-re);Le=Math.sqrt(1+1/(Me*Me))}else Me=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var We=y.x,ut=y.y,tt=.5;ue!==0&&(tt=((E-We)*(E-te)+(z-ut)*(z-ve))/ue);var mt=E+tt*(te-E),xt=z+tt*(ve-z);y=Math.sqrt((We-mt)*(We-mt)+(ut-xt)*(ut-xt)),ut<Me*(We-mt)+xt&&(y=-y),0<Me&&(y=-y),We=re+tt*(se-re),tt=ce+tt*(Ce-ce),Me!==0?(y=We+y/Le,this.L(a,y,tt-(y-We)/Me)):this.L(a,We,tt+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,ce=z.y,ve=re,ue=ce,Ft.B(E.y,z.y)?Ft.B(z.x,te.x)?ce=y.y:Ft.B(z.y,te.y)&&(re=y.x):Ft.B(E.x,z.x)&&(Ft.B(z.y,te.y)?re=y.x:Ft.B(z.x,te.x)&&(ce=y.y)),this.L(a+1,re,ce),E=this.i(x),z=this.i(x-1),te=this.i(x-2),re=z.x,ce=z.y,se=re,Ce=ce,Ft.B(E.y,z.y)?Ft.B(z.x,te.x)?ce=b.y:Ft.B(z.y,te.y)&&(re=b.x):Ft.B(E.x,z.x)&&(Ft.B(z.y,te.y)?re=b.x:Ft.B(z.x,te.x)&&(ce=b.y)),this.L(x-1,re,ce),ry(this))){this.L(a+1,ve,ue),this.L(x-1,se,Ce),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},ri.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(),se=z.actualBounds.copy();if(re.w()&&se.w()){re.Bc(Jp,Jp),se.Bc(Jp,Jp),re.Ye(a),se.Ye(x);var ue=ot.alloc(),ce=ot.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&se.right>a.x||b===90&&x.y>a.y&&se.right>a.x?(ue.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),b===180?(ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=ue.x,ce.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ue.x=a.x<se.left?this.computeMidOrthoPosition(a.x,a.y,se.left,x.y,!1):a.x<se.right&&(b===270&&a.y<se.top||b===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):se.right,ce.x=ue.x,ce.y=x.y):b===0&&a.x<se.left&&a.y>se.top&&a.y<se.bottom&&(ue.x=a.x,ue.y=a.y<x.y?Math.min(x.y,se.top):Math.max(x.y,se.bottom),ce.y=ue.y)):(ue.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(se.ca(a)||re.ca(x))?ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ue.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,se.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ue.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,se.top),!0)),ce.x=x.x,ce.y=ue.y),ue.y>re.top&&ue.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=se.right&&a.x>=x.x?(b===90||b===270)&&(ue.h(Math.max((a.x+x.x)/2,a.x),a.y),ce.h(ue.x,x.y)):(ue.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,se.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,se.bottom)),ce.x=x.x,ce.y=ue.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&se.left<a.x||b===90&&x.y>a.y&&se.left<a.x?(ue.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),b===0?(ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=ue.x,ce.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ue.x=a.x>se.right?this.computeMidOrthoPosition(a.x,a.y,se.right,x.y,!1):a.x>se.left&&(b===270&&a.y<se.top||b===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):se.left,ce.x=ue.x,ce.y=x.y):b===180&&a.x>se.right&&a.y>se.top&&a.y<se.bottom&&(ue.x=a.x,ue.y=a.y<x.y?Math.min(x.y,se.top):Math.max(x.y,se.bottom),ce.y=ue.y)):(ue.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(se.ca(a)||re.ca(x))?ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ue.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,se.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ue.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,se.top),!0)),ce.x=x.x,ce.y=ue.y),ue.y>re.top&&ue.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=se.left&&a.x<=x.x?(b===90||b===270)&&(ue.h(Math.min((a.x+x.x)/2,a.x),a.y),ce.h(ue.x,x.y)):(ue.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,se.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,se.bottom)),ce.x=x.x,ce.y=ue.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&se.bottom>a.y||b===0&&x.x>a.x&&se.bottom>a.y?(ue.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),b===270?(ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=ue.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ue.y=a.y<se.top?this.computeMidOrthoPosition(a.x,a.y,x.x,se.top,!0):a.y<se.bottom&&(b===180&&a.x<se.left||b===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):se.bottom,ce.x=x.x,ce.y=ue.y):b===90&&a.y<se.top&&a.x>se.left&&a.x<se.right&&(ue.x=a.x<x.x?Math.min(x.x,se.left):Math.max(x.x,se.right),ue.y=a.y,ce.x=ue.x)):(ue.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(se.ca(a)||re.ca(x))?ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ue.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,se.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ue.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,se.left),x.y,!1)),ce.x=ue.x,ce.y=x.y),ue.x>re.left&&ue.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=se.bottom&&a.y>=x.y?(b===0||b===180)&&(ue.h(a.x,Math.max((a.y+x.y)/2,a.y)),ce.h(x.x,ue.y)):(ue.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,se.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,se.right)),ce.x=ue.x,ce.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&se.top<a.y||b===0&&x.x>a.x&&se.top<a.y?(ue.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),b===90?(ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=ue.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ue.y=a.y>se.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,se.bottom,!0):a.y>se.top&&(b===180&&a.x<se.left||b===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):se.top,ce.x=x.x,ce.y=ue.y):b===270&&a.y>se.bottom&&a.x>se.left&&a.x<se.right&&(ue.x=a.x<x.x?Math.min(x.x,se.left):Math.max(x.x,se.right),ue.y=a.y,ce.x=ue.x)):(ue.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(se.ca(a)||re.ca(x))?ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ue.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,se.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ue.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,se.left),x.y,!1)),ce.x=ue.x,ce.y=x.y),ue.x>re.left&&ue.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=se.top&&a.y<=x.y?(b===0||b===180)&&(ue.h(a.x,Math.min((a.y+x.y)/2,a.y)),ce.h(x.x,ue.y)):(ue.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,se.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,se.right)),ce.x=ue.x,ce.y=x.y)));var ve=x;if(this.isAvoiding){var Ce=this.diagram;if(Ce===null||E===z||this.layer.isTemporary||!_f(Ce)||re.ca(ve)&&!z.Td(E)||se.ca(a)&&!E.Td(z))y=!1;else{var Le=Ia(Ce,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Le.Yj(Math.min(a.x,ue.x),Math.min(a.y,ue.y),Math.abs(a.x-ue.x),Math.abs(a.y-ue.y))&&Le.Yj(Math.min(ue.x,ce.x),Math.min(ue.y,ce.y),Math.abs(ue.x-ce.x),Math.abs(ue.y-ce.y))&&Le.Yj(Math.min(ce.x,ve.x),Math.min(ce.y,ve.y),Math.abs(ce.x-ve.x),Math.abs(ce.y-ve.y)))y=!1;else{E=a,z=ve;var Me=x=null;if(Ce.isVirtualized){Ce=Le.bounds.copy(),Ce.Bc(-Le.Ho,-Le.Go);var We=ot.alloc();ap(Le,a.x,a.y)||(Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,a.x,a.y,ue.x,ue.y,We)?(x=a=We.copy(),y=We.ab(ue)):Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ue.x,ue.y,ce.x,ce.y,We)?(x=a=We.copy(),y=We.ab(ce)):Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,ve.x,ve.y,We)&&(x=a=We.copy(),y=We.ab(ve))),ap(Le,ve.x,ve.y)||(Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ve.x,ve.y,ce.x,ce.y,We)?(Me=ve=We.copy(),b=ce.ab(We)):Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,ue.x,ue.y,We)?(Me=ve=We.copy(),b=ue.ab(We)):Ft.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ue.x,ue.y,a.x,a.y,We)&&(Me=ve=We.copy(),b=a.ab(We))),ot.free(We)}re=re.copy().ed(se),re.Bc(Le.Ho*Le.Os,Le.Go*Le.Os),ux(Le,a,y,ve,b,re,!0),se=Ud(Le,ve.x,ve.y),!Le.abort&&se>=sp&&(lx(Le),re.Bc(Le.Ho*Le.Hx,Le.Go*Le.Ix),ux(Le,a,y,ve,b,re,!1),se=Ud(Le,ve.x,ve.y)),!Le.abort&&se<sp&&Ud(Le,ve.x,ve.y)!==Uh?(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?Ft.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)):Ft.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)&&(Ft.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)):Ft.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)),Me!==null&&(b===0||b===180?this.yf(z.x,Me.y):this.yf(Me.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ue.copy()),this.ne(ce.copy())),ot.free(ue),ot.free(ce)}},ri.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||!_f(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ia(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,se=y.Go,ue=Ud(y,x,b),ce=x,ve=b;for(E===0?ce+=re:E===90?ve+=se:E===180?ce-=re:ve-=se,E!==te&&ue>eg&&Ud(y,ce,ve)!==ue-1&&(Ud(y,x-re,b)===ue-1?(E=180,ce=x-re,ve=b):Ud(y,x+re,b)===ue-1?(E=0,ce=x+re,ve=b):Ud(y,x,b-se)===ue-1?(E=270,ce=x,ve=b-se):Ud(y,x,b+se)===ue-1&&(E=90,ce=x,ve=b+se));ue>eg&&Ud(y,ce,ve)===ue-1;)x=ce,b=ve,E===0?ce+=re:E===90?ve+=se:E===180?ce-=re:ve-=se,--ue;z?ue>eg&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/se)*se+se/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/se)*se+se/2),ue>eg&&(z=E,te=x,ce=b,E===0?(z=90,ce+=se):E===90?(z=180,te-=re):E===180?(z=270,ce-=se):E===270&&(z=0,te+=re),Ud(y,te,ce)===ue-1?oy(a,y,te,ce,z,!1,z):(te=x,ce=b,E===0?(z=270,ce-=se):E===90?(z=0,te+=re):E===180?(z=90,ce+=se):E===270&&(z=180,te-=re),Ud(y,te,ce)===ue-1&&oy(a,y,te,ce,z,!1,z))),a.yf(x,b)}ri.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=na(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=na(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=te,E=re)}return z},ri.prototype.qc=function(){this.lk=!1,this.v()},ri.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 Lr&&(E.ua=this.ua)}}},ri.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&qf(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===Yu&&3<=y&&!Ft.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var se=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),se=Math.min(se,re.y)}else{if(this.isOrthogonal)for(se=0;se<y;se++)re=b[se],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),se=this.i(b),z.x=Math.min(se.x,z.x),z.y=Math.min(se.y,z.y);b=z.x,se=z.y}else{for(se=0;se<y;se++)re=b[se],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,se=z.y}if(b-=this.su.x,se-=this.su.y,E.x-=b,E.y-=se,y!==2||qf(this)){if(a.type=si.o,re=RS(a),this.computeShortLength(!0)!==0&&(E=xg(this,E,!0,z)),np(re,E.x,E.y,!1),te===Yu&&3<=y&&!Ft.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-se,E=this.i(2).copy(),E.x-=b,E.y-=se,this.computeShortLength(!1)!==0&&(E=xg(this,E,!1,z)),Dh(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=ot.allocAt(b,se),x=ot.alloc(),x.assign(this.i(1)),z=ot.allocAt(b,se),E=ot.allocAt(b,se),te=this.i(0);for(var ue,ce=this.smoothness/3,ve=1;ve<this.pointsCount-1;ve++){ue=this.i(ve);var Ce=te,Le=ue,Me=this.i(ay(this,ue,ve,!1));if((!Ft.$(Ce.x,Le.x)||!Ft.$(Le.x,Me.x))&&(!Ft.$(Ce.y,Le.y)||!Ft.$(Le.y,Me.y))){var We=ce;isNaN(We)&&(We=this.smoothness/3);var ut=Ce.x;Ce=Ce.y;var tt=Le.x;Le=Le.y;var mt=Me.x;Me=Me.y;var xt=We*hv(ut,Ce,tt,Le);We*=hv(tt,Le,mt,Me),Ft.$(Ce,Le)&&Ft.$(tt,mt)&&(tt>ut?Me>Le?(z.x=tt-xt,z.y=Le-xt,E.x=tt+We,E.y=Le+We):(z.x=tt-xt,z.y=Le+xt,E.x=tt+We,E.y=Le-We):Me>Le?(z.x=tt+xt,z.y=Le-xt,E.x=tt-We,E.y=Le+We):(z.x=tt+xt,z.y=Le+xt,E.x=tt-We,E.y=Le-We)),Ft.$(ut,tt)&&Ft.$(Le,Me)&&(Le>Ce?(mt>tt?(z.x=tt-xt,z.y=Le-xt,E.x=tt+We):(z.x=tt+xt,z.y=Le-xt,E.x=tt-We),E.y=Le+We):(mt>tt?(z.x=tt-xt,z.y=Le+xt,E.x=tt+We):(z.x=tt+xt,z.y=Le+xt,E.x=tt-We),E.y=Le-We)),(Ft.$(ut,tt)&&Ft.$(tt,mt)||Ft.$(Ce,Le)&&Ft.$(Le,Me))&&(ut=.5*(ut+mt),Ce=.5*(Ce+Me),z.x=ut,z.y=Ce,E.x=ut,E.y=Ce),(ve===1||ve===2&&Ft.$(te.x,this.i(0).x)&&Ft.$(te.y,this.i(0).y))&&(x.x=.5*(te.x+ue.x),x.y=.5*(te.y+ue.y)),Dh(re,x.x-b,x.y-se,z.x-b,z.y-se,ue.x-b,ue.y-se),y.set(z),x.set(E),te=ue}}ue=te.x,te=te.y,ce=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ce=xg(this,ce.copy(),!1,Gr)),ue=.5*(ue+ce.x),te=.5*(te+ce.y),Dh(re,E.x-b,E.y-se,ue-b,te-se,ce.x-b,ce.y-se),ot.free(y),ot.free(x),ot.free(z),ot.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=xg(this,te.copy(),!1,Gr)),Dh(re,z.x-b,z.y-se,E.x-b,E.y-se,te.x-b,te.y-se);else{for(z=ot.alloc(),z.assign(this.i(0)),E=ot.alloc(),E.assign(z),te=this.computeCorner(),ve=1,ue=0;ve<y;){if(ve=ay(this,z,ve,1<ve),ce=this.i(ve),ve>=y-1){if(!z.D(ce))this.computeShortLength(!1)!==0&&(ce=xg(this,ce.copy(),!1,Gr)),bg(this,re,-b,-se,z,ce,x);else if(ue===0)for(ve=1;ve<y;)E.assign(z),ce=this.i(ve++),bg(this,re,-b,-se,z,ce,x),z.assign(ce);break}if(ue=ay(this,ce,ve+1,ve<y-3),ve=-b,ut=-se,Ce=ce,tt=this.i(ue),We=x,Ft.B(z.y,Ce.y)&&Ft.B(Ce.x,tt.x))if(Me=Math.min(te,Math.abs(Ce.x-E.x)/2),Me=xt=Math.min(Me,Math.abs(tt.y-Ce.y)/2),Ft.B(Me,0))bg(this,re,ve,ut,z,Ce,We),z.assign(Ce);else{var Pt=Ce.x,Mt=Ce.y;Le=Pt,mt=Mt,Ce.x>z.x?Pt=Ce.x-Me:Pt=Ce.x+Me,tt.y>Ce.y?mt=Ce.y+xt:mt=Ce.y-xt,tt=ot.allocAt(Pt,Mt),bg(this,re,ve,ut,z,tt,We),ot.free(tt),nv(re,Ce.x+ve,Ce.y+ut,Le+ve,mt+ut),z.h(Le,mt)}else Ft.B(z.x,Ce.x)&&Ft.B(Ce.y,tt.y)?(Me=Math.min(te,Math.abs(Ce.y-E.y)/2),Me=xt=Math.min(Me,Math.abs(tt.x-Ce.x)/2),Ft.B(xt,0)?(bg(this,re,ve,ut,z,Ce,We),z.assign(Ce)):(Pt=Ce.x,Mt=Ce.y,Le=Pt,mt=Mt,Ce.y>z.y?Mt=Ce.y-Me:Mt=Ce.y+Me,tt.x>Ce.x?Le=Ce.x+xt:Le=Ce.x-xt,tt=ot.allocAt(Pt,Mt),bg(this,re,ve,ut,z,tt,We),ot.free(tt),nv(re,Ce.x+ve,Ce.y+ut,Le+ve,mt+ut),z.h(Le,mt))):(bg(this,re,ve,ut,z,Ce,We),z.assign(Ce));E.assign(ce),ve=ue}ot.free(z)}iv=re}else re=this.i(1).copy(),re.x-=b,re.y-=se,this.computeShortLength(!0)!==0&&(E=xg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=xg(this,re,!1,z)),a.type=si.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function hv(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),Ft.$(a,0)?y:Ft.$(y,0)?a:Math.sqrt(a*a+y*y)))}function xg(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=hv(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=hv(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;Ft.$(y.x,z.x)&&Ft.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ft.$(y.x,z.x)&&!Ft.$(y.y,z.y))return x-1;for(var te=z;Ft.$(y.x,z.x)&&Ft.$(z.x,te.x)&&(!b||(y.y>=z.y?z.y>=te.y:z.y<=te.y))||Ft.$(y.y,z.y)&&Ft.$(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}ri.prototype.computeJumpLength=function(){return 10};function bg(a,y,x,b,E,z,te){if(!te&&qf(a)){te=a.computeJumpLength();var re=te/2,se=[],ue=0;if(a.isVisible()&&(ue=f1(a,E,z,se)),0<ue){if(Ft.B(E.y,z.y))if(E.x<z.x)for(var ce=0;ce<ue;){var ve=Math.max(E.x,Math.min(se[ce++]-re,z.x-te));y.lineTo(ve+x,z.y+b);for(var Ce=ve+x,Le=Math.min(ve+te,z.x);ce<ue&&(ve=se[ce],ve<Le+te);)ce++,Le=Math.min(ve+re,z.x);ve=z.y-te+b,Le+=x;var Me=z.y+b;a.curve===jh?np(y,Le,Me,!1):Dh(y,Ce,ve,Le,ve,Le,Me)}else for(--ue;0<=ue;){for(ce=Math.min(E.x,Math.max(se[ue--]+re,z.x+te)),y.lineTo(ce+x,z.y+b),Ce=ce+x,ve=Math.max(ce-te,z.x);0<=ue&&(ce=se[ue],ce>ve-te);)ue--,ve=Math.max(ce-re,z.x);ce=z.y-te+b,ve+=x,Le=z.y+b,a.curve===jh?np(y,ve,Le,!1):Dh(y,Ce,ce,ve,ce,ve,Le)}else if(Ft.B(E.x,z.x))if(E.y<z.y)for(ce=0;ce<ue;){for(ve=Math.max(E.y,Math.min(se[ce++]-re,z.y-te)),y.lineTo(z.x+x,ve+b),Ce=ve+b,ve=Math.min(ve+te,z.y);ce<ue&&(Le=se[ce],Le<ve+te);)ce++,ve=Math.min(Le+re,z.y);Le=z.x-te+x,Me=z.x+x,ve+=b,a.curve===jh?np(y,Me,ve,!1):Dh(y,Le,Ce,Le,ve,Me,ve)}else for(--ue;0<=ue;){for(ce=Math.min(E.y,Math.max(se[ue--]+re,z.y+te)),y.lineTo(z.x+x,ce+b),Ce=ce+b,ce=Math.max(ce-te,z.y);0<=ue&&(ve=se[ue],ve>ce-te);)ue--,ce=Math.max(ve-re,z.y);ve=z.x-te+x,Le=z.x+x,ce+=b,a.curve===jh?np(y,Le,ce,!1):Dh(y,ve,Ce,ve,ce,Le,ce)}}}y.lineTo(z.x+x,z.y+b)}function f1(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 se=z[re];if(se instanceof ri){if(se===a)return 0<b.length&&b.sort(function(ce,ve){return ce-ve}),b.length;if(se.isVisible()&&qf(se)){var ue=se.routeBounds;ue.w()&&a.routeBounds.Yc(ue)&&!a.usesSamePort(se)&&(ue=se.path,ue!==null&&ue.Ed()&&g1(y,x,b,se))}}}}}return 0<b.length&&b.sort(function(ce,ve){return ce-ve}),b.length}function g1(a,y,x,b){for(var E=Ft.B(a.y,y.y),z=b.pointsCount,te=b.i(0),re=ot.alloc(),se=1;se<z;se++){var ue=b.i(se);if(se<z-1){var ce=b.i(se+1);if(te.y===ue.y&&ue.y===ce.y){if(ue.x>te.x&&ce.x>=ue.x||ue.x<te.x&&ce.x<=ue.x)continue}else if(te.x===ue.x&&ue.x===ce.x&&(ue.y>te.y&&ce.y>=ue.y||ue.y<te.y&&ce.y<=ue.y))continue}e:{ce=a.x;var ve=a.y,Ce=y.x,Le=y.y,Me=te.x;te=te.y;var We=ue.x,ut=ue.y;if(Ft.B(ce,Ce)){if(!Ft.B(ve,Le)&&Ft.B(te,ut)&&Math.min(ve,Le)<te&&Math.max(ve,Le)>te&&Math.min(Me,We)<ce&&Math.max(Me,We)>ce&&!Ft.B(Me,We)){re.x=ce,re.y=te,ce=!0;break e}}else if(Ft.B(ve,Le)&&Ft.B(Me,We)&&Math.min(ce,Ce)<Me&&Math.max(ce,Ce)>Me&&Math.min(te,ut)<ve&&Math.max(te,ut)>ve&&!Ft.B(te,ut)){re.x=Me,re.y=ve,ce=!0;break e}re.x=0,re.y=0,ce=!1}ce&&(E?x.push(re.x):x.push(re.y)),te=ue}ot.free(re)}function qf(a){return a=a.curve,a===op||a===jh}function fv(a,y){(y||qf(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()))}ri.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 se=E[re];se instanceof ri&&(se===this?z=!0:z&&rx(this,se,a))}}else if(b)for(z=E.Pa.s,E=z.length,te=0;te<E;te++)re=z[te],re instanceof ri&&rx(this,re,a)}}}}};function rx(a,y,x){if(y!==null&&y.lk&&y.fd&&qf(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}ri.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},ri.prototype.isVisible=function(){if(!Bi.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},ri.prototype.Zb=function(a){if(Bi.prototype.Zb.call(this,a),a&&fv(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ri.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,se=0;se<re;se++){var ue=te[se];(ue.ef===y&&ue.ff===b&&ue.uf===x&&ue.vf===E||ue.ef===x&&ue.ff===E&&ue.uf===y&&ue.vf===b)&&(z===null?z=ue:(a===null&&(a=[],a.push(z)),a.push(ue)))}if(a!==null){for(z=VS(y,x,b,E),z===null&&(z=new yv(y,b,x,E),KS(y,z),KS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Kp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(An(y.links,a),y.Sl()))}ri.prototype.ph=function(){return!0},At.Object.defineProperties(ri.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&&sv(y,this,x),Kp(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&&av(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&&zu(x),Kp(this),this.ff=a;var b=this.fromPort;b!==null&&zu(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&&sv(y,this,x),Kp(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&&av(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&&zu(x),Kp(this),this.vf=a;var b=this.toPort;b!==null&&zu(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:wo},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&&zu(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&&vi(a,">= 0",ri,"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:wo},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&&zu(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&&vi(a,">= 0",ri,"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?Tr: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&&_p(this.fromNode),this.toNode!==null&&_p(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Lr?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()===Yu&&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),Ft.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),se=this.i(z);Ft.Dl(E.x,E.y,te.x,te.y,re.x,re.y,se.x,se.y,.5,a),y=Math.min(se.x,y),x=Math.min(se.y,x),E=se}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 ot)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||uv(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);Ft.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ft.$(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 ln,b=0;b<a.length/2;b++)E=new ot(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(!Yt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new ln,b=0;b<a.length;b++)E=a[b],x.add(new ot(E.x,E.y).freeze())}}else if(a instanceof ln)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Rt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),uv(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Vo(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(),fv(this,y===jh||y===op||a===jh||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(),fv(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)}}}),ri.prototype.invalidateOtherJumpOvers=ri.prototype.Xo,ri.prototype.findClosestSegment=ri.prototype.ez,ri.prototype.updateRoute=ri.prototype.vg,ri.prototype.invalidateRoute=ri.prototype.bb,ri.prototype.rollbackRoute=ri.prototype.rv,ri.prototype.commitRoute=ri.prototype.zf,ri.prototype.startRoute=ri.prototype.uh,ri.prototype.clearPoints=ri.prototype.Fj,ri.prototype.removePoint=ri.prototype.pv,ri.prototype.addPointAt=ri.prototype.yf,ri.prototype.addPoint=ri.prototype.ne,ri.prototype.insertPointAt=ri.prototype.m,ri.prototype.insertPoint=ri.prototype.Kz,ri.prototype.setPointAt=ri.prototype.L,ri.prototype.setPoint=ri.prototype.dd,ri.prototype.getPoint=ri.prototype.i,ri.prototype.getOtherPort=ri.prototype.Cz,ri.prototype.getOtherNode=ri.prototype.To;var wg=null,Eg=null,sy=new Ht(ri,"Normal",1),p1=new Ht(ri,"Orthogonal",2),m1=new Ht(ri,"AvoidsNodes",6),ox=new Ht(ri,"AvoidsNodesStraight",7),_l=new Ht(ri,"None",0),Yu=new Ht(ri,"Bezier",9),jh=new Ht(ri,"JumpGap",10),op=new Ht(ri,"JumpOver",11),Vp=new Ht(ri,"End",17),gv=new Ht(ri,"Scale",18),pv=new Ht(ri,"Stretch",19),Zp=new Ht(ri,"OrientAlong",21),$p=new Ht(ri,"OrientPlus90",22),Yp=new Ht(ri,"OrientMinus90",23),ly=new Ht(ri,"OrientOpposite",24),mv=new Ht(ri,"OrientUpright",25),Xp=new Ht(ri,"OrientPlus90Upright",26),Qp=new Ht(ri,"OrientMinus90Upright",27),vv=new Ht(ri,"OrientUpright45",28),ax=16,sx=14,Jp=8;ri.className="Link",ri.Normal=sy,ri.Orthogonal=p1,ri.AvoidsNodes=m1,ri.AvoidsNodesStraight=ox,ri.None=_l,ri.Bezier=Yu,ri.JumpGap=jh,ri.JumpOver=op,ri.End=Vp,ri.Scale=gv,ri.Stretch=pv,ri.OrientAlong=Zp,ri.OrientPlus90=$p,ri.OrientMinus90=Yp,ri.OrientOpposite=ly,ri.OrientUpright=mv,ri.OrientPlus90Upright=Xp,ri.OrientMinus90Upright=Qp,ri.OrientUpright45=vv,ri.EndSegmentStep=8,ri.CurvinessStart=ax,ri.SpacingMin=sx,ri.OrthoShortCut=Jp;function yv(a,y,x,b){Mr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}yv.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},yv.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))}},yv.className="LinkBundle";function qp(a){Mr(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 Ud(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]>=eg&&(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]===Uh)return!1}return!0};function Gd(a,y,x,b,E,z,te,re,se){if(!(y<z||y>te||x<re||x>se)){var ue=y|0,ce=x|0,ve=a.ac[ue][ce];if(ve>=eg&&ve<sp)for(E?ce+=b:ue+=b,ve+=1;z<=ue&&ue<=te&&re<=ce&&ce<=se&&!(ve>=a.ac[ue][ce]);)a.ac[ue][ce]=ve,ve+=1,E?ce+=b:ue+=b;if(ue=E?ce:ue,E)if(0<b)for(x+=b;x<ue;x+=b)Gd(a,y,x,1,!E,z,te,re,se),Gd(a,y,x,-1,!E,z,te,re,se);else for(x+=b;x>ue;x+=b)Gd(a,y,x,1,!E,z,te,re,se),Gd(a,y,x,-1,!E,z,te,re,se);else if(0<b)for(y+=b;y<ue;y+=b)Gd(a,y,x,1,!E,z,te,re,se),Gd(a,y,x,-1,!E,z,te,re,se);else for(y+=b;y>ue;y+=b)Gd(a,y,x,1,!E,z,te,re,se),Gd(a,y,x,-1,!E,z,te,re,se)}}function Sv(a,y,x,b,E,z,te,re,se){y|=0,x|=0;var ue=Uh,ce=eg;for(a.ac[y][x]=ce;ue===Uh&&y>z&&y<te&&x>re&&x<se;)ce+=1,a.ac[y][x]=ce,E?x+=b:y+=b,ue=a.ac[y][x]}function xv(a,y,x,b,E,z,te,re,se){y|=0,x|=0;var ue=Uh,ce=sp;for(a.ac[y][x]=ce;ue===Uh&&y>z&&y<te&&x>re&&x<se;)a.ac[y][x]=ce,E?x+=b:y+=b,ue=a.ac[y][x]}function ux(a,y,x,b,E,z,te){if(a.ac!==null){a.abort=!1;var re=y.x,se=y.y;if(ap(a,re,se)){re-=a.Nd,re/=a.rc,se-=a.Od,se/=a.sc;var ue=b.x,ce=b.y;if(ap(a,ue,ce))if(ue-=a.Nd,ue/=a.rc,ce-=a.Od,ce/=a.sc,1>=Math.abs(re-ue)&&1>=Math.abs(se-ce))a.abort=!0;else{var ve=z.x;b=z.y,y=z.x+z.width;var Ce=z.y+z.height;ve-=a.Nd,ve/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ce-=a.Od,Ce/=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)),Ce=Math.min(a.ei,Math.max(0,Ce|0)),b=a.ac,re|=0,se|=0,ue|=0,ce|=0;var Le=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][se]===Uh?(Sv(a,re,se,Le,x,z,y,ve,Ce),Sv(a,re,se,1,!x,z,y,ve,Ce),Sv(a,re,se,-1,!x,z,y,ve,Ce)):Sv(a,re,se,Le,x,re,se,re,se),b[ue][ce]===Uh?(xv(a,ue,ce,E===0||E===90?1:-1,E===90||E===270,z,y,ve,Ce),xv(a,ue,ce,1,!(E===90||E===270),z,y,ve,Ce),xv(a,ue,ce,-1,!(E===90||E===270),z,y,ve,Ce)):xv(a,ue,ce,Le,x,ue,ce,ue,ce),x=gn(),te&&cx(a,ue,ce,E,re,se,x))for((x[0]!==ue||x[1]!==ce)&&(x.unshift(ce),x.unshift(ue)),(x[x.length-2]!==re||x[x.length-1]!==se)&&(x.push(re),x.push(se)),a=eg,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],ue=x[z+1];y>E?E++:y<E?E--:ue>te?te++:ue<te&&te--,b[E][te]=a++,E!==y||te!==ue;);else Gd(a,re,se,1,!1,z,y,ve,Ce),Gd(a,re,se,-1,!1,z,y,ve,Ce),Gd(a,re,se,1,!0,z,y,ve,Ce),Gd(a,re,se,-1,!0,z,y,ve,Ce);In(x)}}}}function cx(a,y,x,b,E,z,te){for(var re=a.ac,se=y,ue=x;;){if(se===E&&ue===z)return!0;var ce=se,ve=ue;if(b===0)if(ce<E)ce++;else break;else if(b===90)if(ve<z)ve++;else break;else if(b===180)if(ce>E)ce--;else break;else if(ve>z)ve--;else break;var Ce=re[ce][ve];if(Ce===0||Ce===cy)break;se=ce,ue=ve}for(;;){if(ce=b,ve=se,Ce=ue,b===0?Ce<z?(ce=90,Ce++):Ce>z&&(ce=270,Ce--):b===90?ve<E?(ce=0,ve++):ve>E&&(ce=180,ve--):b===180?Ce<z?(ce=90,Ce++):Ce>z&&(ce=270,Ce--):ve<E?(ce=0,ve++):ve>E&&(ce=180,ve--),ve=re[ve][Ce],ce!==b&&ve!==0&&ve!==cy){if(te.push(se),te.push(ue),cx(a,se,ue,ce,E,z,te))return!0;te.pop(),te.pop()}if(re[se][ue]=cy,b===0){if(se===y)return!1;se--}else if(b===90){if(ue===x)return!1;ue--}else if(b===180){if(se===y)return!1;se++}else{if(ue===x)return!1;ue++}}}At.Object.defineProperties(qp.prototype,{bounds:{get:function(){return new vn(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 Uh=0,eg=1,sp=999999,uy=sp+1,cy=sp+2;qp.className="PositionArray";function Cg(){Mr(this),this.port=this.node=null,this.pe=[],this.ap=!1}Cg.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 v1(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}Cg.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 Sr?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(bs,ot.alloc()),se=a.port.ga(pl,ot.alloc());for(E=vn.allocAt(re.x,re.y,0,0),E.Ye(se),ot.free(re),ot.free(se),re=ot.allocAt(E.x+E.width/2,E.y+E.height/2),se=a.port.li(),te=te.iterator;te.next();){var ue=te.value;if(ue.isVisible()&&ue.fromPort!==ue.toPort){var ce=ue.fromPort===a.port||ue.fromNode!==null&&ue.fromNode.Td(b),ve=ue.computeSpot(ce,a.port);if(ve.$c()&&(ce=ce?ue.toPort:ue.fromPort,ce!==null)){var Ce=ce.part;if(Ce!==null){var Le=Ce.findVisibleNode();Le!==null&&Le!==Ce&&(Ce=Le,ce=Ce.port),ce=ue.computeOtherPoint(Ce,ce),Ce=re.ab(ce),Ce-=se,0>Ce?Ce+=360:360<=Ce&&(Ce-=360),ve=v1(E,ve,Ce,ue.isOrthogonal),ve===0?(ve=4,180<Ce&&(Ce-=360)):ve===90?(ve=8,270<Ce&&(Ce-=360)):ve===180?ve=2:(ve=1,90>Ce&&(Ce+=360)),Le=a.pe[z],Le===void 0?(Le=new dy(ue,Ce,ve),a.pe[z]=Le):(Le.link=ue,Le.angle=Ce,Le.Nc=ve),Le.hv.set(ce),z++}}}}for(ot.free(re),a.pe.sort(Cg.prototype.j),se=a.pe.length,b=-1,z=re=0;z<se;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=se-1;0<=z;z--)se=a.pe[z],se!==void 0&&(se.Nc!==b&&(b=se.Nc,re=se.Uo+1),se.Gl=re);if(z=a.pe,ve=a.port,b=a.node.portSpreading,re=ot.alloc(),se=ot.alloc(),te=ot.alloc(),ue=ot.alloc(),ve.ga(bs,re),ve.ga(Ql,se),ve.ga(pl,te),ve.ga(bl,ue),Le=Ce=ce=ve=0,b===ey)for(var Me=0;Me<z.length;Me++){var We=z[Me];if(We!==null){var ut=We.link.computeThickness();switch(We.Nc){case 8:Ce+=ut;break;case 2:Le+=ut;break;case 1:ve+=ut;break;default:case 4:ce+=ut}}}var tt=Me=0,mt=1,xt=We=0;for(ut=0;ut<z.length;ut++){var Pt=z[ut];if(Pt!==null){if(Me!==Pt.Nc){switch(Me=Pt.Nc,Me){case 8:var Mt=te;tt=ue;break;case 2:Mt=ue,tt=re;break;case 1:Mt=re,tt=se;break;default:case 4:Mt=se,tt=te}switch(We=tt.x-Mt.x,xt=tt.y-Mt.y,Me){case 8:Ce>Math.abs(We)?(mt=Math.abs(We)/Ce,Ce=Math.abs(We)):mt=1;break;case 2:Le>Math.abs(xt)?(mt=Math.abs(xt)/Le,Le=Math.abs(xt)):mt=1;break;case 1:ve>Math.abs(We)?(mt=Math.abs(We)/ve,ve=Math.abs(We)):mt=1;break;default:case 4:ce>Math.abs(xt)?(mt=Math.abs(xt)/ce,ce=Math.abs(xt)):mt=1}tt=0}var en=Pt.Zo;if(b===ey){switch(Pt=Pt.link.computeThickness(),Pt*=mt,en.set(Mt),Me){case 8:en.x=Mt.x+We/2+Ce/2-tt-Pt/2;break;case 2:en.y=Mt.y+xt/2+Le/2-tt-Pt/2;break;case 1:en.x=Mt.x+We/2-ve/2+tt+Pt/2;break;default:case 4:en.y=Mt.y+xt/2-ce/2+tt+Pt/2}tt+=Pt}else{var pi=.5;b===lv&&(pi=(Pt.Uo+1)/(Pt.Gl+1)),en.x=Mt.x+We*pi,en.y=Mt.y+xt*pi}}}for(ot.free(re),ot.free(se),ot.free(te),ot.free(ue),Mt=a.pe,z=0;z<Mt.length;z++)b=Mt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,vn.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}Cg.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},Cg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Da,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)},Cg.className="Knot";function dy(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new ot,this.Gl=this.Uo=0,this.Zo=new ot,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 ya(a){Mr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ot(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ya.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},ya.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ya.prototype.qb=function(){},ya.prototype.toString=function(){var a=Gn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ya.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())}}},ya.prototype.createNetwork=function(){return new Qo(this)},ya.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Qt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Sr?y.lg(a.memberParts):y.lg(a.iterator),y},ya.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")}},ya.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()}},ya.prototype.doLayout=function(a){var y=new bn;a instanceof Qt?(gf(this,y,a.nodes,!0,this.rh,!0,!1,!0),gf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Sr?gf(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},ya.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 se=re.measuredBounds,ue=se.width;se=se.height,re.moveTo(b,E),re instanceof Sr&&(re.rh=!1),b+=Math.max(ue,50)+20,te=Math.max(te,Math.max(se,50)),z>=y-1?(z=0,b=x,E+=te+20,te=0):z++}},ya.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 ri)&&(em(re),this.rh(re))){var se=re.measuredBounds,ue=se.width;se=se.height,re.moveTo(x,b),re instanceof Sr&&(re.rh=!1),x+=Math.max(ue,50)+20,z=Math.max(z,Math.max(se,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},ya.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Sr&&a.rh)};function gf(a,y,x,b,E,z,te,re){for(x=x.iterator;x.next();){var se=x.value;b&&!se.isTopLevel||E!==null&&!E(se)||!se.canLayout()||(z&&se instanceof Si?se.isLinkLabel||(se instanceof Sr&&se.layout===null?gf(a,y,se.memberParts,!1,E,z,te,re):(em(se),y.add(se))):te&&se instanceof ri?y.add(se):!re||!se.Zc()||se instanceof Si||(em(se),y.add(se)))}}function em(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ya.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new vn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ya.prototype.ex=function(a){var y=new bn;return a instanceof Qt?(gf(this,y,a.nodes,!0,null,!0,!0,!0),gf(this,y,a.links,!0,null,!0,!0,!0),gf(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Sr?gf(this,y,a.memberParts,!1,null,!0,!0,!0):gf(this,y,a.iterator,!1,null,!0,!0,!0),y},ya.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(bs),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},At.Object.defineProperties(ya.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())}}}),ya.prototype.collectParts=ya.prototype.ex,ya.prototype.getLayoutBounds=ya.prototype.ni,ya.prototype.invalidateLayout=ya.prototype.C,ya.className="Layout";function Qo(a){Mr(this),this.Sc=a,this.wf=new bn,this.ye=new bn,this.Es=new ki,this.zs=new ki}Qo.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 bn,this.ye=new bn,this.Es=new ki,this.zs=new ki},Qo.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},Qo.prototype.createVertex=function(){return new Is(this)},Qo.prototype.createEdge=function(){return new ju(this)},Qo.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 Si)return!te.isLinkLabel;if(te instanceof ri){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 Si&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Sr&&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 ri&&(!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))}}},Qo.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},De=Qo.prototype,De.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},De.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},De.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}De.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},De.ki=function(a){return a===null?null:this.Es.I(a)},De.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}}De.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},De.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),fy(this,a)}};function fy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}De.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},De.Lo=function(a){return a===null?null:this.zs.I(a)},De.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},De.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))}},De.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]);In(a)},Qo.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]);In(a),In(y)};function y1(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]);In(y)}Qo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),y1(this),this.Ko()),a=new ln;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),gy(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 gy(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&&(fy(a,E),hy(y,E),gy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(fy(a,x),hy(y,x),gy(a,y,x.toVertex))}}Qo.prototype.dz=function(){for(var a=new bn,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},At.Object.defineProperties(Qo.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}}}),Qo.prototype.findAllParts=Qo.prototype.dz,Qo.prototype.splitIntoSubNetworks=Qo.prototype.Zx,Qo.prototype.deleteSelfEdges=Qo.prototype.Ko,Qo.prototype.reverseEdge=Qo.prototype.gm,Qo.prototype.linkVertexes=Qo.prototype.Zj,Qo.prototype.findEdge=Qo.prototype.Lo,Qo.prototype.deleteLink=Qo.prototype.Yy,Qo.prototype.deleteEdge=Qo.prototype.Mj,Qo.prototype.addLink=Qo.prototype.Dy,Qo.prototype.addEdge=Qo.prototype.Bo,Qo.prototype.findVertex=Qo.prototype.ki,Qo.prototype.deleteNode=Qo.prototype.Zy,Qo.prototype.deleteVertex=Qo.prototype.Iu,Qo.prototype.addNode=Qo.prototype.Bl,Qo.prototype.addVertex=Qo.prototype.dh,Qo.prototype.addParts=Qo.prototype.lg,Qo.className="LayoutNetwork";function Is(a){Mr(this),this.ob=a,this.j=new vn(0,0,10,10).freeze(),this.o=new ot(5,5).freeze(),this.Sh=this.ub=null,this.tg=new ln,this.mg=new ln}Is.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new ln,this.mg=new ln},Is.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Fr(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},Is.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Yt(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 Sr)){x=vn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Xr);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),vn.free(x);return}vn.free(x)}a.moveTo(y.x,y.y)}},Is.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Is.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Is.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Is.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}At.Object.defineProperties(Is.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=vn.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),vn.free(x),!(a instanceof Sr)&&(a=a.locationObject.ga(Xr),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 bn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new bn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new bn,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 ln,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}}}),Is.prototype.deleteDestinationEdge=Is.prototype.Jl,Is.prototype.addDestinationEdge=Is.prototype.zl,Is.prototype.deleteSourceEdge=Is.prototype.Kl,Is.prototype.addSourceEdge=Is.prototype.Cl,Is.className="LayoutVertex",Is.standardComparer=py,Is.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 ju(a){Mr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ju.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ju.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Fr(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},ju.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ju.prototype.commit=function(){},ju.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},At.Object.defineProperties(ju.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)}}}),ju.prototype.getOtherVertex=ju.prototype.Ax,ju.className="LayoutEdge";function rl(a){ya.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ai(NaN,NaN).freeze(),this.tf=new ai(10,10).freeze(),this.Jb=tm,this.Rb=wv,this.nd=nm,this.hd=fx,a&&Object.assign(this,a)}on(rl,ya),rl.prototype.cloneProtected=function(a){ya.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},rl.prototype.qb=function(a){a.classType===rl?a===nm||a===Cv||a===my||a===Ev?this.sorting=a:a===wv||a===ed?this.arrangement=a:a===tm||a===bv?this.alignment=a:Rt("Unknown enum value: "+a):ya.prototype.qb.call(this,a)},rl.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 Sr)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 Ev:E.reverse();break;case nm:E.sort(this.comparer);break;case Cv: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 bv:var re=y,se=x,ue=vn.alloc(),ce=Math.max(this.cellSize.width,1);if(!isFinite(ce))for(var ve=ce=0;ve<E.length;ve++){var Ce=this.ni(E[ve],ue);ce=Math.max(ce,Ce.width)}if(ce=Math.max(ce+re,1),ve=Math.max(this.cellSize.height,1),!isFinite(ve))for(Ce=ve=0;Ce<E.length;Ce++){var Le=this.ni(E[Ce],ue);ve=Math.max(ve,Le.height)}ve=Math.max(ve+se,1),Ce=this.arrangement;for(var Me=Le=this.arrangementOrigin.x,We=this.arrangementOrigin.y,ut=0,tt=0,mt=0;mt<E.length;mt++){var xt=E[mt],Pt=this.ni(xt,ue),Mt=Math.ceil((Pt.width+re)/ce)*ce,en=Math.ceil((Pt.height+se)/ve)*ve;switch(Ce){case ed:var pi=Math.abs(Me-Pt.width);break;default:pi=Me+Pt.width}switch((0<z&&ut>z-1||0<te&&0<ut&&pi-Le>te)&&(b.push(new vn(0,We,te+re,tt)),ut=0,Me=Le,We+=tt,tt=0),tt=Math.max(tt,en),Ce){case ed:Pt=-Pt.width;break;default:Pt=0}switch(xt.moveTo(Me+Pt,We),Ce){case ed:Me-=Mt;break;default:Me+=Mt}ut++}b.push(new vn(0,We,te+re,tt)),vn.free(ue);break;case tm:for(se=te,ce=z,ve=y,Ce=x,te=vn.alloc(),Le=Math.max(this.cellSize.width,1),z=We=ue=0,re=ot.alloc(),Me=0;Me<E.length;Me++)tt=E[Me],ut=this.ni(tt,te),tt=Fh(tt,tt.locationObject,tt.locationSpot,re),ue=Math.max(ue,tt.x),We=Math.max(We,ut.width-tt.x),z=Math.max(z,tt.y);switch(Me=this.arrangement,Me){case ed:ue+=ve;break;default:We+=ve}Le=isFinite(Le)?Math.max(Le+ve,1):Math.max(ue+We,1);var Ai=tt=this.arrangementOrigin.x;for(mt=this.arrangementOrigin.y,We=0,se>=ue&&(se-=ue),ue=xt=0,Mt=Math.max(this.cellSize.height,1),Pt=z=0,en=!0,ut=ot.alloc(),pi=0;pi<E.length;pi++){var Ei=E[pi],ii=this.ni(Ei,te),Un=Fh(Ei,Ei.locationObject,Ei.locationSpot,re);if(0<We)switch(Me){case ed:Ai=(Ai-tt-(ii.width-Un.x))/Le,Ai=Ft.$(Math.round(Ai),Ai)?Math.round(Ai):Math.floor(Ai),Ai=Ai*Le+tt;break;default:Ai=(Ai-tt+Un.x)/Le,Ai=Ft.$(Math.round(Ai),Ai)?Math.round(Ai):Math.ceil(Ai),Ai=Ai*Le+tt}else switch(Me){case ed:xt=Ai+Un.x+ii.width;break;default:xt=Ai-Un.x}switch(Me){case ed:var vr=-(Ai+Un.x)+xt;break;default:vr=Ai+ii.width-Un.x-xt}if(0<ce&&We>ce-1||0<se&&0<We&&vr>se){for(b.push(new vn(0,en?mt-z:mt,se+ve,Pt+z+Ce)),Ai=0;Ai<We&&pi!==We;Ai++){vr=E[pi-We+Ai];var ar=Fh(vr,vr.locationObject,vr.locationSpot,ut);vr.moveTo(vr.position.x,vr.position.y+z-ar.y)}Pt+=Ce,mt=en?mt+Pt:mt+(Pt+z),We=Pt=z=0,Ai=tt,en=!1}switch(Ai===tt&&(ue=Me===ed?Math.max(ue,ii.width-Un.x):Math.min(ue,-Un.x)),z=Math.max(z,Un.y),Pt=Math.max(Pt,ii.height-Un.y),isFinite(Mt)&&(Pt=Math.max(Pt,Math.max(ii.height,Mt)-Un.y)),en?Ei.moveTo(Ai-Un.x,mt-Un.y):Ei.moveTo(Ai-Un.x,mt),Me){case ed:Ai-=Un.x+ve;break;default:Ai+=ii.width-Un.x+ve}We++}if(b.push(new vn(0,mt,se+ve,(en?Pt:Pt+z)+Ce)),E.length!==We)for(se=0;se<We;se++)ce=E[E.length-We+se],ve=Fh(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-ve.y);if(ot.free(re),ot.free(ut),Me===ed)for(E=0;E<b.length;E++)z=b[E],z.width+=ue,z.x-=ue;else for(E=0;E<b.length;E++)z=b[E],z.x>ue&&(z.width+=z.x-ue,z.x=ue);vn.free(te)}for(re=z=te=E=0;re<b.length;re++)se=b[re],E=Math.min(E,se.x),te=Math.min(te,se.y),z=Math.max(z,se.x+se.width);this.arrangement===ed?this.commitLayers(b,new ot(E+y/2-(z+E),te-x/2)):this.commitLayers(b,new ot(E-y/2,te-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},rl.prototype.commitLayers=function(){};function fx(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}At.Object.defineProperties(rl.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!==bv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==wv&&a!==ed||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==my&&a!==Ev&&a!==nm&&a!==Cv||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var bv=new Ht(rl,"Position",0),tm=new Ht(rl,"Location",1),wv=new Ht(rl,"LeftToRight",2),ed=new Ht(rl,"RightToLeft",3),my=new Ht(rl,"Forward",4),Ev=new Ht(rl,"Reverse",5),nm=new Ht(rl,"Ascending",6),Cv=new Ht(rl,"Descending",7);rl.className="GridLayout",rl.standardComparer=fx,rl.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},rl.Position=bv,rl.Location=tm,rl.LeftToRight=wv,rl.RightToLeft=ed,rl.Forward=my,rl.Reverse=Ev,rl.Ascending=nm,rl.Descending=Cv;function Io(){this.On=new bn,this.Dn=new bn,this.Pa=new bn,this.cf=new ki,this.bf=new ki,this.aj=new ki,this.H=null,this.tp=!1}De=Io.prototype,De.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},De.Xe=function(a){this.H=a},De.oi=function(a){if(a instanceof Si){if(this.On.add(a),a instanceof Sr){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 ri?this.Dn.add(a):a instanceof co||this.Pa.add(a);y=a.data,y===null||a instanceof co||(a instanceof ri?this.bf.add(y,a):this.cf.add(y,a))},De.pc=function(a){if(a.Ej(),a instanceof Si){if(this.On.remove(a),a instanceof Sr){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 ri?this.Dn.remove(a):a instanceof co||this.Pa.remove(a);y=a.data,y===null||a instanceof co||(a instanceof ri?this.bf.remove(y):this.cf.remove(y))},De.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 Sr)&&Rt('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 Sr||Rt('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 ri||Rt('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]);In(y),In(x),In(a)}},Io.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Io.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&gx(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&of(this.diagram,!1)};function gx(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&&(xc(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)}}Io.prototype.insertLink=function(){return null},Io.prototype.resolveReferencesForData=function(){},Io.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,Oi('No Group template found for category "'+x+'"'),Oi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(vx||(vx=!0,Oi('No Node template found for category "'+x+'"'),Oi(" Using default node template")),y=a.ny))),y}Io.prototype.getLinkCategoryForData=function(){return""},Io.prototype.setLinkCategoryForData=function(){},Io.prototype.setFromNodeForLink=function(){},Io.prototype.setToNodeForLink=function(){},Io.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,Oi('No Link template found for category "'+a+'"'),Oi(" Using default link template")),x=y.my)),x},Io.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Io.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Io.prototype.ip=function(a){a=this.Lc(a),a!==null&&(th(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Io.prototype.unresolveReferencesForPart=function(){},Io.prototype.removeDataForLink=function(){},Io.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Io.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Si?a:null)},Io.prototype.findLinkForKey=function(){return null},De=Io.prototype,De.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},De.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Si?a:null)},De.Kc=function(a){return a===null?null:this.bf.I(a)},De.ms=function(a){for(var y=0;y<arguments.length;++y);y=new bn;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(Yt(te)&&vy(this,E,te)){y.add(b);break}}}return y.iterator},De.ls=function(a){for(var y=0;y<arguments.length;++y);y=new bn;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(Yt(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(Fn(z)){if(!Fn(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(Yt(y)&&Yt(x)){if(!vy(a,y,x))return!1}else if(y!==x)return!1;return!0}Io.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===ha){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===Fa){var te=a.newValue;b==="nodeDataArray"&&Yt(te)&&gx(this,te),y.isModified=!0}else if(x===rs){var re=a.oldValue;b==="nodeDataArray"&&Yt(re)&&this.ip(re),y.isModified=!0}else x===Cl&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===ha){var se=a.propertyName,ue=a.object;ue===y.model?(se==="nodeKeyProperty"||se==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ue,se),y.isModified=!0}else if(x===Fa||x===rs){var ce=a.change===Fa,ve=ce?a.newParam:a.oldParam,Ce=ce?a.newValue:a.oldValue,Le=this.aj.I(a.object);if(Array.isArray(Le))for(a=0;a<Le.length;a++){var Me=Le[a];if(ce)_m(Me,Ce,ve,!0);else if(!(0>ve)){var We=ve+Bp(Me);Me.pc(We,!0),I0(Me,We,ve)}}y.isModified=!0}}finally{y.aa=!0}}}}},Io.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)},Io.prototype.rp=function(){for(var a=this.H.model,y=new bn,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){Ax(a,te,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&kx(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()},Io.prototype.refreshDataBoundLinks=function(){},Io.prototype.updateRelationshipsFromData=function(){},Io.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);In(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function yy(a,y){var x=y.Hh;if(Fn(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){Yf(y,function(te){te=te.O.s;for(var re=te.length,se=0;se<re;se++)Us(x,te[se])});var b=y.Hh;if(Fn(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}}}}Io.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new ki;if(Fn(a))for(var E=0;E<a.length;E++)Pv(this,a[E],y,b,x);else for(a=a.iterator;a.next();)Pv(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 bn;for(var z=new ki,te=b.iterator;te.next();){var re=te.value;if(re instanceof ri)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Si&&re.data!==null&&x.Tl()){var se=re;re=te.key;var ue=re.pg();ue!==null&&(ue=b.I(ue),ue!==null?(x.qe(se.data,x.wa(ue.data)),se=y.Kc(se.data),re=re.kh(),re!==null&&se!==null&&z.add(re,se)):x.qe(se.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 ce=new ki;b.each(function(ve){ve.key.data!==null&&ce.add(ve.key.data,ve.value.data)}),x(ce,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function Pv(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 Bi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Si){for(var te=y.linksConnected;te.next();){var re=te.value;if(re.fromNode===y){var se=b.I(re);se!==null&&(se.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof Sr&&z instanceof Sr)for(y=y.memberParts;y.next();)te=Pv(a,y.value,x,b,E),te instanceof ri||te===null||(te.containingGroup=z)}else if(y instanceof ri&&z instanceof ri)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=Pv(a,y.value,x,b,E),te!==null&&te instanceof Si&&(te.labeledLink=z);return z}Io.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof ri||(b=E.copyNodeData(b),Yt(b)&&(E.xf(b),x=y.Lc(b)))}else xc(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 ri||(E=y.copyNodeData(b)),Yt(E)&&(x.data=E)));return x},At.Object.defineProperties(Io.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}}}),Io.prototype.updateAllRelationshipsFromData=Io.prototype.rp,Io.prototype.findLinksByExample=Io.prototype.ls,Io.prototype.findNodesByExample=Io.prototype.ms,Io.prototype.findLinkForData=Io.prototype.Kc,Io.prototype.findNodeForData=Io.prototype.ii,Io.prototype.findPartForData=Io.prototype.Lc,Io.prototype.findNodeForKey=Io.prototype.Vb,Io.prototype.removeModeledPart=Io.prototype.ip,Io.prototype.removeModeledParts=Io.prototype.Gs,Io.prototype.rebuildParts=Io.prototype.Wd;var vx=!1,yx=!1,Sx=!1;Io.className="PartManager";function Xs(a){Io.apply(this,arguments)}on(Xs,Io),Xs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),xx(this,a.linkDataArray)},Xs.prototype.addModeledParts=function(a){for(Io.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)ip(a.value);of(this.diagram,!1)};function xx(a,y){y.forEach(function(x){bx(a,x)}),of(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){xc(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=Lv(x,y,!0);z!==""&&(E.fromPortId=z),z=Xu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Si&&(E.fromNode=z)),z=Lv(x,y,!1),z!==""&&(E.toPortId=z),z=Xu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Si&&(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}}}}Xs.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)})}Xs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Xs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Xs.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Xs.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Xs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Xs.prototype.findPartForKey=function(a){var y=Io.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Xs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Xs.prototype.doModelChanged=function(a){var y=this;if(Io.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===ha){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 se=this.Vb(a.newValue);re.toNode=se}}else if(E==="linkFromPortId"){var ue=this.Kc(a.object);if(ue!==null){var ce=a.newValue;typeof ce=="string"&&(ue.fromPortId=ce)}}else if(E==="linkToPortId"){var ve=this.Kc(a.object);if(ve!==null){var Ce=a.newValue;typeof Ce=="string"&&(ve.toPortId=Ce)}}else if(E==="nodeGroupKey"){var Le=this.Lc(a.object);if(Le!==null){var Me=a.newValue;if(Me!==void 0){var We=this.Vb(Me);We instanceof Sr?Le.containingGroup=We:Le.containingGroup=null}else Le.containingGroup=null}}else if(E==="linkLabelKeys"){var ut=this.Kc(a.object);if(ut!==null){var tt=a.oldValue,mt=a.newValue;Array.isArray(tt)&&tt.forEach(function(Un){0<=mt.indexOf(Un)||(Un=y.Vb(Un),Un!==null&&(Un.labeledLink=null))}),Array.isArray(mt)&&mt.forEach(function(Un){Un=y.Vb(Un),Un!==null&&(Un.labeledLink=ut)})}}else if(E==="linkCategory"){var xt=this.Kc(a.object),Pt=a.newValue;xt!==null&&typeof Pt=="string"&&(xt.category=Pt)}else E==="linkDataArray"&&(wx(this,a.oldValue),xx(this,a.newValue));x.isModified=!0}else if(b===Fa){var Mt=a.newValue;if(E==="linkDataArray"&&typeof Mt=="object"&&Mt!==null)bx(this,Mt);else if(E==="linkLabelKeys"&&mf(Mt)){var en=this.Kc(a.object),pi=this.Vb(Mt);en!==null&&pi!==null&&(pi.labeledLink=en)}x.isModified=!0}else if(b===rs){var Ai=a.oldValue;if(E==="linkDataArray"&&typeof Ai=="object"&&Ai!==null)this.ip(Ai);else if(E==="linkLabelKeys"&&mf(Ai)){var Ei=this.Vb(Ai);Ei!==null&&(Ei.labeledLink=null)}x.isModified=!0}}else if(b===ha){var ii=a.propertyName;a.object!==x.model||ii!=="linkFromKeyProperty"&&ii!=="linkToKeyProperty"&&ii!=="linkFromPortIdProperty"&&ii!=="linkToPortIdProperty"&&ii!=="linkLabelKeysProperty"&&ii!=="nodeIsGroupProperty"&&ii!=="nodeGroupKeyProperty"&&ii!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Xs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new bn,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){Rx(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&Ox(y,z,!1)})},Xs.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 ri){var E=Xu(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Xu(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 bn().addAll(y);var te=new bn;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 co)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Sr)&&(a.containingGroup=y)}}},Xs.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 Sr&&y.lh(te)===x&&(te=this.Lc(te),te!==null&&(te.containingGroup=E)):(z.link=this.Kc(te),z.link!==null&&E instanceof Si&&(Xu(y,te,!0)===x&&(z.link.fromNode=E),Xu(y,te,!1)===x&&(z.link.toNode=E),te=y.Ef(te),Array.isArray(te)&&te.some(function(re){return function(se){return se===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}nd(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Sr&&(E.containingGroup=a))}},Xs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Si){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)td(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&td(y,x,b.data)),a instanceof Sr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&td(y,x,b)}}},Xs.prototype.copyPartData=function(a,y){var x=Io.prototype.copyPartData.call(this,a,y);if(a instanceof ri)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},Xs.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 ri){if(xc(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 Si&&(xc(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 Si||(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},Xs.prototype.findLinkForKey=Xs.prototype.findLinkForKey,Xs.prototype.findPartForKey=Xs.prototype.findPartForKey,Xs.prototype.removeAllModeledParts=Xs.prototype.removeAllModeledParts,Xs.prototype.addModeledParts=Xs.prototype.addModeledParts,Xs.prototype.addAllModeledParts=Xs.prototype.addAllModeledParts,Xs.className="GraphLinksPartManager";function lc(){Io.apply(this,arguments),this.Sg=null}on(lc,Io);function Tv(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||!Kn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(xc(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}}}lc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},lc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},lc.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}},lc.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))},lc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},lc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},lc.prototype.doModelChanged=function(a){if(Io.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===ha){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:Tv(this,z,te)}}else if(b==="parentLinkCategory"){var se=this.ii(a.object),ue=a.newValue;if(se!==null&&typeof ue=="string"){var ce=se.kh();ce!==null&&(ce.category=ue)}}y.isModified=!0}}else if(x===ha){var ve=a.propertyName;a.object===y.model&&ve==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},lc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Si&&(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:Tv(this,y,a):b!==null&&th(x,b,!1)))}}},lc.prototype.updateDataBindings=function(a,y){Io.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},lc.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 Si&&y.mh(z)===x&&Tv(this,E,this.ii(z))}nd(y,x)}a=y.mh(a),a!==void 0&&E instanceof Si&&(a=this.Vb(a),Tv(this,a,E))}},lc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Si){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(rs,"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)&&td(y,x,E)}},lc.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},lc.prototype.findLinkForKey=lc.prototype.findLinkForKey,lc.className="TreePartManager";function Mi(a,y){this.kl=new bn,this.il=new bn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Mr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ki,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 ki,this.Lt=new ln,this.Wg=!1,this.o=null,this.undoManager=new Sa,a!==void 0&&(Fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Mi.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},Mi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Mi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Mi.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)+":"+qn(E)}}return y},Mi.prototype.xA=function(a){a.change!==Cl&&Rt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ms?(Cx(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Mi.prototype.Qv=function(a,y){var x=this,b=!1,E=new bn,z=new bn,te=new bn,re=this.vh;a.changes.each(function(ve){ve.model===x&&(ve.modelChange==="nodeDataArray"?ve.change===Fa?E.add(ve.newValue):ve.change===rs&&te.add(ve.oldValue):x.lb(ve.object)?z.add(ve.object):ve.change!==ha||x.modelData!==ve.object&&ve.propertyName!=="modelData"?ve.object!==null&&(re&&re.contains(ve.object)?re.get(ve.object).each(function(Ce){x.lb(Ce)&&z.add(Ce)}):ve.object instanceof Mi||x.ri()&&x.Jc(ve.object)||Px(x,ve.object).each(function(Ce){z.add(Ce)})):b=!0)});var se=this.il;se.clear(),E.each(function(ve){se.add(x.wa(ve)),y||z.add(ve)});var ue=this.kl;ue.clear(),te.each(function(ve){ue.add(x.wa(ve)),y&&z.add(ve)}),a=x.cloneDeep(z.Fa());var ce=null;return b&&(ce===null&&(ce={}),ce.modelData=this.cloneDeep(this.modelData)),0<se.count&&(ce===null&&(ce={}),y?ce.removedNodeKeys=se.Fa():ce.insertedNodeKeys=se.Fa()),0<a.length&&(ce===null&&(ce={}),ce.modifiedNodeData=a),0<ue.count&&(ce===null&&(ce={}),y?ce.insertedNodeKeys=ue.Fa():ce.removedNodeKeys=ue.Fa()),ue.clear(),se.clear(),ce},Mi.prototype.cloneDeep=function(a){return lp(this,a,!0)};function lp(a,y,x,b,E,z){function te(ve,Ce){re?(ve.__gohashid===void 0&&z.push(ve),b.set(ve,Ce)):(ve=vo++,b.set(ve,Ce),E.set(ve,y))}if(!Yt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new ki),re){var se=b.get(y);if(se)return se}else for(E||(E=new ki),se=E.iterator;se.next();){var ue=se.key;if(se.value===y&&(ue=b.get(ue)))return ue}if(Array.isArray(y)){se=[],te(y,se);for(var ce=0;ce<y.length;ce++)se.push(lp(a,y[ce],!1,b,E,z))}else if(y instanceof ot||y instanceof ai||y instanceof vn||y instanceof ji||y instanceof Ii)se=y.copy(),te(y,se);else{if(y instanceof qr||y instanceof si||y instanceof Ht)return y;if(y instanceof ln)se=new ln().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,se);else if(y instanceof bn)se=new bn().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,se);else if(y instanceof ki)se=new ki().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,se);else if(y instanceof Date)se=new Date(y.getTime()),te(y,se);else if(y instanceof RegExp)se=new RegExp(y),te(y,se),se.lastIndex=y.lastIndex;else if(typeof y.copy=="function")se=y.copy(),te(y,se);else for(ce in se={},te(y,se),y)ce!=="__gohashid"&&(se[ce]=lp(a,y[ce],!1,b,E,z))}return x&&z.forEach(function(ve){delete ve.__gohashid}),se}De=Mi.prototype,De.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},De.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},De.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,Yt(y)&&(a.dm(y),a.modelData=y)}De.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!Tx(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+xy(this,this.modelData)),a+`,
"nodeDataArray": `+pf(this,this.nodeDataArray,!0)},De.kv=function(a){Ex(this,a),a=a.nodeDataArray,Fn(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 bn,te.add(z),b.add(E,te)):te.add(z)}}var b=a.vh;b===null&&(b=new ki,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===ha?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Fa||z===rs)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function Px(a,y){for(var x=new bn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];kv(a,y,E,E,x)}return x}function kv(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(kv(a,y,te,b,E))return!0}else if(Yt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(te=x[z],te===y)return E.add(b),!0;if(kv(a,y,te,b,E))return!0}return!1}De.Pv=function(a,y){var x=this,b=!1,E=new bn,z=new bn,te=new bn,re=this.vh;a.changes.each(function(ce){ce.model===x&&(ce.modelChange==="nodeDataArray"?ce.change===Fa?E.add(ce.newValue):ce.change===rs&&te.add(ce.oldValue):x.lb(ce.object)?z.add(ce.object):ce.change!==ha||x.modelData!==ce.object&&ce.propertyName!=="modelData"?ce.object!==null&&(re&&re.contains(ce.object)?re.get(ce.object).each(function(ve){x.lb(ve)&&z.add(ve)}):ce.object instanceof Mi||x.ri()&&x.Jc(ce.object)||Px(x,ce.object).each(function(ve){z.add(ve)})):b=!0)});var se=this.il;se.clear(),E.each(function(ce){se.add(x.wa(ce)),y||z.add(ce)});var ue=this.kl;return ue.clear(),te.each(function(ce){ue.add(x.wa(ce)),y&&z.add(ce)}),a="",b&&(a+=`,
"modelData": `+xy(this,this.modelData)),0<se.count&&(a+=(y?this.Yv:this.Wv)+pf(this,se.Fa(),!0)),0<z.count&&(a+=this.jy+pf(this,z.Fa(),!0)),0<ue.count&&(a+=(y?this.Wv:this.Yv)+pf(this,ue.Fa(),!0)),ue.clear(),se.clear(),a},De.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)&&Rt("applyIncrementalJson cannot change Model properties"),Ex(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new ki;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 se in E)se==="__gohashid"||se===this.nodeKeyProperty||this.Wj()&&se===this.nodeIsGroupProperty||this.setDataProperty(z,se,E[se]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,se=0;se<x;se++)y=this.hc(a[se]),y!==null&&this.cm(y)},De.$x=function(a,y){a.change!==Cl&&Rt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof ms?(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 }'},De.yA=function(a,y){return this.$x(a,y)},De.np=function(a){return a===void 0&&(a=rm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},De.toJSON=function(a){return this.np(a)},De.Zw=function(a){var y=null;if(typeof a=="string")try{y=Et.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Rt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Rt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},De.Ky=function(a){return this.Zw(a)},Mi.constructGraphLinksModel=function(){return new Mi},De=Mi.prototype,De.dm=function(a){if(Fn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Yt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Rt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Yt(a)){for(y in a)if(x=a[y],Yt(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 ln,b=0;b<x.length/2;b++)E.add(new ot(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return S1(a)}return a},De.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()):Fn(a)?pf(this,a):Yt(a)?xy(this,a):typeof a=="function"?"null":a.toString()};function pf(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new zi;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 Tx(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Wl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var x=y;if(x instanceof ot)y={class:"go.Point",x:Wl(x.x),y:Wl(x.y)};else if(x instanceof ai)y={class:"go.Size",width:Wl(x.width),height:Wl(x.height)};else if(x instanceof vn)y={class:"go.Rect",x:Wl(x.x),y:Wl(x.y),width:Wl(x.width),height:Wl(x.height)};else if(x instanceof ji)y={class:"go.Margin",top:Wl(x.top),right:Wl(x.right),bottom:Wl(x.bottom),left:Wl(x.left)};else if(x instanceof Ii)x.sb()?y={class:"go.Spot",x:Wl(x.x),y:Wl(x.y),offsetX:Wl(x.offsetX),offsetY:Wl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof qr){if(y={class:"go.Brush",type:x.type.name},x.type===Oh?y.color=x.color:(x.type===sh||x.type===ac)&&(y.start=x.start,y.end=x.end,x.type===ac&&(x.startRadius!==0&&(y.startRadius=Wl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Wl(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 si?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Wl(x.startX)),x.startY!==0&&(y.startY=Wl(x.startY)),x.endX!==0&&(y.endX=Wl(x.endX)),x.endY!==0&&(y.endY=Wl(x.endY)),x.spot1.D(bs)||(y.spot1=x.spot1),x.spot2.D(pl)||(y.spot2=x.spot2),x.type===si.o&&(y.path=si.ia(x))):x instanceof Ht&&(y={class:"go.EnumValue",classType:rm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=is(y,E);if(!Tx(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof ln){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 Kl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function S1(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 ot(Kl(a.x),Kl(a.y));else if(y==="Size")x=new ai(Kl(a.width),Kl(a.height));else if(y==="Rect")x=new vn(Kl(a.x),Kl(a.y),Kl(a.width),Kl(a.height));else if(y==="Margin")x=new ji(Kl(a.top),Kl(a.right),Kl(a.bottom),Kl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Pd(a.enum):x=new Ii(Kl(a.x),Kl(a.y),Kl(a.offsetX),Kl(a.offsetY));else if(y==="Brush"){if(x=new qr,x.type=Pi(qr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Ii&&(x.start=a.start),a.end instanceof Ii&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Kl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Kl(a.endRadius)),a=a.colorStops,Yt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=si.parse(a.path):x=new si,x.type=Pi(si,a.type),typeof a.startX=="number"&&(x.startX=Kl(a.startX)),typeof a.startY=="number"&&(x.startY=Kl(a.startY)),typeof a.endX=="number"&&(x.endX=Kl(a.endX)),typeof a.endY=="number"&&(x.endY=Kl(a.endY)),a.spot1 instanceof Ii&&(x.spot1=a.spot1),a.spot2 instanceof Ii&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=wy(b),typeof b=="function"&&(x=Pi(b,a.name)));return x}De.Pe=function(a){return this.Lt.add(a),this},De.ik=function(a){this.Lt.remove(a)},De.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)},De.cb=function(a,y,x,b,E,z,te){Ps(this,"",a,y,x,b,E,z,te)},De.g=function(a,y,x,b,E){Ps(this,"",ha,a,this,y,x,b,E)},De.Fs=function(a,y,x,b,E,z){Ps(this,"",ha,y,a,x,b,E,z)};function Ps(a,y,x,b,E,z,te,re,se){re===void 0&&(re=null),se===void 0&&(se=null);var ue=new da;ue.model=a,ue.change=x,ue.modelChange=y,ue.propertyName=b,ue.object=E,ue.oldValue=z,ue.oldParam=re,ue.newValue=te,ue.newParam=se,a.ds(ue)}Mi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ha){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)),pa(x,b,E)}else a.change===Fa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Yt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&An(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&pn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Fn(b)&&a.propertyName&&(b=is(a.object,a.propertyName)),Fn(b)&&typeof x=="number"&&(a=a.newValue,y?An(b,x):pn(b,x,a))):Rt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===rs?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Yt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&pn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&An(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Fn(b)&&a.propertyName&&(b=is(a.object,a.propertyName)),Fn(b)&&typeof x=="number"&&(a=a.oldValue,y?pn(b,x,a):An(b,x))):Rt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Cl&&Rt("unknown ChangedEvent: "+a.toString())},Mi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Mi.prototype.eb=function(a){return this.undoManager.eb(a)},Mi.prototype.Kf=function(){return this.undoManager.Kf()},Mi.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}},De=Mi.prototype,De.La=function(a,y){y===void 0&&(y=""),Ps(this,"SourceChanged",Cl,y,a,null,null)},De.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=is(a,y),y!==void 0)){if(mf(y))return y;Rt("Key value for node data "+a+" is not a number or a string: "+y)}}},De.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=is(a,x);b!==y&&this.hc(y)===null&&(pa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ps(this,"nodeKey",ha,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else pa(a,x,y)}};function mf(a){return typeof a=="number"||typeof a=="string"}De.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},De.hc=function(a){return a===null&&Rt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&mf(a)?this.kb.I(a):null},De.$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))){pa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;pa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;pa(a,y,x)}}}}},De.xf=function(a){a!==null&&(Ho(a),this.lb(a)||kx(this,a,!0))};function kx(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&&Rt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,pn(a.Tc,b,y)),Ps(a,"nodeDataArray",Fa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}De.Fy=function(a){if(Fn(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)},De.cm=function(a){a!==null&&Ax(this,a,!0)};function Ax(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;An(a.Tc,b)}Ps(a,"nodeDataArray",rs,"nodeDataArray",a,y,null,b,null),a.qp(y)}De.nA=function(a){if(Fn(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)},De.$z=function(a){if(a!==this.nodeDataArray&&Fn(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()}},De.jp=function(a,y){y!==void 0&&(a=im(this,a),a instanceof bn&&this.Vf.add(y,a))},De.Lv=function(){},De.fm=function(){},De.em=function(){},De.qp=function(){};function td(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new bn,a.Vf.add(y,b)),b.add(x)}}function nd(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof bn&&(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 bn?a:null)}De.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Mi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Av(this,a,!0),Yt(a)&&Mr(a),a};function Av(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=Av(a,y[x],a.copiesArrayObjects);b.push(E)}return Mr(b),b}if(x&&Yt(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=is(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 Mi||z instanceof Sa||z instanceof ms||z instanceof da||(z=Av(a,z,!1)),pa(x,b,z)}return Mr(x),x}return y instanceof ot||y instanceof ai||y instanceof vn||y instanceof Ii||y instanceof ji?y.copy():y}Mi.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 Nt&&(Lx=!0,Oi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Oi(" Is that really your intent?"));var b=is(a,y);b!==x&&(pa(a,y,x),this.Fs(a,y,b,x))},De=Mi.prototype,De.set=function(a,y,x){this.setDataProperty(a,y,x)},De.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])}},De.Ay=function(a,y){this.ts(a,-1,y)},De.ts=function(a,y,x){0>y&&(y=a.length),pn(a,y,x),Ps(this,"",Fa,"",a,null,x,null,y)},De.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Rt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];An(a,y),Ps(this,"",rs,"",a,x,null,y,null)},De.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=is(a,y),y===void 0))return"";if(typeof y=="string")return y;Rt("getCategoryForNodeData found a non-string category for "+a+": "+y)},De.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=is(a,x);b===void 0&&(b=""),b!==y&&(pa(a,x,y),Ps(this,"nodeCategory",ha,x,a,b,y))}else pa(a,x,y)}},De.lm=function(a,y){this.jm(y,this.Ro(a))},De.Tl=function(){return!1},De.Wj=function(){return!1},De.ri=function(){return!1},De.xs=function(){return!1},De.Xj=function(){return!1};function by(){return new Mi}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 Uc[a]?Uc[a]:Et.go!==void 0&&Et.go[a]?Et.go[a]:null}function is(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 pa(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){}}At.Object.defineProperties(Mi.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===""&&Rt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Rt("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];Yt(E)||Rt("Model.nodeDataArray must only contain Objects, not: "+E),Ho(E)}for(this.Tc=a,b=new ln,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(Ps(this,"nodeDataArray",ha,"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"}}}),Mi.prototype.setCategoryForNodeData=Mi.prototype.jm,Mi.prototype.getCategoryForNodeData=Mi.prototype.Ro,Mi.prototype.removeArrayItem=Mi.prototype.ov,Mi.prototype.insertArrayItem=Mi.prototype.ts,Mi.prototype.addArrayItem=Mi.prototype.Ay,Mi.prototype.assignAllDataProperties=Mi.prototype.Do,Mi.prototype.set=Mi.prototype.set,Mi.prototype.clearUnresolvedReferences=Mi.prototype.Qy,Mi.prototype.mergeNodeDataArray=Mi.prototype.$z,Mi.prototype.removeNodeDataCollection=Mi.prototype.nA,Mi.prototype.removeNodeData=Mi.prototype.cm,Mi.prototype.addNodeDataCollection=Mi.prototype.Fy,Mi.prototype.addNodeData=Mi.prototype.xf,Mi.prototype.makeNodeDataKeyUnique=Mi.prototype.$u,Mi.prototype.findNodeDataForKey=Mi.prototype.hc,Mi.prototype.containsNodeData=Mi.prototype.lb,Mi.prototype.setKeyForNodeData=Mi.prototype.km,Mi.prototype.getKeyForNodeData=Mi.prototype.wa,Mi.prototype.updateTargetBindings=Mi.prototype.La,Mi.prototype.commit=Mi.prototype.commit,Mi.prototype.rollbackTransaction=Mi.prototype.Kf,Mi.prototype.commitTransaction=Mi.prototype.eb,Mi.prototype.startTransaction=Mi.prototype.Ea,Mi.prototype.raiseDataChanged=Mi.prototype.Fs,Mi.prototype.raiseChanged=Mi.prototype.g,Mi.prototype.raiseChangedEvent=Mi.prototype.cb,Mi.prototype.removeChangedListener=Mi.prototype.ik,Mi.prototype.addChangedListener=Mi.prototype.Pe,Mi.prototype.writeJsonValue=Mi.prototype.sm,Mi.prototype.replaceJsonObjects=Mi.prototype.dm,Mi.prototype.applyIncrementalJSON=Mi.prototype.Ky,Mi.prototype.applyIncrementalJson=Mi.prototype.Zw,Mi.prototype.toJSON=Mi.prototype.toJSON,Mi.prototype.toJson=Mi.prototype.np,Mi.prototype.toIncrementalJSON=Mi.prototype.yA,Mi.prototype.toIncrementalJson=Mi.prototype.$x,Mi.prototype.toIncrementalData=Mi.prototype.xA,Mi.prototype.clear=Mi.prototype.clear;var Lx=!1,Uc={};Mi.className="Model",Mi.fromJSON=Mi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Et.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Rt("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=Et[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Mi?y=a:Rt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Mi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Mi.safePropertyValue=is,Mi.safePropertySet=pa,Uc.Brush=qr,Uc.ChangedEvent=da,Uc.Geometry=si,Uc.Margin=ji,Uc.Panel=ei,Uc.Point=ot,Uc.Rect=vn,Uc.Size=ai,Uc.Spot=Ii,Uc.Transaction=ms,Uc.UndoManager=Sa;function ss(a,y,x,b){Mr(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 bn}ss.prototype.copy=function(){var a=new ss;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},De=ss.prototype,De.qb=function(a){a.classType===ss&&(this.mode=a)},De.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.Kx=function(a){return a===void 0&&(a=null),this.mode=om,this.backConverter=a,this},De.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},De.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function Nx(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}De.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==="")Oi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=is(y,b)),z!==void 0)if(E===null)x!==""&&pa(a,x,z);else try{if(x!==""){var te=E(z,a);pa(a,x,te)}else E(z,a)}catch(re){}}}},De.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=is(a,E)),te!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,se=re!==null?re.model:null;if(z===null){if(x!=="")se!==null?se.setDataProperty(y,x,te):pa(y,x,te);else if(se!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ue=b.itemIndex,ce=b.panel.itemArray;se.ov(ce,ue),se.ts(ce,ue,te)}}else try{if(x!==""){var ve=z(te,y,se);se!==null?se.setDataProperty(y,x,ve):pa(y,x,ve)}else{var Ce=z(te,y,se);if(Ce!==void 0&&se!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Le=b.itemIndex,Me=b.panel.itemArray;se.ov(Me,Le),se.ts(Me,Le,Ce)}}}catch(We){}}finally{this.st.remove(a)}}}},At.Object.defineProperties(ss.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Yn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Yn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Yn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Yn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Yn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Yn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Yn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Yn(this),this.el=a}}}),ss.prototype.updateSource=ss.prototype.sp,ss.prototype.updateTarget=ss.prototype.Mv,ss.prototype.ofModel=ss.prototype.dA,ss.prototype.ofObject=ss.prototype.cp,ss.prototype.makeTwoWay=ss.prototype.Kx;var x1="Binding",Ix=new Ht(ss,"OneWay",1),om=new Ht(ss,"TwoWay",2);ss.className="Binding",ss.parseEnum=function(a,y){return function(x){return x=Pi(a,x),x===null?y:x}},ss.toString=qn,ss.OneWay=Ix,ss.TwoWay=om;function Jr(a,y,x){Mi.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new bn,this.wb=new ki,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&&(Fn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}on(Jr,Mi),Jr.constructGraphLinksModel=Mi.constructGraphLinksModel,Jr.prototype.cloneProtected=function(a){Mi.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},De=Jr.prototype,De.clear=function(){Mi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},De.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)+":"+qn(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Xu(this,E,!0)+"-->"+Xu(this,E,!1)}return y},De.Qv=function(a,y){this.linkKeyProperty===""&&Rt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Mi.prototype.Qv.call(this,a,y),b=this,E=new bn,z=new bn,te=new bn,re=this.vh;a.changes.each(function(ce){ce.model===b&&(ce.modelChange==="linkDataArray"?ce.change===Fa?E.add(ce.newValue):ce.change===rs&&te.add(ce.oldValue):b.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(ve){b.Jc(ve)&&z.add(ve)}):ce.object instanceof Mi||b.lb(ce.object)||Mx(b,ce.object).each(function(ve){z.add(ve)})))});var se=this.il;se.clear(),E.each(function(ce){se.add(b.Ac(ce)),y||z.add(ce)});var ue=this.kl;return ue.clear(),te.each(function(ce){ue.add(b.Ac(ce)),y&&z.add(ce)}),a=b.cloneDeep(z.Fa()),0<se.count&&(x===null&&(x={}),y?x.removedLinkKeys=se.Fa():x.insertedLinkKeys=se.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ue.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ue.Fa():x.removedLinkKeys=ue.Fa()),ue.clear(),se.clear(),x},De.rm=function(){var a=Mi.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},De.gp=function(a){Mi.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)},De.Rv=function(){var a=Mi.prototype.Rv.call(this),y=`,
"linkDataArray": `+pf(this,this.linkDataArray,!0);return a+y},De.kv=function(a){Mi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function Mx(a,y){for(var x=new bn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];kv(a,y,E,E,x)}return x}De.Pv=function(a,y){this.linkKeyProperty===""&&Rt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Mi.prototype.Pv.call(this,a,y),b=this,E=new bn,z=new bn,te=new bn,re=this.vh;a.changes.each(function(ce){ce.model===b&&(ce.modelChange==="linkDataArray"?ce.change===Fa?E.add(ce.newValue):ce.change===rs&&te.add(ce.oldValue):b.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(ve){b.Jc(ve)&&z.add(ve)}):ce.object instanceof Mi||b.lb(ce.object)||Mx(b,ce.object).each(function(ve){z.add(ve)})))});var se=this.il;se.clear(),E.each(function(ce){se.add(b.Ac(ce)),y||z.add(ce)});var ue=this.kl;return ue.clear(),te.each(function(ce){ue.add(b.Ac(ce)),y&&z.add(ce)}),a=x,0<se.count&&(a+=(y?this.Xv:this.Vv)+pf(this,se.Fa(),!0)),0<z.count&&(a+=this.iy+pf(this,z.Fa(),!0)),0<ue.count&&(a+=(y?this.Vv:this.Xv)+pf(this,ue.Fa(),!0)),ue.clear(),se.clear(),a},De.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)&&Rt("applyIncrementalJson cannot change Model properties"),Mi.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]);Dx(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)},Jr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ha){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),pa(x,b,E);return}}else if(a.change===Fa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Yt(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===rs){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Yt(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}}Mi.prototype.changeState.call(this,a,y)}},De=Jr.prototype,De.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),pa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},De.yx=function(a){return Xu(this,a,!0)},De.wv=function(a,y){up(this,a,y,!0)},De.Bx=function(a){return Xu(this,a,!1)},De.Bv=function(a,y){up(this,a,y,!1)};function Xu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=is(y,a),a!==void 0))){if(mf(a))return a;Rt((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=is(y,E);z!==x&&(nd(a,z,y),pa(y,E,x),a.hc(x)===null&&td(a,x,y),Ps(a,b?"linkFromKey":"linkToKey",ha,E,y,z,x),typeof E=="string"&&a.La(y,E))}else pa(y,E,x)}}De.zx=function(a){return Lv(this,a,!0)},De.xv=function(a,y){cp(this,a,y,!0)},De.Cx=function(a){return Lv(this,a,!1)},De.Cv=function(a,y){cp(this,a,y,!1)};function Lv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=is(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=is(y,E);z===void 0&&(z=""),z!==x&&(pa(y,E,x),Ps(a,b?"linkFromPortId":"linkToPortId",ha,E,y,z,x),typeof E=="string"&&a.La(y,E))}else pa(y,E,x)}}De.Ef=function(a){if(a===null)return Nv;var y=this.je;return y===""?Nv:(a=is(a,y),a===void 0?Nv:a)},De.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=is(a,x);if(b===void 0&&(b=Nv),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)nd(this,b[z],a);for(pa(a,x,y),E=y.length,z=0;z<E;z++){var te=y[z];this.hc(te)===null&&td(this,te,a)}Ps(this,"linkLabelKeys",ha,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else pa(a,x,y)}},De.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=is(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&&td(this,y,a),Ps(this,"linkLabelKeys",Fa,x,a,null,y,null,E)))}else Rt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},De.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=is(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(nd(this,y,a),Ps(this,"linkLabelKeys",rs,x,a,y,null,E,null)))}else b!==void 0&&Rt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},De.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=is(a,y),y!==void 0)){if(mf(y))return y;Rt("Key value for link data "+a+" is not a number or a string: "+y)}}},De.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=is(a,x);b!==y&&this.jh(y)===null&&(pa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ps(this,"linkKey",ha,x,a,b,y),typeof x=="string"&&this.La(a,x))}else pa(a,x,y)}},De.jh=function(a){return a===null&&Rt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&mf(a)?this.wb.I(a):null},De.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))){pa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;pa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;pa(a,y,x)}}}}},De.Jc=function(a){return a===null?!1:this.$f.contains(a)},De.fi=function(a){a!==null&&(Ho(a),this.Jc(a)||Ox(this,a,!0))};function Ox(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&&Rt("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)),Ps(a,"linkDataArray",Fa,"linkDataArray",a,null,y,null,b),Ey(a,y)}De.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)},De.bm=function(a){a!==null&&Rx(this,a,!0)};function Rx(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(Ps(a,"linkDataArray",rs,"linkDataArray",a,y,null,b,null),x=Xu(a,y,!0),nd(a,x,y),x=Xu(a,y,!1),nd(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],nd(a,x,y)}De.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)},De.Zz=function(a){if(this.linkKeyProperty===""&&Rt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Fn(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),Dx(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=Xu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&td(a,x,y),x=Xu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&td(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&&td(a,x,y)}De.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):Av(this,a,!0),Yt(a)&&(Mr(a),this.lf!==""&&pa(a,this.lf,void 0),this.mf!==""&&pa(a,this.mf,void 0),this.je!==""&&pa(a,this.je,[])),a},De.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!is(a,y)},De.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=is(a,y),y!==void 0)){if(mf(y))return y;Rt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},De.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=is(a,x);b!==y&&(nd(this,b,a),pa(a,x,y),this.hc(y)===null&&td(this,y,a),Ps(this,"nodeGroupKey",ha,x,a,b,y),typeof x=="string"&&this.La(a,x))}else pa(a,x,y)}},Jr.prototype.copyNodeData=function(a){return a===null?null:(a=Mi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||is(a,this.Je)===void 0||pa(a,this.Je,void 0),a)},Jr.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=is(a,y);b!==x&&(pa(a,y,x),this.Fs(a,y,b,x))},De=Jr.prototype,De.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&&is(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},De.jp=function(a,y){Mi.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(Xu(this,b,!0)===E){var te=this.lf;pa(b,te,z),Ps(this,"linkFromKey",ha,te,b,E,z),typeof te=="string"&&this.La(b,te)}if(Xu(this,b,!1)===E&&(te=this.mf,pa(b,te,z),Ps(this,"linkToKey",ha,te,b,E,z),typeof te=="string"&&this.La(b,te)),te=this.Ef(b),Array.isArray(te))for(var re=te.length,se=this.je,ue=0;ue<re;ue++)te[ue]===E&&(te[ue]=z,Ps(this,"linkLabelKeys",Fa,se,b,E,z,ue,ue))}},De.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;pa(a,b,x),Ps(this,"nodeGroupKey",ha,b,a,y,x),typeof b=="string"&&this.La(a,b)}},De.Lv=function(){Mi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Ey(this,a[x])},De.fm=function(a){Mi.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;Ps(this,"nodeGroupKey",ha,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Xu(this,b,!0)===a&&(E=this.lf,Ps(this,"linkFromKey",ha,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Xu(this,b,!1)===a&&(E=this.mf,Ps(this,"linkToKey",ha,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&&(Ps(this,"linkLabelKeys",Fa,te,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)nd(this,a,x[y]);In(x)}},De.em=function(a){Mi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&td(this,y,a)},De.qp=function(a){Mi.prototype.qp.call(this,a);var y=this.lh(a);nd(this,y,a)},De.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=is(a,y),y===void 0))return"";if(typeof y=="string")return y;Rt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Jr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Jr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=is(a,x);b===void 0&&(b=""),b!==y&&(pa(a,x,y),Ps(this,"linkCategory",ha,x,a,b,y),typeof x=="string"&&this.La(a,x))}else pa(a,x,y)}},Jr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},De=Jr.prototype,De.lm=function(a,y){Mi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function Dx(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))}De.Wj=function(){return!0},De.ri=function(){return!0},De.xs=function(){return!0},De.Xj=function(){return!0},At.Object.defineProperties(Jr.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];Yt(E)||Rt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ho(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new ln,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 bn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ps(this,"linkDataArray",ha,"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"}}}),Jr.prototype.setCategoryForLinkData=Jr.prototype.lp,Jr.prototype.getCategoryForLinkData=Jr.prototype.ps,Jr.prototype.assignAllDataProperties=Jr.prototype.Do,Jr.prototype.setGroupKeyForNodeData=Jr.prototype.mp,Jr.prototype.getGroupKeyForNodeData=Jr.prototype.lh,Jr.prototype.isGroupForNodeData=Jr.prototype.Yu,Jr.prototype.copyLinkData=Jr.prototype.Jo,Jr.prototype.mergeLinkDataArray=Jr.prototype.Zz,Jr.prototype.removeLinkDataCollection=Jr.prototype.lA,Jr.prototype.removeLinkData=Jr.prototype.bm,Jr.prototype.addLinkDataCollection=Jr.prototype.Ey,Jr.prototype.addLinkData=Jr.prototype.fi,Jr.prototype.containsLinkData=Jr.prototype.Jc,Jr.prototype.makeLinkDataKeyUnique=Jr.prototype.Bs,Jr.prototype.findLinkDataForKey=Jr.prototype.jh,Jr.prototype.setKeyForLinkData=Jr.prototype.Ks,Jr.prototype.getKeyForLinkData=Jr.prototype.Ac,Jr.prototype.removeLabelKeyForLinkData=Jr.prototype.Qx,Jr.prototype.addLabelKeyForLinkData=Jr.prototype.Bu,Jr.prototype.setLabelKeysForLinkData=Jr.prototype.Ls,Jr.prototype.getLabelKeysForLinkData=Jr.prototype.Ef,Jr.prototype.setToPortIdForLinkData=Jr.prototype.Cv,Jr.prototype.getToPortIdForLinkData=Jr.prototype.Cx,Jr.prototype.setFromPortIdForLinkData=Jr.prototype.xv,Jr.prototype.getFromPortIdForLinkData=Jr.prototype.zx,Jr.prototype.setToKeyForLinkData=Jr.prototype.Bv,Jr.prototype.getToKeyForLinkData=Jr.prototype.Bx,Jr.prototype.setFromKeyForLinkData=Jr.prototype.wv,Jr.prototype.getFromKeyForLinkData=Jr.prototype.yx,Jr.prototype.clear=Jr.prototype.clear;var Nv=Object.freeze([]);Jr.className="GraphLinksModel",Uc.GraphLinksModel=Jr,Mi.constructGraphLinksModel=Mi.constructGraphLinksModel=function(){return new Jr},Mi.initDiagramModel=by=function(){return new Jr};function Vl(a,y){Mi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}on(Vl,Mi),Vl.constructGraphLinksModel=Mi.constructGraphLinksModel,Vl.prototype.cloneProtected=function(a){Mi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},De=Vl.prototype,De.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)+":"+qn(E)}}return y},De.rm=function(){var a=Mi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},De.gp=function(a){Mi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},De.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Rt("applyIncrementalJson cannot change Model properties"),Mi.prototype.fp.call(this,a)},De.Vl=function(a){return a},De.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=is(a,y),y!==void 0)){if(mf(y))return y;Rt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},De.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=is(a,x);b!==y&&(nd(this,b,a),pa(a,x,y),this.hc(y)===null&&td(this,y,a),Ps(this,"nodeParentKey",ha,x,a,b,y),typeof x=="string"&&this.La(a,x))}else pa(a,x,y)}},De.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=is(a,y),y===void 0)?"":typeof y=="string"?y:(Rt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Vl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Vl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=is(a,x);b===void 0&&(b=""),b!==y&&(pa(a,x,y),Ps(this,"parentLinkCategory",ha,x,a,b,y),typeof x=="string"&&this.La(a,x))}else pa(a,x,y)}},Vl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Vl.prototype.copyNodeData=function(a){return a===null?null:(a=Mi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||is(a,this.Ke)===void 0||pa(a,this.Ke,void 0),a)},Vl.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=is(a,y);b!==x&&(pa(a,y,x),this.Fs(a,y,b,x))},De=Vl.prototype,De.jp=function(a,y){Mi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},De.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;pa(a,b,x),Ps(this,"nodeParentKey",ha,b,a,y,x),typeof b=="string"&&this.La(a,b)}},De.fm=function(a){Mi.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;Ps(this,"nodeParentKey",ha,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)nd(this,a,x[y]);In(x)}},De.em=function(a){Mi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&td(this,y,a)},De.qp=function(a){Mi.prototype.qp.call(this,a);var y=this.mh(a);nd(this,y,a)},De.lm=function(a,y){Mi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},De.Tl=function(){return!0},De.xs=function(){return!0},At.Object.defineProperties(Vl.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"}}}),Vl.prototype.setParentLinkCategoryForNodeData=Vl.prototype.Ms,Vl.prototype.getParentLinkCategoryForNodeData=Vl.prototype.ss,Vl.prototype.setParentKeyForNodeData=Vl.prototype.qe,Vl.prototype.getParentKeyForNodeData=Vl.prototype.mh,Vl.className="TreeModel",Uc.TreeModel=Vl;function La(a){ya.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Gc,this.Ti=0,this.Zv=new ot,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=Gc,this.K=Zl,this.nd=hp,this.hd=py,this.tf=6,this.Nn=Bv,a&&Object.assign(this,a)}on(La,ya),La.prototype.cloneProtected=function(a){ya.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},La.prototype.qb=function(a){a.classType===La?a===Dv||a===Fv||a===Ov||a===Rv||a===hp?this.sorting=a:a===tg||a===dp||a===Zl||a===yf?this.direction=a:a===Gh||a===vf||a===Gc||a===Hc?this.arrangement=a:(a===Pg||a===Bv)&&(this.nodeDiameterFormula=a):ya.prototype.qb.call(this,a)},La.prototype.createNetwork=function(){return new fp(this)},La.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 ln;y.addAll(a.iterator),a=new ln;var x=new ln,b=this.sort(y),E,z,te=this.Jp,re=this.arrangement,se=this.nodeDiameterFormula,ue=this.radius;(!isFinite(ue)||0>=ue)&&(ue=NaN);var ce=this.aspectRatio;(!isFinite(ce)||0>=ce)&&(ce=1);var ve=this.startAngle;isFinite(ve)||(ve=0);var Ce=this.sweepAngle;if((!isFinite(Ce)||360<Ce||1>Ce)&&(Ce=360),y=this.spacing,isFinite(y)||(y=NaN),re===Hc&&se===Pg?re=Gc:re===Hc&&se!==Pg&&(re=this.arrangement),(this.direction===tg||this.direction===dp)&&this.sorting!==hp){for(se=0;!(se>=b.length)&&(a.add(b.M(se)),!(se+1>=b.length));se+=2)x.add(b.M(se+1));this.direction===tg?(this.arrangement===Hc&&a.reverse(),b=new ln,b.addAll(a),b.addAll(x)):(this.arrangement===Hc&&x.reverse(),b=new ln,b.addAll(x),b.addAll(a))}se=b.length;for(var Le=z=E=0;Le<b.length;Le++){var Me=ve+Ce*z*(this.direction===Zl?1:-1)/se,We=b.M(Le).diameter;isNaN(We)&&(We=Sf(b.M(Le),Me)),360>Ce&&(Le===0||Le===b.length-1)&&(We/=2),E+=We,z++}if(isNaN(ue)||re===Hc){if(isNaN(y)&&(y=6),re!==Gc&&re!==Hc){for(z=-1/0,te=0;te<se;te++)Le=b.M(te),E=b.M(te===se-1?0:te+1),isNaN(Le.diameter)&&Sf(Le,0),isNaN(E.diameter)&&Sf(E,0),z=Math.max(z,(Le.diameter+E.diameter)/2);te=z+y,re===Gh?ue=(z+y)/(2*Math.PI/se):ue=Iv(this,te*(360<=Ce?se:se-1),ce,ve*Math.PI/180,Ce*Math.PI/180)}else ue=Iv(this,E+(360<=Ce?se:se-1)*(re!==Hc?y:1.6*y),ce,ve*Math.PI/180,Ce*Math.PI/180);z=ue*ce}else if(z=ue*ce,Le=Cy(this,ue,z,ve*Math.PI/180,Ce*Math.PI/180),isNaN(y))(re===Gc||re===Hc)&&(y=(Le-E)/(360<=Ce?se:se-1));else if(re===Gc||re===Hc)Le=(Le-E)/(360<=Ce?se:se-1),Le<y?(ue=Iv(this,E+y*(360<=Ce?se:se-1),ce,ve*Math.PI/180,Ce*Math.PI/180),z=ue*ce):y=Le;else{for(te=-1/0,E=0;E<se;E++)Me=b.M(E),We=b.M(E===se-1?0:E+1),isNaN(Me.diameter)&&Sf(Me,0),isNaN(We.diameter)&&Sf(We,0),te=Math.max(te,(Me.diameter+We.diameter)/2);te+=y,E=Iv(this,te*(360<=Ce?se:se-1),ce,ve*Math.PI/180,Ce*Math.PI/180),E>ue?(ue=E,z=ue*ce):te=Le/(360<=Ce?se:se-1)}if(this.kw=re,this.lc=ue,this.Zm=ce,this.lw=ve,this.Wp=Ce,this.Ti=y,this.me=z,this.Jp=te,y=b,b=this.kw,re=this.lc,ue=this.lw,ce=this.Wp,ve=this.Ti,Ce=this.me,se=this.Jp,this.direction!==tg&&this.direction!==dp||b!==Hc)if(this.direction===tg||this.direction===dp){switch(te=0,b){case vf:te=180*Mv(this,re,Ce,ue,se)/Math.PI;break;case Gc:se=y=0,te=a.first(),te!==null&&(y=Sf(te,Math.PI/2)),te=x.first(),te!==null&&(se=Sf(te,Math.PI/2)),te=180*Mv(this,re,Ce,ue,ve+(y+se)/2)/Math.PI;break;case Gh:te=ce/y.length}if(this.direction===tg){switch(b){case vf:lm(this,a,ue,yf);break;case Gc:sm(this,a,ue,yf);break;case Gh:am(this,a,ce/2,ue,yf)}switch(b){case vf:lm(this,x,ue+te,Zl);break;case Gc:sm(this,x,ue+te,Zl);break;case Gh:am(this,x,ce/2,ue+te,Zl)}}else{switch(b){case vf:lm(this,x,ue,yf);break;case Gc:sm(this,x,ue,yf);break;case Gh:am(this,x,ce/2,ue,yf)}switch(b){case vf:lm(this,a,ue+te,Zl);break;case Gc:sm(this,a,ue+te,Zl);break;case Gh:am(this,a,ce/2,ue+te,Zl)}}}else switch(b){case vf:lm(this,y,ue,this.direction);break;case Gc:sm(this,y,ue,this.direction);break;case Gh:am(this,y,ce,ue,this.direction);break;case Hc:Fx(this,y,ce,ue,this.direction)}else Fx(this,y,ce,ue-ce/2,Zl)}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,se=0;se<re;se++){var ue=b+(E===Zl?se*x/(360<=z?re:re-1):-(se*x)/re),ce=y.M(se),ve=te*Math.tan(ue)/a;ve=Math.sqrt((te*te+a*a*ve*ve)/(1+ve*ve)),ce.centerX=ve*Math.cos(ue),ce.centerY=ve*Math.sin(ue),ce.actualAngle=180*ue/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,se=0;se<re;se++){var ue=y.M(se),ce=y.M(se===re-1?0:se+1),ve=z*Math.sin(x);ue.centerX=E*Math.cos(x),ue.centerY=ve,ue.actualAngle=180*x/Math.PI,isNaN(ue.diameter)&&Sf(ue,0),isNaN(ce.diameter)&&Sf(ce,0),ue=Mv(a,E,z,b===Zl?x:-x,(ue.diameter+ce.diameter)/2+te),x+=b===Zl?ue:-ue}}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,se=0;se<re;se++){var ue=y.M(se);ue.centerX=E*Math.cos(x),ue.centerY=z*Math.sin(x),ue.actualAngle=180*x/Math.PI,ue=Mv(a,E,z,b===Zl?x:-x,te),x+=b===Zl?ue:-ue}}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===Zl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,zx(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,se=z*Math.cos(b*Math.PI/180),ue=a.me*Math.sin(b*Math.PI/180),ce=y.Fa();if(ce.length===3)ce[0].centerX=z,ce[0].centerY=0,ce[1].centerX=ce[0].centerX-ce[0].width/2-ce[1].width/2-te,ce[1].y=ce[0].y,ce[2].centerX=(ce[0].centerX+ce[1].centerX)/2,ce[2].y=ce[0].y-ce[2].height-te;else if(ce.length===4)ce[0].centerX=z,ce[0].centerY=0,ce[2].centerX=-ce[0].centerX,ce[2].centerY=ce[0].centerY,ce[1].centerX=0,ce[1].y=Math.min(ce[0].y,ce[2].y)-ce[1].height-te,ce[3].centerX=0,ce[3].y=Math.max(ce[0].y+ce[0].height+te,ce[2].y+ce[2].height+te);else{z=ot.alloc();for(var ve=0;ve<ce.length&&(ce[ve].centerX=se,ce[ve].centerY=ue,!(ve>=ce.length-1));ve++)jx(a,se,ue,ce,ve,E,z)||Ux(a,se,ue,ce,ve,E,z),se=z.x,ue=z.y;if(ot.free(z),a.mj++,!(23<a.mj)){se=ce[0].centerX,ue=ce[0].centerY,z=ce[ce.length-1].centerX,ve=ce[ce.length-1].centerY;var Ce=Math.abs(se-z)-((ce[0].width+ce[ce.length-1].width)/2+te),Le=Math.abs(ue-ve)-((ce[0].height+ce[ce.length-1].height)/2+te);te=0,1>Math.abs(Le)?Math.abs(se-z)<(ce[0].width+ce[ce.length-1].width)/2&&(te=0):te=0<Le?Le:1>Math.abs(Ce)?0:Ce,se=Math.abs(z)>Math.abs(ve)?0<z!=ue>ve:0<ve!=se<z,(se=E===Zl?se:!se)&&(te=-Math.abs(te),te=Math.min(te,-ce[ce.length-1].width),te=Math.min(te,-ce[ce.length-1].height)),a.Xr.compare(te,ce),1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):5>ce.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 zx(a,y,x,b,E){for(var z=a.lc,te=a.me,re=a.Zm,se=z*Math.cos(b*Math.PI/180),ue=te*Math.sin(b*Math.PI/180),ce=ot.alloc(),ve=y.Fa(),Ce=0;Ce<ve.length&&(ve[Ce].centerX=se,ve[Ce].centerY=ue,!(Ce>=ve.length-1));Ce++)jx(a,se,ue,ve,Ce,E,ce)||Ux(a,se,ue,ve,Ce,E,ce),se=ce.x,ue=ce.y;if(ot.free(ce),a.mj++,!(23<a.mj)){if(se=Math.atan2(ue,se),se=E===Zl?a.gt-se:se-a.gt,se=Math.abs(se)<Math.abs(se-2*Math.PI)?se:se-2*Math.PI,z=se*(z+te)/2,te=a.Xr,Math.abs(z)<Math.abs(te.Pl))for(te.Pl=z,te.mk=[],te.tm=[],se=0;se<ve.length;se++)te.mk[se]=ve[se].bounds.x,te.tm[se]=ve[se].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,zx(a,y,x,b,E))}}function jx(a,y,x,b,E,z,te){var re=a.lc,se=a.me,ue=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ce=!1;if(0<=x!=(z===Zl)){if(z=y+a,z>re){if(z=y-a,z<-re)return te.x=z,te.y=ue,!1;ce=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return te.x=z,te.y=ue,!1;ce=!0}return ue=Math.sqrt(1-Math.min(1,z*z/(re*re)))*se,0>x!==ce&&(ue=-ue),Math.abs(x-ue)>(b[E].height+b[E+1].height)/2?(te.x=z,te.y=ue,!1):(te.x=z,te.y=ue,!0)}function Ux(a,y,x,b,E,z,te){var re=a.lc,se=a.me,ue=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Zl)){if(z=x-a,z<-se){if(z=x+a,z>se){te.x=ue,te.y=z;return}b=!0}}else if(z=x+a,z>se){if(z=x-a,z<-se){te.x=ue,te.y=z;return}b=!0}ue=Math.sqrt(1-Math.min(1,z*z/(se*se)))*re,0>y!==b&&(ue=-ue),te.x=ue,te.y=z}La.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},La.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 ot(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))},La.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)),se=0,ue=0;ue<=z;ue++){b!==void 0&&E!==void 0?se=b+ue*E/z:se=ue*Math.PI/(2*z);var ce=Math.sin(se);te+=Math.sqrt(1-a*a*ce*ce)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*te:4*(y>x?y:x)*te}function Iv(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Cy(a,1,x,b,E):Cy(a,1,x))}function Mv(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 se=Math.sin(b+re*a);if(te+=(y>x?y:x)*Math.sqrt(1-z*z*se*se)*a,te>=E)return re*a}}La.prototype.sort=function(a){switch(this.sorting){case Ov:break;case Rv:a.reverse();break;case Dv:a.sort(this.comparer);break;case Fv:a.sort(this.comparer),a.reverse();break;case hp:return this.ak(b1(a));default:Rt("Invalid sorting type.")}return a};function b1(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new ln;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}La.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 ln;for(var se=0,ue=0;ue<y.length;ue++){var ce=y[ue].length;if(ce===1)b.push(ue);else if(ce===0)E.add(a.M(ue));else{if(se===0)x.push(ue);else{for(var ve=ce=1/0,Ce=-1,Le=[],Me=0;Me<x.length;Me++)0>y[x[Me]].indexOf(x[Me===x.length-1?0:Me+1])&&Le.push(Me===x.length-1?0:Me+1);if(Le.length===0)for(Me=0;Me<x.length;Me++)Le.push(Me);for(Me=0;Me<Le.length;Me++){for(var We=Le[Me],ut=y[ue],tt=0,mt=0;mt<te.length;mt++){var xt=z[te[mt]],Pt=z[re[mt]];if(xt<Pt){var Mt=xt;xt=Pt}else Mt=Pt;if(Mt<We&&We<=xt)for(Pt=0;Pt<ut.length;Pt++){var en=ut[Pt];0>x.indexOf(en)||Mt<z[en]&&z[en]<xt||Mt===z[en]||xt===z[en]||tt++}else for(Pt=0;Pt<ut.length;Pt++)en=ut[Pt],0>x.indexOf(en)||Mt<z[en]&&z[en]<xt&&Mt!==z[en]&&xt!==z[en]&&tt++}for(ut=tt,mt=tt=0;mt<y[ue].length;mt++)Mt=x.indexOf(y[ue][mt]),0<=Mt&&(Mt=Math.abs(We-(Mt>=We?Mt+1:Mt)),tt+=Mt<x.length+1-Mt?Mt:x.length+1-Mt);for(mt=0;mt<te.length;mt++)Mt=z[te[mt]],xt=z[re[mt]],Mt>=We&&Mt++,xt>=We&&xt++,Mt>xt&&(Pt=xt,xt=Mt,Mt=Pt),xt-Mt<(x.length+2)/2==(Mt<We&&We<=xt)&&tt++;(ut<ce||ut===ce&&tt<ve)&&(ce=ut,ve=tt,Ce=We)}for(x.splice(Ce,0,ue),ce=0;ce<x.length;ce++)z[x[ce]]=ce;for(ce=0;ce<y[ue].length;ce++)ve=y[ue][ce],0<=x.indexOf(ve)&&(te.push(ue),re.push(ve))}se++}}for(te=x.length;;){for(z=!0,re=0;re<b.length;re++)if(se=b[re],ue=y[se][0],ce=x.indexOf(ue),0<=ce){for(Ce=ve=0;Ce<y[ue].length;Ce++)Le=x.indexOf(y[ue][Ce]),0>Le||Le===ce||(Me=Le>ce?Le-ce:ce-Le,ve+=Le<ce!=Me>te-Me?1:-1);x.splice(0>ve?ce:ce+1,0,se),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},At.Object.defineProperties(La.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!==Hc&&a!==Gc&&a!==vf&&a!==Gh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Zl&&a!==yf&&a!==tg&&a!==dp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Ov&&a!==Rv&&a!==Dv&&!Fv&&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!==Bv&&a!==Pg||(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 Gc=new Ht(La,"ConstantSpacing",0),vf=new Ht(La,"ConstantDistance",1),Gh=new Ht(La,"ConstantAngle",2),Hc=new Ht(La,"Packed",3),Zl=new Ht(La,"Clockwise",4),yf=new Ht(La,"Counterclockwise",5),tg=new Ht(La,"BidirectionalLeft",6),dp=new Ht(La,"BidirectionalRight",7),Ov=new Ht(La,"Forwards",8),Rv=new Ht(La,"Reverse",9),Dv=new Ht(La,"Ascending",10),Fv=new Ht(La,"Descending",11),hp=new Ht(La,"Optimized",12),Bv=new Ht(La,"Pythagorean",13),Pg=new Ht(La,"Circular",14);La.className="CircularLayout",La.ConstantSpacing=Gc,La.ConstantDistance=vf,La.ConstantAngle=Gh,La.Packed=Hc,La.Clockwise=Zl,La.Counterclockwise=yf,La.BidirectionalLeft=tg,La.BidirectionalRight=dp,La.Forwards=Ov,La.Reverse=Rv,La.Ascending=Dv,La.Descending=Fv,La.Optimized=hp,La.Pythagorean=Bv,La.Circular=Pg;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 fp(a){Qo.call(this,a)}on(fp,Qo),fp.prototype.createVertex=function(){return new cm(this)},fp.prototype.createEdge=function(){return new zv(this)},fp.className="CircularNetwork";function cm(a){Is.call(this,a),this.u=this.Si=NaN}on(cm,Is);function Sf(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Hc)if(x.nodeDiameterFormula===Pg)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===Pg?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}At.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 zv(a){ju.call(this,a)}on(zv,ju),zv.className="CircularEdge";function gl(a){ya.call(this),this.ah=null,this.An=0,this.$d=new ai(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)}on(gl,ya),gl.prototype.cloneProtected=function(a){ya.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},gl.prototype.createNetwork=function(){return new Tg(this)},gl.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}Gx(this,0,a)}this.network=y;var te=b=x.iterator;b=this.arrangementSpacing;var re=te.count,se=!0;z=E=0;for(var ue=gn(),ce=0;ce<re+y.vertexes.count+2;ce++)ue[ce]=null;re=0,te.reset();for(var ve=vn.alloc();te.next();)if(ce=te.value,this.computeBounds(ce,ve),se)se=!1,E=ve.x+ve.width/2,z=ve.y+ve.height/2,ue[0]=new ot(ve.x+ve.width+b.width,ve.y),ue[1]=new ot(ve.x,ve.y+ve.height+b.height),re=2;else{var Ce=Hx(ue,re,E,z,ve.width,ve.height,b),Le=ue[Ce],Me=new ot(Le.x+ve.width+b.width,Le.y),We=new ot(Le.x,Le.y+ve.height+b.height);for(Ce+1<re&&ue.splice(Ce+1,0,null),ue[Ce]=Me,ue[Ce+1]=We,re++,Ce=Le.x-ve.x,Le=Le.y-ve.y,ce=ce.vertexes.iterator;ce.next();)Me=ce.value,Me.centerX+=Ce,Me.centerY+=Le}for(vn.free(ve),ce=y.vertexes.iterator;ce.next();)te=ce.value,Ce=te.bounds,2>re?(E=Ce.x+Ce.width/2,z=Ce.y+Ce.height/2,ue[0]=new ot(Ce.x+Ce.width+b.width,Ce.y),ue[1]=new ot(Ce.x,Ce.y+Ce.height+b.height),re=2):(se=Hx(ue,re,E,z,Ce.width,Ce.height,b),ve=ue[se],Le=new ot(ve.x+Ce.width+b.width,ve.y),Ce=new ot(ve.x,ve.y+Ce.height+b.height),se+1<re&&ue.splice(se+1,0,null),ue[se]=Le,ue[se+1]=Ce,re++,te.centerX=ve.x+te.width/2,te.centerY=ve.y+te.height/2);for(In(ue),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},gl.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},gl.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 Gx(a,y,x){if(w1(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=E1(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,Gx(a,y+1,x),Wx(a,z),C1(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++)P1(a,y[x]);a.Zf=b}}function w1(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 E1(a,y){for(var x=a.network,b=new Tg(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var te=new Kx;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 ln),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 ln,E.Hj=re),re.add(te),E.Vd--,E.sh+=te.sh):te.network===b&&(re=te.Hj,re===null&&(re=new ln,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,Ft.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var se=E.Hj;if(se!==null&&0<se.count&&(te=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=te))){for(var ue=re=0,ce=se.count-te;ce<se.count;ce++){var ve=se.M(ce),Ce=null;for(z=ve.edges.iterator;z.next();){var Le=z.value;if(Le.Ax(ve)===E){Ce=Le;break}}Ce!==null&&(ue+=Ce.length,re+=ve.width*ve.height)}z=E.centerX,se=E.centerY,ce=E.width,ve=E.height,Ce=E.focus,Le=ce*ve,1>Le&&(Le=1),re=Ft.sqrt((re+Le+ue*ue*4/(te*te))/Le),te=(re-1)*ce/2,re=(re-1)*ve/2,E.bounds=new vn(z-Ce.x-te,se-Ce.y-re,ce+2*te,ve+2*re),E.focus=new ot(Ce.x+te,Ce.y+re)}}return a.network=b,x}function C1(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 vn(b.centerX-z,b.centerY-te,E.Ss,E.Qs),b.focus=new ot(z,te),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function P1(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=Ft.sqrt(z*z+te*te)/2;for(var re=!1,se=te=0,ue=0,ce=y.vertexes.iterator;ce.next();){var ve=ce.value;1>=ve.Vd?se++:(re=!0,ue++,te+=Math.atan2(y.centerY-ve.centerY,y.centerX-ve.centerX))}if(se!==0){for(0<ue&&(te/=ue),ue=y=0,y=re?2*Math.PI/(se+1):2*Math.PI/se,se%2===0&&(ue=y/2),1<x.count&&x.sort(function(Le,Me){return Le===null||Me===null||Le===Me?0:Me.width*Me.height-Le.width*Le.height}),re=se%2===0?0:1,x=x.iterator;x.next();)if(se=x.value,!(1<se.Vd||a.isFixed(se))){for(ce=null,ve=se.edges.iterator;ve.next();){ce=ve.value;break}ve=se.width;var Ce=se.height;ve=Ft.sqrt(ve*ve+Ce*Ce)/2,ce=z+ce.length+ve,ve=te+(y*(re/2>>1)+ue)*(re%2===0?1:-1),se.centerX=b+ce*Math.cos(ve),se.centerY=E+ce*Math.sin(ve),re++}}}}function Hx(a,y,x,b,E,z,te){var re=9e19,se=-1,ue=0;e:for(;ue<y;ue++){var ce=a[ue],ve=ce.x-x,Ce=ce.y-b;if(ve=ve*ve+Ce*Ce,ve<re){for(Ce=ue-1;0<=Ce;Ce--)if(a[Ce].y>ce.y&&a[Ce].x-ce.x<E+te.width)continue e;for(Ce=ue+1;Ce<y;Ce++)if(a[Ce].x>ce.x&&a[Ce].y-ce.y<z+te.height)continue e;se=ue,re=ve}}return se}gl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},gl.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 _x(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,Ft.sqrt(x*x+a*a)):a+x<y?(b=b+E-te,a=a+x-y,Ft.sqrt(b*b+a*a)):te-(b+E):b>te+re?a>y+z?(x=b-te-re,a=a-y-z,Ft.sqrt(x*x+a*a)):a+x<y?(b=b-te-re,a=a+x-y,Ft.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++,T1(a)););a.ah=null}function T1(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 se=re.centerX;re=re.centerY,b=Math.min(b,se),E=Math.max(E,se),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(We,ut){return We===null||ut===null||We===ut?0:We.centerX-ut.centerX}):y.sort(function(We,ut){return We===null||ut===null||We===ut?0:We.centerY-ut.centerY}),x=a.Zf;var ue=b=re=0;for(z=0;z<y.length;z++){te=y[z],b=te.bounds,re=te.focus,se=b.x+re.x;var ce=b.y+re.y;b=te.charge*a.electricalFieldX(se,ce),ue=te.charge*a.electricalFieldY(se,ce),b+=te.mass*a.gravitationalFieldX(se,ce),ue+=te.mass*a.gravitationalFieldY(se,ce),te.forceX+=b,te.forceY+=ue;for(var ve=z+1;ve<y.length;ve++){var Ce=y[ve];if(Ce!==te){b=Ce.bounds,re=Ce.focus,ue=b.x+re.x;var Le=b.y+re.y;if(se-ue>x||ue-se>x){if(E)break}else if(ce-Le>x||Le-ce>x){if(!E)break}else{var Me=_x(te,Ce);1>Me?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new jv),Me=b.random(),re=b.random(),se>ue?(b=Math.abs(Ce.bounds.right-te.bounds.x),b=(1+b)*Me):se<ue?(b=Math.abs(Ce.bounds.x-te.bounds.right),b=-(1+b)*Me):(b=Math.max(Ce.width,te.width),b=(1+b)*Me-b/2),ce>Le?(ue=Math.abs(Ce.bounds.bottom-te.bounds.y),ue=(1+ue)*re):se<ue?(ue=Math.abs(Ce.bounds.y-te.bounds.bottom),ue=-(1+ue)*re):(ue=Math.max(Ce.height,te.height),ue=(1+ue)*re-ue/2)):(re=-(te.charge*Ce.charge)/(Me*Me),b=(ue-se)/Me*re,ue=(Le-ce)/Me*re),te.forceX+=b,te.forceY+=ue,Ce.forceX-=b,Ce.forceY-=ue}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,te=x.bounds,se=x.focus,b=te.x+se.x,te=te.y+se.y,ce=z.bounds,ve=z.focus,se=ce.x+ve.x,ce=ce.y+ve.y,ve=_x(x,z),1>ve?(ve=a.randomNumberGenerator,ve===null&&(a.randomNumberGenerator=ve=new jv),re=ve.random(),ve=ve.random(),b=(b>se?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,ue=(te>ce?1:-1)*(1+(z.height>x.height?z.height:x.height))*ve):(re=re.stiffness*(ve-re.length),b=(se-b)/ve*re,ue=(ce-te)/ve*re),x.forceX+=b,x.forceY+=ue,z.forceX-=b,z.forceY-=ue;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}gl.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},gl.prototype.moveFixedVertex=function(){},gl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},gl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=wo,y.toSpot=wo)}},gl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=vn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,vn.free(x)}x=vn.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()}vn.free(x)},gl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},gl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},gl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},gl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},gl.prototype.electricalFieldX=function(){return 0},gl.prototype.electricalFieldY=function(){return 0},gl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},gl.prototype.gravitationalFieldX=function(){return 0},gl.prototype.gravitationalFieldY=function(){return 0},gl.prototype.isFixed=function(a){return a.isFixed},At.Object.defineProperties(gl.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"&&Rt('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())}}}),gl.className="ForceDirectedLayout";function Kx(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Kx.className="ForceDirectedSubnet";function Tg(a){Qo.call(this,a)}on(Tg,Qo),Tg.prototype.createVertex=function(){return new dm(this)},Tg.prototype.createEdge=function(){return new hm(this)},Tg.className="ForceDirectedNetwork";function dm(a){Is.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}on(dm,Is),At.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){ju.call(this,a),this.j=this.o=NaN}on(hm,ju),At.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 jv(){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()}jv.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},jv.className="RandomNumberGenerator";function Mo(a){ya.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Wv,this.Zk=Kv,this.Qk=Vv,this.bj=4,this.rk=Zv,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 ot,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}on(Mo,ya),Mo.prototype.cloneProtected=function(a){ya.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},Mo.prototype.qb=function(a){a.classType===Mo?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:Rt("Unknown enum value: "+a):ya.prototype.qb.call(this,a)},Mo.prototype.createNetwork=function(){return new pp(this)},Mo.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!==gm&&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===gm&&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,se=0,ue=0;if(b.link!==null){if(re=b.link,re===null)continue;var ce=E.node;if(te=z.node,ce===null||te===null)continue;var ve=re.fromNode;se=re.toNode;for(var Ce=re.fromPort;Ce!==null&&!Ce.Ed();)Ce=Ce.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){ue=ve;var Le=Ce;ve=se,Ce=re,se=ue,re=Le}var Me=E.focus;ue=z.focus;var We=b.rev?z.bounds:E.bounds;Le=ot.alloc(),ce!==ve?We.w()&&ve.isVisible()?ve.actualBounds.w()?(Fh(ve,Ce,Xr,Le),Le.x+=ve.actualBounds.x-We.x,Le.y+=ve.actualBounds.y-We.y):(Fh(ve,Ce,Xr,Le),Le.w()||Le.assign(Me)):Le.assign(Me):We.w()?(Fh(ve,Ce,Xr,Le),Le.w()||Le.assign(Me)):Le.assign(Me),ve=b.rev?E.bounds:z.bounds,ce=ot.alloc(),te!==se?ve.w()&&se.isVisible()?se.actualBounds.w()?(Fh(se,re,Xr,ce),ce.x+=se.actualBounds.x-ve.x,ce.y+=se.actualBounds.y-ve.y):(Fh(se,re,Xr,ce),ce.w()||ce.assign(ue)):ce.assign(ue):ve.w()?(Fh(se,re,Xr,ce),ce.w()||ce.assign(ue)):ce.assign(ue),this.K===90||this.K===270?(te=Math.round((Le.x-Me.x)/this.kc),se=Le.x,re=Math.round((ce.x-ue.x)/this.kc),ue=ce.x):(te=Math.round((Le.y-Me.y)/this.kc),se=Le.y,re=Math.round((ce.y-ue.y)/this.kc),ue=ce.y),ot.free(Le),ot.free(ce),b.portFromColOffset=te,b.portFromPos=se,b.portToColOffset=re,b.portToPos=ue}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Le=E.layer,ce=z.layer,ve=0,We=b.link,We!==null){var ut=We.fromPort,tt=We.toPort;if(ut!==null&&tt!==null){var mt=We.fromNode;if(Ce=We.toNode,mt!==null&&Ce!==null){var xt=_v(this,!0),Pt=_v(this,!1),Mt=this.setsPortSpots?xt:We.computeSpot(!0,ut);Me=this.setsPortSpots?Pt:We.computeSpot(!1,tt);var en=We.isOrthogonal;Mt.$c()&&Mt.Hf(Pt)&&Me.$c()&&Me.Hf(xt)?ve=0:(xt=We.getLinkPoint(mt,ut,Mt,!0,en,Ce,tt,ot.alloc()),Pt=We.getLinkDirection(mt,ut,xt,Mt,!0,en,Ce,tt),ot.free(xt),Mt.ys()||Pt!==Sb(this,b,!0)?this.setsPortSpots&&mt!==null&&mt.ports.count===1&&b.rev&&(ve+=1):ve+=1,Mt=We.getLinkPoint(Ce,tt,Me,!1,en,mt,ut,ot.alloc()),We=We.getLinkDirection(Ce,tt,Mt,Me,!1,en,mt,ut),ot.free(Mt),Me.ys()||We!==Sb(this,b,!1)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&b.rev&&(ve+=2):ve+=2)}}}if(Ce=ve,ve=Ce===1||Ce===3,(Ce=Ce===2||Ce===3)&&(Me=a.createVertex(),Me.node=null,Me.Dj=1,Me.layer=Le,Me.near=E,a.dh(Me),E=a.Zj(E,Me,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=te,E.portToColOffset=0,E.portFromPos=se,E.portToPos=0,E=Me),We=1,ve&&We--,Le-ce>We&&0<Le){for(b.valid=!1,Me=a.createVertex(),Me.node=null,Me.Dj=2,Me.layer=Le-1,a.dh(Me),E=a.Zj(E,Me,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ce?0:te,E.portToColOffset=0,E.portFromPos=Ce?0:se,E.portToPos=0,E=Me,Le--;Le-ce>We&&0<Le;)Me=a.createVertex(),Me.node=null,Me.Dj=3,Me.layer=Le-1,a.dh(Me),E=a.Zj(E,Me,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Me,Le--;E=a.Zj(Me,z,b.link),E.valid=!ve,ve&&(Me.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=ue}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=xf(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),bf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Mo.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}Mo.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},Mo.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 hu(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 uc(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=xf(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,se=b[te],ue=se.near;if(ue!==null&&ue.layer===se.layer)if(se=ue.index,se>te)for(var ce=te+1;ce<se;ce++){var ve=b[ce];ve.near===ue&&ve.Dj===ue.Dj||re++}else for(ce=te-1;ce>se;ce--)ve=b[ce],ve.near===ue&&ve.Dj===ue.Dj||re++;var Ce;if(0<=x)for(se=b[te].sourceEdgesArrayAccess,ue=0;ue<se.length;ue++){var Le=se[ue];if(Le.valid&&Le.fromVertex.layer!==y)for(ve=Le.fromVertex.index,ce=Le.portToPos,Le=Le.portFromPos,Ce=ue+1;Ce<se.length;Ce++){var Me=se[Ce];if(Me.valid&&Me.fromVertex.layer!==y){var We=Me.fromVertex.index,ut=Me.portToPos;Me=Me.portFromPos,ce<ut&&(ve>We||ve===We&&Le>Me)&&re++,ut<ce&&(We>ve||We===ve&&Me>Le)&&re++}}}if(0>=x){for(se=b[te].destinationEdgesArrayAccess,ue=0;ue<se.length;ue++)if(Le=se[ue],Le.valid&&Le.toVertex.layer!==y)for(ve=Le.toVertex.index,ce=Le.portToPos,Le=Le.portFromPos,Ce=ue+1;Ce<se.length;Ce++)Me=se[Ce],Me.valid&&Me.toVertex.layer!==y&&(We=Me.toVertex.index,ut=Me.portToPos,Me=Me.portFromPos,Le<Me&&(ve>We||ve===We&&ce>ut)&&re++,Me<Le&&(We>ve||We===ve&&ut>ce)&&re++)}for(z[te*E+te]=re,se=te+1;se<E;se++){var tt=0,mt=0;if(0<=x){re=b[te].sourceEdgesArrayAccess;var xt=b[se].sourceEdgesArrayAccess;for(ue=0;ue<re.length;ue++)if(Le=re[ue],Le.valid&&Le.fromVertex.layer!==y)for(ve=Le.fromVertex.index,Le=Le.portFromPos,Ce=0;Ce<xt.length;Ce++)Me=xt[Ce],Me.valid&&Me.fromVertex.layer!==y&&(We=Me.fromVertex.index,Me=Me.portFromPos,(ve<We||ve===We&&Le<Me)&&mt++,(We<ve||We===ve&&Me<Le)&&tt++)}if(0>=x){for(re=b[te].destinationEdgesArrayAccess,xt=b[se].destinationEdgesArrayAccess,ue=0;ue<re.length;ue++)if(Le=re[ue],Le.valid&&Le.toVertex.layer!==y)for(ve=Le.toVertex.index,ce=Le.portToPos,Ce=0;Ce<xt.length;Ce++)Me=xt[Ce],Me.valid&&Me.toVertex.layer!==y&&(We=Me.toVertex.index,ut=Me.portToPos,(ve<We||ve===We&&ce<ut)&&mt++,(We<ve||We===ve&&ut<ce)&&tt++)}z[te*E+se]=tt,z[se*E+te]=mt}}return bf(a,y,b),z}Mo.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 Uv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=xf(b,E),te=b.tc[E],re=0,se=0;se<te;se++){var ue=z[se].destinationEdgesArrayAccess;if(ue!==null)for(var ce=0;ce<ue.length;ce++){var ve=ue[ce];if(ve.valid&&ve.toVertex.layer!==E){var Ce=ve.fromVertex.column+ve.portFromColOffset,Le=ve.toVertex.column+ve.portToColOffset;re+=(Math.abs(Ce-Le)+1)*Py(ve)}}}bf(b,E,z),y+=re}return y}Mo.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 Ty(a,y,x){for(var b=xf(a,y),E=a.tc[y],z=[],te=0;te<E;te++){var re=b[te],se=null;0>=x&&(se=re.sourceEdgesArrayAccess);var ue=null;0<=x&&(ue=re.destinationEdgesArrayAccess);var ce=0,ve=0,Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(ce+=Ce.column-1,ve++),se!==null)for(Ce=0;Ce<se.length;Ce++){re=se[Ce];var Le=re.fromVertex;re.valid&&!re.rev&&Le.layer!==y&&(ce+=Le.column,ve++)}if(ue!==null)for(se=0;se<ue.length;se++)re=ue[se],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(ce+=Ce.column,ve++);z[te]=ve===0?-1:ce/ve}return bf(a,y,b),z}function Zx(a,y,x){for(var b=xf(a,y),E=a.tc[y],z=[],te=0;te<E;te++){var re=b[te],se=null;0>=x&&(se=re.sourceEdgesArrayAccess);var ue=null;0<=x&&(ue=re.destinationEdgesArrayAccess);var ce=0,ve=[],Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(ve[ce]=Ce.column-1,ce++),re=void 0,se!==null)for(Ce=0;Ce<se.length;Ce++){re=se[Ce];var Le=re.fromVertex;re.valid&&!re.rev&&Le.layer!==y&&(ve[ce]=Le.column+re.portFromColOffset,ce++)}if(ue!==null)for(se=0;se<ue.length;se++)re=ue[se],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(ve[ce]=Ce.column+re.portToColOffset,ce++);ce===0?z[te]=-1:(ve.sort(function(Me,We){return Me-We}),ue=ce>>1,z[te]=ce&1?ve[ue]:ve[ue-1]+ve[ue]>>1)}return bf(a,y,b),z}function fm(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,se=re.toVertex,ue=y.layer-se.layer;re=a.linkMinLength(re),ue===re&&fm(a,se,x,b,E,z)}if(z)for(te=y.sourceEdges;te.next();)re=te.value,se=re.fromVertex,ue=se.layer-y.layer,re=a.linkMinLength(re),ue===re&&fm(a,se,x,b,E,z)}}function ky(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var te=y.destinationEdges;te.next();)ky(a,te.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)ky(a,y.value.fromVertex,x,b,E,z)}}Mo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ny: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(;k1(a)!==null;){for(E=$x(a);E!==null;)b[x]=E,x--,E.valid=!1,E=$x(a);for(E=Yx(a);E!==null;)b[y]=E,y++,E.valid=!1,E=Yx(a);E=null;for(var z=0,te=this.network.vertexes.iterator;te.next();){var re=te.value;if(re.valid){for(var se=0,ue=re.destinationEdges;ue.next();)ue.value.toVertex.valid&&se++;ue=0;for(var ce=re.sourceEdges;ce.next();)ce.value.fromVertex.valid&&ue++;(E===null||z<se-ue)&&(E=re,z=se-ue)}}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 Wv: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&&Ay(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&Ay(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 gm: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 k1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)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.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)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.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function Ay(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,Ay(a,E))}y.finish=a.Kn,a.Kn++}Mo.prototype.assignLayers=function(){switch(this.Zk){case Iy:Xx(this);break;case My: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 Kv: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,se=te.toVertex;te=a.linkMinLength(te),re.layer-se.layer>te&&fm(a,re,0,-1,!0,!1)}for(fm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,se=null,te=a.network.vertexes.iterator;te.next();){var ue=te.value;if(ue.component===1){var ce=0,ve=!1,Ce=ue.sourceEdgesArrayAccess;E=Ce.length;for(var Le=0;Le<E;Le++){var Me=Ce[Le],We=Me.fromVertex;ce+=1,We.component!==1&&(z+=1,We=We.layer-ue.layer,Me=a.linkMinLength(Me),b=Math.min(b,We-Me))}for(Ce=ue.destinationEdgesArrayAccess,E=Ce.length,Le=0;Le<E;Le++)Me=Ce[Le].toVertex,--ce,Me.component!==1?--z:ve=!0;(se===null||ce<re)&&!ve&&(se=ue,re=ce)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else se.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(fm(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,se=a.network.vertexes.iterator;se.next();)if(te=se.value,te.component===1){for(ue=0,ce=!1,Ce=te.sourceEdgesArrayAccess,ve=Ce.length,Le=0;Le<ve;Le++)Me=Ce[Le].fromVertex,ue+=1,Me.component!==1?b+=1:ce=!0;for(Ce=te.destinationEdgesArrayAccess,ve=Ce.length,Le=0;Le<ve;Le++)Me=Ce[Le],We=Me.toVertex,--ue,We.component!==1&&(--b,We=te.layer-We.layer,Me=a.linkMinLength(Me),E=Math.min(E,We-Me));(re===null||ue>z)&&!ce&&(re=te,z=ue)}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 Sb(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}Mo.prototype.initializeIndices=function(){switch(this.Qk){default:case Ry: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 Vv: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&&Pb(this,x);break;case Oy: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&&Tb(this,x)}};function Pb(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&&Pb(a,b))}function Tb(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&&Tb(a,b))}Mo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=hu(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Gv(this,b,1),bc(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=hu(this)),b=this.Ia;0<=b;b--)Gv(this,b,-1),bc(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=hu(this))}for(uc(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Gv(this,b,0),bc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=hu(this)),b=this.Ia;0<=b;b--)Gv(this,b,0),bc(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=hu(this))}uc(this,y);var z,te,re;switch(this.rk){case Dy: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=bc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=bc(this,b,1)||z;for(E=this.countCrossings(),E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,1)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,-1)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=bc(this,b,0)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,0)||z;E>=a?uc(this,y):(a=E,y=hu(this))}break;default:case Zv: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=bc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=bc(this,b,1)||z;for(E=this.countCrossings(),E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,1)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,-1)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=bc(this,b,0)||z;for(E>=a?uc(this,y):(a=E,y=hu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=bc(this,b,0)||z;E>=a?uc(this,y):(a=E,y=hu(this))}}uc(this,y)};function Gv(a,y,x){var b=xf(a,y),E=a.tc[y],z=Zx(a,y,x),te=Ty(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,se;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,se=z[x],z[x]=z[x+1],z[x+1]=se,se=te[x],te[x]=te[x+1],te[x+1]=se,se=b[x],b[x]=b[x+1],b[x+1]=se);for(x=z=0;x<E;x++)se=b[x],se.index=x,z+=a.nodeMinColumnSpace(se,!0),se.column=z,z+=1,z+=a.nodeMinColumnSpace(se,!1);bf(a,y,b)}function bc(a,y,x){var b=xf(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 se=!1,ue=!0;ue;)for(ue=!1,z=0;z<E-1;z++){var ce=x[b[z].index*E+b[z+1].index],ve=x[b[z+1].index*E+b[z].index],Ce=0,Le=0,Me=b[z].column,We=b[z+1].column,ut=a.nodeMinColumnSpace(b[z],!0),tt=a.nodeMinColumnSpace(b[z],!1),mt=a.nodeMinColumnSpace(b[z+1],!0),xt=a.nodeMinColumnSpace(b[z+1],!1);ut=Me-ut+mt,tt=We-tt+xt;var Pt=b[z].sourceEdges.iterator;for(Pt.reset();Pt.next();)if(mt=Pt.value,xt=mt.fromVertex,mt.valid&&xt.layer===y){for(mt=0;b[mt]!==xt;)mt++;mt<z&&(Ce+=2*(z-mt),Le+=2*(z+1-mt)),mt===z+1&&(Ce+=1),mt>z+1&&(Ce+=4*(mt-z),Le+=4*(mt-(z+1)))}for(Pt=b[z].destinationEdges.iterator,Pt.reset();Pt.next();)if(mt=Pt.value,xt=mt.toVertex,mt.valid&&xt.layer===y){for(mt=0;b[mt]!==xt;)mt++;mt===z+1&&(Le+=1)}for(Pt=b[z+1].sourceEdges.iterator,Pt.reset();Pt.next();)if(mt=Pt.value,xt=mt.fromVertex,mt.valid&&xt.layer===y){for(mt=0;b[mt]!==xt;)mt++;mt<z&&(Ce+=2*(z+1-mt),Le+=2*(z-mt)),mt===z&&(Le+=1),mt>z+1&&(Ce+=4*(mt-(z+1)),Le+=4*(mt-z))}for(Pt=b[z+1].destinationEdges.iterator,Pt.reset();Pt.next();)if(mt=Pt.value,xt=mt.toVertex,mt.valid&&xt.layer===y){for(mt=0;b[mt]!==xt;)mt++;mt===z&&(Ce+=1)}mt=xt=0,Pt=te[b[z].index];var Mt=re[b[z].index],en=te[b[z+1].index],pi=re[b[z+1].index];Pt!==-1&&(xt+=Math.abs(Pt-Me),mt+=Math.abs(Pt-tt)),Mt!==-1&&(xt+=Math.abs(Mt-Me),mt+=Math.abs(Mt-tt)),en!==-1&&(xt+=Math.abs(en-We),mt+=Math.abs(en-ut)),pi!==-1&&(xt+=Math.abs(pi-We),mt+=Math.abs(pi-ut)),(Le<Ce-.5||Le===Ce&&ve<ce-.5||Le===Ce&&ve===ce&&mt<xt-.5)&&(ue=se=!0,b[z].column=tt,b[z+1].column=ut,ce=b[z],b[z]=b[z+1],b[z+1]=ce)}for(z=0;z<E;z++)b[z].index=z;return bf(a,y,b),se}Mo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&D1)!==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=gp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=gp(this,y,-1)||x;x=gp(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&&(Lb(this,-1),Lb(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=gp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=gp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=gp(this,y,0)||x}}else I1(this)};function gp(a,y,x){for(var b=!1;A1(a,y,x);)b=!0;return b}function A1(a,y,x){var b,E=xf(a,y),z=a.tc[y],te=Ty(a,y,-1);if(0<x)for(b=0;b<z;b++)te[b]=-1;var re=Ty(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var se=!1,ue=!0;ue;)for(ue=!1,b=0;b<z;b++){var ce=E[b].column,ve=a.nodeMinColumnSpace(E[b],!0),Ce=a.nodeMinColumnSpace(E[b],!1),Le=0;0>b-1||ce-E[b-1].column-1>ve+a.nodeMinColumnSpace(E[b-1],!1)?Le=ce-1:Le=ce,ve=b+1>=z||E[b+1].column-ce-1>Ce+a.nodeMinColumnSpace(E[b+1],!0)?ce+1:ce;var Me=Ce=0,We=0;if(0>=x)for(var ut=E[b].sourceEdges.iterator;ut.next();){var tt=ut.value,mt=tt.fromVertex;if(tt.valid&&mt.layer!==y){var xt=Py(tt),Pt=tt.portFromColOffset;tt=tt.portToColOffset,mt=mt.column,Ce+=(Math.abs(ce+tt-(mt+Pt))+1)*xt,Me+=(Math.abs(Le+tt-(mt+Pt))+1)*xt,We+=(Math.abs(ve+tt-(mt+Pt))+1)*xt}}if(0<=x)for(ut=E[b].destinationEdges.iterator;ut.next();)tt=ut.value,mt=tt.toVertex,tt.valid&&mt.layer!==y&&(xt=Py(tt),Pt=tt.portFromColOffset,tt=tt.portToColOffset,mt=mt.column,Ce+=(Math.abs(ce+Pt-(mt+tt))+1)*xt,Me+=(Math.abs(Le+Pt-(mt+tt))+1)*xt,We+=(Math.abs(ve+Pt-(mt+tt))+1)*xt);tt=Pt=xt=0,ut=te[E[b].index],mt=re[E[b].index],ut!==-1&&(xt+=Math.abs(ut-ce),Pt+=Math.abs(ut-Le),tt+=Math.abs(ut-ve)),mt!==-1&&(xt+=Math.abs(mt-ce),Pt+=Math.abs(mt-Le),tt+=Math.abs(mt-ve)),Me<Ce||Me===Ce&&Pt<xt?(ue=se=!0,E[b].column=Le):(We<Ce||We===Ce&&tt<xt)&&(ue=se=!0,E[b].column=ve)}return bf(a,y,E),a.normalize(),se}function Ly(a,y,x){var b=xf(a,y),E=a.tc[y],z=Zx(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,se=a.nodeMinColumnSpace(b[x],!0),ue=a.nodeMinColumnSpace(b[x],!1),ce=0;if(te[x]===-1)if(x===0&&x===E-1)ce=re;else if(x===0){var ve=b[x+1].column;ve-re===ue+a.nodeMinColumnSpace(b[x+1],!0)?ce=re-1:ce=re}else x===E-1?(ve=b[x-1].column,ce=re-ve===se+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(ve=b[x-1].column,se=ve+a.nodeMinColumnSpace(b[x-1],!1)+se+1,ve=b[x+1].column,ue=ve-a.nodeMinColumnSpace(b[x+1],!0)-ue-1,ce=(se+ue)/2|0);else x===0&&x===E-1?ce=te[x]:x===0?(ve=b[x+1].column,ue=ve-a.nodeMinColumnSpace(b[x+1],!0)-ue-1,ce=Math.min(te[x],ue)):x===E-1?(ve=b[x-1].column,se=ve+a.nodeMinColumnSpace(b[x-1],!1)+se+1,ce=Math.max(te[x],se)):(ve=b[x-1].column,se=ve+a.nodeMinColumnSpace(b[x-1],!1)+se+1,ve=b[x+1].column,ue=ve-a.nodeMinColumnSpace(b[x+1],!0)-ue-1,se<te[x]&&te[x]<ue?ce=te[x]:se>=te[x]?ce=se:ue<=te[x]&&(ce=ue));ce!==re&&(z=!0,b[x].column=ce)}bf(a,y,b),a.normalize()}function L1(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 N1(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),se=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&se>=y&&(E[b.layer]=!0),re<=x&&se>=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 Lb(a,y){for(var x=0;x<=a.Ra;x++)for(;L1(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;N1(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=hu(a),z=Uv(a);for(b=z+1;z<b;){b=z,Nb(a,x,1);var te=Uv(a);te>z?uc(a,E):te<z&&(z=te,E=hu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=hu(a),z=Uv(a),b=z+1;z<b;)b=z,Nb(a,x,-1),te=Uv(a),te>z?uc(a,E):te<z&&(z=te,E=hu(a));a.normalize()}function Nb(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&&(ky(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)),se=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=se;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(se=te[te.length-1],te.pop(),E[se])for(E[se]=!1,z=0;z<a.le;z++)y[se*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 I1(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 bn,M1(y,x);var z=null,te=null,re=null,se=null,ue=(a.ve&1)!==0,ce=(a.ve&2)!==0,ve=(a.ve&4)!==0,Ce=(a.ve&8)!==0;for(ue&&(a.verticalAlignment(y,x,!0),z=Hv(a,y,!0,!1)),y.reverse(),ve&&(a.verticalAlignment(y,x,!1),re=Hv(a,y,!1,!1)),b=hr(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ce&&(a.verticalAlignment(y,x,!1),se=Hv(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),te=Hv(a,y,!0,!0)),In(y),a.u(z,te,re,se),a.network.vertexes.each(function(Le){var Me=gn();ue&&Me.push(z.get(Le)),ce&&Me.push(te.get(Le)),ve&&Me.push(re.get(Le)),Ce&&Me.push(se.get(Le)),Me.sort(function(ut,tt){return ut-tt});var We=Me.length;We=(Me[Math.floor((We-1)/2)]+Me[Math.ceil((We-1)/2)])/2,In(Me),Le.zc=We})}function M1(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],se=0;z<re.length;se++){var ue=re[se];e:{if(ue.node===null){var ce=By(ue);if(0<ce.length){ce=ce[0].node===null;break e}}ce=!1}var ve=ce;if(se===re.length-1||ve){for(ce=te.length-1,ve&&(ce=By(ue)[0].index);z<=se;){if(ue=re[z],!ue.bo){ve=[];for(var Ce=hr(ue.sourceEdgesArrayAccess),Le=Ce.next();!Le.done;Le=Ce.next())Le=Le.value,Le.valid&&ve.push(Le);ue.bo=ve}for(ue=hr(ue.bo),ve=ue.next();!ve.done;ve=ue.next())ve=ve.value,Ce=ve.fromVertex.index,(Ce<E||Ce>ce)&&y.add(ve);z++}E=ce}}}Mo.prototype.verticalAlignment=function(a,y,x){O1(a),a=hr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=hr(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var te=x?By(z):F1(z),re=te.length;if(0<re){te.sort(function(ve,Ce){return ve.vi-Ce.vi});var se=(re-1)/2;for(re=Math.floor(se),se=Math.ceil(se);re<=se;re++)if(z.align===z){var ue=te[re],ce=void 0;ce=x?$v(ue,z):$v(z,ue),!y.contains(ce)&&E<ue.vi&&(ue.align=z,z.root=ue.root,z.align=ue.root,E=ue.vi)}}}}};function O1(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 Hv(a,y,x,b){for(var E=a.K===90||a.K===270,z=hr(y),te=z.next();!te.done;te=z.next()){var re=hr(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=hr(y),re=z.next();!re.done;re=z.next()){re=hr(re.value);for(var se=re.next();!se.done;se=re.next())if(se=se.value,se.root===se){for(var ue=0,ce=se;ce.align!==se;){var ve=ce.align,Ce=te?ce.width:ce.height,Le=te?ve.width:ve.height;if(x){var Me=$v(ce,ve),We=Me.portFromPos,ut=Me.portToPos;Me.link!==null&&(ce.node&&ce.node!==Me.link.fromNode&&(We=te?ce.focusX:ce.focusY),ve.node&&ve.node!==Me.link.toNode&&(ut=te?ve.focusX:ve.focusY))}else Me=$v(ve,ce),We=Me.portToPos,ut=Me.portFromPos,Me.link!==null&&(ce.node&&ce.node!==Me.link.toNode&&(We=te?ce.focusX:ce.focusY),ve.node&&ve.node!==Me.link.fromNode&&(ut=te?ve.focusX:ve.focusY));Ce=b?ce.qg+(Ce-We)-(Le-ut):ce.qg+We-ut,ve.qg=Ce,ue=Math.min(ue,Ce),ce=ce.align}ce=se;do ce.qg=ce.qg-ue,ce=ce.align;while(ce!==se)}}for(x=hr(y),te=x.next();!te.done;te=x.next())for(z=hr(te.value),te=z.next();!te.done;te=z.next())te=te.value,te.root===te&&Ib(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=Mb(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 ki,y=hr(y),te=y.next();!te.done;te=y.next())for(x=hr(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 Ib(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=Mb(b,x),z=E.root;Ib(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 Mb(a,y){var x=a.Tz;return a=a.vi,1>a&&Rt("Could not determine previous vertex in layer"),y[x][a-1]}Mo.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=R1(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(se){return function(ue){ue.value+=se.delta}}(z)));In(b),In(E)};function R1(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 se=re.key;re=re.value,se=a.K===90||a.K===270?se.width:se.height,re<z&&(z=re),re+se>te&&(te=re+se)}),x[E]=z,b[E]=te,te-z}Mo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=_v(this,!0),y=_v(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 _v(a,y){return a.K===270?y?Ua:gs:a.K===90?y?gs:Ua:a.K===180?y?qa:ws:y?ws:qa}Mo.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 se=a.value,ue=se.layer,ce=se.column|0;b?(te=y.x+this.kc*ce,ue=this.Kd[ue]):(te=this.Kd[ue],ue=y.y+this.kc*ce),se.centerX=te,se.centerY=ue,x&&isFinite(se.zc)&&(b?se.node?se.x=y.x+se.zc:se.centerX=y.x+se.zc:se.node?se.y=y.y+se.zc:se.centerY=y.y+se.zc),z=Math.min(se.x,z),E=Math.min(se.y,E),b?(te=z,re=Math.max(re,se.bounds.right)):(te=E,re=Math.max(re,se.bounds.bottom))}for(this.xw=re-te,z=y.x-z,y=y.y-E,this.Rf=new ot(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Mo.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 vn(0,0,x,Math.abs(this.Ta[0]))):y.push(new vn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new vn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new vn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new vn(0,0,Math.abs(this.Ta[0]),x)):y.push(new vn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new vn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new vn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Mo.prototype.commitLayers=function(){},Mo.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 se=E.findVisibleNode();se!==null&&se!==E&&(E=se,te=se.port)}z!==null&&(se=z.findVisibleNode(),se!==null&&se!==z&&(z=se,re=se.port));var ue=y.computeSpot(!0,te);se=y.computeSpot(!1,re);var ce=x.fromVertex,ve=x.toVertex;if(x.valid)y.curve===Yu&&y.pointsCount===4&&(ce.column===ve.column&&this.alignOption===0?(x=y.getLinkPoint(E,te,ue,!0,!1,z,re),re=y.getLinkPoint(z,re,se,!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&&ue===Da&&(b=!0),re!==null&&se===Da&&(x=!0),(b||x)&&(se=null,b&&(se=y.getLinkPointFromPoint(E,te,te.ga(Xr),y.i(3),!0),se.w()||se.set(E.actualBounds.center),y.L(0,se.x,se.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(Xr),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),se&&(z=y.i(2),y.L(1,(2*se.x+z.x)/3,(2*se.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(ce.layer===ve.layer)y.zf();else{var Ce=!1,Le=!1,Me=this.ie,We=y.firstPickIndex+1;if(y.isOrthogonal){Le=!0;var ut=y.pointsCount;4<ut&&y.points.removeRange(2,ut-3)}else if(y.curve===Yu)Ce=!0,ut=y.pointsCount,4<ut&&y.points.removeRange(2,ut-3),ut===4&&(We=2);else{ut=y.pointsCount;var tt=ue===Da,mt=se===Da;2<ut&&tt&&mt?y.points.removeRange(1,ut-2):3<ut&&tt&&!mt?y.points.removeRange(1,ut-3):3<ut&&!tt&&mt?y.points.removeRange(2,ut-2):4<ut&&!tt&&!mt&&y.points.removeRange(2,ut-3)}if(x.rev){for(;ve!==null&&ce!==ve;){var xt=ut=null;for(tt=ve.sourceEdges.iterator;tt.next()&&(mt=tt.value,mt.link!==x.link||(ut=mt.fromVertex,xt=mt.toVertex,ut.node!==null)););if(ut===null)break;if(ut!==ce){tt=y.i(We-1).x,mt=y.i(We-1).y;var Pt=ut.centerX,Mt=ut.centerY;if(Le)this.K===180||this.K===0?We===y.firstPickIndex+1?(y.m(We++,tt,mt),y.m(We++,tt,Mt)):(xt!==null?xt.centerY:mt)!==Mt&&(xt=this.Ta[ut.layer-1]+this.Rf.x,y.m(We++,xt,mt),y.m(We++,xt,Mt)):We===y.firstPickIndex+1?(y.m(We++,tt,mt),y.m(We++,Pt,mt)):(xt!==null?xt.centerX:tt)!==Pt&&(xt=this.Ta[ut.layer-1]+this.Rf.y,y.m(We++,tt,xt),y.m(We++,Pt,xt));else if(We===y.firstPickIndex+1){xt=Math.max(10,this.he[ve.layer]);var en=Math.max(10,this.Ld[ve.layer]);if(Ce)this.K===180?Pt<=ve.bounds.x?(ve=ve.bounds.x,y.m(We++,ve-xt,Mt),y.m(We++,ve,Mt),y.m(We++,ve+en,Mt)):(y.m(We++,Pt-xt,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt+en,Mt)):this.K===90?Mt>=ve.bounds.bottom?(ve=ve.bounds.y+ve.bounds.height,y.m(We++,Pt,ve+en),y.m(We++,Pt,ve),y.m(We++,Pt,ve-xt)):(y.m(We++,Pt,Mt+en),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt-xt)):this.K===270?Mt<=ve.bounds.y?(ve=ve.bounds.y,y.m(We++,Pt,ve-xt),y.m(We++,Pt,ve),y.m(We++,Pt,ve+en)):(y.m(We++,Pt,Mt-xt),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt+en)):this.K===0&&(Pt>=ve.bounds.right?(ve=ve.bounds.x+ve.bounds.width,y.m(We++,ve+en,Mt),y.m(We++,ve,Mt),y.m(We++,ve-xt,Mt)):(y.m(We++,Pt+en,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt-xt,Mt)));else{y.m(We++,tt,mt);var pi=0;this.K===180||this.K===0?((this.K===180?Pt>=ve.bounds.right:Pt<=ve.bounds.x)&&(pi=(this.K===0?-xt:en)/2),y.m(We++,tt+pi,Mt)):((this.K===270?Mt>=ve.bounds.bottom:Mt<=ve.bounds.y)&&(pi=(this.K===90?-xt:en)/2),y.m(We++,Pt,mt+pi)),y.m(We++,Pt,Mt)}}else xt=Math.max(10,this.he[ut.layer]),en=Math.max(10,this.Ld[ut.layer]),Ce?this.K===180?(y.m(We++,Pt-xt-Me,Mt),y.m(We++,Math.min(Pt-xt+Me/2,Pt),Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Math.max(Pt+en-Me/2,Pt),Mt),y.m(We++,Pt+en+Me,Mt)):this.K===90?(y.m(We++,Pt,Mt+en+Me),y.m(We++,Pt,Math.max(Mt+en-Me/2,Mt)),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Math.min(Mt-xt+Me/2,Mt)),y.m(We++,Pt,Mt-xt-Me)):this.K===270?(y.m(We++,Pt,Mt-xt-Me),y.m(We++,Pt,Math.min(Mt-xt+Me/2,Mt)),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Math.max(Mt+en-Me/2,Mt)),y.m(We++,Pt,Mt+en+Me)):(y.m(We++,Pt+en+Me,Mt),y.m(We++,Math.max(Pt+en-Me/2,Pt),Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Math.min(Pt-xt+Me/2,Pt),Mt),y.m(We++,Pt-xt-Me,Mt)):y.m(We++,Pt,Mt)}ve=ut}(re===null||ue!==Da||Le)&&(tt=y.i(We-1).x,mt=y.i(We-1).y,Pt=y.i(We).x,Mt=y.i(We).y,Le?(Me=this.Ld[ce.layer],this.K===180||this.K===0?(Le=mt,Le>=ce.bounds.y&&Le<=ce.bounds.bottom&&(this.K===180?Pt>=ce.bounds.x:Pt<=ce.bounds.right)&&(ve=ce.centerX+(this.K===180?-Me:Me),Le<ce.bounds.y+ce.bounds.height/2?Le=ce.bounds.y-this.kc/2:Le=ce.bounds.bottom+this.kc/2,y.m(We++,ve,mt),y.m(We++,ve,Le)),y.m(We++,Pt,Le)):(Le=tt,Le>=ce.bounds.x&&Le<=ce.bounds.right&&(this.K===270?Mt>=ce.bounds.y:Mt<=ce.bounds.bottom)&&(ve=ce.centerY+(this.K===270?-Me:Me),Le<ce.bounds.x+ce.bounds.width/2?Le=ce.bounds.x-this.kc/2:Le=ce.bounds.right+this.kc/2,y.m(We++,tt,ve),y.m(We++,Le,ve)),y.m(We++,Le,Mt)),y.m(We++,Pt,Mt)):Ce?(xt=Math.max(10,this.he[ce.layer]),en=Math.max(10,this.Ld[ce.layer]),this.K===180&&Pt>=ce.bounds.x?(ve=ce.bounds.x+ce.bounds.width,y.L(We-2,ve,mt),y.L(We-1,ve+en,mt)):this.K===90&&Mt<=ce.bounds.bottom?(ve=ce.bounds.y,y.L(We-2,tt,ve),y.L(We-1,tt,ve-xt)):this.K===270&&Mt>=ce.bounds.y?(ve=ce.bounds.y+ce.bounds.height,y.L(We-2,tt,ve),y.L(We-1,tt,ve+en)):this.K===0&&Pt<=ce.bounds.right&&(ve=ce.bounds.x,y.L(We-2,ve,mt),y.L(We-1,ve-xt,mt))):(xt=Math.max(10,this.he[ce.layer]),en=Math.max(10,this.Ld[ce.layer]),Le=0,this.K===180||this.K===0?((this.K===180?Pt<=ce.bounds.x:Pt>=ce.bounds.right)&&(Le=(this.K===0?en:-xt)/2),y.m(We++,Pt+Le,mt)):((this.K===270?Mt<=ce.bounds.y:Mt>=ce.bounds.bottom)&&(Le=(this.K===90?en:-xt)/2),y.m(We++,tt,Mt+Le)),y.m(We++,Pt,Mt)))}else{for(;ce!==null&&ce!==ve;){for(xt=ut=null,ce=ce.destinationEdges.iterator;ce.next()&&(tt=ce.value,tt.link!==x.link||(ut=tt.toVertex,xt=tt.fromVertex,xt.node!==null&&(xt=null),ut.node!==null)););if(ut===null)break;ut!==ve&&(tt=y.i(We-1).x,mt=y.i(We-1).y,Pt=ut.centerX,Mt=ut.centerY,Le?this.K===180||this.K===0?(xt!==null?xt.centerY:mt)!==Mt&&(xt=this.Ta[ut.layer]+this.Rf.x,We===y.firstPickIndex+1&&(xt=this.K===0?Math.max(xt,tt):Math.min(xt,tt)),y.m(We++,xt,mt),y.m(We++,xt,Mt)):(xt!==null?xt.centerX:tt)!==Pt&&(xt=this.Ta[ut.layer]+this.Rf.y,We===y.firstPickIndex+1&&(xt=this.K===90?Math.max(xt,mt):Math.min(xt,mt)),y.m(We++,tt,xt),y.m(We++,Pt,xt)):(xt=Math.max(10,this.he[ut.layer]),en=Math.max(10,this.Ld[ut.layer]),Ce?this.K===180?(y.m(We++,Pt+en+Me,Mt),y.m(We++,Math.max(Pt+en-Me/2,Pt),Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Math.min(Pt-xt+Me/2,Pt),Mt),y.m(We++,Pt-xt-Me,Mt)):this.K===90?(y.m(We++,Pt,Mt-xt-Me),y.m(We++,Pt,Math.min(Mt-xt+Me/2,Mt)),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Math.max(Mt+en-Me/2,Mt)),y.m(We++,Pt,Mt+en+Me)):this.K===270?(y.m(We++,Pt,Mt+en+Me),y.m(We++,Pt,Math.max(Mt+en-Me/2,Mt)),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Math.min(Mt-xt+Me/2,Mt)),y.m(We++,Pt,Mt-xt-Me)):(y.m(We++,Pt-xt-Me,Mt),y.m(We++,Math.min(Pt-xt+Me/2,Pt),Mt),y.m(We++,Pt,Mt),y.m(We++,Pt,Mt),y.m(We++,Math.max(Pt+en-Me/2,Pt),Mt),y.m(We++,Pt+en+Me,Mt)):this.K===180?(y.m(We++,Pt+en,Mt),y.m(We++,Pt-xt,Mt)):this.K===90?(y.m(We++,Pt,Mt-xt),y.m(We++,Pt,Mt+en)):this.K===270?(y.m(We++,Pt,Mt+en),y.m(We++,Pt,Mt-xt)):(y.m(We++,Pt-xt,Mt),y.m(We++,Pt+en,Mt)))),ce=ut}Le&&(tt=y.i(We-1).x,mt=y.i(We-1).y,Pt=y.i(We).x,Mt=y.i(We).y,this.K===180||this.K===0?mt!==Mt&&(xt=this.K===0?Math.min(Math.max((Pt+tt)/2,this.Ta[ve.layer]+this.Rf.x),Pt):Math.max(Math.min((Pt+tt)/2,this.Ta[ve.layer]+this.Rf.x),Pt),y.m(We++,xt,mt),y.m(We++,xt,Mt)):tt!==Pt&&(xt=this.K===90?Math.min(Math.max((Mt+mt)/2,this.Ta[ve.layer]+this.Rf.y),Mt):Math.max(Math.min((Mt+mt)/2,this.Ta[ve.layer]+this.Rf.y),Mt),y.m(We++,tt,xt),y.m(We++,Pt,xt)))}b!==null&&Ce&&4<=y.pointsCount&&(te!==null&&(te=ue===Da?y.getLinkPointFromPoint(E,te,te.ga(Xr),y.i(3),!0):y.i(0),ue===Da&&(ue=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(te.x+ue.x)/2,ue.y),y.L(2,b.x,(ue.y+b.y)/2)):(y.L(1,ue.x,(te.y+ue.y)/2),y.L(2,(ue.x+b.x)/2,b.y))),te.w()||te.set(E.actualBounds.center),y.L(0,te.x,te.y)),re!==null&&(E=se===Da?y.getLinkPointFromPoint(z,re,re.ga(Xr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===Da&&(re=y.i(y.pointsCount-3),se=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,se.x,(re.y+se.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+se.x)/2,se.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Mo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new ln,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 wf;re.layer=Math.floor(z.y/2);var se=b.i(0),ue=b.i(b.pointsCount-1);if(re.first=se.x*se.x+se.y,re.jc=ue.x*ue.x+ue.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){se=b.i(E-1),ue=b.i(E+2);var ce=0;se.y<z.y?ce=ue.y<z.y?3:z.x<te.x?2:1:se.y>z.y&&(ce=ue.y>z.y?0:te.x<z.x?2:1),re.j=ce}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),ce=1,re=x[z].jc,se=z;se<E;se++)ue=x[se],ue.jc!==re&&(ce++,re=ue.jc);this.zi(x,this.Ux,z,z+te);var ve=1;for(re=x[z].first,se=z;se<E;se++)ue=x[se],ue.first!==re&&(ve++,re=ue.first);for(se=!0,ue=ve,ce<ve?(se=!1,ue=ce,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,ce=0,ve=z;ve<E;ve++){var Ce=x[ve];(se?Ce.first:Ce.jc)!==re&&(ce++,re=se?Ce.first:Ce.jc);var Le=Ce.link;z=Le.i(Ce.index),te=Le.i(Ce.index+1);var Me=this.linkSpacing*(ce-(ue-1)/2);y++,Le.uh(),Le.L(Ce.index,z.x,z.y+Me),Le.L(Ce.index+1,te.x,te.y+Me),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 wf,re.layer=Math.floor(z.x/2),se=b.i(0),ue=b.i(b.pointsCount-1),re.first=se.x+se.y*se.y,re.jc=ue.x+ue.y*ue.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&&(se=b.i(E-1),ue=b.i(E+2),ce=0,se.x<z.x?ce=ue.x<z.x?3:z.y<te.y?2:1:se.x>z.x&&(ce=ue.x>z.x?0:te.y<z.y?2:1),re.j=ce),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),ce=1,re=x[z].jc,se=z;se<E;se++)ue=x[se],ue.jc!==re&&(ce++,re=ue.jc);for(this.zi(x,this.Ux,z,z+te),ve=1,re=x[z].first,se=z;se<E;se++)ue=x[se],ue.first!==re&&(ve++,re=ue.first);for(se=!0,ue=ve,ce<ve?(se=!1,ue=ce,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,ce=0,ve=z;ve<E;ve++)Ce=x[ve],(se?Ce.first:Ce.jc)!==re&&(ce++,re=se?Ce.first:Ce.jc),Le=Ce.link,z=Le.i(Ce.index),te=Le.i(Ce.index+1),Me=this.linkSpacing*(ce-(ue-1)/2),y++,Le.uh(),Le.L(Ce.index,z.x+Me,z.y),Le.L(Ce.index+1,te.x+Me,te.y),Le.zf()}z=E}a=b}}}},De=Mo.prototype,De.Vx=function(a,y){return a instanceof wf&&y instanceof wf&&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},De.Ux=function(a,y){return a instanceof wf&&y instanceof wf&&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},De.Js=function(a,y){return a instanceof wf&&y instanceof wf&&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},De.B=function(a,y){return a-=y,-1<a&&1>a},De.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Rt("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 xf(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 bf(a,y,x){a.He[a.tc[y]]=x}At.Object.defineProperties(Mo.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()):Rt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Ny&&a!==Wv&&a!==gm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Kv&&a!==Iy&&a!==My||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Vv&&a!==Oy&&a!==Ry||(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!==Dy&&a!==Zv&&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 Wv=new Ht(Mo,"CycleDepthFirst",0),Ny=new Ht(Mo,"CycleGreedy",1),gm=new Ht(Mo,"CycleFromLayers",2),Kv=new Ht(Mo,"LayerOptimalLinkLength",0),Iy=new Ht(Mo,"LayerLongestPathSink",1),My=new Ht(Mo,"LayerLongestPathSource",2),Vv=new Ht(Mo,"InitDepthFirstOut",0),Oy=new Ht(Mo,"InitDepthFirstIn",1),Ry=new Ht(Mo,"InitNaive",2),Dy=new Ht(Mo,"AggressiveNone",0),Zv=new Ht(Mo,"AggressiveLess",1),Fy=new Ht(Mo,"AggressiveMore",2),D1=8;Mo.className="LayeredDigraphLayout",Mo.CycleDepthFirst=Wv,Mo.CycleGreedy=Ny,Mo.CycleFromLayers=gm,Mo.LayerOptimalLinkLength=Kv,Mo.LayerLongestPathSink=Iy,Mo.LayerLongestPathSource=My,Mo.InitDepthFirstOut=Vv,Mo.InitDepthFirstIn=Oy,Mo.InitNaive=Ry,Mo.AggressiveNone=Dy,Mo.AggressiveLess=Zv,Mo.AggressiveMore=Fy,Mo.PackNone=0,Mo.PackExpand=1,Mo.PackStraighten=2,Mo.PackMedian=4,Mo.PackAll=15,Mo.AlignNone=0,Mo.AlignUpperLeft=1,Mo.AlignUpperRight=2,Mo.AlignLowerLeft=4,Mo.AlignLowerRight=8,Mo.AlignAll=15;function wf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}wf.className="SegInfo";function pp(a){Qo.call(this,a)}on(pp,Qo),pp.prototype.createVertex=function(){return new cc(this)},pp.prototype.createEdge=function(){return new pm(this)},pp.className="LayeredDigraphNetwork";function cc(a){Is.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}on(cc,Is);function Ob(a,y){return a.index-y.index}function $v(a,y){if(!a.$n){for(var x=[],b=hr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=hr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Rt("Unable to find destination edge to given vertex")}function By(a){if(!a.co){for(var y=[],x=hr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(Ob),a.co=y}return a.co}function F1(a){if(!a.ao){for(var y=[],x=hr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(Ob),a.ao=y}return a.ao}cc.prototype.Cl=function(a){Is.prototype.Cl.call(this,a),this.bo=this.co=null},cc.prototype.Kl=function(a){Is.prototype.Kl.call(this,a),this.bo=this.co=null},cc.prototype.zl=function(a){Is.prototype.zl.call(this,a),this.$n=this.ao=null},cc.prototype.Jl=function(a){Is.prototype.Jl.call(this,a),this.$n=this.ao=null},At.Object.defineProperties(cc.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)}}}),cc.prototype.deleteDestinationEdge=cc.prototype.Jl,cc.prototype.addDestinationEdge=cc.prototype.zl,cc.prototype.deleteSourceEdge=cc.prototype.Kl,cc.prototype.addSourceEdge=cc.prototype.Cl,cc.className="LayeredDigraphVertex";function pm(a){ju.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}on(pm,ju),At.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 zr(a){ya.call(this),this.Ub=new bn,this.Wn=Jv,this.ud=Hd,this.vo=e0,this.Bq=$y,this.$v=[],this.td=!0,this.Rb=t0,this.$d=new ai(10,10).freeze();var y=new Ng(this);this.W=new wc(y),this.Y=new wc(y),this.ru=[],a&&Object.assign(this,a)}on(zr,ya),zr.prototype.cloneProtected=function(a){ya.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)},zr.prototype.qb=function(a){a.classType===zr?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:Rt("Unknown enum value: "+a):ya.prototype.qb.call(this,a)},zr.prototype.createNetwork=function(){return new Ng(this)},zr.prototype.makeNetwork=function(a){function y(b){if(b instanceof Si)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof ri){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 Qt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Sr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},zr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==n0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Qt&&(y=a),this.path===Jv&&y!==null?this.ud=y.isTreePathToChildren?Hd:Ag:this.ud=this.path===Jv?Hd: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 bn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Si?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof wc&&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,zy(this,y));for(y=this.network.vertexes,a=null;a=B1(y),0<a.count;)y=Rb(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,zy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&Hb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&_b(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&Wb(this,y);if(this.Cu(),this.layerStyle===i0){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===Yy)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 wc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new bn,this.isValidLayout=!0};function B1(a){var y=new bn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}zr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Hd:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ag:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Rt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=Rb(this,a),a!==null&&this.Ub.add(a))};function Rb(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Hd:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Ag:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Rt("Unhandled path value "+a.ud.toString())}}return b}function zy(a,y){if(y!==null){switch(a.ud){case Hd:if(0<y.destinationEdges.count){for(var x=new ln,b=y.destinationVertexes;b.next();){var E=b.value;Ub(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Ag:if(0<y.sourceEdges.count){for(x=new ln,b=y.sourceVertexes;b.next();)E=b.value,Ub(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Rt("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++)zy(a,x[y])}}function Ub(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}zr.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 Hb(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Kd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,te=z.length,re=0;re<te;re++){var se=z[re];Hb(a,se),x+=se.descendantCount+1,b=Math.max(b,se.maxChildrenCount),E=Math.max(E,se.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function z1(a,y){switch(a.vo){default:case e0: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 Ky: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}}zr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(z1(this,a)),a.parent!==null&&a.parent.alignment===Kd){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 _b(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)_b(a,y[b])}}zr.prototype.assignTreeVertexValues=function(){};function Wb(a,y){if(y!==null){y.alignment!==Kd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)Wb(a,y[b])}}zr.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:Rt("Unhandled sorting value "+a.sorting.toString())}},zr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},zr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Ef(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,te=0,re=0,se=a.commentSpacing;if(a.node!==null)for(var ue=a.node.Mu();ue.next();){var ce=ue.value;ce.category==="Comment"&&ce.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ce),ce.Va(),ce=ce.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ce.width),te+=ce.height+Math.abs(re)):(z+=ce.width+Math.abs(re),te=Math.max(te,ce.height)),re=se)}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=vn.allocAt(0,0,a.bounds.width+z,a.bounds.height+te),a.bounds=E,vn.free(E))};function Ef(a){return a===Hh||a===Kd||a===_h||a===ch}function mm(a){return a===Hh||a===Kd}function jy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Ef(x)){if(mm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===_h)return!0}}return!1}zr.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=Ef(z)),b=b===90||b===270,x=E===90||E===270;for(var te=a.childrenCount===0,re=jy(a),se=0,ue=a.comments,ce=ue.length,ve=ot.alloc(),Ce=0;Ce<ce;Ce++){var Le=ue[Ce],Me=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-Me.width,a.bounds.y+se),Le.move(ve),Le=Le.Sd();Le.next();){var We=Le.value;We.fromSpot=qa,We.toSpot=ws}else for(ve.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+se),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=ws,We.toSpot=qa;else if(0<=a.commentMargin)for(ve.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+se),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=ws,We.toSpot=qa;else for(ve.h(a.bounds.x+a.commentMargin-Me.width,a.bounds.y+se),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=qa,We.toSpot=ws;se=0<=a.commentSpacing?se+(Me.height+a.commentSpacing):se+(a.commentSpacing-Me.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(ve.h(a.bounds.x+se,a.bounds.y-a.commentMargin-Me.height),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=Ua,We.toSpot=gs;else for(ve.h(a.bounds.x+se,a.bounds.y+2*a.focus.y-a.commentMargin),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=gs,We.toSpot=Ua;else if(0<=a.commentMargin)for(ve.h(a.bounds.x+se,a.bounds.y+2*a.focus.y+a.commentMargin),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=gs,We.toSpot=Ua;else for(ve.h(a.bounds.x+se,a.bounds.y+a.commentMargin-Me.height),Le.move(ve),Le=Le.Sd();Le.next();)We=Le.value,We.fromSpot=Ua,We.toSpot=gs;se=0<=a.commentSpacing?se+(Me.width+a.commentSpacing):se+(a.commentSpacing-Me.width)}}if(ot.free(ve),y=se-a.commentSpacing-(b?y.height:y.width),this.ud===Hd)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)}},zr.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 qv:Kb(this,a);break;case xm:if(a.alignment===Kd)Kb(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Ef(x)),b=jy(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=_c(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 se=a.alignment;b=se===_d;var ue=se===Wd,ce=Ef(se),ve=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ce=a.nodeSpacing,Le=this.computeNodeIndent(a),Me=a.rowSpacing,We=0;(b||ue||a.hm||a.im&&a.maxGenerationCount===1)&&(We=Math.max(0,a.rowIndent)),b=a.width;var ut=a.height,tt=0,mt=0,xt=0,Pt=null,Mt=null,en=0,pi=0,Ai=0,Ei=0,ii=0,Un=0,vr=0,ar=0;if(ce&&!mm(se)&&135<E&&te.reverse(),mm(se))if(1<re)for(var So=0;So<re;So++)So%2===0&&So!==re-1&&(ar=Math.max(ar,y?te[So].Da.width:te[So].Da.height));else re===1&&(ar=y?te[0].Da.width:te[0].Da.height);if(ce){switch(se){case Hh:mt=135>E?Vb(this,a,te,ar,tt,mt):Zb(this,a,te,ar,tt,mt),ar=mt.x,tt=mt.width,mt=mt.height;break;case _h:for(Pt=0;Pt<re;Pt++)Mt=te[Pt],ve=Mt.Da,xt=Un===0?0:Me,y?(Mt.S.h(z-ve.width,Ei+xt),tt=Math.max(tt,ve.width),mt=Math.max(mt,Ei+xt+ve.height),Ei+=xt+ve.height):(Mt.S.h(Ai+xt,z-ve.height),tt=Math.max(tt,Ai+xt+ve.width),mt=Math.max(mt,ve.height),Ai+=xt+ve.width),Un++;break;case ch:for(Pt=0;Pt<re;Pt++)Mt=te[Pt],z=Mt.Da,ve=Un===0?0:Me,y?(Mt.S.h(Ce/2+a.focus.x,Ei+ve),tt=Math.max(tt,z.width),mt=Math.max(mt,Ei+ve+z.height),Ei+=ve+z.height):(Mt.S.h(Ai+ve,Ce/2+a.focus.y),tt=Math.max(tt,Ai+ve+z.width),mt=Math.max(mt,z.height),Ai+=ve+z.width),Un++}Pt=Tu(this,2),Mt=Tu(this,2),y?(Pt[0].h(0,0),Pt[1].h(0,mt),Mt[0].h(tt,0)):(Pt[0].h(0,0),Pt[1].h(tt,0),Mt[0].h(0,mt)),Mt[1].h(tt,mt)}else for(So=0;So<re;So++){var $o=te[So],_s=$o.Da;if(y){0<ve&&0<Un&&Ai+Ce+_s.width>ve&&(Ai<z&&ng(a,se,z-Ai,0,vr,So-1),ii++,Un=0,vr=So,xt=mt,Ai=0,Ei=135<E?-mt-Me:mt+Me),Xv(this,$o,0,Ei);var Qs=0;if(Un===0)Pt=$o.Yo,Mt=$o.kp,en=_s.width,pi=_s.height,(Pt===null||Mt===null||E!==_c($o))&&(Pt=Tu(this,2),Mt=Tu(this,2),Pt[0].h(0,0),Pt[1].h(0,pi),Mt[0].h(en,0),Mt[1].h(en,pi));else{var Al=gn();pi=$b(this,a,$o,Pt,Mt,en,pi,Al),Qs=pi.x,Pt=Al[0],Mt=Al[1],en=pi.width,pi=pi.height,In(Al),Ai<_s.width&&0>Qs&&(kg(a,-Qs,0,vr,So-1),Qv(Pt,-Qs,0),Qv(Mt,-Qs,0),Qs=0)}$o.S.h(Qs,Ei),tt=Math.max(tt,en),mt=Math.max(mt,xt+(ii===0?0:Me)+_s.height),Ai=en}else 0<ve&&0<Un&&Ei+Ce+_s.height>ve&&(Ei<z&&ng(a,se,0,z-Ei,vr,So-1),ii++,Un=0,vr=So,xt=tt,Ei=0,Ai=135<E?-tt-Me:tt+Me),Xv(this,$o,Ai,0),Qs=0,Un===0?(Pt=$o.Yo,Mt=$o.kp,en=_s.width,pi=_s.height,(Pt===null||Mt===null||E!==_c($o))&&(Pt=Tu(this,2),Mt=Tu(this,2),Pt[0].h(0,0),Pt[1].h(en,0),Mt[0].h(0,pi),Mt[1].h(en,pi))):(Al=gn(),pi=$b(this,a,$o,Pt,Mt,en,pi,Al),Qs=pi.x,Pt=Al[0],Mt=Al[1],en=pi.width,pi=pi.height,In(Al),Ei<_s.height&&0>Qs&&(kg(a,0,-Qs,vr,So-1),Qv(Pt,0,-Qs),Qv(Mt,0,-Qs),Qs=0)),$o.S.h(Ai,Qs),mt=Math.max(mt,pi),tt=Math.max(tt,xt+(ii===0?0:Me)+_s.width),Ei=pi;Un++}switch(0<ii&&(y?(mt+=Math.max(0,x),Ai<tt&&ng(a,se,tt-Ai,0,vr,re-1),0<We&&(ue||kg(a,We,0,0,re-1),tt+=We)):(tt+=Math.max(0,x),Ei<mt&&ng(a,se,0,mt-Ei,vr,re-1),0<We&&(ue||kg(a,0,We,0,re-1),mt+=We))),We=ue=0,se){case vp:y?ue+=tt/2-a.focus.x-Le/2:We+=mt/2-a.focus.y-Le/2;break;case Lg:0<ii?y?ue+=tt/2-a.focus.x-Le/2:We+=mt/2-a.focus.y-Le/2:y?(ar=te[0].S.x+te[0].la.x,ue+=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,We+=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 _d:y?(ue-=Le,tt+=Le):(We-=Le,mt+=Le);break;case Wd:y?(ue+=tt-a.width+Le,tt+=Le):(We+=mt-a.height+Le,mt+=Le);break;case Hh:y?1<re?ue+=ar+Ce/2-a.focus.x:ue+=te[0].focus.x-a.focus.x+te[0].la.x:1<re?We+=ar+Ce/2-a.focus.y:We+=te[0].focus.y-a.focus.y+te[0].la.y;break;case _h:y?ue+=tt+Ce/2-a.focus.x:We+=mt+Ce/2-a.focus.y;break;case ch:break;default:mt=this.customAlignment(a,ue,We,tt,mt),ue=mt[0],We=mt[1],tt=mt[2],mt=mt[3]}for(Le=0;Le<re;Le++)ar=te[Le],y?ar.S.h(ar.S.x+ar.la.x-ue,ar.S.y+(135<E?(ce?-mt:-ar.Da.height)+ar.la.y-x:ut+x+ar.la.y)):ar.S.h(ar.S.x+(135<E?(ce?-tt:-ar.Da.width)+ar.la.x-x:b+x+ar.la.x),ar.S.y+ar.la.y-We);if(re=te=0,ce?y?(tt=Uy(a,tt,ue),0>ue&&(ue=0),135<E&&(We+=mt+x),mt+=ut+x,se===ch&&(te+=Ce/2+a.focus.x),re+=ut+x):(135<E&&(ue+=tt+x),tt+=b+x,mt=Gy(a,mt,We),0>We&&(We=0),se===ch&&(re+=Ce/2+a.focus.y),te+=b+x):y?(a.comments===null?b>tt&&(tt=Hy(se,b-tt,0),te=tt.x,re=tt.y,tt=b,ue=0):tt=Uy(a,tt,ue),0>ue&&(te-=ue,ue=0),135<E&&(We+=mt+x),mt=Math.max(Math.max(mt,ut),mt+ut+x),re+=ut+x):(135<E&&(ue+=tt+x),tt=Math.max(Math.max(tt,b),tt+b+x),a.comments===null?ut>mt&&(mt=Hy(se,0,ut-mt),te=mt.x,re=mt.y,mt=ut,We=0):mt=Gy(a,mt,We),0>We&&(re-=We,We=0),te+=b+x),0<ii)E=Tu(this,4),ii=Tu(this,4),y?(E[2].h(0,ut+x),E[3].h(E[2].x,mt),ii[2].h(tt,E[2].y),ii[3].h(ii[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(tt,E[2].y),ii[2].h(E[2].x,mt),ii[3].h(E[3].x,ii[2].y));else{for(E=Tu(this,Pt.length+2),ii=Tu(this,Mt.length+2),se=0;se<Pt.length;se++)ce=Pt[se],E[se+2].h(ce.x+te,ce.y+re);for(se=0;se<Mt.length;se++)ce=Mt[se],ii[se+2].h(ce.x+te,ce.y+re)}y?(E[0].h(ue,0),E[1].h(E[0].x,ut),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])),ii[0].h(ue+b,0),ii[1].h(ii[0].x,ut),ii[2].y<ii[1].y&&(ii[2].x<ii[0].x?ii[2].assign(ii[1]):ii[1].assign(ii[2])),ii[3].y<ii[2].y&&(ii[3].x<ii[0].x?ii[3].assign(ii[2]):ii[2].assign(ii[3])),E[2].y-=x/2,ii[2].y-=x/2):(E[0].h(0,We),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])),ii[0].h(0,We+ut),ii[1].h(b,ii[0].y),ii[2].x<ii[1].x&&(ii[2].y<ii[0].y?ii[2].assign(ii[1]):ii[1].assign(ii[2])),ii[3].x<ii[2].x&&(ii[3].y<ii[0].y?ii[3].assign(ii[2]):ii[2].assign(ii[3])),E[2].x-=x/2,ii[2].x-=x/2),id(this,Pt),id(this,Mt),a.Yo=E,a.kp=ii,a.la.h(ue,We),a.Da.h(tt,mt)}break;default:Rt("Unhandled compaction value "+a.compaction.toString())}}};function Kb(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Ef(x));var E=jy(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=_c(y),x=b===90||b===270;var z=0;E=y.children;for(var te=E.length,re=0;re<te;re++){var se=E[re];z=Math.max(z,x?se.Da.width:se.Da.height)}var ue=y.alignment,ce=ue===_d,ve=ue===Wd;re=Ef(ue);var Ce=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Le=y.nodeSpacing,Me=a.computeNodeIndent(y),We=ce||ve?0:Me/2,ut=y.rowSpacing,tt=0;(ce||ve||y.hm||y.im&&y.maxGenerationCount===1)&&(tt=Math.max(0,y.rowIndent)),ce=y.width;var mt=y.height,xt=0,Pt=0,Mt=0,en=0,pi=0,Ai=0,Ei=0,ii=0,Un=0,vr=0;if(re&&!mm(ue)&&135<b&&E.reverse(),mm(ue))if(1<te)for(var ar=0;ar<te;ar++){var So=E[ar],$o=So.Da;ar%2===0&&ar!==te-1?Un=Math.max(Un,(x?$o.width:$o.height)+a.computeBusNodeSpacing(So)-Le):ar%2!==0&&(vr=Math.max(vr,(x?$o.width:$o.height)+a.computeBusNodeSpacing(So)-Le))}else te===1&&(Un=x?E[0].Da.width:E[0].Da.height);if(re)switch(ue){case Hh:case Kd:Pt=135>b?Vb(a,y,E,Un,xt,Pt):Zb(a,y,E,Un,xt,Pt),Un=Pt.x,xt=Pt.width,Pt=Pt.height;break;case _h:for(Ce=0;Ce<te;Ce++)We=E[Ce],Mt=We.Da,vr=Ei===0?0:ut,x?(We.S.h(z-Mt.width,pi+vr),xt=Math.max(xt,Mt.width),Pt=Math.max(Pt,pi+vr+Mt.height),pi+=vr+Mt.height):(We.S.h(en+vr,z-Mt.height),xt=Math.max(xt,en+vr+Mt.width),Pt=Math.max(Pt,Mt.height),en+=vr+Mt.width),Ei++;break;case ch:for(z=0;z<te;z++)Ce=E[z],We=Ce.Da,Mt=Ei===0?0:ut,x?(Ce.S.h(Le/2+y.focus.x,pi+Mt),xt=Math.max(xt,We.width),Pt=Math.max(Pt,pi+Mt+We.height),pi+=Mt+We.height):(Ce.S.h(en+Mt,Le/2+y.focus.y),xt=Math.max(xt,en+Mt+We.width),Pt=Math.max(Pt,We.height),en+=Mt+We.width),Ei++}else for(vr=0;vr<te;vr++)ar=E[vr],So=ar.Da,x?(0<Ce&&0<Ei&&en+Le+So.width>Ce&&(en<z&&ng(y,ue,z-en,0,ii,vr-1),Ai++,Ei=0,ii=vr,Mt=Pt,en=0,pi=135<b?-Pt-ut:Pt+ut),$o=Ei===0?We:Le,Xv(a,ar,0,pi),ar.S.h(en+$o,pi),xt=Math.max(xt,en+$o+So.width),Pt=Math.max(Pt,Mt+(Ai===0?0:ut)+So.height),en+=$o+So.width):(0<Ce&&0<Ei&&pi+Le+So.height>Ce&&(pi<z&&ng(y,ue,0,z-pi,ii,vr-1),Ai++,Ei=0,ii=vr,Mt=xt,pi=0,en=135<b?-xt-ut:xt+ut),$o=Ei===0?We:Le,Xv(a,ar,en,0),ar.S.h(en,pi+$o),Pt=Math.max(Pt,pi+$o+So.height),xt=Math.max(xt,Mt+(Ai===0?0:ut)+So.width),pi+=$o+So.height),Ei++;switch(0<Ai&&(x?(Pt+=Math.max(0,se),en<xt&&ng(y,ue,xt-en,0,ii,te-1),0<tt&&(ve||kg(y,tt,0,0,te-1),xt+=tt)):(xt+=Math.max(0,se),pi<Pt&&ng(y,ue,0,Pt-pi,ii,te-1),0<tt&&(ve||kg(y,0,tt,0,te-1),Pt+=tt))),tt=ve=0,ue){case vp:x?ve+=xt/2-y.focus.x-Me/2:tt+=Pt/2-y.focus.y-Me/2;break;case Lg:0<Ai?x?ve+=xt/2-y.focus.x-Me/2:tt+=Pt/2-y.focus.y-Me/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-Me/2):(a=E[0].S.y+E[0].la.y,tt+=a+(E[te-1].S.y+E[te-1].la.y+2*E[te-1].focus.y-a)/2-y.focus.y-Me/2);break;case _d:x?(ve-=Me,xt+=Me):(tt-=Me,Pt+=Me);break;case Wd:x?(ve+=xt-y.width+Me,xt+=Me):(tt+=Pt-y.height+Me,Pt+=Me);break;case Hh:case Kd:x?1<te?ve+=Un+Le/2-y.focus.x:ve+=E[0].focus.x-y.focus.x+E[0].la.x:1<te?tt+=Un+Le/2-y.focus.y:tt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case _h:x?ve+=xt+Le/2-y.focus.x:tt+=Pt+Le/2-y.focus.y;break;case ch:break;default:a=a.customAlignment(y,ve,tt,xt,Pt),ve=a[0],tt=a[1],xt=a[2],Pt=a[3]}for(a=0;a<te;a++)Me=E[a],x?Me.S.h(Me.S.x+Me.la.x-ve,Me.S.y+(135<b?(re?-Pt:-Me.Da.height)+Me.la.y-se:mt+se+Me.la.y)):Me.S.h(Me.S.x+(135<b?(re?-xt:-Me.Da.width)+Me.la.x-se:ce+se+Me.la.x),Me.S.y+Me.la.y-tt);x?(xt=Uy(y,xt,ve),0>ve&&(ve=0),135<b&&(tt+=Pt+se),Pt=Math.max(Math.max(Pt,mt),Pt+mt+se)):(135<b&&(ve+=xt+se),xt=Math.max(Math.max(xt,ce),xt+ce+se),Pt=Gy(y,Pt,tt),0>tt&&(tt=0)),y.la.h(ve,tt),y.Da.h(xt,Pt)}}zr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function Vb(a,y,x,b,E,z){var te=x.length;if(te===0)return new vn(b,0,E,z);if(te===1)return y=x[0],E=y.Da.width,z=y.Da.height,new vn(b,0,E,z);for(var re=y.nodeSpacing,se=y.rowSpacing,ue=_c(y)===90,ce=0,ve=0,Ce=0,Le=0;Le<te;Le++)if(!(Le%2!==0||1<te&&Le===te-1)){var Me=x[Le],We=Me.Da,ut=ce===0?0:se;if(ue){var tt=a.computeBusNodeSpacing(Me)-re;Me.S.h(b-(We.width+tt),Ce+ut),E=Math.max(E,We.width+tt),z=Math.max(z,Ce+ut+We.height),Ce+=ut+We.height}else tt=a.computeBusNodeSpacing(Me)-re,Me.S.h(ve+ut,b-(We.height+tt)),z=Math.max(z,We.height+tt),E=Math.max(E,ve+ut+We.width),ve+=ut+We.width;ce++}for(ce=0,Me=ve,Le=Ce,ue?(ve=b+re,Ce=0):(ve=0,Ce=b+re),We=0;We<te;We++)if(We%2!==0){ut=x[We],tt=ut.Da;var mt=ce===0?0:se;if(ue){var xt=a.computeBusNodeSpacing(ut)-re;ut.S.h(ve+xt,Ce+mt),E=Math.max(E,ve+tt.width+xt),z=Math.max(z,Ce+mt+tt.height),Ce+=mt+tt.height}else xt=a.computeBusNodeSpacing(ut)-re,ut.S.h(ve+mt,Ce+xt),E=Math.max(E,ve+mt+tt.width),z=Math.max(z,Ce+tt.height+xt),ve+=mt+tt.width;ce++}return 1<te&&te%2===1&&(x=x[te-1],te=x.Da,a=a.computeBusLastRowSpacing(x,ue?Math.max(Math.abs(Le),Math.abs(Ce)):Math.max(Math.abs(Me),Math.abs(ve))),ue?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),ue=b+re/2-x.focus.x-x.la.x,E=Math.max(E,ue+te.width),0>ue&&(E-=ue),z=Math.max(z,Math.max(Le,Ce)+a+te.height),0>x.S.x&&(b=Yv(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(Me,ve)+a+te.width),Ce=b+re/2-x.focus.y-x.la.y,z=Math.max(z,Ce+te.height),0>Ce&&(z-=Ce),0>x.S.y&&(b=Yv(y,x.S.y,!0,b,re)))),new vn(b,0,E,z)}function Zb(a,y,x,b,E,z){var te=x.length;if(te===0)return new vn(b,0,E,z);if(te===1)return x=x[0],E=x.Da.width,z=x.Da.height,new vn(b,0,E,z);for(var re=y.nodeSpacing,se=y.rowSpacing,ue=_c(y)===270,ce=0,ve=0,Ce=0,Le=0;Le<te;Le++)if(!(Le%2!==0||1<te&&Le===te-1)){var Me=x[Le],We=Me.Da,ut=ce===0?0:se;if(ue){var tt=a.computeBusNodeSpacing(Me)-re;Ce-=ut+We.height,Me.S.h(b-(We.width+tt),Ce),E=Math.max(E,We.width+tt),z=Math.max(z,Math.abs(Ce))}else tt=a.computeBusNodeSpacing(Me)-re,ve-=ut+We.width,Me.S.h(ve,b-(We.height+tt)),z=Math.max(z,We.height+tt),E=Math.max(E,Math.abs(ve));ce++}for(ce=0,Me=ve,Le=Ce,ue?(ve=b+re,Ce=0):(ve=0,Ce=b+re),We=0;We<te;We++)if(We%2!==0){ut=x[We],tt=ut.Da;var mt=ce===0?0:se;if(ue){var xt=a.computeBusNodeSpacing(ut)-re;Ce-=mt+tt.height,ut.S.h(ve+xt,Ce),E=Math.max(E,ve+tt.width+xt),z=Math.max(z,Math.abs(Ce))}else xt=a.computeBusNodeSpacing(ut)-re,ve-=mt+tt.width,ut.S.h(ve,Ce+xt),z=Math.max(z,Ce+tt.height+xt),E=Math.max(E,Math.abs(ve));ce++}for(1<te&&te%2===1&&(se=x[te-1],ce=se.Da,a=a.computeBusLastRowSpacing(se,ue?Math.max(Math.abs(Le),Math.abs(Ce)):Math.max(Math.abs(Me),Math.abs(ve))),ue?(se.S.h(b+re/2-se.focus.x-se.la.x,-z-ce.height-a),ve=b+re/2-se.focus.x-se.la.x,E=Math.max(E,ve+ce.width),0>ve&&(E-=ve),z=Math.max(z,Math.abs(Math.min(Le,Ce))+a+ce.height),0>se.S.x&&(b=Yv(y,se.S.x,!1,b,re))):(se.S.h(-E-ce.width-a,b+re/2-se.focus.y-se.la.y),E=Math.max(E,Math.abs(Math.min(Me,ve))+a+ce.width),Ce=b+re/2-se.focus.y-se.la.y,z=Math.max(z,Ce+ce.height),0>Ce&&(z-=Ce),0>se.S.y&&(b=Yv(y,se.S.y,!0,b,re)))),y=0;y<te;y++)re=x[y],ue?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new vn(b,0,E,z)}zr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},zr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Yv(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 Lg:case vp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case _d:return a.width>y?a.width:y;case Wd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Hh:case Kd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case _h:return a.width-a.focus.x+a.nodeSpacing/2+y;case ch:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Gy(a,y,x){switch(a.alignment){case Lg:case vp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case _d:return a.height>y?a.height:y;case Wd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Hh:case Kd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case _h:return a.height-a.focus.y+a.nodeSpacing/2+y;case ch:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Hy(a,y,x){switch(a){case vp:y/=2,x/=2;break;case Lg:y/=2,x/=2;break;case _d:x=y=0;break;case Wd:break;default:Rt("Unhandled alignment value "+a.toString())}return new ot(y,x)}function ng(a,y,x,b,E,z){y=Hy(y,x,b),kg(a,y.x,y.y,E,z)}function kg(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 Xv(a,y,x,b){var E=y.parent;switch(a.ud){case Hd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Ag:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Rt("Unhandled path value "+a.ud.toString())}}function Qv(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function $b(a,y,x,b,E,z,te,re){var se=_c(y),ue=se===90||se===270,ce=y.nodeSpacing;y=b;var ve=E;b=z;var Ce=te,Le=x.Yo,Me=x.kp;te=x.Da;var We=ue?Math.max(Ce,te.height):Math.max(b,te.width);if((Le===null||se!==_c(x))&&(Le=Tu(a,2),Me=Tu(a,2),ue?(Le[0].h(0,0),Le[1].h(0,te.height),Me[0].h(te.width,0),Me[1].h(Me[0].x,Le[1].y)):(Le[0].h(0,0),Le[1].h(te.width,0),Me[0].h(0,te.height),Me[1].h(Le[1].x,Me[0].y))),ue){if(Ce=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 ut=Le[E];se=ut.x,ue=ut.y,se+=b;var tt=z;x+1<ve.length&&(tt=ve[x+1]);var mt=ut;ut=mt.x,mt=mt.y,E+1<Le.length&&(mt=Le[E+1],ut=mt.x,mt=mt.y,ut+=b);var xt=Ce;z.y===ue?xt=se-z.x:z.y>ue&&z.y<mt?xt=se+(z.y-ue)/(mt-ue)*(ut-se)-z.x:ue>z.y&&ue<tt.y&&(xt=se-(z.x+(ue-z.y)/(tt.y-z.y)*(tt.x-z.x))),xt<Ce&&(Ce=xt),tt.y<=z.y?x++:mt<=ue?E++:(tt.y<=mt&&x++,mt<=tt.y&&E++)}if(Ce=b-Ce,Ce+=ce,x=Le,E=Ce,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ce=Tu(a,y.length+x.length),b=z=se=0;z<x.length&&x[z].y<y[0].y;)ue=x[z++],ce[b++].h(ue.x+E,ue.y);for(;se<y.length;)ue=y[se++],ce[b++].h(ue.x,ue.y);for(se=y[y.length-1].y;z<x.length&&x[z].y<=se;)z++;for(;z<x.length&&x[z].y>se;)ue=x[z++],ce[b++].h(ue.x+E,ue.y);for(x=Tu(a,b),se=0;se<b;se++)x[se].assign(ce[se]);id(a,ce),b=x}if(z=Me,se=Ce,ve===null||2>ve.length||z===null||2>z.length)E=null;else{for(ce=Tu(a,ve.length+z.length),E=ue=x=0;x<ve.length&&ve[x].y<z[0].y;)tt=ve[x++],ce[E++].h(tt.x,tt.y);for(;ue<z.length;)tt=z[ue++],ce[E++].h(tt.x+se,tt.y);for(z=z[z.length-1].y;x<ve.length&&ve[x].y<=z;)x++;for(;x<ve.length&&ve[x].y>z;)se=ve[x++],ce[E++].h(se.x,se.y);for(z=Tu(a,E),x=0;x<E;x++)z[x].assign(ce[x]);id(a,ce),E=z}return z=Math.max(0,Ce)+te.width,te=We,id(a,y),id(a,Le),id(a,ve),id(a,Me),re[0]=b,re[1]=E,new vn(Ce,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],ut=Le[E],se=ut.x,ue=ut.y,ue+=Ce,tt=z,x+1<ve.length&&(tt=ve[x+1]),mt=ut,ut=mt.x,mt=mt.y,E+1<Le.length&&(mt=Le[E+1],ut=mt.x,mt=mt.y,mt+=Ce),xt=b,z.x===se?xt=ue-z.y:z.x>se&&z.x<ut?xt=ue+(z.x-se)/(ut-se)*(mt-ue)-z.y:se>z.x&&se<tt.x&&(xt=ue-(z.y+(se-z.x)/(tt.x-z.x)*(tt.y-z.y))),xt<b&&(b=xt),tt.x<=z.x?x++:ut<=se?E++:(tt.x<=ut&&x++,ut<=tt.x&&E++);if(Ce-=b,Ce+=ce,x=Le,E=Ce,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ce=Tu(a,y.length+x.length),b=z=se=0;z<x.length&&x[z].x<y[0].x;)ue=x[z++],ce[b++].h(ue.x,ue.y+E);for(;se<y.length;)ue=y[se++],ce[b++].h(ue.x,ue.y);for(se=y[y.length-1].x;z<x.length&&x[z].x<=se;)z++;for(;z<x.length&&x[z].x>se;)ue=x[z++],ce[b++].h(ue.x,ue.y+E);for(x=Tu(a,b),se=0;se<b;se++)x[se].assign(ce[se]);id(a,ce),b=x}if(z=Me,se=Ce,ve===null||2>ve.length||z===null||2>z.length)E=null;else{for(ce=Tu(a,ve.length+z.length),E=ue=x=0;x<ve.length&&ve[x].x<z[0].x;)tt=ve[x++],ce[E++].h(tt.x,tt.y);for(;ue<z.length;)tt=z[ue++],ce[E++].h(tt.x,tt.y+se);for(z=z[z.length-1].x;x<ve.length&&ve[x].x<=z;)x++;for(;x<ve.length&&ve[x].x>z;)se=ve[x++],ce[E++].h(se.x,se.y);for(z=Tu(a,E),x=0;x<E;x++)z[x].assign(ce[x]);id(a,ce),E=z}return z=We,te=Math.max(0,Ce)+te.height,id(a,y),id(a,Le),id(a,ve),id(a,Me),re[0]=b,re[1]=E,new vn(Ce,0,z,te)}function Tu(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 ot;return a}function id(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}zr.prototype.arrangeTrees=function(){if(this.Rb===n0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof wc){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),_y(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof wc&&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:Rt("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(_y(this,E,y+E.la.x,x+E.la.y),this.Rb){case t0:x+=E.Da.height+this.$d.height;break;case Zy:y+=E.Da.width+this.$d.width;break;default:Rt("Unhandled arrangement value "+this.Rb.toString())}}}};function _y(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];_y(a,te,x+te.S.x,b+te.S.y)}}}zr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},zr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},zr.prototype.Gu=function(){if(this.layerStyle===i0){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 ot(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new ot(-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 vn(0,z,x,re))):this.angle===90?(E.push(new vn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new vn(z,0,re,x))):(E.push(new vn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},zr.prototype.commitLayers=function(){},zr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},zr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof wc&&Yb(this,y)}};function Yb(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)Yb(a,y[b])}}zr.prototype.setPortSpots=function(a){var y=a.alignment;if(Ef(y)){var x=this.ud===Hd,b=_c(a);switch(b){case 0:var E=ws;break;case 90:E=gs;break;case 180:E=qa;break;default:E=Ua}var z=a.children,te=z.length;switch(y){case Hh:case Kd: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 se=b===90||b===270?qa:Ua;if(te===1||y===te-1&&te%2===1)switch(b){case 0:se=qa;break;case 90:se=Ua;break;case 180:se=ws;break;default:se=gs}else y%2===0&&(se=b===90||b===270?ws:gs);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=se)):(a.setsPortSpot&&(re.fromSpot=se),a.setsChildPortSpot&&(re.toSpot=E))}}break;case _h:for(b=b===90||b===270?ws:gs,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 ch:for(b=b===90||b===270?qa:Ua,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=_c(a),this.ud===Hd){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=ws;break;case 90:b.fromSpot=gs;break;case 180:b.fromSpot=qa;break;default:b.fromSpot=Ua}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=qa;break;case 90:b.toSpot=Ua;break;case 180:b.toSpot=ws;break;default:b.toSpot=gs}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=ws;break;case 90:b.toSpot=gs;break;case 180:b.toSpot=qa;break;default:b.toSpot=Ua}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=qa;break;case 90:b.fromSpot=Ua;break;case 180:b.fromSpot=ws;break;default:b.fromSpot=gs}else b.fromSpot=a.childPortSpot}};function _c(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}zr.prototype.computeLayerSpacing=function(a){var y=_c(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},zr.prototype.computeNodeIndent=function(a){var y=_c(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)},At.Object.defineProperties(zr.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!==e0&&a!==Ky&&a!==Wy&&a!==Vy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==$y&&a!==Yy&&a!==i0||(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!==t0&&a!==Zy&&a!==n0||(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()):Rt("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!==qv&&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!==qv&&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 Jv=new Ht(zr,"PathDefault",-1),Hd=new Ht(zr,"PathDestination",0),Ag=new Ht(zr,"PathSource",1),mp=new Ht(zr,"SortingForwards",10),vm=new Ht(zr,"SortingReverse",11),ym=new Ht(zr,"SortingAscending",12),Sm=new Ht(zr,"SortingDescending",13),vp=new Ht(zr,"AlignmentCenterSubtrees",20),Lg=new Ht(zr,"AlignmentCenterChildren",21),_d=new Ht(zr,"AlignmentStart",22),Wd=new Ht(zr,"AlignmentEnd",23),Hh=new Ht(zr,"AlignmentBus",24),Kd=new Ht(zr,"AlignmentBusBranching",25),_h=new Ht(zr,"AlignmentTopLeftBus",26),ch=new Ht(zr,"AlignmentBottomRightBus",27),qv=new Ht(zr,"CompactionNone",30),xm=new Ht(zr,"CompactionBlock",31),e0=new Ht(zr,"StyleLayered",40),Wy=new Ht(zr,"StyleLastParents",41),Ky=new Ht(zr,"StyleAlternating",42),Vy=new Ht(zr,"StyleRootOnly",43),t0=new Ht(zr,"ArrangementVertical",50),Zy=new Ht(zr,"ArrangementHorizontal",51),n0=new Ht(zr,"ArrangementFixedRoots",52),$y=new Ht(zr,"LayerIndividual",60),Yy=new Ht(zr,"LayerSiblings",61),i0=new Ht(zr,"LayerUniform",62);zr.className="TreeLayout",zr.PathDefault=Jv,zr.PathDestination=Hd,zr.PathSource=Ag,zr.SortingForwards=mp,zr.SortingReverse=vm,zr.SortingAscending=ym,zr.SortingDescending=Sm,zr.AlignmentCenterSubtrees=vp,zr.AlignmentCenterChildren=Lg,zr.AlignmentStart=_d,zr.AlignmentEnd=Wd,zr.AlignmentBus=Hh,zr.AlignmentBusBranching=Kd,zr.AlignmentTopLeftBus=_h,zr.AlignmentBottomRightBus=ch,zr.CompactionNone=qv,zr.CompactionBlock=xm,zr.StyleLayered=e0,zr.StyleLastParents=Wy,zr.StyleAlternating=Ky,zr.StyleRootOnly=Vy,zr.ArrangementVertical=t0,zr.ArrangementHorizontal=Zy,zr.ArrangementFixedRoots=n0,zr.LayerIndividual=$y,zr.LayerSiblings=Yy,zr.LayerUniform=i0;function Ng(a){Qo.call(this,a)}on(Ng,Qo),Ng.prototype.createVertex=function(){return new wc(this)},Ng.prototype.createEdge=function(){return new yp(this)},Ng.className="TreeNetwork";function wc(a){Is.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 ot(0,0),this.Da=new ai(0,0),this.la=new ot(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=Lg,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=wo,this.wr=!0,this.Dp=wo}on(wc,Is),wc.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)},At.Object.defineProperties(wc.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)}}}),wc.className="TreeVertex";function yp(a){ju.call(this,a),this.$t=new ot(0,0)}on(yp,ju),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 Hd:x=this.fromVertex,b=this.toVertex;break;case Ag:x=this.toVertex,b=this.fromVertex;break;default:Rt("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=_c(x),te=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var se=a.curve===Yu,ue=a.isOrthogonal,ce;if(a.uh(),ue||se){for(ce=2;4<a.pointsCount;)a.pv(2);var ve=a.i(1),Ce=a.i(2)}else{for(ce=1;3<a.pointsCount;)a.pv(1);ve=a.i(0),Ce=a.i(a.pointsCount-1)}var Le=a.i(a.pointsCount-1);z===0?(x.alignment===Wd?(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===_d?(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,se?(a.m(ce,ve.x,z),ce++,a.m(ce,b.right+te,z),ce++,a.m(ce,b.right+te+(E.x-re)/3,z),ce++,a.m(ce,b.right+te+2*(E.x-re)/3,z),ce++,a.m(ce,b.right+te+(E.x-re),z),ce++,a.m(ce,Ce.x,z)):(ue&&(a.m(ce,b.right+te/2,ve.y),ce++),a.m(ce,b.right+te/2,z),ce++,a.m(ce,b.right+te+E.x-(ue?re/2:re),z),ce++,ue&&a.m(ce,a.i(ce-1).x,Ce.y))):z===90?(x.alignment===Wd?(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===_d?(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,se?(a.m(ce,z,ve.y),ce++,a.m(ce,z,b.bottom+te),ce++,a.m(ce,z,b.bottom+te+(E.y-re)/3),ce++,a.m(ce,z,b.bottom+te+2*(E.y-re)/3),ce++,a.m(ce,z,b.bottom+te+(E.y-re)),ce++,a.m(ce,z,Ce.y)):(ue&&(a.m(ce,ve.x,b.bottom+te/2),ce++),a.m(ce,z,b.bottom+te/2),ce++,a.m(ce,z,b.bottom+te+E.y-(ue?re/2:re)),ce++,ue&&a.m(ce,Ce.x,a.i(ce-1).y))):z===180?(x.alignment===Wd?(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===_d?(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,se?(a.m(ce,ve.x,z),ce++,a.m(ce,b.left-te,z),ce++,a.m(ce,b.left-te+(E.x+re)/3,z),ce++,a.m(ce,b.left-te+2*(E.x+re)/3,z),ce++,a.m(ce,b.left-te+(E.x+re),z),ce++,a.m(ce,Ce.x,z)):(ue&&(a.m(ce,b.left-te/2,ve.y),ce++),a.m(ce,b.left-te/2,z),ce++,a.m(ce,b.left-te+E.x+(ue?re/2:re),z),ce++,ue&&a.m(ce,a.i(ce-1).x,Ce.y))):z===270?(x.alignment===Wd?(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===_d?(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,se?(a.m(ce,z,ve.y),ce++,a.m(ce,z,b.top-te),ce++,a.m(ce,z,b.top-te+(E.y+re)/3),ce++,a.m(ce,z,b.top-te+2*(E.y+re)/3),ce++,a.m(ce,z,b.top-te+(E.y+re)),ce++,a.m(ce,z,Ce.y)):(ue&&(a.m(ce,ve.x,b.top-te/2),ce++),a.m(ce,z,b.top-te/2),ce++,a.m(ce,z,b.top-te+E.y+(ue?re/2:re)),ce++,ue&&a.m(ce,Ce.x,a.i(ce-1).y))):Rt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=_c(x),y!==_c(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===Yu,E=a.isOrthogonal,b=Ef(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()))}}},At.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",sa.prototype.initializeStandardTools=function(){this.gb("Action",new wr,this.mouseDownTools),this.gb("Relinking",new Ni,this.mouseDownTools),this.gb("LinkReshaping",new Ri,this.mouseDownTools),this.gb("Rotating",new _r,this.mouseDownTools),this.gb("Resizing",new pr,this.mouseDownTools),this.gb("Linking",new yi,this.mouseMoveTools),this.gb("Dragging",new la,this.mouseMoveTools),this.gb("DragSelecting",new xr,this.mouseMoveTools),this.gb("Panning",new $i,this.mouseMoveTools),this.gb("ContextMenu",new fo,this.mouseUpTools),this.gb("TextEditing",new to,this.mouseUpTools),this.gb("ClickCreating",new Br,this.mouseUpTools),this.gb("ClickSelecting",new ko,this.mouseUpTools)},vd("Horizontal",new Mm),vd("Spot",new Rm),vd("Table",new Fm),vd("Viewbox",new jm),vd("TableRow",new Bm),vd("TableColumn",new zm),vd("Graduated",new Fp),vd("Grid",new Dp),Kf.add("GraphLinksModel",Xs),Kf.add("TreeModel",lc);var r0=Et.go,Xy={get licenseKey(){return Qt.licenseKey},set licenseKey(a){Qt.licenseKey=a},get version(){return Qt.version},Group:Sr,EnumValue:Ht,List:ln,Set:bn,Map:ki,Point:ot,Size:ai,Rect:vn,Margin:ji,Spot:Ii,Geometry:si,PathFigure:ps,PathSegment:io,InputEvent:sl,DiagramEvent:fd,ChangedEvent:da,Model:Mi,GraphLinksModel:Jr,TreeModel:Vl,Binding:ss,Transaction:ms,UndoManager:Sa,CommandHandler:et,Tool:eo,DraggingTool:la,DraggingInfo:Nn,DraggingOptions:oe,LinkingBaseTool:rn,LinkingTool:yi,RelinkingTool:Ni,LinkReshapingTool:Ri,ResizingTool:pr,RotatingTool:_r,ClickSelectingTool:ko,ActionTool:wr,ClickCreatingTool:Br,HTMLInfo:Nr,ContextMenuTool:fo,DragSelectingTool:xr,PanningTool:$i,TextEditingTool:to,ToolManager:sa,Animation:Aa,AnimationManager:Ca,AnimationTrigger:Pl,Layer:ga,Diagram:Qt,Palette:ge,Overview:ye,Brush:qr,GraphObject:Nt,Panel:ei,RowColumnDefinition:Cs,Shape:Lr,TextBlock:Xo,Picture:cu,Part:Bi,Adornment:co,Node:Si,Link:ri,Placeholder:Hl,Layout:ya,LayoutNetwork:Qo,LayoutVertex:Is,LayoutEdge:ju,GridLayout:rl,PanelLayout:Ns,CircularLayout:La,CircularNetwork:fp,CircularVertex:cm,CircularEdge:zv,ForceDirectedLayout:gl,ForceDirectedNetwork:Tg,ForceDirectedVertex:dm,ForceDirectedEdge:hm,LayeredDigraphLayout:Mo,LayeredDigraphNetwork:pp,LayeredDigraphVertex:cc,LayeredDigraphEdge:pm,TreeLayout:zr,TreeNetwork:Ng,TreeVertex:wc,TreeEdge:yp};typeof r0=="object"&&r0.version&&Oi("WARNING: a `go` object on the root object is already defined. "+("Debug"in r0?"debug ":"")+"version: "+r0.version+", replaced with version: "+Xy.version),Qt.prototype.go=Xy,Et.go=Xy,typeof Ge.exports=="object"&&(Ge.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var de=typeof ae.g!="undefined"?ae.g.go:self.go;const Te=typeof ae.g!="undefined"?ae.g.go:self.go,Ee=Te.Group,Re=Te.EnumValue,je=Te.List,Ze=Te.Set,we=Te.Map,it=Te.Point,Je=Te.Size,Ye=Te.Rect,st=Te.Margin,ht=Te.Spot,Lt=Te.Geometry,ze=Te.PathFigure,ee=Te.PathSegment,ne=Te.InputEvent,fe=Te.DiagramEvent,le=Te.ChangedEvent,me=Te.Model,Se=Te.GraphLinksModel,ke=Te.TreeModel,Be=Te.Binding,Ne=Te.Transaction,Ke=Te.UndoManager,$e=Te.CommandHandler,at=Te.Tool,lt=Te.DraggingTool,Tt=Te.DraggingInfo,nt=Te.LinkingBaseTool,Ut=Te.LinkingTool,kt=Te.RelinkingTool,dn=Te.LinkReshapingTool,nn=Te.ResizingTool,qt=Te.RotatingTool,un=Te.ClickSelectingTool,mn=Te.ActionTool,Ct=Te.ClickCreatingTool,qe=Te.HTMLInfo,Bt=Te.ContextMenuTool,Cn=Te.DragSelectingTool,Zn=Te.PanningTool,zt=Te.TextEditingTool,sn=Te.ToolManager,Mn=Te.Animation,fi=Te.AnimationManager,Rn=Te.AnimationTrigger,li=Te.Layer,Ot=Te.Diagram,kn=Te.Palette,$n=Te.Overview,xi=Te.Brush,xn=Te.GraphObject,Gt=Te.Panel,jt=Te.RowColumnDefinition,It=Te.Shape,vt=Te.TextBlock,Xt=Te.TextBlockMetrics,Zt=Te.Picture,yt=Te.Part,ft=Te.Adornment,_e=Te.Node,Pe=Te.Link,be=Te.Placeholder,Ue=Te.Layout,Qe=Te.LayoutNetwork,Fe=Te.LayoutVertex,gt=Te.LayoutEdge,tn=Te.GridLayout,yn=Te.PanelLayout,bt=Te.CircularLayout,Wt=Te.CircularNetwork,fn=Te.CircularVertex,zn=Te.CircularEdge,ni=Te.ForceDirectedLayout,di=Te.ForceDirectedNetwork,wi=Te.ForceDirectedVertex,hi=Te.ForceDirectedEdge,Li=Te.LayeredDigraphLayout,Yi=Te.LayeredDigraphNetwork,Ji=Te.LayeredDigraphVertex,Xi=Te.LayeredDigraphEdge,dr=Te.TreeLayout,Ir=Te.TreeNetwork,Wi=Te.TreeVertex,Dr=Te.TreeEdge,_i=Te.version},46963:function(Ge){"use strict";Ge.exports=ae;var xe=/[#.]/g;function ae(de,Te){for(var Ee=de||"",Re=Te||"div",je={},Ze=0,we,it,Je;Ze<Ee.length;)xe.lastIndex=Ze,Je=xe.exec(Ee),we=Ee.slice(Ze,Je?Je.index:Ee.length),we&&(it?it==="#"?je.id=we:je.className?je.className.push(we):je.className=[we]:Re=we,Ze+=we.length),Je&&(it=Je[0],Ze++);return{type:"element",tagName:Re,properties:je,children:[]}}},5641:function(Ge,xe,ae){"use strict";var de=ae(88914),Te=ae(47178),Ee=ae(46963),Re=ae(92848).Q,je=ae(58951).Q;Ge.exports=we;var Ze={}.hasOwnProperty;function we(ee,ne,fe){var le=fe?ze(fe):null;return me;function me(ke,Be){var Ne=Ee(ke,ne),Ke=Array.prototype.slice.call(arguments,2),$e=Ne.tagName.toLowerCase(),at;if(Ne.tagName=le&&Ze.call(le,$e)?le[$e]:$e,Be&&it(Be,Ne)&&(Ke.unshift(Be),Be=null),Be)for(at in Be)Se(Ne.properties,at,Be[at]);return Ye(Ne.children,Ke),Ne.tagName==="template"&&(Ne.content={type:"root",children:Ne.children},Ne.children=[]),Ne}function Se(ke,Be,Ne){var Ke,$e,at;Ne==null||Ne!==Ne||(Ke=de(ee,Be),$e=Ke.property,at=Ne,typeof at=="string"&&(Ke.spaceSeparated?at=Re(at):Ke.commaSeparated?at=je(at):Ke.commaOrSpaceSeparated&&(at=Re(je(at).join(" ")))),$e==="style"&&typeof Ne!="string"&&(at=Lt(at)),$e==="className"&&ke.className&&(at=ke.className.concat(at)),ke[$e]=st(Ke,$e,at))}}function it(ee,ne){return typeof ee=="string"||"length"in ee||Je(ne.tagName,ee)}function Je(ee,ne){var fe=ne.type;return ee==="input"||!fe||typeof fe!="string"?!1:typeof ne.children=="object"&&"length"in ne.children?!0:(fe=fe.toLowerCase(),ee==="button"?fe!=="menu"&&fe!=="submit"&&fe!=="reset"&&fe!=="button":"value"in ne)}function Ye(ee,ne){var fe,le;if(typeof ne=="string"||typeof ne=="number"){ee.push({type:"text",value:String(ne)});return}if(typeof ne=="object"&&"length"in ne){for(fe=-1,le=ne.length;++fe<le;)Ye(ee,ne[fe]);return}if(typeof ne!="object"||!("type"in ne))throw new Error("Expected node, nodes, or string, got `"+ne+"`");ee.push(ne)}function st(ee,ne,fe){var le,me,Se;if(typeof fe!="object"||!("length"in fe))return ht(ee,ne,fe);for(me=fe.length,le=-1,Se=[];++le<me;)Se[le]=ht(ee,ne,fe[le]);return Se}function ht(ee,ne,fe){var le=fe;return ee.number||ee.positiveNumber?!isNaN(le)&&le!==""&&(le=Number(le)):(ee.boolean||ee.overloadedBoolean)&&typeof le=="string"&&(le===""||Te(fe)===Te(ne))&&(le=!0),le}function Lt(ee){var ne=[],fe;for(fe in ee)ne.push([fe,ee[fe]].join(": "));return ne.join("; ")}function ze(ee){for(var ne=ee.length,fe=-1,le={},me;++fe<ne;)me=ee[fe],le[me.toLowerCase()]=me;return le}},82073:function(Ge,xe,ae){"use strict";var de=ae(18795),Te=ae(5641),Ee=Te(de,"div");Ee.displayName="html",Ge.exports=Ee},43621:function(Ge,xe,ae){"use strict";Ge.exports=ae(82073)},93193:function(Ge){var xe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,de=/^\s*/,Te=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ee=/^:\s*/,Re=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,je=/^[;\s]*/,Ze=/^\s+|\s+$/g,we=`
`,it="/",Je="*",Ye="",st="comment",ht="declaration";Ge.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,fe=1;function le(nt){var Ut=nt.match(ae);Ut&&(ne+=Ut.length);var kt=nt.lastIndexOf(we);fe=~kt?nt.length-kt:fe+nt.length}function me(){var nt={line:ne,column:fe};return function(Ut){return Ut.position=new Se(nt),Ke(),Ut}}function Se(nt){this.start=nt,this.end={line:ne,column:fe},this.source=ee.source}Se.prototype.content=ze;var ke=[];function Be(nt){var Ut=new Error(ee.source+":"+ne+":"+fe+": "+nt);if(Ut.reason=nt,Ut.filename=ee.source,Ut.line=ne,Ut.column=fe,Ut.source=ze,ee.silent)ke.push(Ut);else throw Ut}function Ne(nt){var Ut=nt.exec(ze);if(Ut){var kt=Ut[0];return le(kt),ze=ze.slice(kt.length),Ut}}function Ke(){Ne(de)}function $e(nt){var Ut;for(nt=nt||[];Ut=at();)Ut!==!1&&nt.push(Ut);return nt}function at(){var nt=me();if(!(it!=ze.charAt(0)||Je!=ze.charAt(1))){for(var Ut=2;Ye!=ze.charAt(Ut)&&(Je!=ze.charAt(Ut)||it!=ze.charAt(Ut+1));)++Ut;if(Ut+=2,Ye===ze.charAt(Ut-1))return Be("End of comment missing");var kt=ze.slice(2,Ut-2);return fe+=2,le(kt),ze=ze.slice(Ut),fe+=2,nt({type:st,comment:kt})}}function lt(){var nt=me(),Ut=Ne(Te);if(Ut){if(at(),!Ne(Ee))return Be("property missing ':'");var kt=Ne(Re),dn=nt({type:ht,property:Lt(Ut[0].replace(xe,Ye)),value:kt?Lt(kt[0].replace(xe,Ye)):Ye});return Ne(je),dn}}function Tt(){var nt=[];$e(nt);for(var Ut;Ut=lt();)Ut!==!1&&(nt.push(Ut),$e(nt));return nt}return Ke(),Tt()};function Lt(ze){return ze?ze.replace(Ze,Ye):Ye}},91241:function(Ge){"use strict";Ge.exports=xe;function xe(ae){var de=typeof ae=="string"?ae.charCodeAt(0):ae;return de>=97&&de<=122||de>=65&&de<=90}},21127:function(Ge,xe,ae){"use strict";var de=ae(91241),Te=ae(22347);Ge.exports=Ee;function Ee(Re){return de(Re)||Te(Re)}},22347:function(Ge){"use strict";Ge.exports=xe;function xe(ae){var de=typeof ae=="string"?ae.charCodeAt(0):ae;return de>=48&&de<=57}},65207:function(Ge){"use strict";Ge.exports=xe;function xe(ae){var de=typeof ae=="string"?ae.charCodeAt(0):ae;return de>=97&&de<=102||de>=65&&de<=70||de>=48&&de<=57}},67842:function(Ge){"use strict";var xe,ae=59;Ge.exports=de;function de(Te){var Ee="&"+Te+";",Re;return xe=xe||document.createElement("i"),xe.innerHTML=Ee,Re=xe.textContent,Re.charCodeAt(Re.length-1)===ae&&Te!=="semi"||Re===Ee?!1:Re}},12256:function(Ge,xe,ae){"use strict";var de=ae(47854),Te=ae(80501),Ee=ae(22347),Re=ae(65207),je=ae(21127),Ze=ae(67842);Ge.exports=mn;var we={}.hasOwnProperty,it=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},st=9,ht=10,Lt=12,ze=32,ee=38,ne=59,fe=60,le=61,me=35,Se=88,ke=120,Be=65533,Ne="named",Ke="hexadecimal",$e="decimal",at={};at[Ke]=16,at[$e]=10;var lt={};lt[Ne]=je,lt[$e]=Ee,lt[Ke]=Re;var Tt=1,nt=2,Ut=3,kt=4,dn=5,nn=6,qt=7,un={};un[Tt]="Named character references must be terminated by a semicolon",un[nt]="Numeric character references must be terminated by a semicolon",un[Ut]="Named character references cannot be empty",un[kt]="Numeric character references cannot be empty",un[dn]="Named character references must be known",un[nn]="Numeric character references cannot be disallowed",un[qt]="Numeric character references cannot be outside the permissible Unicode range";function mn(Cn,Zn){var zt={},sn,Mn;Zn||(Zn={});for(Mn in Ye)sn=Zn[Mn],zt[Mn]=sn==null?Ye[Mn]:sn;return(zt.position.indent||zt.position.start)&&(zt.indent=zt.position.indent||[],zt.position=zt.position.start),Ct(Cn,zt)}function Ct(Cn,Zn){var zt=Zn.additional,sn=Zn.nonTerminated,Mn=Zn.text,fi=Zn.reference,Rn=Zn.warning,li=Zn.textContext,Ot=Zn.referenceContext,kn=Zn.warningContext,$n=Zn.position,xi=Zn.indent||[],xn=Cn.length,Gt=0,jt=-1,It=$n.column||1,vt=$n.line||1,Xt="",Zt=[],yt,ft,_e,Pe,be,Ue,Qe,Fe,gt,tn,yn,bt,Wt,fn,zn,ni,di,wi,hi;for(typeof zt=="string"&&(zt=zt.charCodeAt(0)),ni=Li(),Fe=Rn?Yi:Je,Gt--,xn++;++Gt<xn;)if(be===ht&&(It=xi[jt]||1),be=Cn.charCodeAt(Gt),be===ee){if(Qe=Cn.charCodeAt(Gt+1),Qe===st||Qe===ht||Qe===Lt||Qe===ze||Qe===ee||Qe===fe||Qe!==Qe||zt&&Qe===zt){Xt+=it(be),It++;continue}for(Wt=Gt+1,bt=Wt,hi=Wt,Qe===me?(hi=++bt,Qe=Cn.charCodeAt(hi),Qe===Se||Qe===ke?(fn=Ke,hi=++bt):fn=$e):fn=Ne,yt="",yn="",Pe="",zn=lt[fn],hi--;++hi<xn&&(Qe=Cn.charCodeAt(hi),!!zn(Qe));)Pe+=it(Qe),fn===Ne&&we.call(de,Pe)&&(yt=Pe,yn=de[Pe]);_e=Cn.charCodeAt(hi)===ne,_e&&(hi++,ft=fn===Ne?Ze(Pe):!1,ft&&(yt=Pe,yn=ft)),wi=1+hi-Wt,!_e&&!sn||(Pe?fn===Ne?(_e&&!yn?Fe(dn,1):(yt!==Pe&&(hi=bt+yt.length,wi=1+hi-bt,_e=!1),_e||(gt=yt?Tt:Ut,Zn.attribute?(Qe=Cn.charCodeAt(hi),Qe===le?(Fe(gt,wi),yn=null):je(Qe)?yn=null:Fe(gt,wi)):Fe(gt,wi))),Ue=yn):(_e||Fe(nt,wi),Ue=parseInt(Pe,at[fn]),qe(Ue)?(Fe(qt,wi),Ue=it(Be)):Ue in Te?(Fe(nn,wi),Ue=Te[Ue]):(tn="",Bt(Ue)&&Fe(nn,wi),Ue>65535&&(Ue-=65536,tn+=it(Ue>>>10|55296),Ue=56320|Ue&1023),Ue=tn+it(Ue))):fn!==Ne&&Fe(kt,wi)),Ue?(Ji(),ni=Li(),Gt=hi-1,It+=hi-Wt+1,Zt.push(Ue),di=Li(),di.offset++,fi&&fi.call(Ot,Ue,{start:ni,end:di},Cn.slice(Wt-1,hi)),ni=di):(Pe=Cn.slice(Wt-1,hi),Xt+=Pe,It+=Pe.length,Gt=hi-1)}else be===10&&(vt++,jt++,It=0),be===be?(Xt+=it(be),It++):Ji();return Zt.join("");function Li(){return{line:vt,column:It,offset:Gt+($n.offset||0)}}function Yi(Xi,dr){var Ir=Li();Ir.column+=dr,Ir.offset+=dr,Rn.call(kn,un[Xi],Ir,Xi)}function Ji(){Xt&&(Zt.push(Xt),Mn&&Mn.call(li,Xt,{start:ni,end:Li()}),Xt="")}}function qe(Cn){return Cn>=55296&&Cn<=57343||Cn>1114111}function Bt(Cn){return Cn>=1&&Cn<=8||Cn===11||Cn>=13&&Cn<=31||Cn>=127&&Cn<=159||Cn>=64976&&Cn<=65007||(Cn&65535)===65535||(Cn&65535)===65534}},68398:function(Ge,xe,ae){var de=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Te=function(Ee){var Re=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,je=0,Ze={},we={manual:Ee.Prism&&Ee.Prism.manual,disableWorkerMessageHandler:Ee.Prism&&Ee.Prism.disableWorkerMessageHandler,util:{encode:function le(me){return me instanceof it?new it(me.type,le(me.content),me.alias):Array.isArray(me)?me.map(le):me.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(le){return Object.prototype.toString.call(le).slice(8,-1)},objId:function(le){return le.__id||Object.defineProperty(le,"__id",{value:++je}),le.__id},clone:function le(me,Se){Se=Se||{};var ke,Be;switch(we.util.type(me)){case"Object":if(Be=we.util.objId(me),Se[Be])return Se[Be];ke={},Se[Be]=ke;for(var Ne in me)me.hasOwnProperty(Ne)&&(ke[Ne]=le(me[Ne],Se));return ke;case"Array":return Be=we.util.objId(me),Se[Be]?Se[Be]:(ke=[],Se[Be]=ke,me.forEach(function(Ke,$e){ke[$e]=le(Ke,Se)}),ke);default:return me}},getLanguage:function(le){for(;le;){var me=Re.exec(le.className);if(me)return me[1].toLowerCase();le=le.parentElement}return"none"},setLanguage:function(le,me){le.className=le.className.replace(RegExp(Re,"gi"),""),le.classList.add("language-"+me)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(ke){var le=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ke.stack)||[])[1];if(le){var me=document.getElementsByTagName("script");for(var Se in me)if(me[Se].src==le)return me[Se]}return null}},isActive:function(le,me,Se){for(var ke="no-"+me;le;){var Be=le.classList;if(Be.contains(me))return!0;if(Be.contains(ke))return!1;le=le.parentElement}return!!Se}},languages:{plain:Ze,plaintext:Ze,text:Ze,txt:Ze,extend:function(le,me){var Se=we.util.clone(we.languages[le]);for(var ke in me)Se[ke]=me[ke];return Se},insertBefore:function(le,me,Se,ke){ke=ke||we.languages;var Be=ke[le],Ne={};for(var Ke in Be)if(Be.hasOwnProperty(Ke)){if(Ke==me)for(var $e in Se)Se.hasOwnProperty($e)&&(Ne[$e]=Se[$e]);Se.hasOwnProperty(Ke)||(Ne[Ke]=Be[Ke])}var at=ke[le];return ke[le]=Ne,we.languages.DFS(we.languages,function(lt,Tt){Tt===at&&lt!=le&&(this[lt]=Ne)}),Ne},DFS:function le(me,Se,ke,Be){Be=Be||{};var Ne=we.util.objId;for(var Ke in me)if(me.hasOwnProperty(Ke)){Se.call(me,Ke,me[Ke],ke||Ke);var $e=me[Ke],at=we.util.type($e);at==="Object"&&!Be[Ne($e)]?(Be[Ne($e)]=!0,le($e,Se,null,Be)):at==="Array"&&!Be[Ne($e)]&&(Be[Ne($e)]=!0,le($e,Se,Ke,Be))}}},plugins:{},highlightAll:function(le,me){we.highlightAllUnder(document,le,me)},highlightAllUnder:function(le,me,Se){var ke={callback:Se,container:le,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};we.hooks.run("before-highlightall",ke),ke.elements=Array.prototype.slice.apply(ke.container.querySelectorAll(ke.selector)),we.hooks.run("before-all-elements-highlight",ke);for(var Be=0,Ne;Ne=ke.elements[Be++];)we.highlightElement(Ne,me===!0,ke.callback)},highlightElement:function(le,me,Se){var ke=we.util.getLanguage(le),Be=we.languages[ke];we.util.setLanguage(le,ke);var Ne=le.parentElement;Ne&&Ne.nodeName.toLowerCase()==="pre"&&we.util.setLanguage(Ne,ke);var Ke=le.textContent,$e={element:le,language:ke,grammar:Be,code:Ke};function at(Tt){$e.highlightedCode=Tt,we.hooks.run("before-insert",$e),$e.element.innerHTML=$e.highlightedCode,we.hooks.run("after-highlight",$e),we.hooks.run("complete",$e),Se&&Se.call($e.element)}if(we.hooks.run("before-sanity-check",$e),Ne=$e.element.parentElement,Ne&&Ne.nodeName.toLowerCase()==="pre"&&!Ne.hasAttribute("tabindex")&&Ne.setAttribute("tabindex","0"),!$e.code){we.hooks.run("complete",$e),Se&&Se.call($e.element);return}if(we.hooks.run("before-highlight",$e),!$e.grammar){at(we.util.encode($e.code));return}if(me&&Ee.Worker){var lt=new Worker(we.filename);lt.onmessage=function(Tt){at(Tt.data)},lt.postMessage(JSON.stringify({language:$e.language,code:$e.code,immediateClose:!0}))}else at(we.highlight($e.code,$e.grammar,$e.language))},highlight:function(le,me,Se){var ke={code:le,grammar:me,language:Se};if(we.hooks.run("before-tokenize",ke),!ke.grammar)throw new Error('The language "'+ke.language+'" has no grammar.');return ke.tokens=we.tokenize(ke.code,ke.grammar),we.hooks.run("after-tokenize",ke),it.stringify(we.util.encode(ke.tokens),ke.language)},tokenize:function(le,me){var Se=me.rest;if(Se){for(var ke in Se)me[ke]=Se[ke];delete me.rest}var Be=new st;return ht(Be,Be.head,le),Ye(le,Be,me,Be.head,0),ze(Be)},hooks:{all:{},add:function(le,me){var Se=we.hooks.all;Se[le]=Se[le]||[],Se[le].push(me)},run:function(le,me){var Se=we.hooks.all[le];if(!(!Se||!Se.length))for(var ke=0,Be;Be=Se[ke++];)Be(me)}},Token:it};Ee.Prism=we;function it(le,me,Se,ke){this.type=le,this.content=me,this.alias=Se,this.length=(ke||"").length|0}it.stringify=function le(me,Se){if(typeof me=="string")return me;if(Array.isArray(me)){var ke="";return me.forEach(function(at){ke+=le(at,Se)}),ke}var Be={type:me.type,content:le(me.content,Se),tag:"span",classes:["token",me.type],attributes:{},language:Se},Ne=me.alias;Ne&&(Array.isArray(Ne)?Array.prototype.push.apply(Be.classes,Ne):Be.classes.push(Ne)),we.hooks.run("wrap",Be);var Ke="";for(var $e in Be.attributes)Ke+=" "+$e+'="'+(Be.attributes[$e]||"").replace(/"/g,"&quot;")+'"';return"<"+Be.tag+' class="'+Be.classes.join(" ")+'"'+Ke+">"+Be.content+"</"+Be.tag+">"};function Je(le,me,Se,ke){le.lastIndex=me;var Be=le.exec(Se);if(Be&&ke&&Be[1]){var Ne=Be[1].length;Be.index+=Ne,Be[0]=Be[0].slice(Ne)}return Be}function Ye(le,me,Se,ke,Be,Ne){for(var Ke in Se)if(!(!Se.hasOwnProperty(Ke)||!Se[Ke])){var $e=Se[Ke];$e=Array.isArray($e)?$e:[$e];for(var at=0;at<$e.length;++at){if(Ne&&Ne.cause==Ke+","+at)return;var lt=$e[at],Tt=lt.inside,nt=!!lt.lookbehind,Ut=!!lt.greedy,kt=lt.alias;if(Ut&&!lt.pattern.global){var dn=lt.pattern.toString().match(/[imsuy]*$/)[0];lt.pattern=RegExp(lt.pattern.source,dn+"g")}for(var nn=lt.pattern||lt,qt=ke.next,un=Be;qt!==me.tail&&!(Ne&&un>=Ne.reach);un+=qt.value.length,qt=qt.next){var mn=qt.value;if(me.length>le.length)return;if(!(mn instanceof it)){var Ct=1,qe;if(Ut){if(qe=Je(nn,un,le,nt),!qe||qe.index>=le.length)break;var zt=qe.index,Bt=qe.index+qe[0].length,Cn=un;for(Cn+=qt.value.length;zt>=Cn;)qt=qt.next,Cn+=qt.value.length;if(Cn-=qt.value.length,un=Cn,qt.value instanceof it)continue;for(var Zn=qt;Zn!==me.tail&&(Cn<Bt||typeof Zn.value=="string");Zn=Zn.next)Ct++,Cn+=Zn.value.length;Ct--,mn=le.slice(un,Cn),qe.index-=un}else if(qe=Je(nn,0,mn,nt),!qe)continue;var zt=qe.index,sn=qe[0],Mn=mn.slice(0,zt),fi=mn.slice(zt+sn.length),Rn=un+mn.length;Ne&&Rn>Ne.reach&&(Ne.reach=Rn);var li=qt.prev;Mn&&(li=ht(me,li,Mn),un+=Mn.length),Lt(me,li,Ct);var Ot=new it(Ke,Tt?we.tokenize(sn,Tt):sn,kt,sn);if(qt=ht(me,li,Ot),fi&&ht(me,qt,fi),Ct>1){var kn={cause:Ke+","+at,reach:Rn};Ye(le,me,Se,qt.prev,un,kn),Ne&&kn.reach>Ne.reach&&(Ne.reach=kn.reach)}}}}}}function st(){var le={value:null,prev:null,next:null},me={value:null,prev:le,next:null};le.next=me,this.head=le,this.tail=me,this.length=0}function ht(le,me,Se){var ke=me.next,Be={value:Se,prev:me,next:ke};return me.next=Be,ke.prev=Be,le.length++,Be}function Lt(le,me,Se){for(var ke=me.next,Be=0;Be<Se&&ke!==le.tail;Be++)ke=ke.next;me.next=ke,ke.prev=me,le.length-=Be}function ze(le){for(var me=[],Se=le.head.next;Se!==le.tail;)me.push(Se.value),Se=Se.next;return me}if(!Ee.document)return Ee.addEventListener&&(we.disableWorkerMessageHandler||Ee.addEventListener("message",function(le){var me=JSON.parse(le.data),Se=me.language,ke=me.code,Be=me.immediateClose;Ee.postMessage(we.highlight(ke,we.languages[Se],Se)),Be&&Ee.close()},!1)),we;var ee=we.util.currentScript();ee&&(we.filename=ee.src,ee.hasAttribute("data-manual")&&(we.manual=!0));function ne(){we.manual||we.highlightAll()}if(!we.manual){var fe=document.readyState;fe==="loading"||fe==="interactive"&&ee&&ee.defer?document.addEventListener("DOMContentLoaded",ne):window.requestAnimationFrame?window.requestAnimationFrame(ne):window.setTimeout(ne,16)}return we}(de);Ge.exports&&(Ge.exports=Te),typeof ae.g!="undefined"&&(ae.g.Prism=Te)},88914:function(Ge,xe,ae){"use strict";var de=ae(47178),Te=ae(19095),Ee=ae(1969),Re="data";Ge.exports=it;var je=/^data[-\w.:]+$/i,Ze=/-[a-z]/g,we=/[A-Z]/g;function it(Lt,ze){var ee=de(ze),ne=ze,fe=Ee;return ee in Lt.normal?Lt.property[Lt.normal[ee]]:(ee.length>4&&ee.slice(0,4)===Re&&je.test(ze)&&(ze.charAt(4)==="-"?ne=Je(ze):ze=Ye(ze),fe=Te),new fe(ne,ze))}function Je(Lt){var ze=Lt.slice(5).replace(Ze,ht);return Re+ze.charAt(0).toUpperCase()+ze.slice(1)}function Ye(Lt){var ze=Lt.slice(4);return Ze.test(ze)?Lt:(ze=ze.replace(we,st),ze.charAt(0)!=="-"&&(ze="-"+ze),Re+ze)}function st(Lt){return"-"+Lt.toLowerCase()}function ht(Lt){return Lt.charAt(1).toUpperCase()}},18795:function(Ge,xe,ae){"use strict";var de=ae(83576),Te=ae(8179),Ee=ae(59780),Re=ae(68244),je=ae(20019),Ze=ae(38567);Ge.exports=de([Ee,Te,Re,je,Ze])},20019:function(Ge,xe,ae){"use strict";var de=ae(70167),Te=ae(79318),Ee=de.booleanish,Re=de.number,je=de.spaceSeparated;Ge.exports=Te({transform:Ze,properties:{ariaActiveDescendant:null,ariaAtomic:Ee,ariaAutoComplete:null,ariaBusy:Ee,ariaChecked:Ee,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Ee,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Ee,ariaFlowTo:je,ariaGrabbed:Ee,ariaHasPopup:null,ariaHidden:Ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:Re,ariaLive:null,ariaModal:Ee,ariaMultiLine:Ee,ariaMultiSelectable:Ee,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Ee,ariaReadOnly:Ee,ariaRelevant:null,ariaRequired:Ee,ariaRoleDescription:je,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Ee,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}});function Ze(we,it){return it==="role"?it:"aria-"+it.slice(4).toLowerCase()}},38567:function(Ge,xe,ae){"use strict";var de=ae(70167),Te=ae(79318),Ee=ae(85804),Re=de.boolean,je=de.overloadedBoolean,Ze=de.booleanish,we=de.number,it=de.spaceSeparated,Je=de.commaSeparated;Ge.exports=Te({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ee,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Je,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:it,autoFocus:Re,autoPlay:Re,capture:Re,charSet:null,checked:Re,cite:null,className:it,cols:we,colSpan:null,content:null,contentEditable:Ze,controls:Re,controlsList:it,coords:we|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:je,draggable:Ze,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:it,height:we,hidden:Re,high:we,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:Je,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:it,itemRef:it,itemScope:Re,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:we,manifest:null,max:null,maxLength:we,media:null,method:null,min:null,minLength:we,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:we,pattern:null,ping:it,placeholder:null,playsInline:Re,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:it,required:Re,reversed:Re,rows:we,rowSpan:we,sandbox:it,scope:null,scoped:Re,seamless:Re,selected:Re,shape:null,size:we,sizes:null,slot:null,span:we,spellCheck:Ze,src:null,srcDoc:null,srcLang:null,srcSet:Je,start:we,step:null,style:null,tabIndex:we,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:Ze,width:we,wrap:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:we,borderColor:null,bottomMargin:we,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:we,leftMargin:we,link:null,longDesc:null,lowSrc:null,marginHeight:we,marginWidth:we,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:we,rules:null,scheme:null,scrolling:Ze,standby:null,summary:null,text:null,topMargin:we,valueType:null,version:null,vAlign:null,vLink:null,vSpace:we,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:we,security:null,unselectable:null}})},85804:function(Ge,xe,ae){"use strict";var de=ae(56432);Ge.exports=Te;function Te(Ee,Re){return de(Ee,Re.toLowerCase())}},56432:function(Ge){"use strict";Ge.exports=xe;function xe(ae,de){return de in ae?ae[de]:de}},79318:function(Ge,xe,ae){"use strict";var de=ae(47178),Te=ae(44347),Ee=ae(19095);Ge.exports=Re;function Re(je){var Ze=je.space,we=je.mustUseProperty||[],it=je.attributes||{},Je=je.properties,Ye=je.transform,st={},ht={},Lt,ze;for(Lt in Je)ze=new Ee(Lt,Ye(it,Lt),Je[Lt],Ze),we.indexOf(Lt)!==-1&&(ze.mustUseProperty=!0),st[Lt]=ze,ht[de(Lt)]=Lt,ht[de(ze.attribute)]=Lt;return new Te(st,ht,Ze)}},19095:function(Ge,xe,ae){"use strict";var de=ae(1969),Te=ae(70167);Ge.exports=je,je.prototype=new de,je.prototype.defined=!0;var Ee=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Re=Ee.length;function je(we,it,Je,Ye){var st=-1,ht;for(Ze(this,"space",Ye),de.call(this,we,it);++st<Re;)ht=Ee[st],Ze(this,ht,(Je&Te[ht])===Te[ht])}function Ze(we,it,Je){Je&&(we[it]=Je)}},1969:function(Ge){"use strict";Ge.exports=ae;var xe=ae.prototype;xe.space=null,xe.attribute=null,xe.property=null,xe.boolean=!1,xe.booleanish=!1,xe.overloadedBoolean=!1,xe.number=!1,xe.commaSeparated=!1,xe.spaceSeparated=!1,xe.commaOrSpaceSeparated=!1,xe.mustUseProperty=!1,xe.defined=!1;function ae(de,Te){this.property=de,this.attribute=Te}},83576:function(Ge,xe,ae){"use strict";var de=ae(97270),Te=ae(44347);Ge.exports=Ee;function Ee(Re){for(var je=Re.length,Ze=[],we=[],it=-1,Je,Ye;++it<je;)Je=Re[it],Ze.push(Je.property),we.push(Je.normal),Ye=Je.space;return new Te(de.apply(null,Ze),de.apply(null,we),Ye)}},44347:function(Ge){"use strict";Ge.exports=ae;var xe=ae.prototype;xe.space=null,xe.normal={},xe.property={};function ae(de,Te,Ee){this.property=de,this.normal=Te,Ee&&(this.space=Ee)}},70167:function(Ge,xe){"use strict";var ae=0;xe.boolean=de(),xe.booleanish=de(),xe.overloadedBoolean=de(),xe.number=de(),xe.spaceSeparated=de(),xe.commaSeparated=de(),xe.commaOrSpaceSeparated=de();function de(){return Math.pow(2,++ae)}},8179:function(Ge,xe,ae){"use strict";var de=ae(79318);Ge.exports=de({space:"xlink",transform:Te,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Te(Ee,Re){return"xlink:"+Re.slice(5).toLowerCase()}},59780:function(Ge,xe,ae){"use strict";var de=ae(79318);Ge.exports=de({space:"xml",transform:Te,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Te(Ee,Re){return"xml:"+Re.slice(3).toLowerCase()}},68244:function(Ge,xe,ae){"use strict";var de=ae(79318),Te=ae(85804);Ge.exports=de({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Te,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Ge){"use strict";Ge.exports=xe;function xe(ae){return ae.toLowerCase()}},17115:function(Ge,xe,ae){"use strict";ae.d(xe,{ZP:function(){return we}});var de=ae(29043),Te=ae(59301),Ee=ae(87746),Re=0,je=(0,Ee.Z)();function Ze(){var it;return je?(it=Re,Re+=1):it="TEST_OR_SSR",it}function we(it){var Je=Te.useState(),Ye=(0,de.Z)(Je,2),st=Ye[0],ht=Ye[1];return Te.useEffect(function(){ht("rc_select_".concat(Ze()))},[]),it||st}},77861:function(Ge,xe,ae){"use strict";ae.d(xe,{Ac:function(){return Ue},Xo:function(){return hi},Wx:function(){return Yi},ZP:function(){return Qn},lk:function(){return ke}});var de=ae(5891),Te=ae(26390),Ee=ae(80962),Re=ae(57259),je=ae(29043),Ze=ae(19149),we=ae(80665),it=ae(35788),Je=ae(51395),Ye=ae(59301),st=ae(92310),ht=ae.n(st),Lt=ae(28800),ze=ae(93144),ee=ae(85108),ne=ae(20475),fe=function(Et){var Ln=Et.className,Jn=Et.customizeIcon,Ci=Et.customizeIconProps,Pn=Et.onMouseDown,Rt=Et.onClick,Yn=Et.children,vi;return typeof Jn=="function"?vi=Jn(Ci):vi=Jn,Ye.createElement("span",{className:Ln,onMouseDown:function(Yt){Yt.preventDefault(),Pn&&Pn(Yt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Rt,"aria-hidden":!0},vi!==void 0?vi:Ye.createElement("span",{className:ht()(Ln.split(/\s+/).map(function(Oi){return"".concat(Oi,"-icon")}))},Yn))},le=fe;function me(Kt,Et,Ln,Jn,Ci){var Pn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Rt=arguments.length>6?arguments[6]:void 0,Yn=arguments.length>7?arguments[7]:void 0,vi=Ye.useMemo(function(){if((0,we.Z)(Jn)==="object")return Jn.clearIcon;if(Ci)return Ci},[Jn,Ci]),Oi=Ye.useMemo(function(){return!!(!Pn&&Jn&&(Ln.length||Rt)&&!(Yn==="combobox"&&Rt===""))},[Jn,Pn,Ln.length,Rt,Yn]);return{allowClear:Oi,clearIcon:Ye.createElement(le,{className:"".concat(Kt,"-clear"),onMouseDown:Et,customizeIcon:vi},"\xD7")}}var Se=Ye.createContext(null);function ke(){return Ye.useContext(Se)}function Be(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=Ye.useState(!1),Ln=(0,je.Z)(Et,2),Jn=Ln[0],Ci=Ln[1],Pn=Ye.useRef(null),Rt=function(){window.clearTimeout(Pn.current)};Ye.useEffect(function(){return Rt},[]);var Yn=function(Oi,Yt){Rt(),Pn.current=window.setTimeout(function(){Ci(Oi),Yt&&Yt()},Kt)};return[Jn,Yn,Rt]}function Ne(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=Ye.useRef(null),Ln=Ye.useRef(null);Ye.useEffect(function(){return function(){window.clearTimeout(Ln.current)}},[]);function Jn(Ci){(Ci||Et.current===null)&&(Et.current=Ci),window.clearTimeout(Ln.current),Ln.current=window.setTimeout(function(){Et.current=null},Kt)}return[function(){return Et.current},Jn]}function Ke(Kt,Et,Ln,Jn){var Ci=Ye.useRef(null);Ci.current={open:Et,triggerOpen:Ln,customizedTrigger:Jn},Ye.useEffect(function(){function Pn(Rt){var Yn;if(!((Yn=Ci.current)!==null&&Yn!==void 0&&Yn.customizedTrigger)){var vi=Rt.target;vi.shadowRoot&&Rt.composed&&(vi=Rt.composedPath()[0]||vi),Ci.current.open&&Kt().filter(function(Oi){return Oi}).every(function(Oi){return!Oi.contains(vi)&&Oi!==vi})&&Ci.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pn),function(){return window.removeEventListener("mousedown",Pn)}},[])}var $e=ae(36994),at=ae(11780),lt=function(Et,Ln){var Jn,Ci,Pn=Et.prefixCls,Rt=Et.id,Yn=Et.inputElement,vi=Et.disabled,Oi=Et.tabIndex,Yt=Et.autoFocus,Fn=Et.autoComplete,$t=Et.editable,pn=Et.activeDescendantId,An=Et.value,gn=Et.maxLength,In=Et.onKeyDown,Gn=Et.onMouseDown,qn=Et.onChange,oi=Et.onPaste,Hn=Et.onCompositionStart,ui=Et.onCompositionEnd,Ki=Et.open,Er=Et.attrs,Vi=Yn||Ye.createElement("input",null),Ht=Vi,Pi=Ht.ref,zi=Ht.props,Ti=zi.onKeyDown,er=zi.onChange,cr=zi.onMouseDown,Tr=zi.onCompositionStart,Qi=zi.onCompositionEnd,Fi=zi.style;return(0,Je.Kp)(!("maxLength"in Vi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Vi=Ye.cloneElement(Vi,(0,Re.Z)((0,Re.Z)((0,Re.Z)({type:"search"},zi),{},{id:Rt,ref:(0,ne.sQ)(Ln,Pi),disabled:vi,tabIndex:Oi,autoComplete:Fn||"off",autoFocus:Yt,className:ht()("".concat(Pn,"-selection-search-input"),(Jn=Vi)===null||Jn===void 0||(Ci=Jn.props)===null||Ci===void 0?void 0:Ci.className),role:"combobox","aria-label":"Search","aria-expanded":Ki||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Rt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Rt,"_list"),"aria-activedescendant":Ki?pn:void 0},Er),{},{value:$t?An:"",maxLength:gn,readOnly:!$t,unselectable:$t?null:"on",style:(0,Re.Z)((0,Re.Z)({},Fi),{},{opacity:$t?null:0}),onKeyDown:function(ln){In(ln),Ti&&Ti(ln)},onMouseDown:function(ln){Gn(ln),cr&&cr(ln)},onChange:function(ln){qn(ln),er&&er(ln)},onCompositionStart:function(ln){Hn(ln),Tr&&Tr(ln)},onCompositionEnd:function(ln){ui(ln),Qi&&Qi(ln)},onPaste:oi})),Vi},Tt=Ye.forwardRef(lt);Tt.displayName="Input";var nt=Tt;function Ut(Kt){return Array.isArray(Kt)?Kt:Kt!==void 0?[Kt]:[]}var kt=typeof window!="undefined"&&window.document&&window.document.documentElement,dn=kt;function nn(Kt){return Kt!=null}function qt(Kt){return!Kt&&Kt!==0}function un(Kt){return["string","number"].includes((0,we.Z)(Kt))}function mn(Kt){var Et=void 0;return Kt&&(un(Kt.title)?Et=Kt.title.toString():un(Kt.label)&&(Et=Kt.label.toString())),Et}function Ct(Kt,Et){dn?Ye.useLayoutEffect(Kt,Et):Ye.useEffect(Kt,Et)}function qe(Kt){var Et;return(Et=Kt.key)!==null&&Et!==void 0?Et:Kt.value}var Bt=function(Et){Et.preventDefault(),Et.stopPropagation()},Cn=function(Et){var Ln=Et.id,Jn=Et.prefixCls,Ci=Et.values,Pn=Et.open,Rt=Et.searchValue,Yn=Et.autoClearSearchValue,vi=Et.inputRef,Oi=Et.placeholder,Yt=Et.disabled,Fn=Et.mode,$t=Et.showSearch,pn=Et.autoFocus,An=Et.autoComplete,gn=Et.activeDescendantId,In=Et.tabIndex,Gn=Et.removeIcon,qn=Et.maxTagCount,oi=Et.maxTagTextLength,Hn=Et.maxTagPlaceholder,ui=Hn===void 0?function(Gr){return"+ ".concat(Gr.length," ...")}:Hn,Ki=Et.tagRender,Er=Et.onToggleOpen,Vi=Et.onRemove,Ht=Et.onInputChange,Pi=Et.onInputPaste,zi=Et.onInputKeyDown,Ti=Et.onInputMouseDown,er=Et.onInputCompositionStart,cr=Et.onInputCompositionEnd,Tr=Ye.useRef(null),Qi=(0,Ye.useState)(0),Fi=(0,je.Z)(Qi,2),Rr=Fi[0],ln=Fi[1],Ur=(0,Ye.useState)(!1),bn=(0,je.Z)(Ur,2),Mr=bn[0],Ho=bn[1],Fr="".concat(Jn,"-selection"),vo=Pn||Fn==="multiple"&&Yn===!1||Fn==="tags"?Rt:"",Ro=Fn==="tags"||Fn==="multiple"&&Yn===!1||$t&&(Pn||Mr);Ct(function(){ln(Tr.current.scrollWidth)},[vo]);function ir(Gr,ta,Hr,Uo,kr){return Ye.createElement("span",{className:ht()("".concat(Fr,"-item"),(0,Ee.Z)({},"".concat(Fr,"-item-disabled"),Hr)),title:mn(Gr)},Ye.createElement("span",{className:"".concat(Fr,"-item-content")},ta),Uo&&Ye.createElement(le,{className:"".concat(Fr,"-item-remove"),onMouseDown:Bt,onClick:kr,customizeIcon:Gn},"\xD7"))}function qi(Gr,ta,Hr,Uo,kr){var fr=function(Po){Bt(Po),Er(!Pn)};return Ye.createElement("span",{onMouseDown:fr},Ki({label:ta,value:Gr,disabled:Hr,closable:Uo,onClose:kr}))}function Vr(Gr){var ta=Gr.disabled,Hr=Gr.label,Uo=Gr.value,kr=!Yt&&!ta,fr=Hr;if(typeof oi=="number"&&(typeof Hr=="string"||typeof Hr=="number")){var no=String(fr);no.length>oi&&(fr="".concat(no.slice(0,oi),"..."))}var Po=function(na){na&&na.stopPropagation(),Vi(Gr)};return typeof Ki=="function"?qi(Uo,fr,ta,kr,Po):ir(Gr,fr,ta,kr,Po)}function lo(Gr){var ta=typeof ui=="function"?ui(Gr):ui;return ir({title:ta},ta,!1)}var ki=Ye.createElement("div",{className:"".concat(Fr,"-search"),style:{width:Rr},onFocus:function(){Ho(!0)},onBlur:function(){Ho(!1)}},Ye.createElement(nt,{ref:vi,open:Pn,prefixCls:Jn,id:Ln,inputElement:null,disabled:Yt,autoFocus:pn,autoComplete:An,editable:Ro,activeDescendantId:gn,value:vo,onKeyDown:zi,onMouseDown:Ti,onChange:Ht,onPaste:Pi,onCompositionStart:er,onCompositionEnd:cr,tabIndex:In,attrs:(0,$e.Z)(Et,!0)}),Ye.createElement("span",{ref:Tr,className:"".concat(Fr,"-search-mirror"),"aria-hidden":!0},vo,"\xA0")),ot=Ye.createElement(at.Z,{prefixCls:"".concat(Fr,"-overflow"),data:Ci,renderItem:Vr,renderRest:lo,suffix:ki,itemKey:qe,maxCount:qn});return Ye.createElement(Ye.Fragment,null,ot,!Ci.length&&!vo&&Ye.createElement("span",{className:"".concat(Fr,"-placeholder")},Oi))},Zn=Cn,zt=function(Et){var Ln=Et.inputElement,Jn=Et.prefixCls,Ci=Et.id,Pn=Et.inputRef,Rt=Et.disabled,Yn=Et.autoFocus,vi=Et.autoComplete,Oi=Et.activeDescendantId,Yt=Et.mode,Fn=Et.open,$t=Et.values,pn=Et.placeholder,An=Et.tabIndex,gn=Et.showSearch,In=Et.searchValue,Gn=Et.activeValue,qn=Et.maxLength,oi=Et.onInputKeyDown,Hn=Et.onInputMouseDown,ui=Et.onInputChange,Ki=Et.onInputPaste,Er=Et.onInputCompositionStart,Vi=Et.onInputCompositionEnd,Ht=Et.title,Pi=Ye.useState(!1),zi=(0,je.Z)(Pi,2),Ti=zi[0],er=zi[1],cr=Yt==="combobox",Tr=cr||gn,Qi=$t[0],Fi=In||"";cr&&Gn&&!Ti&&(Fi=Gn),Ye.useEffect(function(){cr&&er(!1)},[cr,Gn]);var Rr=Yt!=="combobox"&&!Fn&&!gn?!1:!!Fi,ln=Ht===void 0?mn(Qi):Ht,Ur=function(){if(Qi)return null;var Mr=Rr?{visibility:"hidden"}:void 0;return Ye.createElement("span",{className:"".concat(Jn,"-selection-placeholder"),style:Mr},pn)};return Ye.createElement(Ye.Fragment,null,Ye.createElement("span",{className:"".concat(Jn,"-selection-search")},Ye.createElement(nt,{ref:Pn,prefixCls:Jn,id:Ci,open:Fn,inputElement:Ln,disabled:Rt,autoFocus:Yn,autoComplete:vi,editable:Tr,activeDescendantId:Oi,value:Fi,onKeyDown:oi,onMouseDown:Hn,onChange:function(Mr){er(!0),ui(Mr)},onPaste:Ki,onCompositionStart:Er,onCompositionEnd:Vi,tabIndex:An,attrs:(0,$e.Z)(Et,!0),maxLength:cr?qn:void 0})),!cr&&Qi?Ye.createElement("span",{className:"".concat(Jn,"-selection-item"),title:ln,style:Rr?{visibility:"hidden"}:void 0},Qi.label):null,Ur())},sn=zt;function Mn(Kt){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(Kt)}var fi=function(Et,Ln){var Jn=(0,Ye.useRef)(null),Ci=(0,Ye.useRef)(!1),Pn=Et.prefixCls,Rt=Et.open,Yn=Et.mode,vi=Et.showSearch,Oi=Et.tokenWithEnter,Yt=Et.autoClearSearchValue,Fn=Et.onSearch,$t=Et.onSearchSubmit,pn=Et.onToggleOpen,An=Et.onInputKeyDown,gn=Et.domRef;Ye.useImperativeHandle(Ln,function(){return{focus:function(){Jn.current.focus()},blur:function(){Jn.current.blur()}}});var In=Ne(0),Gn=(0,je.Z)(In,2),qn=Gn[0],oi=Gn[1],Hn=function(Fi){var Rr=Fi.which;(Rr===ee.Z.UP||Rr===ee.Z.DOWN)&&Fi.preventDefault(),An&&An(Fi),Rr===ee.Z.ENTER&&Yn==="tags"&&!Ci.current&&!Rt&&($t==null||$t(Fi.target.value)),Mn(Rr)&&pn(!0)},ui=function(){oi(!0)},Ki=(0,Ye.useRef)(null),Er=function(Fi){Fn(Fi,!0,Ci.current)!==!1&&pn(!0)},Vi=function(){Ci.current=!0},Ht=function(Fi){Ci.current=!1,Yn!=="combobox"&&Er(Fi.target.value)},Pi=function(Fi){var Rr=Fi.target.value;if(Oi&&Ki.current&&/[\r\n]/.test(Ki.current)){var ln=Ki.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Rr=Rr.replace(ln,Ki.current)}Ki.current=null,Er(Rr)},zi=function(Fi){var Rr=Fi.clipboardData,ln=Rr.getData("text");Ki.current=ln},Ti=function(Fi){var Rr=Fi.target;if(Rr!==Jn.current){var ln=document.body.style.msTouchAction!==void 0;ln?setTimeout(function(){Jn.current.focus()}):Jn.current.focus()}},er=function(Fi){var Rr=qn();Fi.target!==Jn.current&&!Rr&&Yn!=="combobox"&&Fi.preventDefault(),(Yn!=="combobox"&&(!vi||!Rr)||!Rt)&&(Rt&&Yt!==!1&&Fn("",!0,!1),pn())},cr={inputRef:Jn,onInputKeyDown:Hn,onInputMouseDown:ui,onInputChange:Pi,onInputPaste:zi,onInputCompositionStart:Vi,onInputCompositionEnd:Ht},Tr=Yn==="multiple"||Yn==="tags"?Ye.createElement(Zn,(0,de.Z)({},Et,cr)):Ye.createElement(sn,(0,de.Z)({},Et,cr));return Ye.createElement("div",{ref:gn,className:"".concat(Pn,"-selector"),onClick:Ti,onMouseDown:er},Tr)},Rn=Ye.forwardRef(fi);Rn.displayName="Selector";var li=Rn,Ot=ae(35593),kn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$n=function(Et){var Ln=Et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ln,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ln,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ln,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ln,adjustY:1},htmlRegion:"scroll"}}},xi=function(Et,Ln){var Jn=Et.prefixCls,Ci=Et.disabled,Pn=Et.visible,Rt=Et.children,Yn=Et.popupElement,vi=Et.animation,Oi=Et.transitionName,Yt=Et.dropdownStyle,Fn=Et.dropdownClassName,$t=Et.direction,pn=$t===void 0?"ltr":$t,An=Et.placement,gn=Et.builtinPlacements,In=Et.dropdownMatchSelectWidth,Gn=Et.dropdownRender,qn=Et.dropdownAlign,oi=Et.getPopupContainer,Hn=Et.empty,ui=Et.getTriggerDOMNode,Ki=Et.onPopupVisibleChange,Er=Et.onPopupMouseEnter,Vi=(0,Ze.Z)(Et,kn),Ht="".concat(Jn,"-dropdown"),Pi=Yn;Gn&&(Pi=Gn(Yn));var zi=Ye.useMemo(function(){return gn||$n(In)},[gn,In]),Ti=vi?"".concat(Ht,"-").concat(vi):Oi,er=typeof In=="number",cr=Ye.useMemo(function(){return er?null:In===!1?"minWidth":"width"},[In,er]),Tr=Yt;er&&(Tr=(0,Re.Z)((0,Re.Z)({},Tr),{},{width:In}));var Qi=Ye.useRef(null);return Ye.useImperativeHandle(Ln,function(){return{getPopupElement:function(){return Qi.current}}}),Ye.createElement(Ot.Z,(0,de.Z)({},Vi,{showAction:Ki?["click"]:[],hideAction:Ki?["click"]:[],popupPlacement:An||(pn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:zi,prefixCls:Ht,popupTransitionName:Ti,popup:Ye.createElement("div",{ref:Qi,onMouseEnter:Er},Pi),stretch:cr,popupAlign:qn,popupVisible:Pn,getPopupContainer:oi,popupClassName:ht()(Fn,(0,Ee.Z)({},"".concat(Ht,"-empty"),Hn)),popupStyle:Tr,getTriggerDOMNode:ui,onPopupVisibleChange:Ki}),Rt)},xn=Ye.forwardRef(xi);xn.displayName="SelectTrigger";var Gt=xn,jt=ae(17953);function It(Kt,Et){var Ln=Kt.key,Jn;return"value"in Kt&&(Jn=Kt.value),Ln!=null?Ln:Jn!==void 0?Jn:"rc-index-key-".concat(Et)}function vt(Kt,Et){var Ln=Kt||{},Jn=Ln.label,Ci=Ln.value,Pn=Ln.options,Rt=Ln.groupLabel,Yn=Jn||(Et?"children":"label");return{label:Yn,value:Ci||"value",options:Pn||"options",groupLabel:Rt||Yn}}function Xt(Kt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=Et.fieldNames,Jn=Et.childrenAsData,Ci=[],Pn=vt(Ln,!1),Rt=Pn.label,Yn=Pn.value,vi=Pn.options,Oi=Pn.groupLabel;function Yt(Fn,$t){Fn.forEach(function(pn){if($t||!(vi in pn)){var An=pn[Yn];Ci.push({key:It(pn,Ci.length),groupOption:$t,data:pn,label:pn[Rt],value:An})}else{var gn=pn[Oi];gn===void 0&&Jn&&(gn=pn.label),Ci.push({key:It(pn,Ci.length),group:!0,data:pn,label:gn}),Yt(pn[vi],!0)}})}return Yt(Kt,!1),Ci}function Zt(Kt){var Et=(0,Re.Z)({},Kt);return"props"in Et||Object.defineProperty(Et,"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`."),Et}}),Et}function yt(Kt,Et){if(!Et||!Et.length)return null;var Ln=!1;function Jn(Pn,Rt){var Yn=(0,jt.Z)(Rt),vi=Yn[0],Oi=Yn.slice(1);if(!vi)return[Pn];var Yt=Pn.split(vi);return Ln=Ln||Yt.length>1,Yt.reduce(function(Fn,$t){return[].concat((0,Te.Z)(Fn),(0,Te.Z)(Jn($t,Oi)))},[]).filter(function(Fn){return Fn})}var Ci=Jn(Kt,Et);return Ln?Ci:null}var ft=["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"],_e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Pe(Kt){return Kt==="tags"||Kt==="multiple"}var be=Ye.forwardRef(function(Kt,Et){var Ln,Jn,Ci=Kt.id,Pn=Kt.prefixCls,Rt=Kt.className,Yn=Kt.showSearch,vi=Kt.tagRender,Oi=Kt.direction,Yt=Kt.omitDomProps,Fn=Kt.displayValues,$t=Kt.onDisplayValuesChange,pn=Kt.emptyOptions,An=Kt.notFoundContent,gn=An===void 0?"Not Found":An,In=Kt.onClear,Gn=Kt.mode,qn=Kt.disabled,oi=Kt.loading,Hn=Kt.getInputElement,ui=Kt.getRawInputElement,Ki=Kt.open,Er=Kt.defaultOpen,Vi=Kt.onDropdownVisibleChange,Ht=Kt.activeValue,Pi=Kt.onActiveValueChange,zi=Kt.activeDescendantId,Ti=Kt.searchValue,er=Kt.autoClearSearchValue,cr=Kt.onSearch,Tr=Kt.onSearchSplit,Qi=Kt.tokenSeparators,Fi=Kt.allowClear,Rr=Kt.suffixIcon,ln=Kt.clearIcon,Ur=Kt.OptionList,bn=Kt.animation,Mr=Kt.transitionName,Ho=Kt.dropdownStyle,Fr=Kt.dropdownClassName,vo=Kt.dropdownMatchSelectWidth,Ro=Kt.dropdownRender,ir=Kt.dropdownAlign,qi=Kt.placement,Vr=Kt.builtinPlacements,lo=Kt.getPopupContainer,ki=Kt.showAction,ot=ki===void 0?[]:ki,Gr=Kt.onFocus,ta=Kt.onBlur,Hr=Kt.onKeyUp,Uo=Kt.onKeyDown,kr=Kt.onMouseDown,fr=(0,Ze.Z)(Kt,ft),no=Pe(Gn),Po=(Yn!==void 0?Yn:no)||Gn==="combobox",Wr=(0,Re.Z)({},fr);_e.forEach(function(wo){delete Wr[wo]}),Yt==null||Yt.forEach(function(wo){delete Wr[wo]});var na=Ye.useState(!1),tr=(0,je.Z)(na,2),Zi=tr[0],Pr=tr[1];Ye.useEffect(function(){Pr((0,ze.Z)())},[]);var ai=Ye.useRef(null),xo=Ye.useRef(null),_o=Ye.useRef(null),Wo=Ye.useRef(null),ea=Ye.useRef(null),ka=Be(),Ja=(0,je.Z)(ka,3),cs=Ja[0],Ts=Ja[1],al=Ja[2];Ye.useImperativeHandle(Et,function(){var wo,aa;return{focus:(wo=Wo.current)===null||wo===void 0?void 0:wo.focus,blur:(aa=Wo.current)===null||aa===void 0?void 0:aa.blur,scrollTo:function(ks){var fs;return(fs=ea.current)===null||fs===void 0?void 0:fs.scrollTo(ks)}}});var Js=Ye.useMemo(function(){var wo;if(Gn!=="combobox")return Ti;var aa=(wo=Fn[0])===null||wo===void 0?void 0:wo.value;return typeof aa=="string"||typeof aa=="number"?String(aa):""},[Ti,Gn,Fn]),vn=Gn==="combobox"&&typeof Hn=="function"&&Hn()||null,Ms=typeof ui=="function"&&ui(),fu=(0,ne.x1)(xo,Ms==null||(Ln=Ms.props)===null||Ln===void 0?void 0:Ln.ref),gu=Ye.useState(!1),ho=(0,je.Z)(gu,2),ia=ho[0],ja=ho[1];(0,Lt.Z)(function(){ja(!0)},[]);var Ko=(0,it.Z)(!1,{defaultValue:Er,value:Ki}),ao=(0,je.Z)(Ko,2),Jo=ao[0],xs=ao[1],Kr=ia?Jo:!1,To=!gn&&pn;(qn||To&&Kr&&Gn==="combobox")&&(Kr=!1);var bo=To?!1:Kr,ji=Ye.useCallback(function(wo){var aa=wo!==void 0?wo:!Kr;qn||(xs(aa),Kr!==aa&&(Vi==null||Vi(aa)))},[qn,Kr,xs,Vi]),ds=Ye.useMemo(function(){return(Qi||[]).some(function(wo){return[`
`,`\r
`].includes(wo)})},[Qi]),hs=function(aa,hl,ks){var fs=!0,Ua=aa;Pi==null||Pi(null);var qa=ks?null:yt(aa,Qi);return Gn!=="combobox"&&qa&&(Ua="",Tr==null||Tr(qa),ji(!1),fs=!1),cr&&Js!==Ua&&cr(Ua,{source:hl?"typing":"effect"}),fs},dl=function(aa){!aa||!aa.trim()||cr(aa,{source:"submit"})};Ye.useEffect(function(){!Kr&&!no&&Gn!=="combobox"&&hs("",!1,!1)},[Kr]),Ye.useEffect(function(){Jo&&qn&&xs(!1),qn&&Ts(!1)},[qn]);var pu=Ne(),Iu=(0,je.Z)(pu,2),Ii=Iu[0],Da=Iu[1],bs=function(aa){var hl=Ii(),ks=aa.which;if(ks===ee.Z.ENTER&&(Gn!=="combobox"&&aa.preventDefault(),Kr||ji(!0)),Da(!!Js),ks===ee.Z.BACKSPACE&&!hl&&no&&!Js&&Fn.length){for(var fs=(0,Te.Z)(Fn),Ua=null,qa=fs.length-1;qa>=0;qa-=1){var ws=fs[qa];if(!ws.disabled){fs.splice(qa,1),Ua=ws;break}}Ua&&$t(fs,{type:"remove",values:[Ua]})}for(var gs=arguments.length,gc=new Array(gs>1?gs-1:0),vu=1;vu<gs;vu++)gc[vu-1]=arguments[vu];if(Kr&&ea.current){var es;(es=ea.current).onKeyDown.apply(es,[aa].concat(gc))}Uo==null||Uo.apply(void 0,[aa].concat(gc))},Xl=function(aa){for(var hl=arguments.length,ks=new Array(hl>1?hl-1:0),fs=1;fs<hl;fs++)ks[fs-1]=arguments[fs];if(Kr&&ea.current){var Ua;(Ua=ea.current).onKeyUp.apply(Ua,[aa].concat(ks))}Hr==null||Hr.apply(void 0,[aa].concat(ks))},Ql=function(aa){var hl=Fn.filter(function(ks){return ks!==aa});$t(hl,{type:"remove",values:[aa]})},mu=Ye.useRef(!1),Xr=function(){Ts(!0),qn||(Gr&&!mu.current&&Gr.apply(void 0,arguments),ot.includes("focus")&&ji(!0)),mu.current=!0},Vc=function(){Ts(!1,function(){mu.current=!1,ji(!1)}),!qn&&(Js&&(Gn==="tags"?cr(Js,{source:"submit"}):Gn==="multiple"&&cr("",{source:"blur"})),ta&&ta.apply(void 0,arguments))},bl=[];Ye.useEffect(function(){return function(){bl.forEach(function(wo){return clearTimeout(wo)}),bl.splice(0,bl.length)}},[]);var wl=function(aa){var hl,ks=aa.target,fs=(hl=_o.current)===null||hl===void 0?void 0:hl.getPopupElement();if(fs&&fs.contains(ks)){var Ua=setTimeout(function(){var gc=bl.indexOf(Ua);if(gc!==-1&&bl.splice(gc,1),al(),!Zi&&!fs.contains(document.activeElement)){var vu;(vu=Wo.current)===null||vu===void 0||vu.focus()}});bl.push(Ua)}for(var qa=arguments.length,ws=new Array(qa>1?qa-1:0),gs=1;gs<qa;gs++)ws[gs-1]=arguments[gs];kr==null||kr.apply(void 0,[aa].concat(ws))},pl=Ye.useState({}),Ju=(0,je.Z)(pl,2),qu=Ju[1];function ml(){qu({})}var Il;Ms&&(Il=function(aa){ji(aa)}),Ke(function(){var wo;return[ai.current,(wo=_o.current)===null||wo===void 0?void 0:wo.getPopupElement()]},bo,ji,!!Ms);var ud=Ye.useMemo(function(){return(0,Re.Z)((0,Re.Z)({},Kt),{},{notFoundContent:gn,open:Kr,triggerOpen:bo,id:Ci,showSearch:Po,multiple:no,toggleOpen:ji})},[Kt,gn,bo,Kr,Ci,Po,no,ji]),cd=!!Rr||oi,Tc;cd&&(Tc=Ye.createElement(le,{className:ht()("".concat(Pn,"-arrow"),(0,Ee.Z)({},"".concat(Pn,"-arrow-loading"),oi)),customizeIcon:Rr,customizeIconProps:{loading:oi,searchValue:Js,open:Kr,focused:cs,showSearch:Po}}));var Ed=function(){var aa;In==null||In(),(aa=Wo.current)===null||aa===void 0||aa.focus(),$t([],{type:"clear",values:Fn}),hs("",!1,!1)},dd=me(Pn,Ed,Fn,Fi,ln,qn,Js,Gn),kc=dd.allowClear,hc=dd.clearIcon,Ml=Ye.createElement(Ur,{ref:ea}),Cd=ht()(Pn,Rt,(Jn={},(0,Ee.Z)(Jn,"".concat(Pn,"-focused"),cs),(0,Ee.Z)(Jn,"".concat(Pn,"-multiple"),no),(0,Ee.Z)(Jn,"".concat(Pn,"-single"),!no),(0,Ee.Z)(Jn,"".concat(Pn,"-allow-clear"),Fi),(0,Ee.Z)(Jn,"".concat(Pn,"-show-arrow"),cd),(0,Ee.Z)(Jn,"".concat(Pn,"-disabled"),qn),(0,Ee.Z)(Jn,"".concat(Pn,"-loading"),oi),(0,Ee.Z)(Jn,"".concat(Pn,"-open"),Kr),(0,Ee.Z)(Jn,"".concat(Pn,"-customize-input"),vn),(0,Ee.Z)(Jn,"".concat(Pn,"-show-search"),Po),Jn)),Ac=Ye.createElement(Gt,{ref:_o,disabled:qn,prefixCls:Pn,visible:bo,popupElement:Ml,animation:bn,transitionName:Mr,dropdownStyle:Ho,dropdownClassName:Fr,direction:Oi,dropdownMatchSelectWidth:vo,dropdownRender:Ro,dropdownAlign:ir,placement:qi,builtinPlacements:Vr,getPopupContainer:lo,empty:pn,getTriggerDOMNode:function(){return xo.current},onPopupVisibleChange:Il,onPopupMouseEnter:ml},Ms?Ye.cloneElement(Ms,{ref:fu}):Ye.createElement(li,(0,de.Z)({},Kt,{domRef:xo,prefixCls:Pn,inputElement:vn,ref:Wo,id:Ci,showSearch:Po,autoClearSearchValue:er,mode:Gn,activeDescendantId:zi,tagRender:vi,values:Fn,open:Kr,onToggleOpen:ji,activeValue:Ht,searchValue:Js,onSearch:hs,onSearchSubmit:dl,onRemove:Ql,tokenWithEnter:ds}))),fc;return Ms?fc=Ac:fc=Ye.createElement("div",(0,de.Z)({className:Cd},Wr,{ref:ai,onMouseDown:wl,onKeyDown:bs,onKeyUp:Xl,onFocus:Xr,onBlur:Vc}),cs&&!Kr&&Ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Fn.map(function(wo){var aa=wo.label,hl=wo.value;return["number","string"].includes((0,we.Z)(aa))?aa:hl}).join(", "))),Ac,Tc,kc&&hc),Ye.createElement(Se.Provider,{value:ud},fc)}),Ue=be,Qe=function(Kt,Et){var Ln=Ye.useRef({values:new Map,options:new Map}),Jn=Ye.useMemo(function(){var Pn=Ln.current,Rt=Pn.values,Yn=Pn.options,vi=Kt.map(function(Fn){if(Fn.label===void 0){var $t;return(0,Re.Z)((0,Re.Z)({},Fn),{},{label:($t=Rt.get(Fn.value))===null||$t===void 0?void 0:$t.label})}return Fn}),Oi=new Map,Yt=new Map;return vi.forEach(function(Fn){Oi.set(Fn.value,Fn),Yt.set(Fn.value,Et.get(Fn.value)||Yn.get(Fn.value))}),Ln.current.values=Oi,Ln.current.options=Yt,vi},[Kt,Et]),Ci=Ye.useCallback(function(Pn){return Et.get(Pn)||Ln.current.options.get(Pn)},[Et]);return[Jn,Ci]};function Fe(Kt,Et){return Ut(Kt).join("").toUpperCase().includes(Et)}var gt=function(Kt,Et,Ln,Jn,Ci){return Ye.useMemo(function(){if(!Ln||Jn===!1)return Kt;var Pn=Et.options,Rt=Et.label,Yn=Et.value,vi=[],Oi=typeof Jn=="function",Yt=Ln.toUpperCase(),Fn=Oi?Jn:function(pn,An){return Ci?Fe(An[Ci],Yt):An[Pn]?Fe(An[Rt!=="children"?Rt:"label"],Yt):Fe(An[Yn],Yt)},$t=Oi?function(pn){return Zt(pn)}:function(pn){return pn};return Kt.forEach(function(pn){if(pn[Pn]){var An=Fn(Ln,$t(pn));if(An)vi.push(pn);else{var gn=pn[Pn].filter(function(In){return Fn(Ln,$t(In))});gn.length&&vi.push((0,Re.Z)((0,Re.Z)({},pn),{},(0,Ee.Z)({},Pn,gn)))}return}Fn(Ln,$t(pn))&&vi.push(pn)}),vi},[Kt,Jn,Ci,Ln,Et])},tn=ae(17115),yn=ae(38298),bt=["children","value"],Wt=["children"];function fn(Kt){var Et=Kt,Ln=Et.key,Jn=Et.props,Ci=Jn.children,Pn=Jn.value,Rt=(0,Ze.Z)(Jn,bt);return(0,Re.Z)({key:Ln,value:Pn!==void 0?Pn:Ln,children:Ci},Rt)}function zn(Kt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,yn.Z)(Kt).map(function(Ln,Jn){if(!Ye.isValidElement(Ln)||!Ln.type)return null;var Ci=Ln,Pn=Ci.type.isSelectOptGroup,Rt=Ci.key,Yn=Ci.props,vi=Yn.children,Oi=(0,Ze.Z)(Yn,Wt);return Et||!Pn?fn(Ln):(0,Re.Z)((0,Re.Z)({key:"__RC_SELECT_GRP__".concat(Rt===null?Jn:Rt,"__"),label:Rt},Oi),{},{options:zn(vi)})}).filter(function(Ln){return Ln})}function ni(Kt,Et,Ln,Jn,Ci){return Ye.useMemo(function(){var Pn=Kt,Rt=!Kt;Rt&&(Pn=zn(Et));var Yn=new Map,vi=new Map,Oi=function($t,pn,An){An&&typeof An=="string"&&$t.set(pn[An],pn)};function Yt(Fn){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pn=0;pn<Fn.length;pn+=1){var An=Fn[pn];!An[Ln.options]||$t?(Yn.set(An[Ln.value],An),Oi(vi,An,Ln.label),Oi(vi,An,Jn),Oi(vi,An,Ci)):Yt(An[Ln.options],!0)}}return Yt(Pn),{options:Pn,valueOptions:Yn,labelOptions:vi}},[Kt,Et,Ln,Jn,Ci])}function di(Kt){var Et=Ye.useRef();Et.current=Kt;var Ln=Ye.useCallback(function(){return Et.current.apply(Et,arguments)},[]);return Ln}var wi=function(){return null};wi.isSelectOptGroup=!0;var hi=wi,Li=function(){return null};Li.isSelectOption=!0;var Yi=Li,Ji=ae(79722),Xi=ae(64002),dr=ae(21881),Ir=Ye.createContext(null),Wi=Ir;function Dr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _i=["disabled","title","children","style","className"];function De(Kt){return typeof Kt=="string"||typeof Kt=="number"}var jr=function(Et,Ln){var Jn=ke(),Ci=Jn.prefixCls,Pn=Jn.id,Rt=Jn.open,Yn=Jn.multiple,vi=Jn.mode,Oi=Jn.searchValue,Yt=Jn.toggleOpen,Fn=Jn.notFoundContent,$t=Jn.onPopupScroll,pn=Ye.useContext(Wi),An=pn.flattenOptions,gn=pn.onActiveValue,In=pn.defaultActiveFirstOption,Gn=pn.onSelect,qn=pn.menuItemSelectedIcon,oi=pn.rawValues,Hn=pn.fieldNames,ui=pn.virtual,Ki=pn.direction,Er=pn.listHeight,Vi=pn.listItemHeight,Ht="".concat(Ci,"-item"),Pi=(0,Ji.Z)(function(){return An},[Rt,An],function(ir,qi){return qi[0]&&ir[1]!==qi[1]}),zi=Ye.useRef(null),Ti=function(qi){qi.preventDefault()},er=function(qi){zi.current&&zi.current.scrollTo(typeof qi=="number"?{index:qi}:qi)},cr=function(qi){for(var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,lo=Pi.length,ki=0;ki<lo;ki+=1){var ot=(qi+ki*Vr+lo)%lo,Gr=Pi[ot],ta=Gr.group,Hr=Gr.data;if(!ta&&!Hr.disabled)return ot}return-1},Tr=Ye.useState(function(){return cr(0)}),Qi=(0,je.Z)(Tr,2),Fi=Qi[0],Rr=Qi[1],ln=function(qi){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Rr(qi);var lo={source:Vr?"keyboard":"mouse"},ki=Pi[qi];if(!ki){gn(null,-1,lo);return}gn(ki.value,qi,lo)};(0,Ye.useEffect)(function(){ln(In!==!1?cr(0):-1)},[Pi.length,Oi]);var Ur=Ye.useCallback(function(ir){return oi.has(ir)&&vi!=="combobox"},[vi,(0,Te.Z)(oi).toString(),oi.size]);(0,Ye.useEffect)(function(){var ir=setTimeout(function(){if(!Yn&&Rt&&oi.size===1){var Vr=Array.from(oi)[0],lo=Pi.findIndex(function(ki){var ot=ki.data;return ot.value===Vr});lo!==-1&&(ln(lo),er(lo))}});if(Rt){var qi;(qi=zi.current)===null||qi===void 0||qi.scrollTo(void 0)}return function(){return clearTimeout(ir)}},[Rt,Oi,An.length]);var bn=function(qi){qi!==void 0&&Gn(qi,{selected:!oi.has(qi)}),Yn||Yt(!1)};if(Ye.useImperativeHandle(Ln,function(){return{onKeyDown:function(qi){var Vr=qi.which,lo=qi.ctrlKey;switch(Vr){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var ki=0;if(Vr===ee.Z.UP?ki=-1:Vr===ee.Z.DOWN?ki=1:Dr()&&lo&&(Vr===ee.Z.N?ki=1:Vr===ee.Z.P&&(ki=-1)),ki!==0){var ot=cr(Fi+ki,ki);er(ot),ln(ot,!0)}break}case ee.Z.ENTER:{var Gr=Pi[Fi];Gr&&!Gr.data.disabled?bn(Gr.value):bn(void 0),Rt&&qi.preventDefault();break}case ee.Z.ESC:Yt(!1),Rt&&qi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qi){er(qi)}}}),Pi.length===0)return Ye.createElement("div",{role:"listbox",id:"".concat(Pn,"_list"),className:"".concat(Ht,"-empty"),onMouseDown:Ti},Fn);var Mr=Object.keys(Hn).map(function(ir){return Hn[ir]}),Ho=function(qi){return qi.label};function Fr(ir,qi){var Vr=ir.group;return{role:Vr?"presentation":"option",id:"".concat(Pn,"_list_").concat(qi)}}var vo=function(qi){var Vr=Pi[qi];if(!Vr)return null;var lo=Vr.data||{},ki=lo.value,ot=Vr.group,Gr=(0,$e.Z)(lo,!0),ta=Ho(Vr);return Vr?Ye.createElement("div",(0,de.Z)({"aria-label":typeof ta=="string"&&!ot?ta:null},Gr,{key:qi},Fr(Vr,qi),{"aria-selected":Ur(ki)}),ki):null},Ro={role:"listbox",id:"".concat(Pn,"_list")};return Ye.createElement(Ye.Fragment,null,ui&&Ye.createElement("div",(0,de.Z)({},Ro,{style:{height:0,width:0,overflow:"hidden"}}),vo(Fi-1),vo(Fi),vo(Fi+1)),Ye.createElement(dr.Z,{itemKey:"key",ref:zi,data:Pi,height:Er,itemHeight:Vi,fullHeight:!1,onMouseDown:Ti,onScroll:$t,virtual:ui,direction:Ki,innerProps:ui?null:Ro},function(ir,qi){var Vr,lo=ir.group,ki=ir.groupOption,ot=ir.data,Gr=ir.label,ta=ir.value,Hr=ot.key;if(lo){var Uo,kr=(Uo=ot.title)!==null&&Uo!==void 0?Uo:De(Gr)?Gr.toString():void 0;return Ye.createElement("div",{className:ht()(Ht,"".concat(Ht,"-group")),title:kr},Gr!==void 0?Gr:Hr)}var fr=ot.disabled,no=ot.title,Po=ot.children,Wr=ot.style,na=ot.className,tr=(0,Ze.Z)(ot,_i),Zi=(0,Xi.Z)(tr,Mr),Pr=Ur(ta),ai="".concat(Ht,"-option"),xo=ht()(Ht,ai,na,(Vr={},(0,Ee.Z)(Vr,"".concat(ai,"-grouped"),ki),(0,Ee.Z)(Vr,"".concat(ai,"-active"),Fi===qi&&!fr),(0,Ee.Z)(Vr,"".concat(ai,"-disabled"),fr),(0,Ee.Z)(Vr,"".concat(ai,"-selected"),Pr),Vr)),_o=Ho(ir),Wo=!qn||typeof qn=="function"||Pr,ea=typeof _o=="number"?_o:_o||ta,ka=De(ea)?ea.toString():void 0;return no!==void 0&&(ka=no),Ye.createElement("div",(0,de.Z)({},(0,$e.Z)(Zi),ui?{}:Fr(ir,qi),{"aria-selected":Pr,className:xo,title:ka,onMouseMove:function(){Fi===qi||fr||ln(qi)},onClick:function(){fr||bn(ta)},style:Wr}),Ye.createElement("div",{className:"".concat(ai,"-content")},ea),Ye.isValidElement(qn)||Pr,Wo&&Ye.createElement(le,{className:"".concat(Ht,"-option-state"),customizeIcon:qn,customizeIconProps:{isSelected:Pr}},Pr?"\u2713":null))}))},hr=Ye.forwardRef(jr);hr.displayName="OptionList";var oo=hr;function Oo(Kt){var Et=Kt.mode,Ln=Kt.options,Jn=Kt.children,Ci=Kt.backfill,Pn=Kt.allowClear,Rt=Kt.placeholder,Yn=Kt.getInputElement,vi=Kt.showSearch,Oi=Kt.onSearch,Yt=Kt.defaultOpen,Fn=Kt.autoFocus,$t=Kt.labelInValue,pn=Kt.value,An=Kt.inputValue,gn=Kt.optionLabelProp,In=isMultiple(Et),Gn=vi!==void 0?vi:In||Et==="combobox",qn=Ln||convertChildrenToData(Jn);if(warning(Et!=="tags"||qn.every(function(Ki){return!Ki.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Et==="tags"||Et==="combobox"){var oi=qn.some(function(Ki){return Ki.options?Ki.options.some(function(Er){return typeof("value"in Er?Er.value:Er.key)=="number"}):typeof("value"in Ki?Ki.value:Ki.key)=="number"});warning(!oi,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Et!=="combobox"||!gn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Et==="combobox"||!Ci,"`backfill` only works with `combobox` mode."),warning(Et==="combobox"||!Yn,"`getInputElement` only work with `combobox` mode."),noteOnce(Et!=="combobox"||!Yn||!Pn||!Rt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oi&&!Gn&&Et!=="combobox"&&Et!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Yt||Fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pn!=null){var Hn=toArray(pn);warning(!$t||Hn.every(function(Ki){return _typeof(Ki)==="object"&&("key"in Ki||"value"in Ki)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(pn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Jn){var ui=null;toNodeArray(Jn).some(function(Ki){if(!React.isValidElement(Ki)||!Ki.type)return!1;var Er=Ki,Vi=Er.type;if(Vi.isSelectOption)return!1;if(Vi.isSelectOptGroup){var Ht=toNodeArray(Ki.props.children).every(function(Pi){return!React.isValidElement(Pi)||!Ki.type||Pi.type.isSelectOption?!0:(ui=Pi.type,!1)});return!Ht}return ui=Vi,!0}),ui&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ui.displayName||ui.name||ui,"`.")),warning(An===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Do(Kt,Et){if(Kt){var Ln=function Jn(Ci){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rt=0;Rt<Ci.length;Rt++){var Yn=Ci[Rt];if(Yn[Et==null?void 0:Et.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Pn&&Array.isArray(Yn[Et==null?void 0:Et.options])&&Jn(Yn[Et==null?void 0:Et.options],!0))break}};Ln(Kt)}}var Co=null,so=["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"],En=["inputValue"];function Tn(Kt){return!Kt||(0,we.Z)(Kt)!=="object"}var on=Ye.forwardRef(function(Kt,Et){var Ln=Kt.id,Jn=Kt.mode,Ci=Kt.prefixCls,Pn=Ci===void 0?"rc-select":Ci,Rt=Kt.backfill,Yn=Kt.fieldNames,vi=Kt.inputValue,Oi=Kt.searchValue,Yt=Kt.onSearch,Fn=Kt.autoClearSearchValue,$t=Fn===void 0?!0:Fn,pn=Kt.onSelect,An=Kt.onDeselect,gn=Kt.dropdownMatchSelectWidth,In=gn===void 0?!0:gn,Gn=Kt.filterOption,qn=Kt.filterSort,oi=Kt.optionFilterProp,Hn=Kt.optionLabelProp,ui=Kt.options,Ki=Kt.children,Er=Kt.defaultActiveFirstOption,Vi=Kt.menuItemSelectedIcon,Ht=Kt.virtual,Pi=Kt.direction,zi=Kt.listHeight,Ti=zi===void 0?200:zi,er=Kt.listItemHeight,cr=er===void 0?20:er,Tr=Kt.value,Qi=Kt.defaultValue,Fi=Kt.labelInValue,Rr=Kt.onChange,ln=(0,Ze.Z)(Kt,so),Ur=(0,tn.ZP)(Ln),bn=Pe(Jn),Mr=!!(!ui&&Ki),Ho=Ye.useMemo(function(){return Gn===void 0&&Jn==="combobox"?!1:Gn},[Gn,Jn]),Fr=Ye.useMemo(function(){return vt(Yn,Mr)},[JSON.stringify(Yn),Mr]),vo=(0,it.Z)("",{value:Oi!==void 0?Oi:vi,postState:function(To){return To||""}}),Ro=(0,je.Z)(vo,2),ir=Ro[0],qi=Ro[1],Vr=ni(ui,Ki,Fr,oi,Hn),lo=Vr.valueOptions,ki=Vr.labelOptions,ot=Vr.options,Gr=Ye.useCallback(function(Kr){var To=Ut(Kr);return To.map(function(bo){var ji,ds,hs,dl,pu;if(Tn(bo))ji=bo;else{var Iu;hs=bo.key,ds=bo.label,ji=(Iu=bo.value)!==null&&Iu!==void 0?Iu:hs}var Ii=lo.get(ji);if(Ii){var Da;if(ds===void 0&&(ds=Ii==null?void 0:Ii[Hn||Fr.label]),hs===void 0&&(hs=(Da=Ii==null?void 0:Ii.key)!==null&&Da!==void 0?Da:ji),dl=Ii==null?void 0:Ii.disabled,pu=Ii==null?void 0:Ii.title,0)var bs}return{label:ds,value:ji,key:hs,disabled:dl,title:pu}})},[Fr,Hn,lo]),ta=(0,it.Z)(Qi,{value:Tr}),Hr=(0,je.Z)(ta,2),Uo=Hr[0],kr=Hr[1],fr=Ye.useMemo(function(){var Kr,To=Gr(Uo);return Jn==="combobox"&&qt((Kr=To[0])===null||Kr===void 0?void 0:Kr.value)?[]:To},[Uo,Gr,Jn]),no=Qe(fr,lo),Po=(0,je.Z)(no,2),Wr=Po[0],na=Po[1],tr=Ye.useMemo(function(){if(!Jn&&Wr.length===1){var Kr=Wr[0];if(Kr.value===null&&(Kr.label===null||Kr.label===void 0))return[]}return Wr.map(function(To){var bo;return(0,Re.Z)((0,Re.Z)({},To),{},{label:(bo=To.label)!==null&&bo!==void 0?bo:To.value})})},[Jn,Wr]),Zi=Ye.useMemo(function(){return new Set(Wr.map(function(Kr){return Kr.value}))},[Wr]);Ye.useEffect(function(){if(Jn==="combobox"){var Kr,To=(Kr=Wr[0])===null||Kr===void 0?void 0:Kr.value;qi(nn(To)?String(To):"")}},[Wr]);var Pr=di(function(Kr,To){var bo,ji=To!=null?To:Kr;return bo={},(0,Ee.Z)(bo,Fr.value,Kr),(0,Ee.Z)(bo,Fr.label,ji),bo}),ai=Ye.useMemo(function(){if(Jn!=="tags")return ot;var Kr=(0,Te.Z)(ot),To=function(ji){return lo.has(ji)};return(0,Te.Z)(Wr).sort(function(bo,ji){return bo.value<ji.value?-1:1}).forEach(function(bo){var ji=bo.value;To(ji)||Kr.push(Pr(ji,bo.label))}),Kr},[Pr,ot,lo,Wr,Jn]),xo=gt(ai,Fr,ir,Ho,oi),_o=Ye.useMemo(function(){return Jn!=="tags"||!ir||xo.some(function(Kr){return Kr[oi||"value"]===ir})||xo.some(function(Kr){return Kr[Fr.value]===ir})?xo:[Pr(ir)].concat((0,Te.Z)(xo))},[Pr,oi,Jn,xo,ir,Fr]),Wo=Ye.useMemo(function(){return qn?(0,Te.Z)(_o).sort(function(Kr,To){return qn(Kr,To)}):_o},[_o,qn]),ea=Ye.useMemo(function(){return Xt(Wo,{fieldNames:Fr,childrenAsData:Mr})},[Wo,Fr,Mr]),ka=function(To){var bo=Gr(To);if(kr(bo),Rr&&(bo.length!==Wr.length||bo.some(function(hs,dl){var pu;return((pu=Wr[dl])===null||pu===void 0?void 0:pu.value)!==(hs==null?void 0:hs.value)}))){var ji=Fi?bo:bo.map(function(hs){return hs.value}),ds=bo.map(function(hs){return Zt(na(hs.value))});Rr(bn?ji:ji[0],bn?ds:ds[0])}},Ja=Ye.useState(null),cs=(0,je.Z)(Ja,2),Ts=cs[0],al=cs[1],Js=Ye.useState(0),vn=(0,je.Z)(Js,2),Ms=vn[0],fu=vn[1],gu=Er!==void 0?Er:Jn!=="combobox",ho=Ye.useCallback(function(Kr,To){var bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ji=bo.source,ds=ji===void 0?"keyboard":ji;fu(To),Rt&&Jn==="combobox"&&Kr!==null&&ds==="keyboard"&&al(String(Kr))},[Rt,Jn]),ia=function(To,bo,ji){var ds=function(){var mu,Xr=na(To);return[Fi?{label:Xr==null?void 0:Xr[Fr.label],value:To,key:(mu=Xr==null?void 0:Xr.key)!==null&&mu!==void 0?mu:To}:To,Zt(Xr)]};if(bo&&pn){var hs=ds(),dl=(0,je.Z)(hs,2),pu=dl[0],Iu=dl[1];pn(pu,Iu)}else if(!bo&&An&&ji!=="clear"){var Ii=ds(),Da=(0,je.Z)(Ii,2),bs=Da[0],Xl=Da[1];An(bs,Xl)}},ja=di(function(Kr,To){var bo,ji=bn?To.selected:!0;ji?bo=bn?[].concat((0,Te.Z)(Wr),[Kr]):[Kr]:bo=Wr.filter(function(ds){return ds.value!==Kr}),ka(bo),ia(Kr,ji),Jn==="combobox"?al(""):(!Pe||$t)&&(qi(""),al(""))}),Ko=function(To,bo){ka(To);var ji=bo.type,ds=bo.values;(ji==="remove"||ji==="clear")&&ds.forEach(function(hs){ia(hs.value,!1,ji)})},ao=function(To,bo){if(qi(To),al(null),bo.source==="submit"){var ji=(To||"").trim();if(ji){var ds=Array.from(new Set([].concat((0,Te.Z)(Zi),[ji])));ka(ds),ia(ji,!0),qi("")}return}bo.source!=="blur"&&(Jn==="combobox"&&ka(To),Yt==null||Yt(To))},Jo=function(To){var bo=To;Jn!=="tags"&&(bo=To.map(function(ds){var hs=ki.get(ds);return hs==null?void 0:hs.value}).filter(function(ds){return ds!==void 0}));var ji=Array.from(new Set([].concat((0,Te.Z)(Zi),(0,Te.Z)(bo))));ka(ji),ji.forEach(function(ds){ia(ds,!0)})},xs=Ye.useMemo(function(){var Kr=Ht!==!1&&In!==!1;return(0,Re.Z)((0,Re.Z)({},Vr),{},{flattenOptions:ea,onActiveValue:ho,defaultActiveFirstOption:gu,onSelect:ja,menuItemSelectedIcon:Vi,rawValues:Zi,fieldNames:Fr,virtual:Kr,direction:Pi,listHeight:Ti,listItemHeight:cr,childrenAsData:Mr})},[Vr,ea,ho,gu,ja,Vi,Zi,Fr,Ht,In,Ti,cr,Mr]);return Ye.createElement(Wi.Provider,{value:xs},Ye.createElement(Ue,(0,de.Z)({},ln,{id:Ur,prefixCls:Pn,ref:Et,omitDomProps:En,mode:Jn,displayValues:tr,onDisplayValuesChange:Ko,direction:Pi,searchValue:ir,onSearch:ao,autoClearSearchValue:$t,onSearchSplit:Jo,dropdownMatchSelectWidth:In,OptionList:oo,emptyOptions:!ea.length,activeValue:Ts,activeDescendantId:"".concat(Ur,"_list_").concat(Ms)})))}),At=on;At.Option=Yi,At.OptGroup=hi;var Dn=At,Qn=Dn},9296:function(Ge,xe,ae){"use strict";ae.r(xe),ae.d(xe,{ResizableTextArea:function(){return Tt},default:function(){return qt}});var de=ae(5891),Te=ae(57259),Ee=ae(80962),Re=ae(80665),je=ae(29043),Ze=ae(19149),we=ae(26390),it=ae(92310),Je=ae.n(it),Ye=ae(93681),st=ae(5643),ht=ae(35788),Lt=ae(59301),ze=ae(29301),ee=ae(28800),ne=ae(23073),fe=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,le=["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 ke(un){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=un.getAttribute("id")||un.getAttribute("data-reactid")||un.getAttribute("name");if(mn&&me[Ct])return me[Ct];var qe=window.getComputedStyle(un),Bt=qe.getPropertyValue("box-sizing")||qe.getPropertyValue("-moz-box-sizing")||qe.getPropertyValue("-webkit-box-sizing"),Cn=parseFloat(qe.getPropertyValue("padding-bottom"))+parseFloat(qe.getPropertyValue("padding-top")),Zn=parseFloat(qe.getPropertyValue("border-bottom-width"))+parseFloat(qe.getPropertyValue("border-top-width")),zt=le.map(function(Mn){return"".concat(Mn,":").concat(qe.getPropertyValue(Mn))}).join(";"),sn={sizingStyle:zt,paddingSize:Cn,borderSize:Zn,boxSizing:Bt};return mn&&Ct&&(me[Ct]=sn),sn}function Be(un){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,qe=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)),un.getAttribute("wrap")?Se.setAttribute("wrap",un.getAttribute("wrap")):Se.removeAttribute("wrap");var Bt=ke(un,mn),Cn=Bt.paddingSize,Zn=Bt.borderSize,zt=Bt.boxSizing,sn=Bt.sizingStyle;Se.setAttribute("style","".concat(sn,";").concat(fe)),Se.value=un.value||un.placeholder||"";var Mn=void 0,fi=void 0,Rn,li=Se.scrollHeight;if(zt==="border-box"?li+=Zn:zt==="content-box"&&(li-=Cn),Ct!==null||qe!==null){Se.value=" ";var Ot=Se.scrollHeight-Cn;Ct!==null&&(Mn=Ot*Ct,zt==="border-box"&&(Mn=Mn+Cn+Zn),li=Math.max(Mn,li)),qe!==null&&(fi=Ot*qe,zt==="border-box"&&(fi=fi+Cn+Zn),Rn=li>fi?"":"hidden",li=Math.min(fi,li))}var kn={height:li,overflowY:Rn,resize:"none"};return Mn&&(kn.minHeight=Mn),fi&&(kn.maxHeight=fi),kn}var Ne=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ke=0,$e=1,at=2,lt=Lt.forwardRef(function(un,mn){var Ct=un,qe=Ct.prefixCls,Bt=Ct.onPressEnter,Cn=Ct.defaultValue,Zn=Ct.value,zt=Ct.autoSize,sn=Ct.onResize,Mn=Ct.className,fi=Ct.style,Rn=Ct.disabled,li=Ct.onChange,Ot=Ct.onInternalAutoSize,kn=(0,Ze.Z)(Ct,Ne),$n=(0,ht.Z)(Cn,{value:Zn,postState:function(hi){return hi!=null?hi:""}}),xi=(0,je.Z)($n,2),xn=xi[0],Gt=xi[1],jt=function(hi){Gt(hi.target.value),li==null||li(hi)},It=Lt.useRef();Lt.useImperativeHandle(mn,function(){return{textArea:It.current}});var vt=Lt.useMemo(function(){return zt&&(0,Re.Z)(zt)==="object"?[zt.minRows,zt.maxRows]:[]},[zt]),Xt=(0,je.Z)(vt,2),Zt=Xt[0],yt=Xt[1],ft=!!zt,_e=function(){try{if(document.activeElement===It.current){var hi=It.current,Li=hi.selectionStart,Yi=hi.selectionEnd,Ji=hi.scrollTop;It.current.setSelectionRange(Li,Yi),It.current.scrollTop=Ji}}catch(Xi){}},Pe=Lt.useState(at),be=(0,je.Z)(Pe,2),Ue=be[0],Qe=be[1],Fe=Lt.useState(),gt=(0,je.Z)(Fe,2),tn=gt[0],yn=gt[1],bt=function(){Qe(Ke)};(0,ee.Z)(function(){ft&&bt()},[Zn,Zt,yt,ft]),(0,ee.Z)(function(){if(Ue===Ke)Qe($e);else if(Ue===$e){var wi=Be(It.current,!1,Zt,yt);Qe(at),yn(wi)}else _e()},[Ue]);var Wt=Lt.useRef(),fn=function(){ne.Z.cancel(Wt.current)},zn=function(hi){Ue===at&&(sn==null||sn(hi),zt&&(fn(),Wt.current=(0,ne.Z)(function(){bt()})))};Lt.useEffect(function(){return fn},[]);var ni=ft?tn:null,di=(0,Te.Z)((0,Te.Z)({},fi),ni);return(Ue===Ke||Ue===$e)&&(di.overflowY="hidden",di.overflowX="hidden"),Lt.createElement(ze.Z,{onResize:zn,disabled:!(zt||sn)},Lt.createElement("textarea",(0,de.Z)({},kn,{ref:It,style:di,className:Je()(qe,Mn,(0,Ee.Z)({},"".concat(qe,"-disabled"),Rn)),disabled:Rn,value:xn,onChange:jt})))}),Tt=lt,nt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ut(un,mn){return(0,we.Z)(un||"").slice(0,mn).join("")}function kt(un,mn,Ct,qe){var Bt=Ct;return un?Bt=Ut(Ct,qe):(0,we.Z)(mn||"").length<Ct.length&&(0,we.Z)(Ct||"").length>qe&&(Bt=mn),Bt}var dn=Lt.forwardRef(function(un,mn){var Ct,qe=un.defaultValue,Bt=un.value,Cn=un.onFocus,Zn=un.onBlur,zt=un.onChange,sn=un.allowClear,Mn=un.maxLength,fi=un.onCompositionStart,Rn=un.onCompositionEnd,li=un.suffix,Ot=un.prefixCls,kn=Ot===void 0?"rc-textarea":Ot,$n=un.classes,xi=un.showCount,xn=un.className,Gt=un.style,jt=un.disabled,It=un.hidden,vt=un.classNames,Xt=un.styles,Zt=un.onResize,yt=(0,Ze.Z)(un,nt),ft=(0,ht.Z)(qe,{value:Bt,defaultValue:qe}),_e=(0,je.Z)(ft,2),Pe=_e[0],be=_e[1],Ue=(0,Lt.useRef)(null),Qe=Lt.useState(!1),Fe=(0,je.Z)(Qe,2),gt=Fe[0],tn=Fe[1],yn=Lt.useState(!1),bt=(0,je.Z)(yn,2),Wt=bt[0],fn=bt[1],zn=Lt.useRef(),ni=Lt.useRef(0),di=Lt.useState(null),wi=(0,je.Z)(di,2),hi=wi[0],Li=wi[1],Yi=function(){var Tn;(Tn=Ue.current)===null||Tn===void 0||Tn.textArea.focus()};(0,Lt.useImperativeHandle)(mn,function(){return{resizableTextArea:Ue.current,focus:Yi,blur:function(){var Tn;(Tn=Ue.current)===null||Tn===void 0||Tn.textArea.blur()}}}),(0,Lt.useEffect)(function(){tn(function(En){return!jt&&En})},[jt]);var Ji=Number(Mn)>0,Xi=function(Tn){fn(!0),zn.current=Pe,ni.current=Tn.currentTarget.selectionStart,fi==null||fi(Tn)},dr=function(Tn){fn(!1);var on=Tn.currentTarget.value;if(Ji){var At,Dn=ni.current>=Mn+1||ni.current===((At=zn.current)===null||At===void 0?void 0:At.length);on=kt(Dn,zn.current,on,Mn)}on!==Pe&&(be(on),(0,st.rJ)(Tn.currentTarget,Tn,zt,on)),Rn==null||Rn(Tn)},Ir=function(Tn){var on=Tn.target.value;if(!Wt&&Ji){var At=Tn.target.selectionStart>=Mn+1||Tn.target.selectionStart===on.length||!Tn.target.selectionStart;on=kt(At,Pe,on,Mn)}be(on),(0,st.rJ)(Tn.currentTarget,Tn,zt,on)},Wi=function(Tn){var on=yt.onPressEnter,At=yt.onKeyDown;Tn.key==="Enter"&&on&&on(Tn),At==null||At(Tn)},Dr=function(Tn){tn(!0),Cn==null||Cn(Tn)},_i=function(Tn){tn(!1),Zn==null||Zn(Tn)},De=function(Tn){var on;be(""),Yi(),(0,st.rJ)((on=Ue.current)===null||on===void 0?void 0:on.textArea,Tn,zt)},jr=(0,st.D7)(Pe);!Wt&&Ji&&Bt==null&&(jr=Ut(jr,Mn));var hr=li,oo;if(xi){var Oo=(0,we.Z)(jr).length;(0,Re.Z)(xi)==="object"?oo=xi.formatter({value:jr,count:Oo,maxLength:Mn}):oo="".concat(Oo).concat(Ji?" / ".concat(Mn):""),hr=Lt.createElement(Lt.Fragment,null,hr,Lt.createElement("span",{className:Je()("".concat(kn,"-data-count"),vt==null?void 0:vt.count),style:Xt==null?void 0:Xt.count},oo))}var Do=function(Tn){var on;Zt==null||Zt(Tn),(on=Ue.current)!==null&&on!==void 0&&on.textArea.style.height&&Li(!0)},Co=!yt.autoSize&&!xi&&!sn,so=Lt.createElement(Ye.BaseInput,{value:jr,allowClear:sn,handleReset:De,suffix:hr,prefixCls:kn,classes:{affixWrapper:Je()($n==null?void 0:$n.affixWrapper,(Ct={},(0,Ee.Z)(Ct,"".concat(kn,"-show-count"),xi),(0,Ee.Z)(Ct,"".concat(kn,"-textarea-allow-clear"),sn),Ct))},disabled:jt,focused:gt,className:xn,style:(0,Te.Z)((0,Te.Z)({},Gt),hi&&!Co?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof oo=="string"?oo:void 0}},hidden:It,inputElement:Lt.createElement(Tt,(0,de.Z)({},yt,{onKeyDown:Wi,onChange:Ir,onFocus:Dr,onBlur:_i,onCompositionStart:Xi,onCompositionEnd:dr,className:vt==null?void 0:vt.textarea,style:(0,Te.Z)((0,Te.Z)({},Xt==null?void 0:Xt.textarea),{},{resize:Gt==null?void 0:Gt.resize}),disabled:jt,prefixCls:kn,onResize:Do,ref:Ue}))});return so}),nn=dn,qt=nn},39417:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return $e}});var de=ae(5891),Te=ae(80962),Ee=ae(19149),Re=ae(57259),je=ae(79545),Ze=ae(68550),we=ae(21882),it=ae(17928),Je=ae(7711),Ye=ae(92310),st=ae.n(Ye),ht=ae(36994),Lt=ae(59301),ze=ae(39378),ee=function(lt){for(var Tt=lt.prefixCls,nt=lt.level,Ut=lt.isStart,kt=lt.isEnd,dn="".concat(Tt,"-indent-unit"),nn=[],qt=0;qt<nt;qt+=1){var un;nn.push(Lt.createElement("span",{key:qt,className:st()(dn,(un={},(0,Te.Z)(un,"".concat(dn,"-start"),Ut[qt]),(0,Te.Z)(un,"".concat(dn,"-end"),kt[qt]),un))}))}return Lt.createElement("span",{"aria-hidden":"true",className:"".concat(Tt,"-indent")},nn)},ne=Lt.memo(ee),fe=ae(67841),le=ae(71430),me=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Se="open",ke="close",Be="---",Ne=function(at){(0,it.Z)(Tt,at);var lt=(0,Je.Z)(Tt);function Tt(){var nt;(0,je.Z)(this,Tt);for(var Ut=arguments.length,kt=new Array(Ut),dn=0;dn<Ut;dn++)kt[dn]=arguments[dn];return nt=lt.call.apply(lt,[this].concat(kt)),nt.state={dragNodeHighlight:!1},nt.selectHandle=void 0,nt.cacheIndent=void 0,nt.onSelectorClick=function(nn){var qt=nt.props.context.onNodeClick;qt(nn,(0,le.F)(nt.props)),nt.isSelectable()?nt.onSelect(nn):nt.onCheck(nn)},nt.onSelectorDoubleClick=function(nn){var qt=nt.props.context.onNodeDoubleClick;qt(nn,(0,le.F)(nt.props))},nt.onSelect=function(nn){if(!nt.isDisabled()){var qt=nt.props.context.onNodeSelect;qt(nn,(0,le.F)(nt.props))}},nt.onCheck=function(nn){if(!nt.isDisabled()){var qt=nt.props,un=qt.disableCheckbox,mn=qt.checked,Ct=nt.props.context.onNodeCheck;if(!(!nt.isCheckable()||un)){var qe=!mn;Ct(nn,(0,le.F)(nt.props),qe)}}},nt.onMouseEnter=function(nn){var qt=nt.props.context.onNodeMouseEnter;qt(nn,(0,le.F)(nt.props))},nt.onMouseLeave=function(nn){var qt=nt.props.context.onNodeMouseLeave;qt(nn,(0,le.F)(nt.props))},nt.onContextMenu=function(nn){var qt=nt.props.context.onNodeContextMenu;qt(nn,(0,le.F)(nt.props))},nt.onDragStart=function(nn){var qt=nt.props.context.onNodeDragStart;nn.stopPropagation(),nt.setState({dragNodeHighlight:!0}),qt(nn,(0,we.Z)(nt));try{nn.dataTransfer.setData("text/plain","")}catch(un){}},nt.onDragEnter=function(nn){var qt=nt.props.context.onNodeDragEnter;nn.preventDefault(),nn.stopPropagation(),qt(nn,(0,we.Z)(nt))},nt.onDragOver=function(nn){var qt=nt.props.context.onNodeDragOver;nn.preventDefault(),nn.stopPropagation(),qt(nn,(0,we.Z)(nt))},nt.onDragLeave=function(nn){var qt=nt.props.context.onNodeDragLeave;nn.stopPropagation(),qt(nn,(0,we.Z)(nt))},nt.onDragEnd=function(nn){var qt=nt.props.context.onNodeDragEnd;nn.stopPropagation(),nt.setState({dragNodeHighlight:!1}),qt(nn,(0,we.Z)(nt))},nt.onDrop=function(nn){var qt=nt.props.context.onNodeDrop;nn.preventDefault(),nn.stopPropagation(),nt.setState({dragNodeHighlight:!1}),qt(nn,(0,we.Z)(nt))},nt.onExpand=function(nn){var qt=nt.props,un=qt.loading,mn=qt.context.onNodeExpand;un||mn(nn,(0,le.F)(nt.props))},nt.setSelectHandle=function(nn){nt.selectHandle=nn},nt.getNodeState=function(){var nn=nt.props.expanded;return nt.isLeaf()?null:nn?Se:ke},nt.hasChildren=function(){var nn=nt.props.eventKey,qt=nt.props.context.keyEntities,un=(0,fe.Z)(qt,nn)||{},mn=un.children;return!!(mn||[]).length},nt.isLeaf=function(){var nn=nt.props,qt=nn.isLeaf,un=nn.loaded,mn=nt.props.context.loadData,Ct=nt.hasChildren();return qt===!1?!1:qt||!mn&&!Ct||mn&&un&&!Ct},nt.isDisabled=function(){var nn=nt.props.disabled,qt=nt.props.context.disabled;return!!(qt||nn)},nt.isCheckable=function(){var nn=nt.props.checkable,qt=nt.props.context.checkable;return!qt||nn===!1?!1:qt},nt.syncLoadData=function(nn){var qt=nn.expanded,un=nn.loading,mn=nn.loaded,Ct=nt.props.context,qe=Ct.loadData,Bt=Ct.onNodeLoad;un||qe&&qt&&!nt.isLeaf()&&!nt.hasChildren()&&!mn&&Bt((0,le.F)(nt.props))},nt.isDraggable=function(){var nn=nt.props,qt=nn.data,un=nn.context.draggable;return!!(un&&(!un.nodeDraggable||un.nodeDraggable(qt)))},nt.renderDragHandler=function(){var nn=nt.props.context,qt=nn.draggable,un=nn.prefixCls;return qt!=null&&qt.icon?Lt.createElement("span",{className:"".concat(un,"-draggable-icon")},qt.icon):null},nt.renderSwitcherIconDom=function(nn){var qt=nt.props.switcherIcon,un=nt.props.context.switcherIcon,mn=qt||un;return typeof mn=="function"?mn((0,Re.Z)((0,Re.Z)({},nt.props),{},{isLeaf:nn})):mn},nt.renderSwitcher=function(){var nn=nt.props.expanded,qt=nt.props.context.prefixCls;if(nt.isLeaf()){var un=nt.renderSwitcherIconDom(!0);return un!==!1?Lt.createElement("span",{className:st()("".concat(qt,"-switcher"),"".concat(qt,"-switcher-noop"))},un):null}var mn=st()("".concat(qt,"-switcher"),"".concat(qt,"-switcher_").concat(nn?Se:ke)),Ct=nt.renderSwitcherIconDom(!1);return Ct!==!1?Lt.createElement("span",{onClick:nt.onExpand,className:mn},Ct):null},nt.renderCheckbox=function(){var nn=nt.props,qt=nn.checked,un=nn.halfChecked,mn=nn.disableCheckbox,Ct=nt.props.context.prefixCls,qe=nt.isDisabled(),Bt=nt.isCheckable();if(!Bt)return null;var Cn=typeof Bt!="boolean"?Bt:null;return Lt.createElement("span",{className:st()("".concat(Ct,"-checkbox"),qt&&"".concat(Ct,"-checkbox-checked"),!qt&&un&&"".concat(Ct,"-checkbox-indeterminate"),(qe||mn)&&"".concat(Ct,"-checkbox-disabled")),onClick:nt.onCheck},Cn)},nt.renderIcon=function(){var nn=nt.props.loading,qt=nt.props.context.prefixCls;return Lt.createElement("span",{className:st()("".concat(qt,"-iconEle"),"".concat(qt,"-icon__").concat(nt.getNodeState()||"docu"),nn&&"".concat(qt,"-icon_loading"))})},nt.renderSelector=function(){var nn=nt.state.dragNodeHighlight,qt=nt.props,un=qt.title,mn=un===void 0?Be:un,Ct=qt.selected,qe=qt.icon,Bt=qt.loading,Cn=qt.data,Zn=nt.props.context,zt=Zn.prefixCls,sn=Zn.showIcon,Mn=Zn.icon,fi=Zn.loadData,Rn=Zn.titleRender,li=nt.isDisabled(),Ot="".concat(zt,"-node-content-wrapper"),kn;if(sn){var $n=qe||Mn;kn=$n?Lt.createElement("span",{className:st()("".concat(zt,"-iconEle"),"".concat(zt,"-icon__customize"))},typeof $n=="function"?$n(nt.props):$n):nt.renderIcon()}else fi&&Bt&&(kn=nt.renderIcon());var xi;typeof mn=="function"?xi=mn(Cn):Rn?xi=Rn(Cn):xi=mn;var xn=Lt.createElement("span",{className:"".concat(zt,"-title")},xi);return Lt.createElement("span",{ref:nt.setSelectHandle,title:typeof mn=="string"?mn:"",className:st()("".concat(Ot),"".concat(Ot,"-").concat(nt.getNodeState()||"normal"),!li&&(Ct||nn)&&"".concat(zt,"-node-selected")),onMouseEnter:nt.onMouseEnter,onMouseLeave:nt.onMouseLeave,onContextMenu:nt.onContextMenu,onClick:nt.onSelectorClick,onDoubleClick:nt.onSelectorDoubleClick},kn,xn,nt.renderDropIndicator())},nt.renderDropIndicator=function(){var nn=nt.props,qt=nn.disabled,un=nn.eventKey,mn=nt.props.context,Ct=mn.draggable,qe=mn.dropLevelOffset,Bt=mn.dropPosition,Cn=mn.prefixCls,Zn=mn.indent,zt=mn.dropIndicatorRender,sn=mn.dragOverNodeKey,Mn=mn.direction,fi=!!Ct,Rn=!qt&&fi&&sn===un,li=Zn!=null?Zn:nt.cacheIndent;return nt.cacheIndent=Zn,Rn?zt({dropPosition:Bt,dropLevelOffset:qe,indent:li,prefixCls:Cn,direction:Mn}):null},nt}return(0,Ze.Z)(Tt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ut=this.props.selectable,kt=this.props.context.selectable;return typeof Ut=="boolean"?Ut:kt}},{key:"render",value:function(){var Ut,kt=this.props,dn=kt.eventKey,nn=kt.className,qt=kt.style,un=kt.dragOver,mn=kt.dragOverGapTop,Ct=kt.dragOverGapBottom,qe=kt.isLeaf,Bt=kt.isStart,Cn=kt.isEnd,Zn=kt.expanded,zt=kt.selected,sn=kt.checked,Mn=kt.halfChecked,fi=kt.loading,Rn=kt.domRef,li=kt.active,Ot=kt.data,kn=kt.onMouseMove,$n=kt.selectable,xi=(0,Ee.Z)(kt,me),xn=this.props.context,Gt=xn.prefixCls,jt=xn.filterTreeNode,It=xn.keyEntities,vt=xn.dropContainerKey,Xt=xn.dropTargetKey,Zt=xn.draggingNodeKey,yt=this.isDisabled(),ft=(0,ht.Z)(xi,{aria:!0,data:!0}),_e=(0,fe.Z)(It,dn)||{},Pe=_e.level,be=Cn[Cn.length-1],Ue=this.isDraggable(),Qe=!yt&&Ue,Fe=Zt===dn,gt=$n!==void 0?{"aria-selected":!!$n}:void 0;return Lt.createElement("div",(0,de.Z)({ref:Rn,className:st()(nn,"".concat(Gt,"-treenode"),(Ut={},(0,Te.Z)(Ut,"".concat(Gt,"-treenode-disabled"),yt),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-switcher-").concat(Zn?"open":"close"),!qe),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-checkbox-checked"),sn),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-checkbox-indeterminate"),Mn),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-selected"),zt),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-loading"),fi),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-active"),li),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-leaf-last"),be),(0,Te.Z)(Ut,"".concat(Gt,"-treenode-draggable"),Ue),(0,Te.Z)(Ut,"dragging",Fe),(0,Te.Z)(Ut,"drop-target",Xt===dn),(0,Te.Z)(Ut,"drop-container",vt===dn),(0,Te.Z)(Ut,"drag-over",!yt&&un),(0,Te.Z)(Ut,"drag-over-gap-top",!yt&&mn),(0,Te.Z)(Ut,"drag-over-gap-bottom",!yt&&Ct),(0,Te.Z)(Ut,"filter-node",jt&&jt((0,le.F)(this.props))),Ut)),style:qt,draggable:Qe,"aria-grabbed":Fe,onDragStart:Qe?this.onDragStart:void 0,onDragEnter:Ue?this.onDragEnter:void 0,onDragOver:Ue?this.onDragOver:void 0,onDragLeave:Ue?this.onDragLeave:void 0,onDrop:Ue?this.onDrop:void 0,onDragEnd:Ue?this.onDragEnd:void 0,onMouseMove:kn},gt,ft),Lt.createElement(ne,{prefixCls:Gt,level:Pe,isStart:Bt,isEnd:Cn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Tt}(Lt.Component),Ke=function(lt){return Lt.createElement(ze.k.Consumer,null,function(Tt){return Lt.createElement(Ne,(0,de.Z)({},lt,{context:Tt}))})};Ke.displayName="TreeNode",Ke.isTreeNode=1;var $e=Ke},39378:function(Ge,xe,ae){"use strict";ae.d(xe,{k:function(){return Te}});var de=ae(59301),Te=de.createContext(null)},99581:function(Ge,xe,ae){"use strict";ae.d(xe,{O:function(){return $e.Z},Z:function(){return xn}});var de=ae(5891),Te=ae(80962),Ee=ae(80665),Re=ae(57259),je=ae(26390),Ze=ae(79545),we=ae(68550),it=ae(21882),Je=ae(17928),Ye=ae(7711),st=ae(92310),ht=ae.n(st),Lt=ae(85108),ze=ae(36994),ee=ae(51395),ne=ae(59301),fe=ae(39378);function le(Gt){var jt=Gt.dropPosition,It=Gt.dropLevelOffset,vt=Gt.indent,Xt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(jt){case-1:Xt.top=0,Xt.left=-It*vt;break;case 1:Xt.bottom=0,Xt.left=-It*vt;break;case 0:Xt.bottom=0,Xt.left=vt;break}return ne.createElement("div",{style:Xt})}function me(Gt){if(Gt==null)throw new TypeError("Cannot destructure "+Gt)}var Se=ae(29043),ke=ae(19149),Be=ae(28800),Ne=ae(21881),Ke=ae(43469),$e=ae(39417);function at(Gt,jt){var It=ne.useState(!1),vt=(0,Se.Z)(It,2),Xt=vt[0],Zt=vt[1];ne.useLayoutEffect(function(){if(Xt)return Gt(),function(){jt()}},[Xt]),ne.useLayoutEffect(function(){return Zt(!0),function(){Zt(!1)}},[])}var lt=ae(71430),Tt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nt=function(jt,It){var vt=jt.className,Xt=jt.style,Zt=jt.motion,yt=jt.motionNodes,ft=jt.motionType,_e=jt.onMotionStart,Pe=jt.onMotionEnd,be=jt.active,Ue=jt.treeNodeRequiredProps,Qe=(0,ke.Z)(jt,Tt),Fe=ne.useState(!0),gt=(0,Se.Z)(Fe,2),tn=gt[0],yn=gt[1],bt=ne.useContext(fe.k),Wt=bt.prefixCls,fn=yt&&ft!=="hide";(0,Be.Z)(function(){yt&&fn!==tn&&yn(fn)},[yt]);var zn=function(){yt&&_e()},ni=ne.useRef(!1),di=function(){yt&&!ni.current&&(ni.current=!0,Pe())};at(zn,di);var wi=function(Li){fn===Li&&di()};return yt?ne.createElement(Ke.default,(0,de.Z)({ref:It,visible:tn},Zt,{motionAppear:ft==="show",onVisibleChanged:wi}),function(hi,Li){var Yi=hi.className,Ji=hi.style;return ne.createElement("div",{ref:Li,className:ht()("".concat(Wt,"-treenode-motion"),Yi),style:Ji},yt.map(function(Xi){var dr=(0,de.Z)({},(me(Xi.data),Xi.data)),Ir=Xi.title,Wi=Xi.key,Dr=Xi.isStart,_i=Xi.isEnd;delete dr.children;var De=(0,lt.H8)(Wi,Ue);return ne.createElement($e.Z,(0,de.Z)({},dr,De,{title:Ir,active:be,data:Xi.data,key:Wi,isStart:Dr,isEnd:_i}))}))}):ne.createElement($e.Z,(0,de.Z)({domRef:It,className:vt,style:Xt},Qe,{active:be}))};nt.displayName="MotionTreeNode";var Ut=ne.forwardRef(nt),kt=Ut;function dn(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],It=Gt.length,vt=jt.length;if(Math.abs(It-vt)!==1)return{add:!1,key:null};function Xt(Zt,yt){var ft=new Map;Zt.forEach(function(Pe){ft.set(Pe,!0)});var _e=yt.filter(function(Pe){return!ft.has(Pe)});return _e.length===1?_e[0]:null}return It<vt?{add:!0,key:Xt(Gt,jt)}:{add:!1,key:Xt(jt,Gt)}}function nn(Gt,jt,It){var vt=Gt.findIndex(function(ft){return ft.key===It}),Xt=Gt[vt+1],Zt=jt.findIndex(function(ft){return ft.key===It});if(Xt){var yt=jt.findIndex(function(ft){return ft.key===Xt.key});return jt.slice(Zt+1,yt)}return jt.slice(Zt+1)}var qt=["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"],un={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mn=function(){},Ct="RC_TREE_MOTION_".concat(Math.random()),qe={key:Ct},Bt={key:Ct,level:0,index:0,pos:"0",node:qe,nodes:[qe]},Cn={parent:null,children:[],pos:Bt.pos,data:qe,title:null,key:Ct,isStart:[],isEnd:[]};function Zn(Gt,jt,It,vt){return jt===!1||!It?Gt:Gt.slice(0,Math.ceil(It/vt)+1)}function zt(Gt){var jt=Gt.key,It=Gt.pos;return(0,lt.km)(jt,It)}function sn(Gt){for(var jt=String(Gt.data.key),It=Gt;It.parent;)It=It.parent,jt="".concat(It.data.key," > ").concat(jt);return jt}var Mn=ne.forwardRef(function(Gt,jt){var It=Gt.prefixCls,vt=Gt.data,Xt=Gt.selectable,Zt=Gt.checkable,yt=Gt.expandedKeys,ft=Gt.selectedKeys,_e=Gt.checkedKeys,Pe=Gt.loadedKeys,be=Gt.loadingKeys,Ue=Gt.halfCheckedKeys,Qe=Gt.keyEntities,Fe=Gt.disabled,gt=Gt.dragging,tn=Gt.dragOverNodeKey,yn=Gt.dropPosition,bt=Gt.motion,Wt=Gt.height,fn=Gt.itemHeight,zn=Gt.virtual,ni=Gt.focusable,di=Gt.activeItem,wi=Gt.focused,hi=Gt.tabIndex,Li=Gt.onKeyDown,Yi=Gt.onFocus,Ji=Gt.onBlur,Xi=Gt.onActiveChange,dr=Gt.onListChangeStart,Ir=Gt.onListChangeEnd,Wi=(0,ke.Z)(Gt,qt),Dr=ne.useRef(null),_i=ne.useRef(null);ne.useImperativeHandle(jt,function(){return{scrollTo:function(Fn){Dr.current.scrollTo(Fn)},getIndentWidth:function(){return _i.current.offsetWidth}}});var De=ne.useState(yt),jr=(0,Se.Z)(De,2),hr=jr[0],oo=jr[1],Oo=ne.useState(vt),Do=(0,Se.Z)(Oo,2),Co=Do[0],so=Do[1],En=ne.useState(vt),Tn=(0,Se.Z)(En,2),on=Tn[0],At=Tn[1],Dn=ne.useState([]),Qn=(0,Se.Z)(Dn,2),Kt=Qn[0],Et=Qn[1],Ln=ne.useState(null),Jn=(0,Se.Z)(Ln,2),Ci=Jn[0],Pn=Jn[1],Rt=ne.useRef(vt);Rt.current=vt;function Yn(){var Yt=Rt.current;so(Yt),At(Yt),Et([]),Pn(null),Ir()}(0,Be.Z)(function(){oo(yt);var Yt=dn(hr,yt);if(Yt.key!==null)if(Yt.add){var Fn=Co.findIndex(function(Gn){var qn=Gn.key;return qn===Yt.key}),$t=Zn(nn(Co,vt,Yt.key),zn,Wt,fn),pn=Co.slice();pn.splice(Fn+1,0,Cn),At(pn),Et($t),Pn("show")}else{var An=vt.findIndex(function(Gn){var qn=Gn.key;return qn===Yt.key}),gn=Zn(nn(vt,Co,Yt.key),zn,Wt,fn),In=vt.slice();In.splice(An+1,0,Cn),At(In),Et(gn),Pn("hide")}else Co!==vt&&(so(vt),At(vt))},[yt,vt]),ne.useEffect(function(){gt||Yn()},[gt]);var vi=bt?on:vt,Oi={expandedKeys:yt,selectedKeys:ft,loadedKeys:Pe,loadingKeys:be,checkedKeys:_e,halfCheckedKeys:Ue,dragOverNodeKey:tn,dropPosition:yn,keyEntities:Qe};return ne.createElement(ne.Fragment,null,wi&&di&&ne.createElement("span",{style:un,"aria-live":"assertive"},sn(di)),ne.createElement("div",null,ne.createElement("input",{style:un,disabled:ni===!1||Fe,tabIndex:ni!==!1?hi:null,onKeyDown:Li,onFocus:Yi,onBlur:Ji,value:"",onChange:mn,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(It,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(It,"-indent")},ne.createElement("div",{ref:_i,className:"".concat(It,"-indent-unit")}))),ne.createElement(Ne.Z,(0,de.Z)({},Wi,{data:vi,itemKey:zt,height:Wt,fullHeight:!1,virtual:zn,itemHeight:fn,prefixCls:"".concat(It,"-list"),ref:Dr,onVisibleChange:function(Fn,$t){var pn=new Set(Fn),An=$t.filter(function(gn){return!pn.has(gn)});An.some(function(gn){return zt(gn)===Ct})&&Yn()}}),function(Yt){var Fn=Yt.pos,$t=(0,de.Z)({},(me(Yt.data),Yt.data)),pn=Yt.title,An=Yt.key,gn=Yt.isStart,In=Yt.isEnd,Gn=(0,lt.km)(An,Fn);delete $t.key,delete $t.children;var qn=(0,lt.H8)(Gn,Oi);return ne.createElement(kt,(0,de.Z)({},$t,qn,{title:pn,active:!!di&&An===di.key,pos:Fn,data:Yt.data,isStart:gn,isEnd:In,motion:bt,motionNodes:An===Ct?Kt:null,motionType:Ci,onMotionStart:dr,onMotionEnd:Yn,treeNodeRequiredProps:Oi,onMouseMove:function(){Xi(null)}}))}))});Mn.displayName="NodeList";var fi=Mn,Rn=ae(35654),li=ae(90782),Ot=ae(67841),kn=10,$n=function(Gt){(0,Je.Z)(It,Gt);var jt=(0,Ye.Z)(It);function It(){var vt;(0,Ze.Z)(this,It);for(var Xt=arguments.length,Zt=new Array(Xt),yt=0;yt<Xt;yt++)Zt[yt]=arguments[yt];return vt=jt.call.apply(jt,[this].concat(Zt)),vt.destroyed=!1,vt.delayedDragEnterLogic=void 0,vt.loadingRetryTimes={},vt.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,lt.w$)()},vt.dragStartMousePosition=null,vt.dragNode=void 0,vt.currentMouseOverDroppableNodeKey=null,vt.listRef=ne.createRef(),vt.onNodeDragStart=function(ft,_e){var Pe=vt.state,be=Pe.expandedKeys,Ue=Pe.keyEntities,Qe=vt.props.onDragStart,Fe=_e.props.eventKey;vt.dragNode=_e,vt.dragStartMousePosition={x:ft.clientX,y:ft.clientY};var gt=(0,Rn._5)(be,Fe);vt.setState({draggingNodeKey:Fe,dragChildrenKeys:(0,Rn.wA)(Fe,Ue),indent:vt.listRef.current.getIndentWidth()}),vt.setExpandedKeys(gt),window.addEventListener("dragend",vt.onWindowDragEnd),Qe==null||Qe({event:ft,node:(0,lt.F)(_e.props)})},vt.onNodeDragEnter=function(ft,_e){var Pe=vt.state,be=Pe.expandedKeys,Ue=Pe.keyEntities,Qe=Pe.dragChildrenKeys,Fe=Pe.flattenNodes,gt=Pe.indent,tn=vt.props,yn=tn.onDragEnter,bt=tn.onExpand,Wt=tn.allowDrop,fn=tn.direction,zn=_e.props,ni=zn.pos,di=zn.eventKey,wi=(0,it.Z)(vt),hi=wi.dragNode;if(vt.currentMouseOverDroppableNodeKey!==di&&(vt.currentMouseOverDroppableNodeKey=di),!hi){vt.resetDragState();return}var Li=(0,Rn.OM)(ft,hi,_e,gt,vt.dragStartMousePosition,Wt,Fe,Ue,be,fn),Yi=Li.dropPosition,Ji=Li.dropLevelOffset,Xi=Li.dropTargetKey,dr=Li.dropContainerKey,Ir=Li.dropTargetPos,Wi=Li.dropAllowed,Dr=Li.dragOverNodeKey;if(Qe.indexOf(Xi)!==-1||!Wi){vt.resetDragState();return}if(vt.delayedDragEnterLogic||(vt.delayedDragEnterLogic={}),Object.keys(vt.delayedDragEnterLogic).forEach(function(_i){clearTimeout(vt.delayedDragEnterLogic[_i])}),hi.props.eventKey!==_e.props.eventKey&&(ft.persist(),vt.delayedDragEnterLogic[ni]=window.setTimeout(function(){if(vt.state.draggingNodeKey!==null){var _i=(0,je.Z)(be),De=(0,Ot.Z)(Ue,_e.props.eventKey);De&&(De.children||[]).length&&(_i=(0,Rn.L0)(be,_e.props.eventKey)),"expandedKeys"in vt.props||vt.setExpandedKeys(_i),bt==null||bt(_i,{node:(0,lt.F)(_e.props),expanded:!0,nativeEvent:ft.nativeEvent})}},800)),hi.props.eventKey===Xi&&Ji===0){vt.resetDragState();return}vt.setState({dragOverNodeKey:Dr,dropPosition:Yi,dropLevelOffset:Ji,dropTargetKey:Xi,dropContainerKey:dr,dropTargetPos:Ir,dropAllowed:Wi}),yn==null||yn({event:ft,node:(0,lt.F)(_e.props),expandedKeys:be})},vt.onNodeDragOver=function(ft,_e){var Pe=vt.state,be=Pe.dragChildrenKeys,Ue=Pe.flattenNodes,Qe=Pe.keyEntities,Fe=Pe.expandedKeys,gt=Pe.indent,tn=vt.props,yn=tn.onDragOver,bt=tn.allowDrop,Wt=tn.direction,fn=(0,it.Z)(vt),zn=fn.dragNode;if(zn){var ni=(0,Rn.OM)(ft,zn,_e,gt,vt.dragStartMousePosition,bt,Ue,Qe,Fe,Wt),di=ni.dropPosition,wi=ni.dropLevelOffset,hi=ni.dropTargetKey,Li=ni.dropContainerKey,Yi=ni.dropAllowed,Ji=ni.dropTargetPos,Xi=ni.dragOverNodeKey;be.indexOf(hi)!==-1||!Yi||(zn.props.eventKey===hi&&wi===0?vt.state.dropPosition===null&&vt.state.dropLevelOffset===null&&vt.state.dropTargetKey===null&&vt.state.dropContainerKey===null&&vt.state.dropTargetPos===null&&vt.state.dropAllowed===!1&&vt.state.dragOverNodeKey===null||vt.resetDragState():di===vt.state.dropPosition&&wi===vt.state.dropLevelOffset&&hi===vt.state.dropTargetKey&&Li===vt.state.dropContainerKey&&Ji===vt.state.dropTargetPos&&Yi===vt.state.dropAllowed&&Xi===vt.state.dragOverNodeKey||vt.setState({dropPosition:di,dropLevelOffset:wi,dropTargetKey:hi,dropContainerKey:Li,dropTargetPos:Ji,dropAllowed:Yi,dragOverNodeKey:Xi}),yn==null||yn({event:ft,node:(0,lt.F)(_e.props)}))}},vt.onNodeDragLeave=function(ft,_e){vt.currentMouseOverDroppableNodeKey===_e.props.eventKey&&!ft.currentTarget.contains(ft.relatedTarget)&&(vt.resetDragState(),vt.currentMouseOverDroppableNodeKey=null);var Pe=vt.props.onDragLeave;Pe==null||Pe({event:ft,node:(0,lt.F)(_e.props)})},vt.onWindowDragEnd=function(ft){vt.onNodeDragEnd(ft,null,!0),window.removeEventListener("dragend",vt.onWindowDragEnd)},vt.onNodeDragEnd=function(ft,_e){var Pe=vt.props.onDragEnd;vt.setState({dragOverNodeKey:null}),vt.cleanDragState(),Pe==null||Pe({event:ft,node:(0,lt.F)(_e.props)}),vt.dragNode=null,window.removeEventListener("dragend",vt.onWindowDragEnd)},vt.onNodeDrop=function(ft,_e){var Pe,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ue=vt.state,Qe=Ue.dragChildrenKeys,Fe=Ue.dropPosition,gt=Ue.dropTargetKey,tn=Ue.dropTargetPos,yn=Ue.dropAllowed;if(yn){var bt=vt.props.onDrop;if(vt.setState({dragOverNodeKey:null}),vt.cleanDragState(),gt!==null){var Wt=(0,Re.Z)((0,Re.Z)({},(0,lt.H8)(gt,vt.getTreeNodeRequiredProps())),{},{active:((Pe=vt.getActiveItem())===null||Pe===void 0?void 0:Pe.key)===gt,data:(0,Ot.Z)(vt.state.keyEntities,gt).node}),fn=Qe.indexOf(gt)!==-1;(0,ee.ZP)(!fn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var zn=(0,Rn.yx)(tn),ni={event:ft,node:(0,lt.F)(Wt),dragNode:vt.dragNode?(0,lt.F)(vt.dragNode.props):null,dragNodesKeys:[vt.dragNode.props.eventKey].concat(Qe),dropToGap:Fe!==0,dropPosition:Fe+Number(zn[zn.length-1])};be||bt==null||bt(ni),vt.dragNode=null}}},vt.cleanDragState=function(){var ft=vt.state.draggingNodeKey;ft!==null&&vt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),vt.dragStartMousePosition=null,vt.currentMouseOverDroppableNodeKey=null},vt.triggerExpandActionExpand=function(ft,_e){var Pe=vt.state,be=Pe.expandedKeys,Ue=Pe.flattenNodes,Qe=_e.expanded,Fe=_e.key,gt=_e.isLeaf;if(!(gt||ft.shiftKey||ft.metaKey||ft.ctrlKey)){var tn=Ue.filter(function(bt){return bt.key===Fe})[0],yn=(0,lt.F)((0,Re.Z)((0,Re.Z)({},(0,lt.H8)(Fe,vt.getTreeNodeRequiredProps())),{},{data:tn.data}));vt.setExpandedKeys(Qe?(0,Rn._5)(be,Fe):(0,Rn.L0)(be,Fe)),vt.onNodeExpand(ft,yn)}},vt.onNodeClick=function(ft,_e){var Pe=vt.props,be=Pe.onClick,Ue=Pe.expandAction;Ue==="click"&&vt.triggerExpandActionExpand(ft,_e),be==null||be(ft,_e)},vt.onNodeDoubleClick=function(ft,_e){var Pe=vt.props,be=Pe.onDoubleClick,Ue=Pe.expandAction;Ue==="doubleClick"&&vt.triggerExpandActionExpand(ft,_e),be==null||be(ft,_e)},vt.onNodeSelect=function(ft,_e){var Pe=vt.state.selectedKeys,be=vt.state,Ue=be.keyEntities,Qe=be.fieldNames,Fe=vt.props,gt=Fe.onSelect,tn=Fe.multiple,yn=_e.selected,bt=_e[Qe.key],Wt=!yn;Wt?tn?Pe=(0,Rn.L0)(Pe,bt):Pe=[bt]:Pe=(0,Rn._5)(Pe,bt);var fn=Pe.map(function(zn){var ni=(0,Ot.Z)(Ue,zn);return ni?ni.node:null}).filter(function(zn){return zn});vt.setUncontrolledState({selectedKeys:Pe}),gt==null||gt(Pe,{event:"select",selected:Wt,node:_e,selectedNodes:fn,nativeEvent:ft.nativeEvent})},vt.onNodeCheck=function(ft,_e,Pe){var be=vt.state,Ue=be.keyEntities,Qe=be.checkedKeys,Fe=be.halfCheckedKeys,gt=vt.props,tn=gt.checkStrictly,yn=gt.onCheck,bt=_e.key,Wt,fn={event:"check",node:_e,checked:Pe,nativeEvent:ft.nativeEvent};if(tn){var zn=Pe?(0,Rn.L0)(Qe,bt):(0,Rn._5)(Qe,bt),ni=(0,Rn._5)(Fe,bt);Wt={checked:zn,halfChecked:ni},fn.checkedNodes=zn.map(function(Ji){return(0,Ot.Z)(Ue,Ji)}).filter(function(Ji){return Ji}).map(function(Ji){return Ji.node}),vt.setUncontrolledState({checkedKeys:zn})}else{var di=(0,li.S)([].concat((0,je.Z)(Qe),[bt]),!0,Ue),wi=di.checkedKeys,hi=di.halfCheckedKeys;if(!Pe){var Li=new Set(wi);Li.delete(bt);var Yi=(0,li.S)(Array.from(Li),{checked:!1,halfCheckedKeys:hi},Ue);wi=Yi.checkedKeys,hi=Yi.halfCheckedKeys}Wt=wi,fn.checkedNodes=[],fn.checkedNodesPositions=[],fn.halfCheckedKeys=hi,wi.forEach(function(Ji){var Xi=(0,Ot.Z)(Ue,Ji);if(Xi){var dr=Xi.node,Ir=Xi.pos;fn.checkedNodes.push(dr),fn.checkedNodesPositions.push({node:dr,pos:Ir})}}),vt.setUncontrolledState({checkedKeys:wi},!1,{halfCheckedKeys:hi})}yn==null||yn(Wt,fn)},vt.onNodeLoad=function(ft){var _e=ft.key,Pe=new Promise(function(be,Ue){vt.setState(function(Qe){var Fe=Qe.loadedKeys,gt=Fe===void 0?[]:Fe,tn=Qe.loadingKeys,yn=tn===void 0?[]:tn,bt=vt.props,Wt=bt.loadData,fn=bt.onLoad;if(!Wt||gt.indexOf(_e)!==-1||yn.indexOf(_e)!==-1)return null;var zn=Wt(ft);return zn.then(function(){var ni=vt.state.loadedKeys,di=(0,Rn.L0)(ni,_e);fn==null||fn(di,{event:"load",node:ft}),vt.setUncontrolledState({loadedKeys:di}),vt.setState(function(wi){return{loadingKeys:(0,Rn._5)(wi.loadingKeys,_e)}}),be()}).catch(function(ni){if(vt.setState(function(wi){return{loadingKeys:(0,Rn._5)(wi.loadingKeys,_e)}}),vt.loadingRetryTimes[_e]=(vt.loadingRetryTimes[_e]||0)+1,vt.loadingRetryTimes[_e]>=kn){var di=vt.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),vt.setUncontrolledState({loadedKeys:(0,Rn.L0)(di,_e)}),be()}Ue(ni)}),{loadingKeys:(0,Rn.L0)(yn,_e)}})});return Pe.catch(function(){}),Pe},vt.onNodeMouseEnter=function(ft,_e){var Pe=vt.props.onMouseEnter;Pe==null||Pe({event:ft,node:_e})},vt.onNodeMouseLeave=function(ft,_e){var Pe=vt.props.onMouseLeave;Pe==null||Pe({event:ft,node:_e})},vt.onNodeContextMenu=function(ft,_e){var Pe=vt.props.onRightClick;Pe&&(ft.preventDefault(),Pe({event:ft,node:_e}))},vt.onFocus=function(){var ft=vt.props.onFocus;vt.setState({focused:!0});for(var _e=arguments.length,Pe=new Array(_e),be=0;be<_e;be++)Pe[be]=arguments[be];ft==null||ft.apply(void 0,Pe)},vt.onBlur=function(){var ft=vt.props.onBlur;vt.setState({focused:!1}),vt.onActiveChange(null);for(var _e=arguments.length,Pe=new Array(_e),be=0;be<_e;be++)Pe[be]=arguments[be];ft==null||ft.apply(void 0,Pe)},vt.getTreeNodeRequiredProps=function(){var ft=vt.state,_e=ft.expandedKeys,Pe=ft.selectedKeys,be=ft.loadedKeys,Ue=ft.loadingKeys,Qe=ft.checkedKeys,Fe=ft.halfCheckedKeys,gt=ft.dragOverNodeKey,tn=ft.dropPosition,yn=ft.keyEntities;return{expandedKeys:_e||[],selectedKeys:Pe||[],loadedKeys:be||[],loadingKeys:Ue||[],checkedKeys:Qe||[],halfCheckedKeys:Fe||[],dragOverNodeKey:gt,dropPosition:tn,keyEntities:yn}},vt.setExpandedKeys=function(ft){var _e=vt.state,Pe=_e.treeData,be=_e.fieldNames,Ue=(0,lt.oH)(Pe,ft,be);vt.setUncontrolledState({expandedKeys:ft,flattenNodes:Ue},!0)},vt.onNodeExpand=function(ft,_e){var Pe=vt.state.expandedKeys,be=vt.state,Ue=be.listChanging,Qe=be.fieldNames,Fe=vt.props,gt=Fe.onExpand,tn=Fe.loadData,yn=_e.expanded,bt=_e[Qe.key];if(!Ue){var Wt=Pe.indexOf(bt),fn=!yn;if((0,ee.ZP)(yn&&Wt!==-1||!yn&&Wt===-1,"Expand state not sync with index check"),fn?Pe=(0,Rn.L0)(Pe,bt):Pe=(0,Rn._5)(Pe,bt),vt.setExpandedKeys(Pe),gt==null||gt(Pe,{node:_e,expanded:fn,nativeEvent:ft.nativeEvent}),fn&&tn){var zn=vt.onNodeLoad(_e);zn&&zn.then(function(){var ni=(0,lt.oH)(vt.state.treeData,Pe,Qe);vt.setUncontrolledState({flattenNodes:ni})}).catch(function(){var ni=vt.state.expandedKeys,di=(0,Rn._5)(ni,bt);vt.setExpandedKeys(di)})}}},vt.onListChangeStart=function(){vt.setUncontrolledState({listChanging:!0})},vt.onListChangeEnd=function(){setTimeout(function(){vt.setUncontrolledState({listChanging:!1})})},vt.onActiveChange=function(ft){var _e=vt.state.activeKey,Pe=vt.props.onActiveChange;_e!==ft&&(vt.setState({activeKey:ft}),ft!==null&&vt.scrollTo({key:ft}),Pe==null||Pe(ft))},vt.getActiveItem=function(){var ft=vt.state,_e=ft.activeKey,Pe=ft.flattenNodes;return _e===null?null:Pe.find(function(be){var Ue=be.key;return Ue===_e})||null},vt.offsetActiveKey=function(ft){var _e=vt.state,Pe=_e.flattenNodes,be=_e.activeKey,Ue=Pe.findIndex(function(gt){var tn=gt.key;return tn===be});Ue===-1&&ft<0&&(Ue=Pe.length),Ue=(Ue+ft+Pe.length)%Pe.length;var Qe=Pe[Ue];if(Qe){var Fe=Qe.key;vt.onActiveChange(Fe)}else vt.onActiveChange(null)},vt.onKeyDown=function(ft){var _e=vt.state,Pe=_e.activeKey,be=_e.expandedKeys,Ue=_e.checkedKeys,Qe=_e.fieldNames,Fe=vt.props,gt=Fe.onKeyDown,tn=Fe.checkable,yn=Fe.selectable;switch(ft.which){case Lt.Z.UP:{vt.offsetActiveKey(-1),ft.preventDefault();break}case Lt.Z.DOWN:{vt.offsetActiveKey(1),ft.preventDefault();break}}var bt=vt.getActiveItem();if(bt&&bt.data){var Wt=vt.getTreeNodeRequiredProps(),fn=bt.data.isLeaf===!1||!!(bt.data[Qe.children]||[]).length,zn=(0,lt.F)((0,Re.Z)((0,Re.Z)({},(0,lt.H8)(Pe,Wt)),{},{data:bt.data,active:!0}));switch(ft.which){case Lt.Z.LEFT:{fn&&be.includes(Pe)?vt.onNodeExpand({},zn):bt.parent&&vt.onActiveChange(bt.parent.key),ft.preventDefault();break}case Lt.Z.RIGHT:{fn&&!be.includes(Pe)?vt.onNodeExpand({},zn):bt.children&&bt.children.length&&vt.onActiveChange(bt.children[0].key),ft.preventDefault();break}case Lt.Z.ENTER:case Lt.Z.SPACE:{tn&&!zn.disabled&&zn.checkable!==!1&&!zn.disableCheckbox?vt.onNodeCheck({},zn,!Ue.includes(Pe)):!tn&&yn&&!zn.disabled&&zn.selectable!==!1&&vt.onNodeSelect({},zn);break}}}gt==null||gt(ft)},vt.setUncontrolledState=function(ft){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!vt.destroyed){var be=!1,Ue=!0,Qe={};Object.keys(ft).forEach(function(Fe){if(Fe in vt.props){Ue=!1;return}be=!0,Qe[Fe]=ft[Fe]}),be&&(!_e||Ue)&&vt.setState((0,Re.Z)((0,Re.Z)({},Qe),Pe))}},vt.scrollTo=function(ft){vt.listRef.current.scrollTo(ft)},vt}return(0,we.Z)(It,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Xt=this.props.activeKey;Xt!==void 0&&Xt!==this.state.activeKey&&(this.setState({activeKey:Xt}),Xt!==null&&this.scrollTo({key:Xt}))}},{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 Xt,Zt=this.state,yt=Zt.focused,ft=Zt.flattenNodes,_e=Zt.keyEntities,Pe=Zt.draggingNodeKey,be=Zt.activeKey,Ue=Zt.dropLevelOffset,Qe=Zt.dropContainerKey,Fe=Zt.dropTargetKey,gt=Zt.dropPosition,tn=Zt.dragOverNodeKey,yn=Zt.indent,bt=this.props,Wt=bt.prefixCls,fn=bt.className,zn=bt.style,ni=bt.showLine,di=bt.focusable,wi=bt.tabIndex,hi=wi===void 0?0:wi,Li=bt.selectable,Yi=bt.showIcon,Ji=bt.icon,Xi=bt.switcherIcon,dr=bt.draggable,Ir=bt.checkable,Wi=bt.checkStrictly,Dr=bt.disabled,_i=bt.motion,De=bt.loadData,jr=bt.filterTreeNode,hr=bt.height,oo=bt.itemHeight,Oo=bt.virtual,Do=bt.titleRender,Co=bt.dropIndicatorRender,so=bt.onContextMenu,En=bt.onScroll,Tn=bt.direction,on=bt.rootClassName,At=bt.rootStyle,Dn=(0,ze.Z)(this.props,{aria:!0,data:!0}),Qn;return dr&&((0,Ee.Z)(dr)==="object"?Qn=dr:typeof dr=="function"?Qn={nodeDraggable:dr}:Qn={}),ne.createElement(fe.k.Provider,{value:{prefixCls:Wt,selectable:Li,showIcon:Yi,icon:Ji,switcherIcon:Xi,draggable:Qn,draggingNodeKey:Pe,checkable:Ir,checkStrictly:Wi,disabled:Dr,keyEntities:_e,dropLevelOffset:Ue,dropContainerKey:Qe,dropTargetKey:Fe,dropPosition:gt,dragOverNodeKey:tn,indent:yn,direction:Tn,dropIndicatorRender:Co,loadData:De,filterTreeNode:jr,titleRender:Do,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()(Wt,fn,on,(Xt={},(0,Te.Z)(Xt,"".concat(Wt,"-show-line"),ni),(0,Te.Z)(Xt,"".concat(Wt,"-focused"),yt),(0,Te.Z)(Xt,"".concat(Wt,"-active-focused"),be!==null),Xt)),style:At},ne.createElement(fi,(0,de.Z)({ref:this.listRef,prefixCls:Wt,style:zn,data:ft,disabled:Dr,selectable:Li,checkable:!!Ir,motion:_i,dragging:Pe!==null,height:hr,itemHeight:oo,virtual:Oo,focusable:di,focused:yt,tabIndex:hi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:so,onScroll:En},this.getTreeNodeRequiredProps(),Dn))))}}],[{key:"getDerivedStateFromProps",value:function(Xt,Zt){var yt=Zt.prevProps,ft={prevProps:Xt};function _e(di){return!yt&&di in Xt||yt&&yt[di]!==Xt[di]}var Pe,be=Zt.fieldNames;if(_e("fieldNames")&&(be=(0,lt.w$)(Xt.fieldNames),ft.fieldNames=be),_e("treeData")?Pe=Xt.treeData:_e("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Pe=(0,lt.zn)(Xt.children)),Pe){ft.treeData=Pe;var Ue=(0,lt.I8)(Pe,{fieldNames:be});ft.keyEntities=(0,Re.Z)((0,Te.Z)({},Ct,Bt),Ue.keyEntities)}var Qe=ft.keyEntities||Zt.keyEntities;if(_e("expandedKeys")||yt&&_e("autoExpandParent"))ft.expandedKeys=Xt.autoExpandParent||!yt&&Xt.defaultExpandParent?(0,Rn.r7)(Xt.expandedKeys,Qe):Xt.expandedKeys;else if(!yt&&Xt.defaultExpandAll){var Fe=(0,Re.Z)({},Qe);delete Fe[Ct],ft.expandedKeys=Object.keys(Fe).map(function(di){return Fe[di].key})}else!yt&&Xt.defaultExpandedKeys&&(ft.expandedKeys=Xt.autoExpandParent||Xt.defaultExpandParent?(0,Rn.r7)(Xt.defaultExpandedKeys,Qe):Xt.defaultExpandedKeys);if(ft.expandedKeys||delete ft.expandedKeys,Pe||ft.expandedKeys){var gt=(0,lt.oH)(Pe||Zt.treeData,ft.expandedKeys||Zt.expandedKeys,be);ft.flattenNodes=gt}if(Xt.selectable&&(_e("selectedKeys")?ft.selectedKeys=(0,Rn.BT)(Xt.selectedKeys,Xt):!yt&&Xt.defaultSelectedKeys&&(ft.selectedKeys=(0,Rn.BT)(Xt.defaultSelectedKeys,Xt))),Xt.checkable){var tn;if(_e("checkedKeys")?tn=(0,Rn.E6)(Xt.checkedKeys)||{}:!yt&&Xt.defaultCheckedKeys?tn=(0,Rn.E6)(Xt.defaultCheckedKeys)||{}:Pe&&(tn=(0,Rn.E6)(Xt.checkedKeys)||{checkedKeys:Zt.checkedKeys,halfCheckedKeys:Zt.halfCheckedKeys}),tn){var yn=tn,bt=yn.checkedKeys,Wt=bt===void 0?[]:bt,fn=yn.halfCheckedKeys,zn=fn===void 0?[]:fn;if(!Xt.checkStrictly){var ni=(0,li.S)(Wt,!0,Qe);Wt=ni.checkedKeys,zn=ni.halfCheckedKeys}ft.checkedKeys=Wt,ft.halfCheckedKeys=zn}}return _e("loadedKeys")&&(ft.loadedKeys=Xt.loadedKeys),ft}}]),It}(ne.Component);$n.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:le,allowDrop:function(){return!0},expandAction:!1},$n.TreeNode=$e.Z;var xi=$n,xn=xi},35654:function(Ge,xe,ae){"use strict";ae.d(xe,{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 st}});var de=ae(26390),Te=ae(80665),Ee=ae(51395),Re=ae(59301),je=ae(39417),Ze=ae(67841),we=ae(71430),it=null;function Je(ke,Be){if(!ke)return[];var Ne=ke.slice(),Ke=Ne.indexOf(Be);return Ke>=0&&Ne.splice(Ke,1),Ne}function Ye(ke,Be){var Ne=(ke||[]).slice();return Ne.indexOf(Be)===-1&&Ne.push(Be),Ne}function st(ke){return ke.split("-")}function ht(ke,Be){var Ne=[],Ke=(0,Ze.Z)(Be,ke);function $e(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];at.forEach(function(lt){var Tt=lt.key,nt=lt.children;Ne.push(Tt),$e(nt)})}return $e(Ke.children),Ne}function Lt(ke){if(ke.parent){var Be=st(ke.pos);return Number(Be[Be.length-1])===ke.parent.children.length-1}return!1}function ze(ke){var Be=st(ke.pos);return Number(Be[Be.length-1])===0}function ee(ke,Be,Ne,Ke,$e,at,lt,Tt,nt,Ut){var kt,dn=ke.clientX,nn=ke.clientY,qt=ke.target.getBoundingClientRect(),un=qt.top,mn=qt.height,Ct=(Ut==="rtl"?-1:1)*((($e==null?void 0:$e.x)||0)-dn),qe=(Ct-12)/Ke,Bt=(0,Ze.Z)(Tt,Ne.props.eventKey);if(nn<un+mn/2){var Cn=lt.findIndex(function(xn){return xn.key===Bt.key}),Zn=Cn<=0?0:Cn-1,zt=lt[Zn].key;Bt=(0,Ze.Z)(Tt,zt)}var sn=Bt.key,Mn=Bt,fi=Bt.key,Rn=0,li=0;if(!nt.includes(sn))for(var Ot=0;Ot<qe&&Lt(Bt);Ot+=1)Bt=Bt.parent,li+=1;var kn=Be.props.data,$n=Bt.node,xi=!0;return ze(Bt)&&Bt.level===0&&nn<un+mn/2&&at({dragNode:kn,dropNode:$n,dropPosition:-1})&&Bt.key===Ne.props.eventKey?Rn=-1:(Mn.children||[]).length&&nt.includes(fi)?at({dragNode:kn,dropNode:$n,dropPosition:0})?Rn=0:xi=!1:li===0?qe>-1.5?at({dragNode:kn,dropNode:$n,dropPosition:1})?Rn=1:xi=!1:at({dragNode:kn,dropNode:$n,dropPosition:0})?Rn=0:at({dragNode:kn,dropNode:$n,dropPosition:1})?Rn=1:xi=!1:at({dragNode:kn,dropNode:$n,dropPosition:1})?Rn=1:xi=!1,{dropPosition:Rn,dropLevelOffset:li,dropTargetKey:Bt.key,dropTargetPos:Bt.pos,dragOverNodeKey:fi,dropContainerKey:Rn===0?null:((kt=Bt.parent)===null||kt===void 0?void 0:kt.key)||null,dropAllowed:xi}}function ne(ke,Be){if(ke){var Ne=Be.multiple;return Ne?ke.slice():ke.length?[ke[0]]:ke}}var fe=function(Be){return Be};function le(ke,Be){if(!ke)return[];var Ne=Be||{},Ke=Ne.processProps,$e=Ke===void 0?fe:Ke,at=Array.isArray(ke)?ke:[ke];return at.map(function(lt){var Tt=lt.children,nt=_objectWithoutProperties(lt,it),Ut=le(Tt,Be);return React.createElement(TreeNode,_extends({key:nt.key},$e(nt)),Ut)})}function me(ke){if(!ke)return null;var Be;if(Array.isArray(ke))Be={checkedKeys:ke,halfCheckedKeys:void 0};else if((0,Te.Z)(ke)==="object")Be={checkedKeys:ke.checked||void 0,halfCheckedKeys:ke.halfChecked||void 0};else return(0,Ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Be}function Se(ke,Be){var Ne=new Set;function Ke($e){if(!Ne.has($e)){var at=(0,Ze.Z)(Be,$e);if(at){Ne.add($e);var lt=at.parent,Tt=at.node;Tt.disabled||lt&&Ke(lt.key)}}}return(ke||[]).forEach(function($e){Ke($e)}),(0,de.Z)(Ne)}},90782:function(Ge,xe,ae){"use strict";ae.d(xe,{S:function(){return we}});var de=ae(51395),Te=ae(67841);function Ee(it,Je){var Ye=new Set;return it.forEach(function(st){Je.has(st)||Ye.add(st)}),Ye}function Re(it){var Je=it||{},Ye=Je.disabled,st=Je.disableCheckbox,ht=Je.checkable;return!!(Ye||st)||ht===!1}function je(it,Je,Ye,st){for(var ht=new Set(it),Lt=new Set,ze=0;ze<=Ye;ze+=1){var ee=Je.get(ze)||new Set;ee.forEach(function(me){var Se=me.key,ke=me.node,Be=me.children,Ne=Be===void 0?[]:Be;ht.has(Se)&&!st(ke)&&Ne.filter(function(Ke){return!st(Ke.node)}).forEach(function(Ke){ht.add(Ke.key)})})}for(var ne=new Set,fe=Ye;fe>=0;fe-=1){var le=Je.get(fe)||new Set;le.forEach(function(me){var Se=me.parent,ke=me.node;if(!(st(ke)||!me.parent||ne.has(me.parent.key))){if(st(me.parent.node)){ne.add(Se.key);return}var Be=!0,Ne=!1;(Se.children||[]).filter(function(Ke){return!st(Ke.node)}).forEach(function(Ke){var $e=Ke.key,at=ht.has($e);Be&&!at&&(Be=!1),!Ne&&(at||Lt.has($e))&&(Ne=!0)}),Be&&ht.add(Se.key),Ne&&Lt.add(Se.key),ne.add(Se.key)}})}return{checkedKeys:Array.from(ht),halfCheckedKeys:Array.from(Ee(Lt,ht))}}function Ze(it,Je,Ye,st,ht){for(var Lt=new Set(it),ze=new Set(Je),ee=0;ee<=st;ee+=1){var ne=Ye.get(ee)||new Set;ne.forEach(function(Se){var ke=Se.key,Be=Se.node,Ne=Se.children,Ke=Ne===void 0?[]:Ne;!Lt.has(ke)&&!ze.has(ke)&&!ht(Be)&&Ke.filter(function($e){return!ht($e.node)}).forEach(function($e){Lt.delete($e.key)})})}ze=new Set;for(var fe=new Set,le=st;le>=0;le-=1){var me=Ye.get(le)||new Set;me.forEach(function(Se){var ke=Se.parent,Be=Se.node;if(!(ht(Be)||!Se.parent||fe.has(Se.parent.key))){if(ht(Se.parent.node)){fe.add(ke.key);return}var Ne=!0,Ke=!1;(ke.children||[]).filter(function($e){return!ht($e.node)}).forEach(function($e){var at=$e.key,lt=Lt.has(at);Ne&&!lt&&(Ne=!1),!Ke&&(lt||ze.has(at))&&(Ke=!0)}),Ne||Lt.delete(ke.key),Ke&&ze.add(ke.key),fe.add(ke.key)}})}return{checkedKeys:Array.from(Lt),halfCheckedKeys:Array.from(Ee(ze,Lt))}}function we(it,Je,Ye,st){var ht=[],Lt;st?Lt=st:Lt=Re;var ze=new Set(it.filter(function(le){var me=!!(0,Te.Z)(Ye,le);return me||ht.push(le),me})),ee=new Map,ne=0;Object.keys(Ye).forEach(function(le){var me=Ye[le],Se=me.level,ke=ee.get(Se);ke||(ke=new Set,ee.set(Se,ke)),ke.add(me),ne=Math.max(ne,Se)}),(0,de.ZP)(!ht.length,"Tree missing follow keys: ".concat(ht.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var fe;return Je===!0?fe=je(ze,ee,ne,Lt):fe=Ze(ze,Je.halfCheckedKeys,ee,ne,Lt),fe}},67841:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return de}});function de(Te,Ee){return Te[Ee]}},71430:function(Ge,xe,ae){"use strict";ae.d(xe,{F:function(){return Se},H8:function(){return me},I8:function(){return le},km:function(){return ht},oH:function(){return ne},w$:function(){return Lt},zn:function(){return ee}});var de=ae(80665),Te=ae(26390),Ee=ae(57259),Re=ae(19149),je=ae(38298),Ze=ae(64002),we=ae(51395),it=ae(67841),Je=["children"];function Ye(ke,Be){return"".concat(ke,"-").concat(Be)}function st(ke){return ke&&ke.type&&ke.type.isTreeNode}function ht(ke,Be){return ke!=null?ke:Be}function Lt(ke){var Be=ke||{},Ne=Be.title,Ke=Be._title,$e=Be.key,at=Be.children,lt=Ne||"title";return{title:lt,_title:Ke||[lt],key:$e||"key",children:at||"children"}}function ze(ke,Be){var Ne=new Map;function Ke($e){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($e||[]).forEach(function(lt){var Tt=lt[Be.key],nt=lt[Be.children];warning(Tt!=null,"Tree node must have a certain key: [".concat(at).concat(Tt,"]"));var Ut=String(Tt);warning(!Ne.has(Ut)||Tt===null||Tt===void 0,"Same 'key' exist in the Tree: ".concat(Ut)),Ne.set(Ut,!0),Ke(nt,"".concat(at).concat(Ut," > "))})}Ke(ke)}function ee(ke){function Be(Ne){var Ke=(0,je.Z)(Ne);return Ke.map(function($e){if(!st($e))return(0,we.ZP)(!$e,"Tree/TreeNode can only accept TreeNode as children."),null;var at=$e.key,lt=$e.props,Tt=lt.children,nt=(0,Re.Z)(lt,Je),Ut=(0,Ee.Z)({key:at},nt),kt=Be(Tt);return kt.length&&(Ut.children=kt),Ut}).filter(function($e){return $e})}return Be(ke)}function ne(ke,Be,Ne){var Ke=Lt(Ne),$e=Ke._title,at=Ke.key,lt=Ke.children,Tt=new Set(Be===!0?[]:Be),nt=[];function Ut(kt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return kt.map(function(nn,qt){for(var un=Ye(dn?dn.pos:"0",qt),mn=ht(nn[at],un),Ct,qe=0;qe<$e.length;qe+=1){var Bt=$e[qe];if(nn[Bt]!==void 0){Ct=nn[Bt];break}}var Cn=(0,Ee.Z)((0,Ee.Z)({},(0,Ze.Z)(nn,[].concat((0,Te.Z)($e),[at,lt]))),{},{title:Ct,key:mn,parent:dn,pos:un,children:null,data:nn,isStart:[].concat((0,Te.Z)(dn?dn.isStart:[]),[qt===0]),isEnd:[].concat((0,Te.Z)(dn?dn.isEnd:[]),[qt===kt.length-1])});return nt.push(Cn),Be===!0||Tt.has(mn)?Cn.children=Ut(nn[lt]||[],Cn):Cn.children=[],Cn})}return Ut(ke),nt}function fe(ke,Be,Ne){var Ke={};(0,de.Z)(Ne)==="object"?Ke=Ne:Ke={externalGetKey:Ne},Ke=Ke||{};var $e=Ke,at=$e.childrenPropName,lt=$e.externalGetKey,Tt=$e.fieldNames,nt=Lt(Tt),Ut=nt.key,kt=nt.children,dn=at||kt,nn;lt?typeof lt=="string"?nn=function(mn){return mn[lt]}:typeof lt=="function"&&(nn=function(mn){return lt(mn)}):nn=function(mn,Ct){return ht(mn[Ut],Ct)};function qt(un,mn,Ct,qe){var Bt=un?un[dn]:ke,Cn=un?Ye(Ct.pos,mn):"0",Zn=un?[].concat((0,Te.Z)(qe),[un]):[];if(un){var zt=nn(un,Cn),sn={node:un,index:mn,pos:Cn,key:zt,parentPos:Ct.node?Ct.pos:null,level:Ct.level+1,nodes:Zn};Be(sn)}Bt&&Bt.forEach(function(Mn,fi){qt(Mn,fi,{node:un,pos:Cn,level:Ct?Ct.level+1:-1},Zn)})}qt(null)}function le(ke){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=Be.initWrapper,Ke=Be.processEntity,$e=Be.onProcessFinished,at=Be.externalGetKey,lt=Be.childrenPropName,Tt=Be.fieldNames,nt=arguments.length>2?arguments[2]:void 0,Ut=at||nt,kt={},dn={},nn={posEntities:kt,keyEntities:dn};return Ne&&(nn=Ne(nn)||nn),fe(ke,function(qt){var un=qt.node,mn=qt.index,Ct=qt.pos,qe=qt.key,Bt=qt.parentPos,Cn=qt.level,Zn=qt.nodes,zt={node:un,nodes:Zn,index:mn,key:qe,pos:Ct,level:Cn},sn=ht(qe,Ct);kt[Ct]=zt,dn[sn]=zt,zt.parent=kt[Bt],zt.parent&&(zt.parent.children=zt.parent.children||[],zt.parent.children.push(zt)),Ke&&Ke(zt,nn)},{externalGetKey:Ut,childrenPropName:lt,fieldNames:Tt}),$e&&$e(nn),nn}function me(ke,Be){var Ne=Be.expandedKeys,Ke=Be.selectedKeys,$e=Be.loadedKeys,at=Be.loadingKeys,lt=Be.checkedKeys,Tt=Be.halfCheckedKeys,nt=Be.dragOverNodeKey,Ut=Be.dropPosition,kt=Be.keyEntities,dn=(0,it.Z)(kt,ke),nn={eventKey:ke,expanded:Ne.indexOf(ke)!==-1,selected:Ke.indexOf(ke)!==-1,loaded:$e.indexOf(ke)!==-1,loading:at.indexOf(ke)!==-1,checked:lt.indexOf(ke)!==-1,halfChecked:Tt.indexOf(ke)!==-1,pos:String(dn?dn.pos:""),dragOver:nt===ke&&Ut===0,dragOverGapTop:nt===ke&&Ut===-1,dragOverGapBottom:nt===ke&&Ut===1};return nn}function Se(ke){var Be=ke.data,Ne=ke.expanded,Ke=ke.selected,$e=ke.checked,at=ke.loaded,lt=ke.loading,Tt=ke.halfChecked,nt=ke.dragOver,Ut=ke.dragOverGapTop,kt=ke.dragOverGapBottom,dn=ke.pos,nn=ke.active,qt=ke.eventKey,un=(0,Ee.Z)((0,Ee.Z)({},Be),{},{expanded:Ne,selected:Ke,checked:$e,loaded:at,loading:lt,halfChecked:Tt,dragOver:nt,dragOverGapTop:Ut,dragOverGapBottom:kt,pos:dn,active:nn,key:qt});return"props"in un||Object.defineProperty(un,"props",{get:function(){return(0,we.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ke}}),un}},8178:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return Te}});var de=ae(4676);function Te(Ee,Re,je,Ze){var we=de.unstable_batchedUpdates?function(Je){de.unstable_batchedUpdates(je,Je)}:je;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(Re,we,Ze),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(Re,we,Ze)}}}},21783:function(Ge,xe,ae){"use strict";ae.d(xe,{g1:function(){return st},os:function(){return Lt}});var de=/margin|padding|width|height|max|min|offset/,Te={left:!0,top:!0},Ee={cssFloat:1,styleFloat:1,float:1};function Re(ze){return ze.nodeType===1?ze.ownerDocument.defaultView.getComputedStyle(ze,null):{}}function je(ze,ee,ne){if(ee=ee.toLowerCase(),ne==="auto"){if(ee==="height")return ze.offsetHeight;if(ee==="width")return ze.offsetWidth}return ee in Te||(Te[ee]=de.test(ee)),Te[ee]?parseFloat(ne)||0:ne}function Ze(ze,ee){var ne=arguments.length,fe=Re(ze);return ee=Ee[ee]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ee,ne===1?fe:je(ze,ee,fe[ee]||ze.style[ee])}function we(ze,ee,ne){var fe=arguments.length;if(ee=Ee[ee]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ee,fe===3)return typeof ne=="number"&&de.test(ee)&&(ne="".concat(ne,"px")),ze.style[ee]=ne,ne;for(var le in ee)ee.hasOwnProperty(le)&&we(ze,le,ee[le]);return Re(ze)}function it(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 st(){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 Lt(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(Ge,xe,ae){"use strict";ae.d(xe,{G:function(){return Re}});var de=ae(87746),Te=function(Ze){if((0,de.Z)()&&window.document.documentElement){var we=Array.isArray(Ze)?Ze:[Ze],it=window.document.documentElement;return we.some(function(Je){return Je in it.style})}return!1},Ee=function(Ze,we){if(!Te(Ze))return!1;var it=document.createElement("div"),Je=it.style[Ze];return it.style[Ze]=we,it.style[Ze]!==Je};function Re(je,Ze){return!Array.isArray(je)&&Ze!==void 0?Ee(je,Ze):Te(je)}},21881:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return xi}});var de=ae(5891),Te=ae(80665),Ee=ae(57259),Re=ae(80962),je=ae(29043),Ze=ae(19149),we=ae(92310),it=ae.n(we),Je=ae(29301),Ye=ae(80764),st=ae(28800),ht=ae(59301),Lt=ae(4676),ze=ht.forwardRef(function(xn,Gt){var jt=xn.height,It=xn.offsetY,vt=xn.offsetX,Xt=xn.children,Zt=xn.prefixCls,yt=xn.onInnerResize,ft=xn.innerProps,_e=xn.rtl,Pe=xn.extra,be={},Ue={display:"flex",flexDirection:"column"};return It!==void 0&&(be={height:jt,position:"relative",overflow:"hidden"},Ue=(0,Ee.Z)((0,Ee.Z)({},Ue),{},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({transform:"translateY(".concat(It,"px)")},_e?"marginRight":"marginLeft",-vt),"position","absolute"),"left",0),"right",0),"top",0))),ht.createElement("div",{style:be},ht.createElement(Je.Z,{onResize:function(Fe){var gt=Fe.offsetHeight;gt&&yt&&yt()}},ht.createElement("div",(0,de.Z)({style:Ue,className:it()((0,Re.Z)({},"".concat(Zt,"-holder-inner"),Zt)),ref:Gt},ft),Xt,Pe)))});ze.displayName="Filler";var ee=ze;function ne(xn){var Gt=xn.children,jt=xn.setRef,It=ht.useCallback(function(vt){jt(vt)},[]);return ht.cloneElement(Gt,{ref:It})}function fe(xn,Gt,jt,It,vt,Xt,Zt,yt){var ft=yt.getKey;return xn.slice(Gt,jt+1).map(function(_e,Pe){var be=Gt+Pe,Ue=Zt(_e,be,{style:{width:It},offsetX:vt}),Qe=ft(_e);return ht.createElement(ne,{key:Qe,setRef:function(gt){return Xt(_e,gt)}},Ue)})}function le(xn,Gt,jt,It){var vt=jt-xn,Xt=Gt-jt,Zt=Math.min(vt,Xt)*2;if(It<=Zt){var yt=Math.floor(It/2);return It%2?jt+yt+1:jt-yt}return vt>Xt?jt-(It-Xt):jt+(It-vt)}function me(xn,Gt,jt){var It=xn.length,vt=Gt.length,Xt,Zt;if(It===0&&vt===0)return null;It<vt?(Xt=xn,Zt=Gt):(Xt=Gt,Zt=xn);var yt={__EMPTY_ITEM__:!0};function ft(Fe){return Fe!==void 0?jt(Fe):yt}for(var _e=null,Pe=Math.abs(It-vt)!==1,be=0;be<Zt.length;be+=1){var Ue=ft(Xt[be]),Qe=ft(Zt[be]);if(Ue!==Qe){_e=be,Pe=Pe||Ue!==ft(Zt[be+1]);break}}return _e===null?null:{index:_e,multiple:Pe}}function Se(xn,Gt,jt){var It=ht.useState(xn),vt=(0,je.Z)(It,2),Xt=vt[0],Zt=vt[1],yt=ht.useState(null),ft=(0,je.Z)(yt,2),_e=ft[0],Pe=ft[1];return ht.useEffect(function(){var be=me(Xt||[],xn||[],Gt);(be==null?void 0:be.index)!==void 0&&(jt==null||jt(be.index),Pe(xn[be.index])),Zt(xn)},[xn]),[_e]}var ke=ae(23073),Be=(typeof navigator=="undefined"?"undefined":(0,Te.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ne=Be,Ke=function(xn,Gt,jt,It){var vt=(0,ht.useRef)(!1),Xt=(0,ht.useRef)(null);function Zt(){clearTimeout(Xt.current),vt.current=!0,Xt.current=setTimeout(function(){vt.current=!1},50)}var yt=(0,ht.useRef)({top:xn,bottom:Gt,left:jt,right:It});return yt.current.top=xn,yt.current.bottom=Gt,yt.current.left=jt,yt.current.right=It,function(ft,_e){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,be=ft?_e<0&&yt.current.left||_e>0&&yt.current.right:_e<0&&yt.current.top||_e>0&&yt.current.bottom;return Pe&&be?(clearTimeout(Xt.current),vt.current=!1):(!be||vt.current)&&Zt(),!vt.current&&be}};function $e(xn,Gt,jt,It,vt,Xt,Zt){var yt=(0,ht.useRef)(0),ft=(0,ht.useRef)(null),_e=(0,ht.useRef)(null),Pe=(0,ht.useRef)(!1),be=Ke(Gt,jt,It,vt);function Ue(bt,Wt){if(ke.Z.cancel(ft.current),!be(!1,Wt)){var fn=bt;if(!fn._virtualHandled)fn._virtualHandled=!0;else return;yt.current+=Wt,_e.current=Wt,Ne||fn.preventDefault(),ft.current=(0,ke.Z)(function(){var zn=Pe.current?10:1;Zt(yt.current*zn,!1),yt.current=0})}}function Qe(bt,Wt){Zt(Wt,!0),Ne||bt.preventDefault()}var Fe=(0,ht.useRef)(null),gt=(0,ht.useRef)(null);function tn(bt){if(xn){ke.Z.cancel(gt.current),gt.current=(0,ke.Z)(function(){Fe.current=null},2);var Wt=bt.deltaX,fn=bt.deltaY,zn=bt.shiftKey,ni=Wt,di=fn;(Fe.current==="sx"||!Fe.current&&zn&&fn&&!Wt)&&(ni=fn,di=0,Fe.current="sx");var wi=Math.abs(ni),hi=Math.abs(di);Fe.current===null&&(Fe.current=Xt&&wi>hi?"x":"y"),Fe.current==="y"?Ue(bt,di):Qe(bt,ni)}}function yn(bt){xn&&(Pe.current=bt.detail===_e.current)}return[tn,yn]}function at(xn,Gt,jt,It){var vt=ht.useMemo(function(){return[new Map,[]]},[xn,jt.id,It]),Xt=(0,je.Z)(vt,2),Zt=Xt[0],yt=Xt[1],ft=function(Pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe,Ue=Zt.get(Pe),Qe=Zt.get(be);if(Ue===void 0||Qe===void 0)for(var Fe=xn.length,gt=yt.length;gt<Fe;gt+=1){var tn,yn=xn[gt],bt=Gt(yn);Zt.set(bt,gt);var Wt=(tn=jt.get(bt))!==null&&tn!==void 0?tn:It;if(yt[gt]=(yt[gt-1]||0)+Wt,bt===Pe&&(Ue=gt),bt===be&&(Qe=gt),Ue!==void 0&&Qe!==void 0)break}return{top:yt[Ue-1]||0,bottom:yt[Qe]}};return ft}var lt=ae(85899),Tt=ae(79545),nt=ae(68550),Ut=function(){function xn(){(0,Tt.Z)(this,xn),(0,Re.Z)(this,"maps",void 0),(0,Re.Z)(this,"id",0),(0,Re.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,nt.Z)(xn,[{key:"set",value:function(jt,It){this.maps[jt]=It,this.id+=1,this.diffKeys.add(jt)}},{key:"get",value:function(jt){return this.maps[jt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),xn}(),kt=Ut;function dn(xn){var Gt=parseFloat(xn);return isNaN(Gt)?0:Gt}function nn(xn,Gt,jt){var It=ht.useState(0),vt=(0,je.Z)(It,2),Xt=vt[0],Zt=vt[1],yt=(0,ht.useRef)(new Map),ft=(0,ht.useRef)(new kt),_e=(0,ht.useRef)(0);function Pe(){_e.current+=1}function be(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Pe();var Fe=function(){var yn=!1;yt.current.forEach(function(bt,Wt){if(bt&&bt.offsetParent){var fn=(0,lt.ZP)(bt),zn=fn.offsetHeight,ni=getComputedStyle(fn),di=ni.marginTop,wi=ni.marginBottom,hi=dn(di),Li=dn(wi),Yi=zn+hi+Li;ft.current.get(Wt)!==Yi&&(ft.current.set(Wt,Yi),yn=!0)}}),yn&&Zt(function(bt){return bt+1})};if(Qe)Fe();else{_e.current+=1;var gt=_e.current;Promise.resolve().then(function(){gt===_e.current&&Fe()})}}function Ue(Qe,Fe){var gt=xn(Qe),tn=yt.current.get(gt);Fe?(yt.current.set(gt,Fe),be()):yt.current.delete(gt),!tn!=!Fe&&(Fe?Gt==null||Gt(Qe):jt==null||jt(Qe))}return(0,ht.useEffect)(function(){return Pe},[]),[Ue,be,ft.current,Xt]}var qt=14/15;function un(xn,Gt,jt){var It=(0,ht.useRef)(!1),vt=(0,ht.useRef)(0),Xt=(0,ht.useRef)(0),Zt=(0,ht.useRef)(null),yt=(0,ht.useRef)(null),ft,_e=function(Qe){if(It.current){var Fe=Math.ceil(Qe.touches[0].pageX),gt=Math.ceil(Qe.touches[0].pageY),tn=vt.current-Fe,yn=Xt.current-gt,bt=Math.abs(tn)>Math.abs(yn);bt?vt.current=Fe:Xt.current=gt;var Wt=jt(bt,bt?tn:yn,!1,Qe);Wt&&Qe.preventDefault(),clearInterval(yt.current),Wt&&(yt.current=setInterval(function(){bt?tn*=qt:yn*=qt;var fn=Math.floor(bt?tn:yn);(!jt(bt,fn,!0)||Math.abs(fn)<=.1)&&clearInterval(yt.current)},16))}},Pe=function(){It.current=!1,ft()},be=function(Qe){ft(),Qe.touches.length===1&&!It.current&&(It.current=!0,vt.current=Math.ceil(Qe.touches[0].pageX),Xt.current=Math.ceil(Qe.touches[0].pageY),Zt.current=Qe.target,Zt.current.addEventListener("touchmove",_e,{passive:!1}),Zt.current.addEventListener("touchend",Pe,{passive:!0}))};ft=function(){Zt.current&&(Zt.current.removeEventListener("touchmove",_e),Zt.current.removeEventListener("touchend",Pe))},(0,st.Z)(function(){return xn&&Gt.current.addEventListener("touchstart",be,{passive:!0}),function(){var Ue;(Ue=Gt.current)===null||Ue===void 0||Ue.removeEventListener("touchstart",be),ft(),clearInterval(yt.current)}},[xn])}function mn(xn){return Math.floor(Math.pow(xn,.5))}function Ct(xn,Gt){var jt="touches"in xn?xn.touches[0]:xn;return jt[Gt?"pageX":"pageY"]-window[Gt?"scrollX":"scrollY"]}function qe(xn,Gt,jt){ht.useEffect(function(){var It=Gt.current;if(xn&&It){var vt=!1,Xt,Zt,yt=function(){ke.Z.cancel(Xt)},ft=function Ue(){yt(),Xt=(0,ke.Z)(function(){jt(Zt),Ue()})},_e=function(Qe){var Fe=Qe;Fe._virtualHandled||(Fe._virtualHandled=!0,vt=!0)},Pe=function(){vt=!1,yt()},be=function(Qe){if(vt){var Fe=Ct(Qe,!1),gt=It.getBoundingClientRect(),tn=gt.top,yn=gt.bottom;if(Fe<=tn){var bt=tn-Fe;Zt=-mn(bt),ft()}else if(Fe>=yn){var Wt=Fe-yn;Zt=mn(Wt),ft()}else yt()}};return It.addEventListener("mousedown",_e),It.ownerDocument.addEventListener("mouseup",Pe),It.ownerDocument.addEventListener("mousemove",be),function(){It.removeEventListener("mousedown",_e),It.ownerDocument.removeEventListener("mouseup",Pe),It.ownerDocument.removeEventListener("mousemove",be),yt()}}},[xn])}var Bt=10;function Cn(xn,Gt,jt,It,vt,Xt,Zt,yt){var ft=ht.useRef(),_e=ht.useState(null),Pe=(0,je.Z)(_e,2),be=Pe[0],Ue=Pe[1];return(0,st.Z)(function(){if(be&&be.times<Bt){if(!xn.current){Ue(function(De){return(0,Ee.Z)({},De)});return}Xt();var Qe=be.targetAlign,Fe=be.originAlign,gt=be.index,tn=be.offset,yn=xn.current.clientHeight,bt=!1,Wt=Qe,fn=null;if(yn){for(var zn=Qe||Fe,ni=0,di=0,wi=0,hi=Math.min(Gt.length-1,gt),Li=0;Li<=hi;Li+=1){var Yi=vt(Gt[Li]);di=ni;var Ji=jt.get(Yi);wi=di+(Ji===void 0?It:Ji),ni=wi}for(var Xi=zn==="top"?tn:yn-tn,dr=hi;dr>=0;dr-=1){var Ir=vt(Gt[dr]),Wi=jt.get(Ir);if(Wi===void 0){bt=!0;break}if(Xi-=Wi,Xi<=0)break}switch(zn){case"top":fn=di-tn;break;case"bottom":fn=wi-yn+tn;break;default:{var Dr=xn.current.scrollTop,_i=Dr+yn;di<Dr?Wt="top":wi>_i&&(Wt="bottom")}}fn!==null&&Zt(fn),fn!==be.lastTop&&(bt=!0)}bt&&Ue((0,Ee.Z)((0,Ee.Z)({},be),{},{times:be.times+1,targetAlign:Wt,lastTop:fn}))}},[be,xn.current]),function(Qe){if(Qe==null){yt();return}if(ke.Z.cancel(ft.current),typeof Qe=="number")Zt(Qe);else if(Qe&&(0,Te.Z)(Qe)==="object"){var Fe,gt=Qe.align;"index"in Qe?Fe=Qe.index:Fe=Gt.findIndex(function(bt){return vt(bt)===Qe.key});var tn=Qe.offset,yn=tn===void 0?0:tn;Ue({times:0,index:Fe,offset:yn,originAlign:gt})}}}var Zn=ht.forwardRef(function(xn,Gt){var jt=xn.prefixCls,It=xn.rtl,vt=xn.scrollOffset,Xt=xn.scrollRange,Zt=xn.onStartMove,yt=xn.onStopMove,ft=xn.onScroll,_e=xn.horizontal,Pe=xn.spinSize,be=xn.containerSize,Ue=xn.style,Qe=xn.thumbStyle,Fe=ht.useState(!1),gt=(0,je.Z)(Fe,2),tn=gt[0],yn=gt[1],bt=ht.useState(null),Wt=(0,je.Z)(bt,2),fn=Wt[0],zn=Wt[1],ni=ht.useState(null),di=(0,je.Z)(ni,2),wi=di[0],hi=di[1],Li=!It,Yi=ht.useRef(),Ji=ht.useRef(),Xi=ht.useState(!1),dr=(0,je.Z)(Xi,2),Ir=dr[0],Wi=dr[1],Dr=ht.useRef(),_i=function(){clearTimeout(Dr.current),Wi(!0),Dr.current=setTimeout(function(){Wi(!1)},3e3)},De=Xt-be||0,jr=be-Pe||0,hr=ht.useMemo(function(){if(vt===0||De===0)return 0;var At=vt/De;return At*jr},[vt,De,jr]),oo=function(Dn){Dn.stopPropagation(),Dn.preventDefault()},Oo=ht.useRef({top:hr,dragging:tn,pageY:fn,startTop:wi});Oo.current={top:hr,dragging:tn,pageY:fn,startTop:wi};var Do=function(Dn){yn(!0),zn(Ct(Dn,_e)),hi(Oo.current.top),Zt(),Dn.stopPropagation(),Dn.preventDefault()};ht.useEffect(function(){var At=function(Et){Et.preventDefault()},Dn=Yi.current,Qn=Ji.current;return Dn.addEventListener("touchstart",At,{passive:!1}),Qn.addEventListener("touchstart",Do,{passive:!1}),function(){Dn.removeEventListener("touchstart",At),Qn.removeEventListener("touchstart",Do)}},[]);var Co=ht.useRef();Co.current=De;var so=ht.useRef();so.current=jr,ht.useEffect(function(){if(tn){var At,Dn=function(Et){var Ln=Oo.current,Jn=Ln.dragging,Ci=Ln.pageY,Pn=Ln.startTop;ke.Z.cancel(At);var Rt=Yi.current.getBoundingClientRect(),Yn=be/(_e?Rt.width:Rt.height);if(Jn){var vi=(Ct(Et,_e)-Ci)*Yn,Oi=Pn;!Li&&_e?Oi-=vi:Oi+=vi;var Yt=Co.current,Fn=so.current,$t=Fn?Oi/Fn:0,pn=Math.ceil($t*Yt);pn=Math.max(pn,0),pn=Math.min(pn,Yt),At=(0,ke.Z)(function(){ft(pn,_e)})}},Qn=function(){yn(!1),yt()};return window.addEventListener("mousemove",Dn,{passive:!0}),window.addEventListener("touchmove",Dn,{passive:!0}),window.addEventListener("mouseup",Qn,{passive:!0}),window.addEventListener("touchend",Qn,{passive:!0}),function(){window.removeEventListener("mousemove",Dn),window.removeEventListener("touchmove",Dn),window.removeEventListener("mouseup",Qn),window.removeEventListener("touchend",Qn),ke.Z.cancel(At)}}},[tn]),ht.useEffect(function(){return _i(),function(){clearTimeout(Dr.current)}},[vt]),ht.useImperativeHandle(Gt,function(){return{delayHidden:_i}});var En="".concat(jt,"-scrollbar"),Tn={position:"absolute",visibility:Ir?null:"hidden"},on={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return _e?(Tn.height=8,Tn.left=0,Tn.right=0,Tn.bottom=0,on.height="100%",on.width=Pe,Li?on.left=hr:on.right=hr):(Tn.width=8,Tn.top=0,Tn.bottom=0,Li?Tn.right=0:Tn.left=0,on.width="100%",on.height=Pe,on.top=hr),ht.createElement("div",{ref:Yi,className:it()(En,(0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(En,"-horizontal"),_e),"".concat(En,"-vertical"),!_e),"".concat(En,"-visible"),Ir)),style:(0,Ee.Z)((0,Ee.Z)({},Tn),Ue),onMouseDown:oo,onMouseMove:_i},ht.createElement("div",{ref:Ji,className:it()("".concat(En,"-thumb"),(0,Re.Z)({},"".concat(En,"-thumb-moving"),tn)),style:(0,Ee.Z)((0,Ee.Z)({},on),Qe),onMouseDown:Do}))}),zt=Zn,sn=20;function Mn(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,jt=xn/Gt*xn;return isNaN(jt)&&(jt=0),jt=Math.max(jt,sn),Math.floor(jt)}var fi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Rn=[],li={overflowY:"auto",overflowAnchor:"none"};function Ot(xn,Gt){var jt=xn.prefixCls,It=jt===void 0?"rc-virtual-list":jt,vt=xn.className,Xt=xn.height,Zt=xn.itemHeight,yt=xn.fullHeight,ft=yt===void 0?!0:yt,_e=xn.style,Pe=xn.data,be=xn.children,Ue=xn.itemKey,Qe=xn.virtual,Fe=xn.direction,gt=xn.scrollWidth,tn=xn.component,yn=tn===void 0?"div":tn,bt=xn.onScroll,Wt=xn.onVirtualScroll,fn=xn.onVisibleChange,zn=xn.innerProps,ni=xn.extraRender,di=xn.styles,wi=(0,Ze.Z)(xn,fi),hi=ht.useCallback(function(kr){return typeof Ue=="function"?Ue(kr):kr==null?void 0:kr[Ue]},[Ue]),Li=nn(hi,null,null),Yi=(0,je.Z)(Li,4),Ji=Yi[0],Xi=Yi[1],dr=Yi[2],Ir=Yi[3],Wi=!!(Qe!==!1&&Xt&&Zt),Dr=ht.useMemo(function(){return Object.values(dr.maps).reduce(function(kr,fr){return kr+fr},0)},[dr.id,dr.maps]),_i=Wi&&Pe&&(Math.max(Zt*Pe.length,Dr)>Xt||!!gt),De=Fe==="rtl",jr=it()(It,(0,Re.Z)({},"".concat(It,"-rtl"),De),vt),hr=Pe||Rn,oo=(0,ht.useRef)(),Oo=(0,ht.useRef)(),Do=(0,ht.useRef)(),Co=(0,ht.useState)(0),so=(0,je.Z)(Co,2),En=so[0],Tn=so[1],on=(0,ht.useState)(0),At=(0,je.Z)(on,2),Dn=At[0],Qn=At[1],Kt=(0,ht.useState)(!1),Et=(0,je.Z)(Kt,2),Ln=Et[0],Jn=Et[1],Ci=function(){Jn(!0)},Pn=function(){Jn(!1)},Rt={getKey:hi};function Yn(kr){Tn(function(fr){var no;typeof kr=="function"?no=kr(fr):no=kr;var Po=er(no);return oo.current.scrollTop=Po,Po})}var vi=(0,ht.useRef)({start:0,end:hr.length}),Oi=(0,ht.useRef)(),Yt=Se(hr,hi),Fn=(0,je.Z)(Yt,1),$t=Fn[0];Oi.current=$t;var pn=ht.useMemo(function(){if(!Wi)return{scrollHeight:void 0,start:0,end:hr.length-1,offset:void 0};if(!_i){var kr;return{scrollHeight:((kr=Oo.current)===null||kr===void 0?void 0:kr.offsetHeight)||0,start:0,end:hr.length-1,offset:void 0}}for(var fr=0,no,Po,Wr,na=hr.length,tr=0;tr<na;tr+=1){var Zi=hr[tr],Pr=hi(Zi),ai=dr.get(Pr),xo=fr+(ai===void 0?Zt:ai);xo>=En&&no===void 0&&(no=tr,Po=fr),xo>En+Xt&&Wr===void 0&&(Wr=tr),fr=xo}return no===void 0&&(no=0,Po=0,Wr=Math.ceil(Xt/Zt)),Wr===void 0&&(Wr=hr.length-1),Wr=Math.min(Wr+1,hr.length-1),{scrollHeight:fr,start:no,end:Wr,offset:Po}},[_i,Wi,En,hr,Ir,Xt]),An=pn.scrollHeight,gn=pn.start,In=pn.end,Gn=pn.offset;vi.current.start=gn,vi.current.end=In,ht.useLayoutEffect(function(){var kr=dr.getRecord();if(kr.size===1){var fr=Array.from(kr)[0],no=hi(hr[gn]);if(no===fr){var Po=dr.get(fr),Wr=Po-Zt;Yn(function(na){return na+Wr})}}dr.resetRecord()},[An]);var qn=ht.useState({width:0,height:Xt}),oi=(0,je.Z)(qn,2),Hn=oi[0],ui=oi[1],Ki=function(fr){ui({width:fr.offsetWidth,height:fr.offsetHeight})},Er=(0,ht.useRef)(),Vi=(0,ht.useRef)(),Ht=ht.useMemo(function(){return Mn(Hn.width,gt)},[Hn.width,gt]),Pi=ht.useMemo(function(){return Mn(Hn.height,An)},[Hn.height,An]),zi=An-Xt,Ti=(0,ht.useRef)(zi);Ti.current=zi;function er(kr){var fr=kr;return Number.isNaN(Ti.current)||(fr=Math.min(fr,Ti.current)),fr=Math.max(fr,0),fr}var cr=En<=0,Tr=En>=zi,Qi=Dn<=0,Fi=Dn>=gt,Rr=Ke(cr,Tr,Qi,Fi),ln=function(){return{x:De?-Dn:Dn,y:En}},Ur=(0,ht.useRef)(ln()),bn=(0,Ye.useEvent)(function(kr){if(Wt){var fr=(0,Ee.Z)((0,Ee.Z)({},ln()),kr);(Ur.current.x!==fr.x||Ur.current.y!==fr.y)&&(Wt(fr),Ur.current=fr)}});function Mr(kr,fr){var no=kr;fr?((0,Lt.flushSync)(function(){Qn(no)}),bn()):Yn(no)}function Ho(kr){var fr=kr.currentTarget.scrollTop;fr!==En&&Yn(fr),bt==null||bt(kr),bn()}var Fr=function(fr){var no=fr,Po=gt?gt-Hn.width:0;return no=Math.max(no,0),no=Math.min(no,Po),no},vo=(0,Ye.useEvent)(function(kr,fr){fr?((0,Lt.flushSync)(function(){Qn(function(no){var Po=no+(De?-kr:kr);return Fr(Po)})}),bn()):Yn(function(no){var Po=no+kr;return Po})}),Ro=$e(Wi,cr,Tr,Qi,Fi,!!gt,vo),ir=(0,je.Z)(Ro,2),qi=ir[0],Vr=ir[1];un(Wi,oo,function(kr,fr,no,Po){var Wr=Po;return Rr(kr,fr,no)?!1:!Wr||!Wr._virtualHandled?(Wr&&(Wr._virtualHandled=!0),qi({preventDefault:function(){},deltaX:kr?fr:0,deltaY:kr?0:fr}),!0):!1}),qe(_i,oo,function(kr){Yn(function(fr){return fr+kr})}),(0,st.Z)(function(){function kr(no){var Po=cr&&no.detail<0,Wr=Tr&&no.detail>0;Wi&&!Po&&!Wr&&no.preventDefault()}var fr=oo.current;return fr.addEventListener("wheel",qi,{passive:!1}),fr.addEventListener("DOMMouseScroll",Vr,{passive:!0}),fr.addEventListener("MozMousePixelScroll",kr,{passive:!1}),function(){fr.removeEventListener("wheel",qi),fr.removeEventListener("DOMMouseScroll",Vr),fr.removeEventListener("MozMousePixelScroll",kr)}},[Wi,cr,Tr]),(0,st.Z)(function(){if(gt){var kr=Fr(Dn);Qn(kr),bn({x:kr})}},[Hn.width,gt]);var lo=function(){var fr,no;(fr=Er.current)===null||fr===void 0||fr.delayHidden(),(no=Vi.current)===null||no===void 0||no.delayHidden()},ki=Cn(oo,hr,dr,Zt,hi,function(){return Xi(!0)},Yn,lo);ht.useImperativeHandle(Gt,function(){return{nativeElement:Do.current,getScrollInfo:ln,scrollTo:function(fr){function no(Po){return Po&&(0,Te.Z)(Po)==="object"&&("left"in Po||"top"in Po)}no(fr)?(fr.left!==void 0&&Qn(Fr(fr.left)),ki(fr.top)):ki(fr)}}}),(0,st.Z)(function(){if(fn){var kr=hr.slice(gn,In+1);fn(kr,hr)}},[gn,In,hr]);var ot=at(hr,hi,dr,Zt),Gr=ni==null?void 0:ni({start:gn,end:In,virtual:_i,offsetX:Dn,offsetY:Gn,rtl:De,getSize:ot}),ta=fe(hr,gn,In,gt,Dn,Ji,be,Rt),Hr=null;Xt&&(Hr=(0,Ee.Z)((0,Re.Z)({},ft?"height":"maxHeight",Xt),li),Wi&&(Hr.overflowY="hidden",gt&&(Hr.overflowX="hidden"),Ln&&(Hr.pointerEvents="none")));var Uo={};return De&&(Uo.dir="rtl"),ht.createElement("div",(0,de.Z)({ref:Do,style:(0,Ee.Z)((0,Ee.Z)({},_e),{},{position:"relative"}),className:jr},Uo,wi),ht.createElement(Je.Z,{onResize:Ki},ht.createElement(yn,{className:"".concat(It,"-holder"),style:Hr,ref:oo,onScroll:Ho,onMouseEnter:lo},ht.createElement(ee,{prefixCls:It,height:An,offsetX:Dn,offsetY:Gn,scrollWidth:gt,onInnerResize:Xi,ref:Oo,innerProps:zn,rtl:De,extra:Gr},ta))),_i&&An>Xt&&ht.createElement(zt,{ref:Er,prefixCls:It,scrollOffset:En,scrollRange:An,rtl:De,onScroll:Mr,onStartMove:Ci,onStopMove:Pn,spinSize:Pi,containerSize:Hn.height,style:di==null?void 0:di.verticalScrollBar,thumbStyle:di==null?void 0:di.verticalScrollBarThumb}),_i&&gt>Hn.width&&ht.createElement(zt,{ref:Vi,prefixCls:It,scrollOffset:Dn,scrollRange:gt,rtl:De,onScroll:Mr,onStartMove:Ci,onStopMove:Pn,spinSize:Ht,containerSize:Hn.width,horizontal:!0,style:di==null?void 0:di.horizontalScrollBar,thumbStyle:di==null?void 0:di.horizontalScrollBarThumb}))}var kn=ht.forwardRef(Ot);kn.displayName="List";var $n=kn,xi=$n},19524:function(Ge,xe,ae){"use strict";ae(84126);var de=ae(59301),Te=60103;if(xe.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ee=Symbol.for;Te=Ee("react.element"),xe.Fragment=Ee("react.fragment")}var Re=de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,je=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0};function we(it,Je,Ye){var st,ht={},Lt=null,ze=null;Ye!==void 0&&(Lt=""+Ye),Je.key!==void 0&&(Lt=""+Je.key),Je.ref!==void 0&&(ze=Je.ref);for(st in Je)je.call(Je,st)&&!Ze.hasOwnProperty(st)&&(ht[st]=Je[st]);if(it&&it.defaultProps)for(st in Je=it.defaultProps,Je)ht[st]===void 0&&(ht[st]=Je[st]);return{$$typeof:Te,type:it,key:Lt,ref:ze,props:ht,_owner:Re.current}}xe.jsx=we,xe.jsxs=we},37712:function(Ge,xe,ae){"use strict";Ge.exports=ae(19524)},95489:function(Ge,xe,ae){"use strict";var de=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Te=Be();de.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ee=ae(43621),Re=ae(12256),je=ae(68398),Ze=ae(70614),we=ae(54212),it=ae(9720),Je=ae(88786);Te();var Ye={}.hasOwnProperty;function st(){}st.prototype=je;var ht=new st;Ge.exports=ht,ht.highlight=ee,ht.register=Lt,ht.alias=ze,ht.registered=ne,ht.listLanguages=fe,Lt(Ze),Lt(we),Lt(it),Lt(Je),ht.util.encode=Se,ht.Token.stringify=le;function Lt(Ne){if(typeof Ne!="function"||!Ne.displayName)throw new Error("Expected `function` for `grammar`, got `"+Ne+"`");ht.languages[Ne.displayName]===void 0&&Ne(ht)}function ze(Ne,Ke){var $e=ht.languages,at=Ne,lt,Tt,nt,Ut;Ke&&(at={},at[Ne]=Ke);for(lt in at)for(Tt=at[lt],Tt=typeof Tt=="string"?[Tt]:Tt,nt=Tt.length,Ut=-1;++Ut<nt;)$e[Tt[Ut]]=$e[lt]}function ee(Ne,Ke){var $e=je.highlight,at;if(typeof Ne!="string")throw new Error("Expected `string` for `value`, got `"+Ne+"`");if(ht.util.type(Ke)==="Object")at=Ke,Ke=null;else{if(typeof Ke!="string")throw new Error("Expected `string` for `name`, got `"+Ke+"`");if(Ye.call(ht.languages,Ke))at=ht.languages[Ke];else throw new Error("Unknown language: `"+Ke+"` is not registered")}return $e.call(this,Ne,at,Ke)}function ne(Ne){if(typeof Ne!="string")throw new Error("Expected `string` for `language`, got `"+Ne+"`");return Ye.call(ht.languages,Ne)}function fe(){var Ne=ht.languages,Ke=[],$e;for($e in Ne)Ye.call(Ne,$e)&&typeof Ne[$e]=="object"&&Ke.push($e);return Ke}function le(Ne,Ke,$e){var at;return typeof Ne=="string"?{type:"text",value:Ne}:ht.util.type(Ne)==="Array"?me(Ne,Ke):(at={type:Ne.type,content:ht.Token.stringify(Ne.content,Ke,$e),tag:"span",classes:["token",Ne.type],attributes:{},language:Ke,parent:$e},Ne.alias&&(at.classes=at.classes.concat(Ne.alias)),ht.hooks.run("wrap",at),Ee(at.tag+"."+at.classes.join("."),ke(at.attributes),at.content))}function me(Ne,Ke){for(var $e=[],at=Ne.length,lt=-1,Tt;++lt<at;)Tt=Ne[lt],Tt!==""&&Tt!==null&&Tt!==void 0&&$e.push(Tt);for(lt=-1,at=$e.length;++lt<at;)Tt=$e[lt],$e[lt]=ht.Token.stringify(Tt,Ke,$e);return $e}function Se(Ne){return Ne}function ke(Ne){var Ke;for(Ke in Ne)Ne[Ke]=Re(Ne[Ke]);return Ne}function Be(){var Ne="Prism"in de,Ke=Ne?de.Prism:void 0;return $e;function $e(){Ne?de.Prism=Ke:delete de.Prism,Ne=void 0,Ke=void 0}}},11594:function(Ge,xe,ae){"use strict";var de=ae(95489);Ge.exports=de,de.register(ae(79007)),de.register(ae(15465)),de.register(ae(42746)),de.register(ae(93281)),de.register(ae(95143)),de.register(ae(65924)),de.register(ae(65043)),de.register(ae(43556)),de.register(ae(14901)),de.register(ae(4248)),de.register(ae(17758)),de.register(ae(33335)),de.register(ae(17427)),de.register(ae(22956)),de.register(ae(56007)),de.register(ae(45652)),de.register(ae(33819)),de.register(ae(84230)),de.register(ae(20803)),de.register(ae(65235)),de.register(ae(52406)),de.register(ae(79571)),de.register(ae(3058)),de.register(ae(51422)),de.register(ae(1618)),de.register(ae(2505)),de.register(ae(51274)),de.register(ae(23796)),de.register(ae(13979)),de.register(ae(87994)),de.register(ae(47035)),de.register(ae(36142)),de.register(ae(85290)),de.register(ae(7407)),de.register(ae(79440)),de.register(ae(7110)),de.register(ae(73435)),de.register(ae(91372)),de.register(ae(63663)),de.register(ae(92987)),de.register(ae(91657)),de.register(ae(34367)),de.register(ae(35348)),de.register(ae(26841)),de.register(ae(87071)),de.register(ae(13652)),de.register(ae(87648)),de.register(ae(10617)),de.register(ae(5348)),de.register(ae(71053)),de.register(ae(69820)),de.register(ae(41929)),de.register(ae(51837)),de.register(ae(4182)),de.register(ae(22117)),de.register(ae(95627)),de.register(ae(34265)),de.register(ae(50618)),de.register(ae(32126)),de.register(ae(26737)),de.register(ae(90134)),de.register(ae(51348)),de.register(ae(60841)),de.register(ae(42857)),de.register(ae(81269)),de.register(ae(31134)),de.register(ae(83125)),de.register(ae(9438)),de.register(ae(27771)),de.register(ae(86549)),de.register(ae(37079)),de.register(ae(59250)),de.register(ae(81226)),de.register(ae(65245)),de.register(ae(25040)),de.register(ae(40284)),de.register(ae(39187)),de.register(ae(34302)),de.register(ae(90515)),de.register(ae(33534)),de.register(ae(9885)),de.register(ae(76364)),de.register(ae(56452)),de.register(ae(8477)),de.register(ae(58230)),de.register(ae(66192)),de.register(ae(81084)),de.register(ae(50318)),de.register(ae(95769)),de.register(ae(14155)),de.register(ae(92823)),de.register(ae(63092)),de.register(ae(21550)),de.register(ae(29710)),de.register(ae(2050)),de.register(ae(67967)),de.register(ae(29138)),de.register(ae(67915)),de.register(ae(54853)),de.register(ae(68330)),de.register(ae(76823)),de.register(ae(86712)),de.register(ae(72252)),de.register(ae(78634)),de.register(ae(43583)),de.register(ae(23328)),de.register(ae(74494)),de.register(ae(46745)),de.register(ae(22152)),de.register(ae(83698)),de.register(ae(26619)),de.register(ae(53990)),de.register(ae(7093)),de.register(ae(4005)),de.register(ae(53510)),de.register(ae(24799)),de.register(ae(97443)),de.register(ae(80746)),de.register(ae(17015)),de.register(ae(89246)),de.register(ae(487)),de.register(ae(79539)),de.register(ae(15628)),de.register(ae(14320)),de.register(ae(73222)),de.register(ae(92486)),de.register(ae(24103)),de.register(ae(40604)),de.register(ae(23109)),de.register(ae(32082)),de.register(ae(77674)),de.register(ae(37524)),de.register(ae(6658)),de.register(ae(24824)),de.register(ae(22776)),de.register(ae(89700)),de.register(ae(99296)),de.register(ae(39940)),de.register(ae(34973)),de.register(ae(98135)),de.register(ae(36907)),de.register(ae(3567)),de.register(ae(23763)),de.register(ae(29509)),de.register(ae(40472)),de.register(ae(44695)),de.register(ae(53885)),de.register(ae(51478)),de.register(ae(16928)),de.register(ae(13586)),de.register(ae(37164)),de.register(ae(25153)),de.register(ae(33245)),de.register(ae(32218)),de.register(ae(65626)),de.register(ae(60090)),de.register(ae(40722)),de.register(ae(37783)),de.register(ae(41224)),de.register(ae(71365)),de.register(ae(42846)),de.register(ae(32964)),de.register(ae(78830)),de.register(ae(88799)),de.register(ae(66791)),de.register(ae(41735)),de.register(ae(13490)),de.register(ae(7383)),de.register(ae(66894)),de.register(ae(45779)),de.register(ae(27734)),de.register(ae(91889)),de.register(ae(55965)),de.register(ae(37326)),de.register(ae(92949)),de.register(ae(5681)),de.register(ae(70696)),de.register(ae(35790)),de.register(ae(25777)),de.register(ae(65889)),de.register(ae(53852)),de.register(ae(97719)),de.register(ae(63839)),de.register(ae(67623)),de.register(ae(32530)),de.register(ae(8938)),de.register(ae(55259)),de.register(ae(67411)),de.register(ae(15375)),de.register(ae(12093)),de.register(ae(83588)),de.register(ae(94127)),de.register(ae(21294)),de.register(ae(38709)),de.register(ae(15008)),de.register(ae(96549)),de.register(ae(5221)),de.register(ae(27447)),de.register(ae(73191)),de.register(ae(75542)),de.register(ae(50323)),de.register(ae(44298)),de.register(ae(9634)),de.register(ae(75266)),de.register(ae(48139)),de.register(ae(97534)),de.register(ae(90826)),de.register(ae(63919)),de.register(ae(68862)),de.register(ae(39523)),de.register(ae(31207)),de.register(ae(75308)),de.register(ae(45315)),de.register(ae(13794)),de.register(ae(41299)),de.register(ae(98177)),de.register(ae(48780)),de.register(ae(79793)),de.register(ae(52085)),de.register(ae(65411)),de.register(ae(84750)),de.register(ae(88216)),de.register(ae(66433)),de.register(ae(34855)),de.register(ae(12998)),de.register(ae(10202)),de.register(ae(41186)),de.register(ae(68963)),de.register(ae(5569)),de.register(ae(69435)),de.register(ae(42766)),de.register(ae(46449)),de.register(ae(89032)),de.register(ae(40241)),de.register(ae(24812)),de.register(ae(16747)),de.register(ae(73584)),de.register(ae(79243)),de.register(ae(31788)),de.register(ae(60871)),de.register(ae(21023)),de.register(ae(14693)),de.register(ae(8743)),de.register(ae(1689)),de.register(ae(69210)),de.register(ae(58710)),de.register(ae(60452)),de.register(ae(92784)),de.register(ae(36489)),de.register(ae(78380)),de.register(ae(10409)),de.register(ae(6539)),de.register(ae(82028)),de.register(ae(62282)),de.register(ae(55686)),de.register(ae(70889)),de.register(ae(37116)),de.register(ae(66963)),de.register(ae(21078)),de.register(ae(96198)),de.register(ae(17723)),de.register(ae(67771)),de.register(ae(30307)),de.register(ae(8921)),de.register(ae(13429)),de.register(ae(65197)),de.register(ae(88904)),de.register(ae(35)),de.register(ae(86095)),de.register(ae(76998)),de.register(ae(14409)),de.register(ae(33460)),de.register(ae(28108))},79007:function(Ge){"use strict";Ge.exports=xe,xe.displayName="abap",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="abnf",xe.aliases=[];function xe(ae){(function(de){var Te="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";de.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-])"+Te+"|<"+Te+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ae)}},42746:function(Ge){"use strict";Ge.exports=xe,xe.displayName="actionscript",xe.aliases=[];function xe(ae){ae.languages.actionscript=ae.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),ae.languages.actionscript["class-name"].alias="function",delete ae.languages.actionscript.parameter,delete ae.languages.actionscript["literal-property"],ae.languages.markup&&ae.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:ae.languages.markup}})}},93281:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ada",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="agda",xe.aliases=[];function xe(ae){(function(de){de.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/}})(ae)}},65924:function(Ge){"use strict";Ge.exports=xe,xe.displayName="al",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="antlr4",xe.aliases=["g4"];function xe(ae){ae.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:/[;:()=]/},ae.languages.g4=ae.languages.antlr4}},43556:function(Ge){"use strict";Ge.exports=xe,xe.displayName="apacheconf",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(69435);Ge.exports=Te,Te.displayName="apex",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=/\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,Ze=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return je.source});function we(Je){return RegExp(Je.replace(/<CLASS-NAME>/g,function(){return Ze}),"i")}var it={keyword:je,punctuation:/[()\[\]{};,:.<>]/};Re.languages.apex={comment:Re.languages.clike.comment,string:Re.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Re.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:we(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:it},{pattern:we(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:it},{pattern:we(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:it}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:je,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:/[()\[\]{};,.]/}}(Ee)}},4248:function(Ge){"use strict";Ge.exports=xe,xe.displayName="apl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="applescript",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="aql",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(87071);Ge.exports=Te,Te.displayName="arduino",Te.aliases=["ino"];function Te(Ee){Ee.register(de),Ee.languages.arduino=Ee.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/}),Ee.languages.ino=Ee.languages.arduino}},22956:function(Ge){"use strict";Ge.exports=xe,xe.displayName="arff",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="asciidoc",xe.aliases=["adoc"];function xe(ae){(function(de){var Te={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+$).+/}},Ee=de.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:Te,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:Te.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:Te,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 Re(je){je=je.split(" ");for(var Ze={},we=0,it=je.length;we<it;we++)Ze[je[we]]=Ee[je[we]];return Ze}Te.inside.interpreted.inside.rest=Re("macro inline replacement entity"),Ee["passthrough-block"].inside.rest=Re("macro"),Ee["literal-block"].inside.rest=Re("callout"),Ee.table.inside.rest=Re("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"),Ee["other-block"].inside.rest=Re("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Ee.title.inside.rest=Re("macro inline replacement entity"),de.hooks.add("wrap",function(je){je.type==="entity"&&(je.attributes.title=je.content.value.replace(/&amp;/,"&"))}),de.languages.adoc=de.languages.asciidoc})(ae)}},45652:function(Ge){"use strict";Ge.exports=xe,xe.displayName="asm6502",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="asmatmel",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(87648);Ge.exports=Te,Te.displayName="aspnet",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.aspnet=Ee.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:Ee.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Ee.languages.csharp}}}),Ee.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Ee.languages.insertBefore("inside","punctuation",{directive:Ee.languages.aspnet.directive},Ee.languages.aspnet.tag.inside["attr-value"]),Ee.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Ee.languages.insertBefore("aspnet",Ee.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Ee.languages.csharp||{}}})}},20803:function(Ge){"use strict";Ge.exports=xe,xe.displayName="autohotkey",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="autoit",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="avisynth",xe.aliases=["avs"];function xe(ae){(function(de){function Te(Je,Ye){return Je.replace(/<<(\d+)>>/g,function(st,ht){return Ye[+ht]})}function Ee(Je,Ye,st){return RegExp(Te(Je,Ye),st||"")}var Re=/bool|clip|float|int|string|val/.source,je=[/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("|"),Ze=[/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("|"),we=[/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("|"),it=[je,Ze,we].join("|");de.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Ee(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Re],"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:Ee(/\b(?:<<0>>)\b/.source,[it],"i"),alias:"function"},"type-cast":{pattern:Ee(/\b(?:<<0>>)(?=\s*\()/.source,[Re],"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:/[{}\[\]();,.]/},de.languages.avs=de.languages.avisynth})(ae)}},79571:function(Ge){"use strict";Ge.exports=xe,xe.displayName="avroIdl",xe.aliases=[];function xe(ae){ae.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:/[()\[\]{}<>.:,;-]/},ae.languages.avdl=ae.languages["avro-idl"]}},3058:function(Ge){"use strict";Ge.exports=xe,xe.displayName="bash",xe.aliases=["shell"];function xe(ae){(function(de){var Te="\\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",Ee={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Re={bash:Ee,environment:{pattern:RegExp("\\$"+Te),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("(\\{)"+Te),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})/};de.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;|&]|[<>]\\()"+Te),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Re},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Ee}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Re},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Re.entity}}],environment:{pattern:RegExp("\\$?"+Te),alias:"constant"},variable:Re.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}},Ee.inside=de.languages.bash;for(var je=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Ze=Re.variable[1].inside,we=0;we<je.length;we++)Ze[je[we]]=de.languages.bash[je[we]];de.languages.shell=de.languages.bash})(ae)}},51422:function(Ge){"use strict";Ge.exports=xe,xe.displayName="basic",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="batch",xe.aliases=[];function xe(ae){(function(de){var Te=/%%?[~:\w]+%?|!\S+!/,Ee={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Re=/"(?:[\\"]"|[^"])*"(?!")/,je=/(?:\b|-)\d+\b/;de.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:Re,parameter:Ee,variable:Te,number:je,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:Re,parameter:Ee,variable:Te,number:je,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:Re,parameter:Ee,variable:[Te,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:je,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Re,parameter:Ee,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Te,number:je,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(Ge){"use strict";Ge.exports=xe,xe.displayName="bbcode",xe.aliases=["shortcode"];function xe(ae){ae.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=\]]+/}}},ae.languages.shortcode=ae.languages.bbcode}},51274:function(Ge){"use strict";Ge.exports=xe,xe.displayName="bicep",xe.aliases=[];function xe(ae){ae.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:/[{}[\];(),.:]/},ae.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=ae.languages.bicep}},23796:function(Ge){"use strict";Ge.exports=xe,xe.displayName="birb",xe.aliases=[];function xe(ae){ae.languages.birb=ae.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/}),ae.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="bison",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.bison=Ee.languages.extend("c",{}),Ee.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:Ee.languages.c}},comment:Ee.languages.c.comment,string:Ee.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Ge){"use strict";Ge.exports=xe,xe.displayName="bnf",xe.aliases=["rbnf"];function xe(ae){ae.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}/},ae.languages.rbnf=ae.languages.bnf}},47035:function(Ge){"use strict";Ge.exports=xe,xe.displayName="brainfuck",xe.aliases=[];function xe(ae){ae.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Ge){"use strict";Ge.exports=xe,xe.displayName="brightscript",xe.aliases=[];function xe(ae){ae.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},ae.languages.brightscript["directive-statement"].inside.expression.inside=ae.languages.brightscript}},85290:function(Ge){"use strict";Ge.exports=xe,xe.displayName="bro",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="bsl",xe.aliases=[];function xe(ae){ae.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"}]},ae.languages.oscript=ae.languages.bsl}},79440:function(Ge){"use strict";Ge.exports=xe,xe.displayName="c",xe.aliases=[];function xe(ae){ae.languages.c=ae.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|[?:~]|[-+*/%&|^!=<>]=?/}),ae.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),ae.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},ae.languages.c.string],char:ae.languages.c.char,comment:ae.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:ae.languages.c}}}}),ae.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 ae.languages.c.boolean}},7110:function(Ge){"use strict";Ge.exports=xe,xe.displayName="cfscript",xe.aliases=[];function xe(ae){ae.languages.cfscript=ae.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"}}),ae.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 ae.languages.cfscript["class-name"],ae.languages.cfc=ae.languages.cfscript}},73435:function(Ge,xe,ae){"use strict";var de=ae(87071);Ge.exports=Te,Te.displayName="chaiscript",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.chaiscript=Ee.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:[Ee.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Ee.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Ee.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:Ee.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(Ge){"use strict";Ge.exports=xe,xe.displayName="cil",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="clike",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="clojure",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="cmake",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="cobol",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="coffeescript",xe.aliases=["coffee"];function xe(ae){(function(de){var Te=/#(?!\{).+/,Ee={pattern:/#\{[^}]+\}/,alias:"variable"};de.languages.coffeescript=de.languages.extend("javascript",{comment:Te,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Ee}}],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"}}),de.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Te,interpolation:Ee}}}),de.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:de.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Ee}}]}),de.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete de.languages.coffeescript["template-string"],de.languages.coffee=de.languages.coffeescript})(ae)}},35348:function(Ge){"use strict";Ge.exports=xe,xe.displayName="concurnas",xe.aliases=["conc"];function xe(ae){ae.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"}},ae.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},string:/[\s\S]+/}}}),ae.languages.conc=ae.languages.concurnas}},26841:function(Ge){"use strict";Ge.exports=xe,xe.displayName="coq",xe.aliases=[];function xe(ae){(function(de){for(var Te=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Ee=0;Ee<2;Ee++)Te=Te.replace(/<self>/g,function(){return Te});Te=Te.replace(/<self>/g,"[]"),de.languages.coq={comment:RegExp(Te),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Te})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Te),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ae)}},87071:function(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="cpp",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=/\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/,Ze=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return je.source});Re.languages.cpp=Re.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return je.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:je,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/}),Re.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 Ze})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Re.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:Re.languages.cpp}}}}),Re.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Re.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Re.languages.extend("cpp",{})}}),Re.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Re.languages.cpp["base-clause"])}(Ee)}},13652:function(Ge,xe,ae){"use strict";var de=ae(75308);Ge.exports=Te,Te.displayName="crystal",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){Re.languages.crystal=Re.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:[/->/,Re.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Re.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:Re.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Re.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}})}(Ee)}},87648:function(Ge){"use strict";Ge.exports=xe,xe.displayName="csharp",xe.aliases=["dotnet","cs"];function xe(ae){(function(de){function Te(mn,Ct){return mn.replace(/<<(\d+)>>/g,function(qe,Bt){return"(?:"+Ct[+Bt]+")"})}function Ee(mn,Ct,qe){return RegExp(Te(mn,Ct),qe||"")}function Re(mn,Ct){for(var qe=0;qe<Ct;qe++)mn=mn.replace(/<<self>>/g,function(){return"(?:"+mn+")"});return mn.replace(/<<self>>/g,"[^\\s\\S]")}var je={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 Ze(mn){return"\\b(?:"+mn.trim().replace(/ /g,"|")+")\\b"}var we=Ze(je.typeDeclaration),it=RegExp(Ze(je.type+" "+je.typeDeclaration+" "+je.contextual+" "+je.other)),Je=Ze(je.typeDeclaration+" "+je.contextual+" "+je.other),Ye=Ze(je.type+" "+je.typeDeclaration+" "+je.other),st=Re(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ht=Re(/\((?:[^()]|<<self>>)*\)/.source,2),Lt=/@?\b[A-Za-z_]\w*\b/.source,ze=Te(/<<0>>(?:\s*<<1>>)?/.source,[Lt,st]),ee=Te(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Je,ze]),ne=/\[\s*(?:,\s*)*\]/.source,fe=Te(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[ee,ne]),le=Te(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[st,ht,ne]),me=Te(/\(<<0>>+(?:,<<0>>+)+\)/.source,[le]),Se=Te(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[me,ee,ne]),ke={keyword:it,punctuation:/[<>()?,.:[\]]/},Be=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Ne=/"(?:\\.|[^\\"\r\n])*"/.source,Ke=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;de.languages.csharp=de.languages.extend("clike",{string:[{pattern:Ee(/(^|[^$\\])<<0>>/.source,[Ke]),lookbehind:!0,greedy:!0},{pattern:Ee(/(^|[^@$\\])<<0>>/.source,[Ne]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ee(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[ee]),lookbehind:!0,inside:ke},{pattern:Ee(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Lt,Se]),lookbehind:!0,inside:ke},{pattern:Ee(/(\busing\s+)<<0>>(?=\s*=)/.source,[Lt]),lookbehind:!0},{pattern:Ee(/(\b<<0>>\s+)<<1>>/.source,[we,ze]),lookbehind:!0,inside:ke},{pattern:Ee(/(\bcatch\s*\(\s*)<<0>>/.source,[ee]),lookbehind:!0,inside:ke},{pattern:Ee(/(\bwhere\s+)<<0>>/.source,[Lt]),lookbehind:!0},{pattern:Ee(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[fe]),lookbehind:!0,inside:ke},{pattern:Ee(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,Ye,Lt]),inside:ke}],keyword:it,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:/\?\.?|::|[{}[\];(),.:]/}),de.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),de.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Ee(/([(,]\s*)<<0>>(?=\s*:)/.source,[Lt]),lookbehind:!0,alias:"punctuation"}}),de.languages.insertBefore("csharp","class-name",{namespace:{pattern:Ee(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Lt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Ee(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ht]),lookbehind:!0,alias:"class-name",inside:ke},"return-type":{pattern:Ee(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,ee]),inside:ke,alias:"class-name"},"constructor-invocation":{pattern:Ee(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:ke,alias:"class-name"},"generic-method":{pattern:Ee(/<<0>>\s*<<1>>(?=\s*\()/.source,[Lt,st]),inside:{function:Ee(/^<<0>>/.source,[Lt]),generic:{pattern:RegExp(st),alias:"class-name",inside:ke}}},"type-list":{pattern:Ee(/\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,[we,ze,Lt,Se,it.source,ht,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Ee(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[ze,ht]),lookbehind:!0,greedy:!0,inside:de.languages.csharp},keyword:it,"class-name":{pattern:RegExp(Se),greedy:!0,inside:ke},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=Ne+"|"+Be,at=Te(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$e]),lt=Re(Te(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[at]),2),Tt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,nt=Te(/<<0>>(?:\s*\(<<1>>*\))?/.source,[ee,lt]);de.languages.insertBefore("csharp","class-name",{attribute:{pattern:Ee(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Tt,nt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Ee(/^<<0>>(?=\s*:)/.source,[Tt]),alias:"keyword"},"attribute-arguments":{pattern:Ee(/\(<<0>>*\)/.source,[lt]),inside:de.languages.csharp},"class-name":{pattern:RegExp(ee),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Ut=/:[^}\r\n]+/.source,kt=Re(Te(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[at]),2),dn=Te(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[kt,Ut]),nn=Re(Te(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[$e]),2),qt=Te(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nn,Ut]);function un(mn,Ct){return{interpolation:{pattern:Ee(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[mn]),lookbehind:!0,inside:{"format-string":{pattern:Ee(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ct,Ut]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:de.languages.csharp}}},string:/[\s\S]+/}}de.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Ee(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[dn]),lookbehind:!0,greedy:!0,inside:un(dn,kt)},{pattern:Ee(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[qt]),lookbehind:!0,greedy:!0,inside:un(qt,nn)}],char:{pattern:RegExp(Be),greedy:!0}}),de.languages.dotnet=de.languages.cs=de.languages.csharp})(ae)}},10617:function(Ge,xe,ae){"use strict";var de=ae(87648);Ge.exports=Te,Te.displayName="cshtml",Te.aliases=["razor"];function Te(Ee){Ee.register(de),function(Re){var je=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Ze=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function we(fe,le){for(var me=0;me<le;me++)fe=fe.replace(/<self>/g,function(){return"(?:"+fe+")"});return fe.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Ze+")").replace(/<comment>/g,"(?:"+je+")")}var it=we(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Je=we(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Ye=we(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),st=we(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ht=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Lt=/(?!\d)[^\s>\/=$<%]+/.source+ht+/\s*\/?>/.source,ze=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ht+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Lt+"|"+we(/<\1/.source+ht+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Lt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Lt+")";Re.languages.cshtml=Re.languages.extend("markup",{});var ee=Re.languages.insertBefore("csharp","string",{html:{pattern:RegExp(ze),greedy:!0,inside:Re.languages.cshtml}},{csharp:Re.languages.extend("csharp",{})}),ne={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:ee};Re.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+it+/\s*/.source+Ye,/do\s*/.source+Ye+/\s*while\s*/.source+it+/(?:\s*;)?/.source,/try\s*/.source+Ye+/\s*catch\s*/.source+it+/\s*/.source+Ye+/\s*finally\s*/.source+Ye,/if\s*/.source+it+/\s*/.source+Ye+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+it+")?"+/\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+"|"+it+")(?:"+/[?!]?\.\w+\b/.source+"|"+it+"|"+Je+"|"+st+it+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ne}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Re.languages.razor=Re.languages.cshtml}(Ee)}},5348:function(Ge){"use strict";Ge.exports=xe,xe.displayName="csp",xe.aliases=[];function xe(ae){(function(de){function Te(Ee){return RegExp(/([ \t])/.source+"(?:"+Ee+")"+/(?=[\s;]|$)/.source,"i")}de.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:Te(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Te(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Te(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Te(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Te(/[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:Te(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Te(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(Ge){"use strict";Ge.exports=xe,xe.displayName="cssExtras",xe.aliases=[];function xe(ae){(function(de){var Te=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ee;de.languages.css.selector={pattern:de.languages.css.selector.pattern,lookbehind:!0,inside:Ee={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Te.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":[Te,{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:/[(),]/}},de.languages.css.atrule.inside["selector-function-argument"].inside=Ee,de.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Re={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},je={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};de.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:Re,number:je,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Re,number:je})})(ae)}},54212:function(Ge){"use strict";Ge.exports=xe,xe.displayName="css",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;de.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\\((?:"+Te.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Te.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Te.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Te,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:/[(){};:,]/},de.languages.css.atrule.inside.rest=de.languages.css;var Ee=de.languages.markup;Ee&&(Ee.tag.addInlined("style","css"),Ee.tag.addAttribute("style","css"))})(ae)}},69820:function(Ge){"use strict";Ge.exports=xe,xe.displayName="csv",xe.aliases=[];function xe(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Ge){"use strict";Ge.exports=xe,xe.displayName="cypher",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="d",xe.aliases=[];function xe(ae){ae.languages.d=ae.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),ae.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),ae.languages.insertBefore("d","keyword",{property:/\B@\w*/}),ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="dart",xe.aliases=[];function xe(ae){(function(de){var Te=[/\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/],Ee=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Re={pattern:RegExp(Ee+/[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:/\./}}}};de.languages.dart=de.languages.extend("clike",{"class-name":[Re,{pattern:RegExp(Ee+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Re.inside}],keyword:Te,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),de.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:de.languages.dart}}},string:/[\s\S]+/}},string:void 0}),de.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),de.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Re,keyword:Te,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(Ge){"use strict";Ge.exports=xe,xe.displayName="dataweave",xe.aliases=[];function xe(ae){(function(de){de.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/}})(ae)}},95627:function(Ge){"use strict";Ge.exports=xe,xe.displayName="dax",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="dhall",xe.aliases=[];function xe(ae){ae.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/},ae.languages.dhall.string.inside.interpolation.inside.expression.inside=ae.languages.dhall}},50618:function(Ge){"use strict";Ge.exports=xe,xe.displayName="diff",xe.aliases=[];function xe(ae){(function(de){de.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Te={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Te).forEach(function(Ee){var Re=Te[Ee],je=[];/^\w+$/.test(Ee)||je.push(/\w+/.exec(Ee)[0]),Ee==="diff"&&je.push("bold"),de.languages.diff[Ee]={pattern:RegExp("^(?:["+Re+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:je,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Ee)[0]}}}}),Object.defineProperty(de.languages.diff,"PREFIXES",{value:Te})})(ae)}},32126:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="django",Te.aliases=["jinja2"];function Te(Ee){Ee.register(de),function(Re){Re.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 je=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Ze=Re.languages["markup-templating"];Re.hooks.add("before-tokenize",function(we){Ze.buildPlaceholders(we,"django",je)}),Re.hooks.add("after-tokenize",function(we){Ze.tokenizePlaceholders(we,"django")}),Re.languages.jinja2=Re.languages.django,Re.hooks.add("before-tokenize",function(we){Ze.buildPlaceholders(we,"jinja2",je)}),Re.hooks.add("after-tokenize",function(we){Ze.tokenizePlaceholders(we,"jinja2")})}(Ee)}},26737:function(Ge){"use strict";Ge.exports=xe,xe.displayName="dnsZoneFile",xe.aliases=[];function xe(ae){ae.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:/[()]/},ae.languages["dns-zone"]=ae.languages["dns-zone-file"]}},90134:function(Ge){"use strict";Ge.exports=xe,xe.displayName="docker",xe.aliases=["dockerfile"];function xe(ae){(function(de){var Te=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Ee=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Te}),Re=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,je=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Re}),Ze={pattern:RegExp(Re),greedy:!0},we={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function it(Je,Ye){return Je=Je.replace(/<OPT>/g,function(){return je}).replace(/<SP>/g,function(){return Ee}),RegExp(Je,Ye)}de.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:it(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Ze,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:it(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:we,string:Ze,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:we},de.languages.dockerfile=de.languages.docker})(ae)}},51348:function(Ge){"use strict";Ge.exports=xe,xe.displayName="dot",xe.aliases=["gv"];function xe(ae){(function(de){var Te="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Ee={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:de.languages.markup}};function Re(je,Ze){return RegExp(je.replace(/<ID>/g,function(){return Te}),Ze)}de.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Re(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Ee},"attr-value":{pattern:Re(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Ee},"attr-name":{pattern:Re(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Ee},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:Re(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Ee},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},de.languages.gv=de.languages.dot})(ae)}},60841:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ebnf",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="editorconfig",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="eiffel",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="ejs",Te.aliases=["eta"];function Te(Ee){Ee.register(de),function(Re){Re.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Re.languages.javascript}},Re.hooks.add("before-tokenize",function(je){var Ze=/<%(?!%)[\s\S]+?%>/g;Re.languages["markup-templating"].buildPlaceholders(je,"ejs",Ze)}),Re.hooks.add("after-tokenize",function(je){Re.languages["markup-templating"].tokenizePlaceholders(je,"ejs")}),Re.languages.eta=Re.languages.ejs}(Ee)}},83125:function(Ge){"use strict";Ge.exports=xe,xe.displayName="elixir",xe.aliases=[];function xe(ae){ae.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:/<<|>>|[.,%\[\]{}()]/},ae.languages.elixir.string.forEach(function(de){de.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:ae.languages.elixir}}}})}},9438:function(Ge){"use strict";Ge.exports=xe,xe.displayName="elm",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(75308),Te=ae(51478);Ge.exports=Ee,Ee.displayName="erb",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){je.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:je.languages.ruby}},je.hooks.add("before-tokenize",function(Ze){var we=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;je.languages["markup-templating"].buildPlaceholders(Ze,"erb",we)}),je.hooks.add("after-tokenize",function(Ze){je.languages["markup-templating"].tokenizePlaceholders(Ze,"erb")})}(Re)}},86549:function(Ge){"use strict";Ge.exports=xe,xe.displayName="erlang",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(29509),Te=ae(51478);Ge.exports=Ee,Ee.displayName="etlua",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){je.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:je.languages.lua}},je.hooks.add("before-tokenize",function(Ze){var we=/<%[\s\S]+?%>/g;je.languages["markup-templating"].buildPlaceholders(Ze,"etlua",we)}),je.hooks.add("after-tokenize",function(Ze){je.languages["markup-templating"].tokenizePlaceholders(Ze,"etlua")})}(Re)}},59250:function(Ge){"use strict";Ge.exports=xe,xe.displayName="excelFormula",xe.aliases=[];function xe(ae){ae.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:/[[\]();{}|]/},ae.languages.xlsx=ae.languages.xls=ae.languages["excel-formula"]}},81226:function(Ge){"use strict";Ge.exports=xe,xe.displayName="factor",xe.aliases=[];function xe(ae){(function(de){var Te={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Ee={number:/\\[^\s']|%\w/},Re={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Te},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Te},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Te}],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:Ee.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:Ee},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ee}],"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:Ee}},je=function(Je){return(Je+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Ze=function(Je){return new RegExp("(^|\\s)(?:"+Je.map(je).join("|")+")(?=\\s|$)")},we={"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(we).forEach(function(Je){Re[Je].pattern=Ze(we[Je])});var it=["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"];Re.combinators.pattern=Ze(it),de.languages.factor=Re})(ae)}},65245:function(Ge){"use strict";Ge.exports=xe,xe.displayName="$false",xe.aliases=[];function xe(ae){(function(de){de.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"}}})(ae)}},25040:function(Ge){"use strict";Ge.exports=xe,xe.displayName="firestoreSecurityRules",xe.aliases=[];function xe(ae){ae.languages["firestore-security-rules"]=ae.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete ae.languages["firestore-security-rules"]["class-name"],ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="flow",xe.aliases=[];function xe(ae){(function(de){de.languages.flow=de.languages.extend("javascript",{}),de.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),de.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 de.languages.flow.parameter,de.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(de.languages.flow.keyword)||(de.languages.flow.keyword=[de.languages.flow.keyword]),de.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})})(ae)}},39187:function(Ge){"use strict";Ge.exports=xe,xe.displayName="fortran",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="fsharp",xe.aliases=[];function xe(ae){ae.languages.fsharp=ae.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),ae.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"}}}}),ae.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),ae.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:ae.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(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="ftl",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){for(var je=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Ze=0;Ze<2;Ze++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var we={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return je})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return je})),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:/[,;.:()[\]{}]/};we.string[1].inside.interpolation.inside.rest=we,Re.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:we}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:we}}}},Re.hooks.add("before-tokenize",function(it){var Je=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return je}),"gi");Re.languages["markup-templating"].buildPlaceholders(it,"ftl",Je)}),Re.hooks.add("after-tokenize",function(it){Re.languages["markup-templating"].tokenizePlaceholders(it,"ftl")})}(Ee)}},33534:function(Ge){"use strict";Ge.exports=xe,xe.displayName="gap",xe.aliases=[];function xe(ae){ae.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:/[()[\]{},;.:]/},ae.languages.gap.shell.inside.gap.inside=ae.languages.gap}},9885:function(Ge){"use strict";Ge.exports=xe,xe.displayName="gcode",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="gdscript",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="gedcom",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="gherkin",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;de.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("("+Te+")(?:"+Te+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Te),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"}}})(ae)}},58230:function(Ge){"use strict";Ge.exports=xe,xe.displayName="git",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="glsl",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.glsl=Ee.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(Ge){"use strict";Ge.exports=xe,xe.displayName="gml",xe.aliases=[];function xe(ae){ae.languages.gamemakerlanguage=ae.languages.gml=ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="gn",xe.aliases=["gni"];function xe(ae){ae.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:/[(){}[\],.]/},ae.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=ae.languages.gn,ae.languages.gni=ae.languages.gn}},95769:function(Ge){"use strict";Ge.exports=xe,xe.displayName="goModule",xe.aliases=[];function xe(ae){ae.languages["go-mod"]=ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="go",xe.aliases=[];function xe(ae){ae.languages.go=ae.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/}),ae.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete ae.languages.go["class-name"]}},92823:function(Ge){"use strict";Ge.exports=xe,xe.displayName="graphql",xe.aliases=[];function xe(ae){ae.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:ae.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+/},ae.hooks.add("after-tokenize",function(Te){if(Te.language!=="graphql")return;var Ee=Te.tokens.filter(function(ne){return typeof ne!="string"&&ne.type!=="comment"&&ne.type!=="scalar"}),Re=0;function je(ne){return Ee[Re+ne]}function Ze(ne,fe){fe=fe||0;for(var le=0;le<ne.length;le++){var me=je(le+fe);if(!me||me.type!==ne[le])return!1}return!0}function we(ne,fe){for(var le=1,me=Re;me<Ee.length;me++){var Se=Ee[me],ke=Se.content;if(Se.type==="punctuation"&&typeof ke=="string"){if(ne.test(ke))le++;else if(fe.test(ke)&&(le--,le===0))return me}}return-1}function it(ne,fe){var le=ne.alias;le?Array.isArray(le)||(ne.alias=le=[le]):ne.alias=le=[],le.push(fe)}for(;Re<Ee.length;){var Je=Ee[Re++];if(Je.type==="keyword"&&Je.content==="mutation"){var Ye=[];if(Ze(["definition-mutation","punctuation"])&&je(1).content==="("){Re+=2;var st=we(/^\($/,/^\)$/);if(st===-1)continue;for(;Re<st;Re++){var ht=je(0);ht.type==="variable"&&(it(ht,"variable-input"),Ye.push(ht.content))}Re=st+1}if(Ze(["punctuation","property-query"])&&je(0).content==="{"&&(Re++,it(je(0),"property-mutation"),Ye.length>0)){var Lt=we(/^\{$/,/^\}$/);if(Lt===-1)continue;for(var ze=Re;ze<Lt;ze++){var ee=Ee[ze];ee.type==="variable"&&Ye.indexOf(ee.content)>=0&&it(ee,"variable-input")}}}}})}},63092:function(Ge){"use strict";Ge.exports=xe,xe.displayName="groovy",xe.aliases=[];function xe(ae){ae.languages.groovy=ae.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:/\.+|[{}[\];(),:$]/}),ae.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),ae.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),ae.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),ae.hooks.add("wrap",function(de){if(de.language==="groovy"&&de.type==="string"){var Te=de.content.value[0];if(Te!="'"){var Ee=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Te==="$"&&(Ee=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),de.content.value=de.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),de.content=ae.highlight(de.content.value,{expression:{pattern:Ee,lookbehind:!0,inside:ae.languages.groovy}}),de.classes.push(Te==="/"?"regex":"gstring")}}})}},21550:function(Ge,xe,ae){"use strict";var de=ae(75308);Ge.exports=Te,Te.displayName="haml",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){Re.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:Re.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Re.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:Re.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:Re.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Re.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Re.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Re.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var je="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Ze=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],we={},it=0,Je=Ze.length;it<Je;it++){var Ye=Ze[it];Ye=typeof Ye=="string"?{filter:Ye,language:Ye}:Ye,Re.languages[Ye.language]&&(we["filter-"+Ye.filter]={pattern:RegExp(je.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:Re.languages[Ye.language]}}})}Re.languages.insertBefore("haml","filter",we)}(Ee)}},29710:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="handlebars",Te.aliases=["hbs"];function Te(Ee){Ee.register(de),function(Re){Re.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]+/},Re.hooks.add("before-tokenize",function(je){var Ze=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Re.languages["markup-templating"].buildPlaceholders(je,"handlebars",Ze)}),Re.hooks.add("after-tokenize",function(je){Re.languages["markup-templating"].tokenizePlaceholders(je,"handlebars")}),Re.languages.hbs=Re.languages.handlebars}(Ee)}},2050:function(Ge){"use strict";Ge.exports=xe,xe.displayName="haskell",xe.aliases=["hs"];function xe(ae){ae.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:/[{}[\];(),.:]/},ae.languages.hs=ae.languages.haskell}},67967:function(Ge){"use strict";Ge.exports=xe,xe.displayName="haxe",xe.aliases=[];function xe(ae){ae.languages.haxe=ae.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}|[-+*/%!=&|^])=?|[?:~]/}),ae.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:ae.languages.haxe}}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="hcl",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="hlsl",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.hlsl=Ee.languages.extend("c",{"class-name":[Ee.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(Ge){"use strict";Ge.exports=xe,xe.displayName="hoon",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="hpkp",xe.aliases=[];function xe(ae){ae.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Ge){"use strict";Ge.exports=xe,xe.displayName="hsts",xe.aliases=[];function xe(ae){ae.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Ge){"use strict";Ge.exports=xe,xe.displayName="http",xe.aliases=[];function xe(ae){(function(de){function Te(Ye){return RegExp("(^(?:"+Ye+"):[ ]*(?![ ]))[^]+","i")}de.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:de.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:Te(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:de.languages.csp},{pattern:Te(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:de.languages.hpkp},{pattern:Te(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:de.languages.hsts},{pattern:Te(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Ee=de.languages,Re={"application/javascript":Ee.javascript,"application/json":Ee.json||Ee.javascript,"application/xml":Ee.xml,"text/xml":Ee.xml,"text/html":Ee.html,"text/css":Ee.css,"text/plain":Ee.plain},je={"application/json":!0,"application/xml":!0};function Ze(Ye){var st=Ye.replace(/^[a-z]+\//,""),ht="\\w+/(?:[\\w.-]+\\+)+"+st+"(?![+\\w.-])";return"(?:"+Ye+"|"+ht+")"}var we;for(var it in Re)if(Re[it]){we=we||{};var Je=je[it]?Ze(it):it;we[it.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:Re[it]}}we&&de.languages.insertBefore("http","header",we)})(ae)}},72252:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ichigojam",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="icon",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="icuMessageFormat",xe.aliases=[];function xe(ae){(function(de){function Te(it,Je){return Je<=0?/[]/.source:it.replace(/<SELF>/g,function(){return Te(it,Je-1)})}var Ee=/'[{}:=,](?:[^']|'')*'(?!')/,Re={pattern:/''/,greedy:!0,alias:"operator"},je={pattern:Ee,greedy:!0,inside:{escape:Re}},Ze=Te(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Ee.source}),8),we={pattern:RegExp(Ze),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};de.languages["icu-message-format"]={argument:{pattern:RegExp(Ze),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":we,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":we,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+Te(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Re,string:je},we.inside.message.inside=de.languages["icu-message-format"],de.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=de.languages["icu-message-format"]})(ae)}},23328:function(Ge,xe,ae){"use strict";var de=ae(2050);Ge.exports=Te,Te.displayName="idris",Te.aliases=["idr"];function Te(Ee){Ee.register(de),Ee.languages.idris=Ee.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}),Ee.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Ee.languages.idr=Ee.languages.idris}},74494:function(Ge){"use strict";Ge.exports=xe,xe.displayName="iecst",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="ignore",xe.aliases=["gitignore","hgignore","npmignore"];function xe(ae){(function(de){de.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},de.languages.gitignore=de.languages.ignore,de.languages.hgignore=de.languages.ignore,de.languages.npmignore=de.languages.ignore})(ae)}},22152:function(Ge){"use strict";Ge.exports=xe,xe.displayName="inform7",xe.aliases=[];function xe(ae){ae.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:/[.,:;(){}]/},ae.languages.inform7.string.inside.substitution.inside.rest=ae.languages.inform7,ae.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ini",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="io",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="j",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="java",xe.aliases=[];function xe(ae){(function(de){var Te=/\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/,Ee=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Re={pattern:RegExp(Ee+/[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:/\./}};de.languages.java=de.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Re,{pattern:RegExp(Ee+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Re.inside}],keyword:Te,function:[de.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}}),de.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),de.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":Re,keyword:Te,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 Te.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(Ge,xe,ae){"use strict";var de=ae(7093),Te=ae(53510);Ge.exports=Ee,Ee.displayName="javadoc",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){var Ze=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,we=/#\s*\w+(?:\s*\([^()]*\))?/.source,it=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return we});je.languages.javadoc=je.languages.extend("javadoclike",{}),je.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+it+")"),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:je.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:Ze,lookbehind:!0,inside:je.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Ze,lookbehind:!0,inside:{tag:je.languages.markup.tag,entity:je.languages.markup.entity,code:{pattern:/.+/,inside:je.languages.java,alias:"language-java"}}}}}],tag:je.languages.markup.tag,entity:je.languages.markup.entity}),je.languages.javadoclike.addSupport("java",je.languages.javadoc)}(Re)}},53510:function(Ge){"use strict";Ge.exports=xe,xe.displayName="javadoclike",xe.aliases=[];function xe(ae){(function(de){var Te=de.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 Ee(je,Ze){var we="doc-comment",it=de.languages[je];if(it){var Je=it[we];if(!Je){var Ye={};Ye[we]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},it=de.languages.insertBefore(je,"comment",Ye),Je=it[we]}if(Je instanceof RegExp&&(Je=it[we]={pattern:Je}),Array.isArray(Je))for(var st=0,ht=Je.length;st<ht;st++)Je[st]instanceof RegExp&&(Je[st]={pattern:Je[st]}),Ze(Je[st]);else Ze(Je)}}function Re(je,Ze){typeof je=="string"&&(je=[je]),je.forEach(function(we){Ee(we,function(it){it.inside||(it.inside={}),it.inside.rest=Ze})})}Object.defineProperty(Te,"addSupport",{value:Re}),Te.addSupport(["java","javascript","php"],Te)})(ae)}},88786:function(Ge){"use strict";Ge.exports=xe,xe.displayName="javascript",xe.aliases=["js"];function xe(ae){ae.languages.javascript=ae.languages.extend("clike",{"class-name":[ae.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}|\?\?=?|\?\.?|[~:]/}),ae.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ae.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:ae.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:ae.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ae.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ae.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:ae.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ae.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:ae.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"}}),ae.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ae.languages.markup&&(ae.languages.markup.tag.addInlined("script","javascript"),ae.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")),ae.languages.js=ae.languages.javascript}},24799:function(Ge){"use strict";Ge.exports=xe,xe.displayName="javastacktrace",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="jexl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="jolie",xe.aliases=[];function xe(ae){ae.languages.jolie=ae.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/}),ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="jq",xe.aliases=[];function xe(ae){(function(de){var Te=/\\\((?:[^()]|\([^()]*\))*\)/.source,Ee=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Te})),Re={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Te),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},je=de.languages.jq={comment:/#.*/,property:{pattern:RegExp(Ee.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Re},string:{pattern:Ee,lookbehind:!0,greedy:!0,inside:Re},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"}};Re.interpolation.inside.content.inside=je})(ae)}},89246:function(Ge){"use strict";Ge.exports=xe,xe.displayName="jsExtras",xe.aliases=[];function xe(ae){(function(de){de.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+de.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),de.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+de.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),de.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 Te(it,Je){return RegExp(it.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Je)}de.languages.insertBefore("javascript","keyword",{imports:{pattern:Te(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:de.languages.javascript},exports:{pattern:Te(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:de.languages.javascript}}),de.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"}),de.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),de.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Te(/(\.\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 Ee=["function","function-variable","method","method-variable","property-access"],Re=0;Re<Ee.length;Re++){var je=Ee[Re],Ze=de.languages.javascript[je];de.util.type(Ze)==="RegExp"&&(Ze=de.languages.javascript[je]={pattern:Ze});var we=Ze.inside||{};Ze.inside=we,we["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(Ge){"use strict";Ge.exports=xe,xe.displayName="jsTemplates",xe.aliases=[];function xe(ae){(function(de){var Te=de.languages.javascript["template-string"],Ee=Te.pattern.source,Re=Te.inside.interpolation,je=Re.inside["interpolation-punctuation"],Ze=Re.pattern.source;function we(ze,ee){if(de.languages[ze])return{pattern:RegExp("((?:"+ee+")\\s*)"+Ee),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:ze}}}}de.languages.javascript["template-string"]=[we("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),we("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),we("svg",/\bsvg/.source),we("markdown",/\b(?:markdown|md)/.source),we("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),we("sql",/\bsql/.source),Te].filter(Boolean);function it(ze,ee){return"___"+ee.toUpperCase()+"_"+ze+"___"}function Je(ze,ee,ne){var fe={code:ze,grammar:ee,language:ne};return de.hooks.run("before-tokenize",fe),fe.tokens=de.tokenize(fe.code,fe.grammar),de.hooks.run("after-tokenize",fe),fe.tokens}function Ye(ze){var ee={};ee["interpolation-punctuation"]=je;var ne=de.tokenize(ze,ee);if(ne.length===3){var fe=[1,1];fe.push.apply(fe,Je(ne[1],de.languages.javascript,"javascript")),ne.splice.apply(ne,fe)}return new de.Token("interpolation",ne,Re.alias,ze)}function st(ze,ee,ne){var fe=de.tokenize(ze,{interpolation:{pattern:RegExp(Ze),lookbehind:!0}}),le=0,me={},Se=fe.map(function(Ke){if(typeof Ke=="string")return Ke;for(var $e=Ke.content,at;ze.indexOf(at=it(le++,ne))!==-1;);return me[at]=$e,at}).join(""),ke=Je(Se,ee,ne),Be=Object.keys(me);le=0;function Ne(Ke){for(var $e=0;$e<Ke.length;$e++){if(le>=Be.length)return;var at=Ke[$e];if(typeof at=="string"||typeof at.content=="string"){var lt=Be[le],Tt=typeof at=="string"?at:at.content,nt=Tt.indexOf(lt);if(nt!==-1){++le;var Ut=Tt.substring(0,nt),kt=Ye(me[lt]),dn=Tt.substring(nt+lt.length),nn=[];if(Ut&&nn.push(Ut),nn.push(kt),dn){var qt=[dn];Ne(qt),nn.push.apply(nn,qt)}typeof at=="string"?(Ke.splice.apply(Ke,[$e,1].concat(nn)),$e+=nn.length-1):at.content=nn}}else{var un=at.content;Array.isArray(un)?Ne(un):Ne([un])}}}return Ne(ke),new de.Token(ne,ke,"language-"+ne,ze)}var ht={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};de.hooks.add("after-tokenize",function(ze){if(!(ze.language in ht))return;function ee(ne){for(var fe=0,le=ne.length;fe<le;fe++){var me=ne[fe];if(typeof me!="string"){var Se=me.content;if(!Array.isArray(Se)){typeof Se!="string"&&ee([Se]);continue}if(me.type==="template-string"){var ke=Se[1];if(Se.length===3&&typeof ke!="string"&&ke.type==="embedded-code"){var Be=Lt(ke),Ne=ke.alias,Ke=Array.isArray(Ne)?Ne[0]:Ne,$e=de.languages[Ke];if(!$e)continue;Se[1]=st(Be,$e,Ke)}}else ee(Se)}}}ee(ze.tokens)});function Lt(ze){return typeof ze=="string"?ze:Array.isArray(ze)?ze.map(Lt).join(""):Lt(ze.content)}})(ae)}},79539:function(Ge,xe,ae){"use strict";var de=ae(53510),Te=ae(92784);Ge.exports=Ee,Ee.displayName="jsdoc",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){var Ze=je.languages.javascript,we=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,it="(@(?:arg|argument|param|property)\\s+(?:"+we+"\\s+)?)";je.languages.jsdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp(it+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),je.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(it+/\[(?:(?!\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:Ze,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 we})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+we),lookbehind:!0,inside:{string:Ze.string,number:Ze.number,boolean:Ze.boolean,keyword:je.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:Ze,alias:"language-javascript"}}}}),je.languages.javadoclike.addSupport("javascript",je.languages.jsdoc)}(Re)}},15628:function(Ge){"use strict";Ge.exports=xe,xe.displayName="json",xe.aliases=["webmanifest"];function xe(ae){ae.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"}},ae.languages.webmanifest=ae.languages.json}},14320:function(Ge,xe,ae){"use strict";var de=ae(15628);Ge.exports=Te,Te.displayName="json5",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Re.languages.json5=Re.languages.extend("json",{property:[{pattern:RegExp(je.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:je,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Ee)}},73222:function(Ge,xe,ae){"use strict";var de=ae(15628);Ge.exports=Te,Te.displayName="jsonp",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.jsonp=Ee.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Ee.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(Ge){"use strict";Ge.exports=xe,xe.displayName="jsstacktrace",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="jsx",xe.aliases=[];function xe(ae){(function(de){var Te=de.util.clone(de.languages.javascript),Ee=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Re=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,je=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Ze(Je,Ye){return Je=Je.replace(/<S>/g,function(){return Ee}).replace(/<BRACES>/g,function(){return Re}).replace(/<SPREAD>/g,function(){return je}),RegExp(Je,Ye)}je=Ze(je).source,de.languages.jsx=de.languages.extend("markup",Te),de.languages.jsx.tag.pattern=Ze(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),de.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,de.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,de.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,de.languages.jsx.tag.inside.comment=Te.comment,de.languages.insertBefore("inside","attr-name",{spread:{pattern:Ze(/<SPREAD>/.source),inside:de.languages.jsx}},de.languages.jsx.tag),de.languages.insertBefore("inside","special-attr",{script:{pattern:Ze(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:de.languages.jsx}}},de.languages.jsx.tag);var we=function(Je){return Je?typeof Je=="string"?Je:typeof Je.content=="string"?Je.content:Je.content.map(we).join(""):""},it=function(Je){for(var Ye=[],st=0;st<Je.length;st++){var ht=Je[st],Lt=!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===we(ht.content[0].content[1])&&Ye.pop():ht.content[ht.content.length-1].content==="/>"||Ye.push({tagName:we(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--:Lt=!0),(Lt||typeof ht=="string")&&Ye.length>0&&Ye[Ye.length-1].openedBraces===0){var ze=we(ht);st<Je.length-1&&(typeof Je[st+1]=="string"||Je[st+1].type==="plain-text")&&(ze+=we(Je[st+1]),Je.splice(st+1,1)),st>0&&(typeof Je[st-1]=="string"||Je[st-1].type==="plain-text")&&(ze=we(Je[st-1])+ze,Je.splice(st-1,1),st--),Je[st]=new de.Token("plain-text",ze,null,ze)}ht.content&&typeof ht.content!="string"&&it(ht.content)}};de.hooks.add("after-tokenize",function(Je){Je.language!=="jsx"&&Je.language!=="tsx"||it(Je.tokens)})})(ae)}},40604:function(Ge){"use strict";Ge.exports=xe,xe.displayName="julia",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="keepalived",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="keyman",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="kotlin",xe.aliases=["kt","kts"];function xe(ae){(function(de){de.languages.kotlin=de.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 de.languages.kotlin["class-name"];var Te={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:de.languages.kotlin}};de.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Te},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Te},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete de.languages.kotlin.string,de.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),de.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),de.languages.kt=de.languages.kotlin,de.languages.kts=de.languages.kotlin})(ae)}},37524:function(Ge){"use strict";Ge.exports=xe,xe.displayName="kumir",xe.aliases=["kum"];function xe(ae){(function(de){var Te=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Ee(Re,je){return RegExp(Re.replace(/<nonId>/g,Te),je)}de.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Ee(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Ee(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Ee(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Ee(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Ee(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Ee(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Ee(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Ee(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},de.languages.kum=de.languages.kumir})(ae)}},6658:function(Ge){"use strict";Ge.exports=xe,xe.displayName="kusto",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="latex",xe.aliases=["tex","context"];function xe(ae){(function(de){var Te=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Ee={"equation-command":{pattern:Te,alias:"regex"}};de.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:Ee,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Ee,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:Te,alias:"selector"},punctuation:/[[\]{}&]/},de.languages.tex=de.languages.latex,de.languages.context=de.languages.latex})(ae)}},22776:function(Ge,xe,ae){"use strict";var de=ae(51478),Te=ae(53852);Ge.exports=Ee,Ee.displayName="latte",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){je.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:je.languages.php}};var Ze=je.languages.extend("markup",{});je.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:je.languages.php}}}}}},Ze.tag),je.hooks.add("before-tokenize",function(we){if(we.language==="latte"){var it=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;je.languages["markup-templating"].buildPlaceholders(we,"latte",it),we.grammar=Ze}}),je.hooks.add("after-tokenize",function(we){je.languages["markup-templating"].tokenizePlaceholders(we,"latte")})}(Re)}},89700:function(Ge){"use strict";Ge.exports=xe,xe.displayName="less",xe.aliases=[];function xe(ae){ae.languages.less=ae.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:/[+\-*\/]/}),ae.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Ge,xe,ae){"use strict";var de=ae(48780);Ge.exports=Te,Te.displayName="lilypond",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){for(var je=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Ze=5,we=0;we<Ze;we++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var it=Re.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return je}),"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:Re.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/};it["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=it,Re.languages.ly=it}(Ee)}},39940:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="liquid",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.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"}},Ee.hooks.add("before-tokenize",function(Re){var je=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Ze=!1;Ee.languages["markup-templating"].buildPlaceholders(Re,"liquid",je,function(we){var it=/^\{%-?\s*(\w+)/.exec(we);if(it){var Je=it[1];if(Je==="raw"&&!Ze)return Ze=!0,!0;if(Je==="endraw")return Ze=!1,!0}return!Ze})}),Ee.hooks.add("after-tokenize",function(Re){Ee.languages["markup-templating"].tokenizePlaceholders(Re,"liquid")})}},34973:function(Ge){"use strict";Ge.exports=xe,xe.displayName="lisp",xe.aliases=[];function xe(ae){(function(de){function Te(ze){return RegExp(/(\()/.source+"(?:"+ze+")"+/(?=[\s\)])/.source)}function Ee(ze){return RegExp(/([\s([])/.source+"(?:"+ze+")"+/(?=[\s)])/.source)}var Re=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,je="&"+Re,Ze="(\\()",we="(?=\\))",it="(?=\\s)",Je=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Ye={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Re+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Re),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Re),alias:"property"},splice:{pattern:RegExp(",@?"+Re),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Ze+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+it),lookbehind:!0},{pattern:RegExp(Ze+"(?:append|by|collect|concat|do|finally|for|in|return)"+it),lookbehind:!0}],declare:{pattern:Te(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Te(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Ee(/nil|t/.source),lookbehind:!0},number:{pattern:Ee(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Ze+"def(?:const|custom|group|var)\\s+"+Re),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Re)}},defun:{pattern:RegExp(Ze+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Re+/\s+\(/.source+Je+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Re),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Ze+"lambda\\s+\\(\\s*(?:&?"+Re+"(?:\\s+&?"+Re+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Ze+Re),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},st={"lisp-marker":RegExp(je),varform:{pattern:RegExp(/\(/.source+Re+/\s+(?=\S)/.source+Je+/\)/.source),inside:Ye},argument:{pattern:RegExp(/(^|[\s(])/.source+Re),lookbehind:!0,alias:"variable"},rest:Ye},ht="\\S+(?:\\s+\\S+)*",Lt={pattern:RegExp(Ze+Je+we),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ht),inside:st},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ht),inside:st},keys:{pattern:RegExp("&key\\s+"+ht+"(?:\\s+&allow-other-keys)?"),inside:st},argument:{pattern:RegExp(Re),alias:"variable"},punctuation:/[()]/}};Ye.lambda.inside.arguments=Lt,Ye.defun.inside.arguments=de.util.clone(Lt),Ye.defun.inside.arguments.inside.sublist=Lt,de.languages.lisp=Ye,de.languages.elisp=Ye,de.languages.emacs=Ye,de.languages["emacs-lisp"]=Ye})(ae)}},98135:function(Ge){"use strict";Ge.exports=xe,xe.displayName="livescript",xe.aliases=[];function xe(ae){ae.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:/[(){}\[\]|.,:;`]/},ae.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=ae.languages.livescript}},36907:function(Ge){"use strict";Ge.exports=xe,xe.displayName="llvm",xe.aliases=[];function xe(ae){(function(de){de.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:/[{}[\];(),.!*=<>]/}})(ae)}},3567:function(Ge){"use strict";Ge.exports=xe,xe.displayName="log",xe.aliases=[];function xe(ae){ae.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:ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="lolcode",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="lua",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="magma",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="makefile",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="markdown",xe.aliases=["md"];function xe(ae){(function(de){var Te=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Ee(st){return st=st.replace(/<inner>/g,function(){return Te}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+st+")")}var Re=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,je=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Re}),Ze=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;de.languages.markdown=de.languages.extend("markup",{}),de.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:de.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+je+Ze+"(?:"+je+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+je+Ze+")(?:"+je+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Re),inside:de.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+je+")"+Ze+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+je+"$"),inside:{"table-header":{pattern:RegExp(Re),alias:"important",inside:de.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:Ee(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Ee(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Ee(/(~~?)(?:(?!~)<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:Ee(/!?\[(?:(?!\])<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(st){["url","bold","italic","strike","code-snippet"].forEach(function(ht){st!==ht&&(de.languages.markdown[st].inside.content.inside[ht]=de.languages.markdown[ht])})}),de.hooks.add("after-tokenize",function(st){if(st.language!=="markdown"&&st.language!=="md")return;function ht(Lt){if(!(!Lt||typeof Lt=="string"))for(var ze=0,ee=Lt.length;ze<ee;ze++){var ne=Lt[ze];if(ne.type!=="code"){ht(ne.content);continue}var fe=ne.content[1],le=ne.content[3];if(fe&&le&&fe.type==="code-language"&&le.type==="code-block"&&typeof fe.content=="string"){var me=fe.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");me=(/[a-z][\w-]*/i.exec(me)||[""])[0].toLowerCase();var Se="language-"+me;le.alias?typeof le.alias=="string"?le.alias=[le.alias,Se]:le.alias.push(Se):le.alias=[Se]}}}ht(st.tokens)}),de.hooks.add("wrap",function(st){if(st.type==="code-block"){for(var ht="",Lt=0,ze=st.classes.length;Lt<ze;Lt++){var ee=st.classes[Lt],ne=/language-(.+)/.exec(ee);if(ne){ht=ne[1];break}}var fe=de.languages[ht];if(fe)st.content=de.highlight(Ye(st.content.value),fe,ht);else if(ht&&ht!=="none"&&de.plugins.autoloader){var le="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);st.attributes.id=le,de.plugins.autoloader.loadLanguages(ht,function(){var me=document.getElementById(le);me&&(me.innerHTML=de.highlight(me.textContent,de.languages[ht],ht))})}}});var we=RegExp(de.languages.markup.tag.pattern.source,"gi"),it={amp:"&",lt:"<",gt:">",quot:'"'},Je=String.fromCodePoint||String.fromCharCode;function Ye(st){var ht=st.replace(we,"");return ht=ht.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Lt,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=it[ze];return ne||Lt}}),ht}de.languages.md=de.languages.markdown})(ae)}},51478:function(Ge){"use strict";Ge.exports=xe,xe.displayName="markupTemplating",xe.aliases=[];function xe(ae){(function(de){function Te(Ee,Re){return"___"+Ee.toUpperCase()+Re+"___"}Object.defineProperties(de.languages["markup-templating"]={},{buildPlaceholders:{value:function(Ee,Re,je,Ze){if(Ee.language===Re){var we=Ee.tokenStack=[];Ee.code=Ee.code.replace(je,function(it){if(typeof Ze=="function"&&!Ze(it))return it;for(var Je=we.length,Ye;Ee.code.indexOf(Ye=Te(Re,Je))!==-1;)++Je;return we[Je]=it,Ye}),Ee.grammar=de.languages.markup}}},tokenizePlaceholders:{value:function(Ee,Re){if(Ee.language!==Re||!Ee.tokenStack)return;Ee.grammar=de.languages[Re];var je=0,Ze=Object.keys(Ee.tokenStack);function we(it){for(var Je=0;Je<it.length&&!(je>=Ze.length);Je++){var Ye=it[Je];if(typeof Ye=="string"||Ye.content&&typeof Ye.content=="string"){var st=Ze[je],ht=Ee.tokenStack[st],Lt=typeof Ye=="string"?Ye:Ye.content,ze=Te(Re,st),ee=Lt.indexOf(ze);if(ee>-1){++je;var ne=Lt.substring(0,ee),fe=new de.Token(Re,de.tokenize(ht,Ee.grammar),"language-"+Re,ht),le=Lt.substring(ee+ze.length),me=[];ne&&me.push.apply(me,we([ne])),me.push(fe),le&&me.push.apply(me,we([le])),typeof Ye=="string"?it.splice.apply(it,[Je,1].concat(me)):Ye.content=me}}else Ye.content&&we(Ye.content)}return it}we(Ee.tokens)}}})})(ae)}},70614:function(Ge){"use strict";Ge.exports=xe,xe.displayName="markup",xe.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function xe(ae){ae.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]},ae.languages.markup.tag.inside["attr-value"].inside.entity=ae.languages.markup.entity,ae.languages.markup.doctype.inside["internal-subset"].inside=ae.languages.markup,ae.hooks.add("wrap",function(de){de.type==="entity"&&(de.attributes.title=de.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Te,Ee){var Re={};Re["language-"+Ee]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[Ee]},Re.cdata=/^<!\[CDATA\[|\]\]>$/i;var je={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Re}};je["language-"+Ee]={pattern:/[\s\S]+/,inside:ae.languages[Ee]};var Ze={};Ze[Te]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Te}),"i"),lookbehind:!0,greedy:!0,inside:je},ae.languages.insertBefore("markup","cdata",Ze)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(de,Te){ae.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+de+")"+/\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:[Te,"language-"+Te],inside:ae.languages[Te]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ae.languages.html=ae.languages.markup,ae.languages.mathml=ae.languages.markup,ae.languages.svg=ae.languages.markup,ae.languages.xml=ae.languages.extend("markup",{}),ae.languages.ssml=ae.languages.xml,ae.languages.atom=ae.languages.xml,ae.languages.rss=ae.languages.xml}},16928:function(Ge){"use strict";Ge.exports=xe,xe.displayName="matlab",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="maxscript",xe.aliases=[];function xe(ae){(function(de){var Te=/\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;de.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)+")[ ]*)(?!"+Te.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Te.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:Te,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}})(ae)}},37164:function(Ge){"use strict";Ge.exports=xe,xe.displayName="mel",xe.aliases=[];function xe(ae){ae.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:/<<|>>|[.,:;?\[\](){}]/},ae.languages.mel.code.inside.rest=ae.languages.mel}},25153:function(Ge){"use strict";Ge.exports=xe,xe.displayName="mermaid",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="mizar",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="mongodb",xe.aliases=[];function xe(ae){(function(de){var Te=["$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"],Ee=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Te=Te.map(function(je){return je.replace("$","\\$")});var Re="(?:"+Te.join("|")+")\\b";de.languages.mongodb=de.languages.extend("javascript",{}),de.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(`^(['"])?`+Re+"(?:\\1)?$")}}}),de.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}},de.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Ee.join("|")+")\\b"),alias:"keyword"}})})(ae)}},65626:function(Ge){"use strict";Ge.exports=xe,xe.displayName="monkey",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="moonscript",xe.aliases=["moon"];function xe(ae){ae.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:/[.,()[\]{}\\]/},ae.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=ae.languages.moonscript,ae.languages.moon=ae.languages.moonscript}},40722:function(Ge){"use strict";Ge.exports=xe,xe.displayName="n1ql",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="n4js",xe.aliases=["n4jsd"];function xe(ae){ae.languages.n4js=ae.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/}),ae.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),ae.languages.n4jsd=ae.languages.n4js}},41224:function(Ge){"use strict";Ge.exports=xe,xe.displayName="nand2tetrisHdl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="naniscript",xe.aliases=[];function xe(ae){(function(de){var Te=/\{[^\r\n\[\]{}]*\}/,Ee={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Te,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};de.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:Te,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Ee}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Te,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:Ee},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},de.languages.nani=de.languages.naniscript,de.hooks.add("after-tokenize",function(Ze){var we=Ze.tokens;we.forEach(function(it){if(typeof it!="string"&&it.type==="generic-text"){var Je=je(it);Re(Je)||(it.type="bad-line",it.content=Je)}})});function Re(Ze){for(var we="[]{}",it=[],Je=0;Je<Ze.length;Je++){var Ye=Ze[Je],st=we.indexOf(Ye);if(st!==-1){if(st%2===0)it.push(st+1);else if(it.pop()!==st)return!1}}return it.length===0}function je(Ze){return typeof Ze=="string"?Ze:Array.isArray(Ze)?Ze.map(je).join(""):je(Ze.content)}})(ae)}},42846:function(Ge){"use strict";Ge.exports=xe,xe.displayName="nasm",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="neon",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="nevod",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="nginx",xe.aliases=[];function xe(ae){(function(de){var Te=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;de.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:Te}},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:Te}},punctuation:/[{};]/}})(ae)}},66791:function(Ge){"use strict";Ge.exports=xe,xe.displayName="nim",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="nix",xe.aliases=[];function xe(ae){ae.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:/[{}()[\].,:;]/},ae.languages.nix.string.inside.interpolation.inside=ae.languages.nix}},13490:function(Ge){"use strict";Ge.exports=xe,xe.displayName="nsis",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="objectivec",Te.aliases=["objc"];function Te(Ee){Ee.register(de),Ee.languages.objectivec=Ee.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 Ee.languages.objectivec["class-name"],Ee.languages.objc=Ee.languages.objectivec}},66894:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ocaml",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(79440);Ge.exports=Te,Te.displayName="opencl",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){Re.languages.opencl=Re.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"}}),Re.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 je={"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"}};Re.languages.insertBefore("c","keyword",je),Re.languages.cpp&&(je["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"},Re.languages.insertBefore("cpp","keyword",je))}(Ee)}},27734:function(Ge){"use strict";Ge.exports=xe,xe.displayName="openqasm",xe.aliases=["qasm"];function xe(ae){ae.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:/[(){}\[\];,:.]/},ae.languages.qasm=ae.languages.openqasm}},91889:function(Ge){"use strict";Ge.exports=xe,xe.displayName="oz",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="parigp",xe.aliases=[];function xe(ae){ae.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var de=["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 de=de.map(function(Te){return Te.split("").join(" *")}).join("|"),RegExp("\\b(?:"+de+")\\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(Ge){"use strict";Ge.exports=xe,xe.displayName="parser",xe.aliases=[];function xe(ae){(function(de){var Te=de.languages.parser=de.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:/[\[\](){};]/});Te=de.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:Te.keyword,variable:Te.variable,function:Te.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Te.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Te.punctuation}}}),de.languages.insertBefore("inside","punctuation",{expression:Te.expression,keyword:Te.keyword,variable:Te.variable,function:Te.function,escape:Te.escape,"parser-punctuation":{pattern:Te.punctuation,alias:"punctuation"}},Te.tag.inside["attr-value"])})(ae)}},92949:function(Ge){"use strict";Ge.exports=xe,xe.displayName="pascal",xe.aliases=["objectpascal"];function xe(ae){ae.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:/\(\.|\.\)|[()\[\]:;,.]/},ae.languages.pascal.asm.inside=ae.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),ae.languages.objectpascal=ae.languages.pascal}},5681:function(Ge){"use strict";Ge.exports=xe,xe.displayName="pascaligo",xe.aliases=[];function xe(ae){(function(de){var Te=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Ee=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Te}),Re=de.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 Ee}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Ee}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Ee})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},je=["comment","keyword","builtin","operator","punctuation"].reduce(function(Ze,we){return Ze[we]=Re[we],Ze},{});Re["class-name"].forEach(function(Ze){Ze.inside=je})})(ae)}},70696:function(Ge){"use strict";Ge.exports=xe,xe.displayName="pcaxis",xe.aliases=["px"];function xe(ae){ae.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/},ae.languages.px=ae.languages.pcaxis}},35790:function(Ge){"use strict";Ge.exports=xe,xe.displayName="peoplecode",xe.aliases=["pcode"];function xe(ae){ae.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:/[:.;,()[\]]/},ae.languages.pcode=ae.languages.peoplecode}},25777:function(Ge){"use strict";Ge.exports=xe,xe.displayName="perl",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;de.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,Te].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,Te].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,Te+/\s*/.source+Te].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:/[{}[\];(),:]/}})(ae)}},65889:function(Ge,xe,ae){"use strict";var de=ae(53852);Ge.exports=Te,Te.displayName="phpExtras",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.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(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="php",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Ze=[{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*\()/],we=/\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,it=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Je=/[{}\[\](),:;]/;Re.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:je,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:Ze,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:we,operator:it,punctuation:Je};var Ye={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Re.languages.php},st=[{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}}];Re.languages.insertBefore("php","variable",{string:st,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:je,string:st,"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:Ze,number:we,operator:it,punctuation:Je}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Re.hooks.add("before-tokenize",function(ht){if(/<\?/.test(ht.code)){var Lt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Re.languages["markup-templating"].buildPlaceholders(ht,"php",Lt)}}),Re.hooks.add("after-tokenize",function(ht){Re.languages["markup-templating"].tokenizePlaceholders(ht,"php")})}(Ee)}},97719:function(Ge,xe,ae){"use strict";var de=ae(53852),Te=ae(53510);Ge.exports=Ee,Ee.displayName="phpdoc",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){var Ze=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;je.languages.phpdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Ze+"\\s+)?)\\$\\w+"),lookbehind:!0}}),je.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Ze),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),je.languages.javadoclike.addSupport("php",je.languages.phpdoc)}(Re)}},63839:function(Ge,xe,ae){"use strict";var de=ae(69435);Ge.exports=Te,Te.displayName="plsql",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.plsql=Ee.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Ee.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(Ge){"use strict";Ge.exports=xe,xe.displayName="powerquery",xe.aliases=[];function xe(ae){ae.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:/[,;\[\](){}]/},ae.languages.pq=ae.languages.powerquery,ae.languages.mscript=ae.languages.powerquery}},32530:function(Ge){"use strict";Ge.exports=xe,xe.displayName="powershell",xe.aliases=[];function xe(ae){(function(de){var Te=de.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:/[|{}[\];(),.]/};Te.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Te},boolean:Te.boolean,variable:Te.variable}})(ae)}},8938:function(Ge){"use strict";Ge.exports=xe,xe.displayName="processing",xe.aliases=[];function xe(ae){ae.languages.processing=ae.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="prolog",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="promql",xe.aliases=[];function xe(ae){(function(de){var Te=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Ee=["on","ignoring","group_right","group_left","by","without"],Re=["offset"],je=Te.concat(Ee,Re);de.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Ee.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(?:"+je.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:/[{};()`,.[\]]/}})(ae)}},15375:function(Ge){"use strict";Ge.exports=xe,xe.displayName="properties",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="protobuf",xe.aliases=[];function xe(ae){(function(de){var Te=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;de.languages.protobuf=de.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}),de.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:Te}},builtin:Te,"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}})})(ae)}},83588:function(Ge){"use strict";Ge.exports=xe,xe.displayName="psl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="pug",xe.aliases=[];function xe(ae){(function(de){de.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:de.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:de.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:de.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:de.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:de.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:de.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:de.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:de.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Te=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Ee=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Re={},je=0,Ze=Ee.length;je<Ze;je++){var we=Ee[je];we=typeof we=="string"?{filter:we,language:we}:we,de.languages[we.language]&&(Re["filter-"+we.filter]={pattern:RegExp(Te.replace("<filter_name>",function(){return we.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[we.language,"language-"+we.language],inside:de.languages[we.language]}}})}de.languages.insertBefore("pug","filter",Re)})(ae)}},21294:function(Ge){"use strict";Ge.exports=xe,xe.displayName="puppet",xe.aliases=[];function xe(ae){(function(de){de.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 Te=[{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:de.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];de.languages.puppet.heredoc[0].inside.interpolation=Te,de.languages.puppet.string.inside["double-quoted"].inside.interpolation=Te})(ae)}},38709:function(Ge){"use strict";Ge.exports=xe,xe.displayName="pure",xe.aliases=[];function xe(ae){(function(de){de.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 Te=["c",{lang:"c++",alias:"cpp"},"fortran"],Ee=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Te.forEach(function(Re){var je=Re;if(typeof Re!="string"&&(je=Re.alias,Re=Re.lang),de.languages[je]){var Ze={};Ze["inline-lang-"+je]={pattern:RegExp(Ee.replace("<lang>",Re.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:de.util.clone(de.languages.pure["inline-lang"].inside)},Ze["inline-lang-"+je].inside.rest=de.util.clone(de.languages[je]),de.languages.insertBefore("pure","inline-lang",Ze)}}),de.languages.c&&(de.languages.pure["inline-lang"].inside.rest=de.util.clone(de.languages.c))})(ae)}},15008:function(Ge){"use strict";Ge.exports=xe,xe.displayName="purebasic",xe.aliases=[];function xe(ae){ae.languages.purebasic=ae.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),ae.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 ae.languages.purebasic["class-name"],delete ae.languages.purebasic.boolean,ae.languages.pbfasm=ae.languages.purebasic}},96549:function(Ge,xe,ae){"use strict";var de=ae(2050);Ge.exports=Te,Te.displayName="purescript",Te.aliases=["purs"];function Te(Ee){Ee.register(de),Ee.languages.purescript=Ee.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:[Ee.languages.haskell.operator[0],Ee.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]/]}),Ee.languages.purs=Ee.languages.purescript}},5221:function(Ge){"use strict";Ge.exports=xe,xe.displayName="python",xe.aliases=["py"];function xe(ae){ae.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:/[{}[\];(),.:]/},ae.languages.python["string-interpolation"].inside.interpolation.inside.rest=ae.languages.python,ae.languages.py=ae.languages.python}},27447:function(Ge){"use strict";Ge.exports=xe,xe.displayName="q",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="qml",xe.aliases=[];function xe(ae){(function(de){for(var Te=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Ee=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Re=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Te}).replace(/<comment>/g,function(){return Ee}),je=0;je<2;je++)Re=Re.replace(/<expr>/g,function(){return Re});Re=Re.replace(/<expr>/g,"[^\\s\\S]"),de.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 Re}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:de.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 Re}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:de.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ae)}},75542:function(Ge){"use strict";Ge.exports=xe,xe.displayName="qore",xe.aliases=[];function xe(ae){ae.languages.qore=ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="qsharp",xe.aliases=["qs"];function xe(ae){(function(de){function Te(Lt,ze){return Lt.replace(/<<(\d+)>>/g,function(ee,ne){return"(?:"+ze[+ne]+")"})}function Ee(Lt,ze,ee){return RegExp(Te(Lt,ze),ee||"")}function Re(Lt,ze){for(var ee=0;ee<ze;ee++)Lt=Lt.replace(/<<self>>/g,function(){return"(?:"+Lt+")"});return Lt.replace(/<<self>>/g,"[^\\s\\S]")}var je={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 Ze(Lt){return"\\b(?:"+Lt.trim().replace(/ /g,"|")+")\\b"}var we=RegExp(Ze(je.type+" "+je.other)),it=/\b[A-Za-z_]\w*\b/.source,Je=Te(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[it]),Ye={keyword:we,punctuation:/[<>()?,.:[\]]/},st=/"(?:\\.|[^\\"])*"/.source;de.languages.qsharp=de.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Ee(/(^|[^$\\])<<0>>/.source,[st]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ee(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Je]),lookbehind:!0,inside:Ye},{pattern:Ee(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Je]),lookbehind:!0,inside:Ye}],keyword:we,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:/::|[{}[\];(),.:]/}),de.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ht=Re(Te(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[st]),2);de.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Ee(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ht]),greedy:!0,inside:{interpolation:{pattern:Ee(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ht]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:de.languages.qsharp}}},string:/[\s\S]+/}}})})(ae),ae.languages.qs=ae.languages.qsharp}},44298:function(Ge){"use strict";Ge.exports=xe,xe.displayName="r",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(48780);Ge.exports=Te,Te.displayName="racket",Te.aliases=["rkt"];function Te(Ee){Ee.register(de),Ee.languages.racket=Ee.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Ee.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Ee.languages.rkt=Ee.languages.racket}},75266:function(Ge){"use strict";Ge.exports=xe,xe.displayName="reason",xe.aliases=[];function xe(ae){ae.languages.reason=ae.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/}),ae.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 ae.languages.reason.function}},48139:function(Ge){"use strict";Ge.exports=xe,xe.displayName="regex",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Ee=/\\(?: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]|.)/,Re={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},je={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ze="(?:[^\\\\-]|"+Ee.source+")",we=RegExp(Ze+"-"+Ze),it={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};de.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:we,inside:{escape:Ee,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Te,"char-set":je,escape:Ee}},"special-escape":Te,"char-set":Re,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":it}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Ee,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":it}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},97534:function(Ge){"use strict";Ge.exports=xe,xe.displayName="rego",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="renpy",xe.aliases=["rpy"];function xe(ae){ae.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:/[{}[\];(),.:]/},ae.languages.rpy=ae.languages.renpy}},63919:function(Ge){"use strict";Ge.exports=xe,xe.displayName="rest",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="rip",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="roboconf",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="robotframework",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Ee={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Re(it,Je){var Ye={};Ye["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var st in Je)Ye[st]=Je[st];return Ye.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Ye.variable=Ee,Ye.comment=Te,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return it}),"im"),alias:"section",inside:Ye}}var je={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Ze={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Ee}},we={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Ee}};de.languages.robotframework={settings:Re("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:Re("Variables"),"test-cases":Re("Test Cases",{"test-name":Ze,documentation:je,property:we}),keywords:Re("Keywords",{"keyword-name":Ze,documentation:je,property:we}),tasks:Re("Tasks",{"task-name":Ze,documentation:je,property:we}),comment:Te},de.languages.robot=de.languages.robotframework})(ae)}},75308:function(Ge){"use strict";Ge.exports=xe,xe.displayName="ruby",xe.aliases=["rb"];function xe(ae){(function(de){de.languages.ruby=de.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:/[(){}[\].,;]/}),de.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Te={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:de.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete de.languages.ruby.function;var Ee="(?:"+[/([^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("|")+")",Re=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;de.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Ee+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Te,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Te,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Re),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Re+/(?=:(?!:))/.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:/\./}}}),de.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Ee),greedy:!0,inside:{interpolation:Te,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Te,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:Te,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+Ee),greedy:!0,inside:{interpolation:Te,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Te,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete de.languages.ruby.string,de.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)/}),de.languages.rb=de.languages.ruby})(ae)}},45315:function(Ge){"use strict";Ge.exports=xe,xe.displayName="rust",xe.aliases=[];function xe(ae){(function(de){for(var Te=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Ee=0;Ee<2;Ee++)Te=Te.replace(/<self>/g,function(){return Te});Te=Te.replace(/<self>/g,function(){return/[^\s\S]/.source}),de.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Te),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},de.languages.rust["closure-params"].inside.rest=de.languages.rust,de.languages.rust.attribute.inside.string=de.languages.rust.string})(ae)}},13794:function(Ge){"use strict";Ge.exports=xe,xe.displayName="sas",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Ee=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Re={pattern:RegExp(Te+"[bx]"),alias:"number"},je={pattern:/&[a-z_]\w*/i},Ze={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"},we={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},it=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Je={pattern:RegExp(Te),greedy:!0},Ye=/[$%@.(){}\[\];,\\]/,st={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ht={function:st,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":je,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Ee,"numeric-constant":Re,punctuation:Ye,string:Je},Lt={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"},fe=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,le={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return fe}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return fe}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:it,function:st,"arg-value":ht["arg-value"],operator:ht.operator,argument:ht.arg,number:Ee,"numeric-constant":Re,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};de.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 Te}),"im"),alias:"language-sql",inside:de.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:Ee,"numeric-constant":Re,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:it,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Te}),"im"),lookbehind:!0,alias:"language-groovy",inside:de.languages.groovy},keyword:me,"submit-statement":ne,"global-statements":ee,number:Ee,"numeric-constant":Re,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:it,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Te}),"im"),lookbehind:!0,alias:"language-lua",inside:de.languages.lua},keyword:me,"submit-statement":ne,"global-statements":ee,number:Ee,"numeric-constant":Re,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:it,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ht}},"cas-actions":le,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ht},step:we,keyword:me,function:st,format:Lt,altformat:ze,"global-statements":ee,number:Ee,"numeric-constant":Re,punctuation:Ye,string:Je}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Te}),"im"),lookbehind:!0,inside:ht},"macro-keyword":Ze,"macro-variable":je,"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":Ze,"macro-variable":je,"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:it,number:Ee,"numeric-constant":Re}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ht},"cas-actions":le,comment:it,function:st,format:Lt,altformat:ze,"numeric-constant":Re,datetime:{pattern:RegExp(Te+"(?:dt?|t)"),alias:"number"},string:Je,step:we,keyword:me,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Ee,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Ye}})(ae)}},41299:function(Ge){"use strict";Ge.exports=xe,xe.displayName="sass",xe.aliases=[];function xe(ae){(function(de){de.languages.sass=de.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),de.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete de.languages.sass.atrule;var Te=/\$[-\w]+|#\{\$[-\w]+\}/,Ee=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];de.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Te,operator:Ee}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Te,operator:Ee,important:de.languages.sass.important}}}),delete de.languages.sass.property,delete de.languages.sass.important,de.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}})})(ae)}},98177:function(Ge,xe,ae){"use strict";var de=ae(7093);Ge.exports=Te,Te.displayName="scala",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.scala=Ee.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*/}),Ee.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:Ee.languages.scala}}},string:/[\s\S]+/}}}),delete Ee.languages.scala["class-name"],delete Ee.languages.scala.function}},48780:function(Ge){"use strict";Ge.exports=xe,xe.displayName="scheme",xe.aliases=[];function xe(ae){(function(de){de.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(Te({"<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 Te(Ee){for(var Re in Ee)Ee[Re]=Ee[Re].replace(/<[\w\s]+>/g,function(je){return"(?:"+Ee[je].trim()+")"});return Ee[Re]}})(ae)}},79793:function(Ge){"use strict";Ge.exports=xe,xe.displayName="scss",xe.aliases=[];function xe(ae){ae.languages.scss=ae.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]+\}/}}}),ae.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}]}),ae.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),ae.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}}),ae.languages.scss.atrule.inside.rest=ae.languages.scss}},52085:function(Ge,xe,ae){"use strict";var de=ae(3058);Ge.exports=Te,Te.displayName="shellSession",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Re.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 je}),"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:Re.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Re.languages["sh-session"]=Re.languages.shellsession=Re.languages["shell-session"]}(Ee)}},65411:function(Ge){"use strict";Ge.exports=xe,xe.displayName="smali",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="smalltalk",xe.aliases=[];function xe(ae){ae.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(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="smarty",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){Re.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:Re.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/]},Re.languages.smarty["embedded-php"].inside.smarty.inside=Re.languages.smarty,Re.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Re.languages.smarty;var je=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Ze=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return je.source}),"g");Re.hooks.add("before-tokenize",function(we){var it="{literal}",Je="{/literal}",Ye=!1;Re.languages["markup-templating"].buildPlaceholders(we,"smarty",Ze,function(st){return st===Je&&(Ye=!1),Ye?!1:(st===it&&(Ye=!0),!0)})}),Re.hooks.add("after-tokenize",function(we){Re.languages["markup-templating"].tokenizePlaceholders(we,"smarty")})}(Ee)}},66433:function(Ge){"use strict";Ge.exports=xe,xe.displayName="sml",xe.aliases=["smlnj"];function xe(ae){(function(de){var Te=/\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;de.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 Te.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:Te,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:/[(){}\[\].:,;]/},de.languages.sml["class-name"][0].inside=de.languages.sml,de.languages.smlnj=de.languages.sml})(ae)}},34855:function(Ge){"use strict";Ge.exports=xe,xe.displayName="solidity",xe.aliases=["sol"];function xe(ae){ae.languages.solidity=ae.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),ae.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/}),ae.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),ae.languages.sol=ae.languages.solidity}},12998:function(Ge){"use strict";Ge.exports=xe,xe.displayName="solutionFile",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};de.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Te}},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:Te}},guid:Te,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},de.languages.sln=de.languages["solution-file"]})(ae)}},10202:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="soy",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){var je=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ze=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Re.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:je,greedy:!0},number:Ze,punctuation:/[\[\].?]/}},string:{pattern:je,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Ze,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Re.hooks.add("before-tokenize",function(we){var it=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Je="{literal}",Ye="{/literal}",st=!1;Re.languages["markup-templating"].buildPlaceholders(we,"soy",it,function(ht){return ht===Ye&&(st=!1),st?!1:(ht===Je&&(st=!0),!0)})}),Re.hooks.add("after-tokenize",function(we){Re.languages["markup-templating"].tokenizePlaceholders(we,"soy")})}(Ee)}},41186:function(Ge,xe,ae){"use strict";var de=ae(58710);Ge.exports=Te,Te.displayName="sparql",Te.aliases=["rq"];function Te(Ee){Ee.register(de),Ee.languages.sparql=Ee.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Ee.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]}),Ee.languages.rq=Ee.languages.sparql}},68963:function(Ge){"use strict";Ge.exports=xe,xe.displayName="splunkSpl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="sqf",xe.aliases=[];function xe(ae){ae.languages.sqf=ae.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}),ae.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:ae.languages.sqf.comment}}}),delete ae.languages.sqf["class-name"]}},69435:function(Ge){"use strict";Ge.exports=xe,xe.displayName="sql",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="squirrel",xe.aliases=[];function xe(ae){ae.languages.squirrel=ae.languages.extend("clike",{comment:[ae.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:/[(){}\[\],;.]/}),ae.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),ae.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Ge){"use strict";Ge.exports=xe,xe.displayName="stan",xe.aliases=[];function xe(ae){(function(de){var Te=/\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/;de.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("("+Te.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/,Te],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:/[()\[\]{},;]/},de.languages.stan.constraint.inside.expression.inside=de.languages.stan})(ae)}},89032:function(Ge){"use strict";Ge.exports=xe,xe.displayName="stylus",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Ee={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Re={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:Te,number:Ee,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Te,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Ee,punctuation:/[{}()\[\];:,]/};Re.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Re}},Re.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Re}},de.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Re}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Re}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Re}},"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:Re.interpolation}},rest:Re}},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:Re.interpolation,comment:Re.comment,punctuation:/[{},]/}},func:Re.func,string:Re.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Re.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},40241:function(Ge){"use strict";Ge.exports=xe,xe.displayName="swift",xe.aliases=[];function xe(ae){ae.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:/[{}[\]();,.:\\]/},ae.languages.swift["string-literal"].forEach(function(de){de.inside.interpolation.inside=ae.languages.swift})}},24812:function(Ge){"use strict";Ge.exports=xe,xe.displayName="systemd",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/^[;#].*/m,greedy:!0},Ee=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;de.languages.systemd={comment:Te,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+"(?:"+Ee+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Ee+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Te,quoted:{pattern:RegExp(/(^|\s)/.source+Ee),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},16747:function(Ge,xe,ae){"use strict";var de=ae(73584),Te=ae(87648);Ge.exports=Ee,Ee.displayName="t4Cs",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),Re.languages.t4=Re.languages["t4-cs"]=Re.languages["t4-templating"].createT4("csharp")}},73584:function(Ge){"use strict";Ge.exports=xe,xe.displayName="t4Templating",xe.aliases=[];function xe(ae){(function(de){function Te(Re,je,Ze){return{pattern:RegExp("<#"+Re+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Re+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:je,alias:Ze}}}}function Ee(Re){var je=de.languages[Re],Ze="language-"+Re;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Te("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Te("=",je,Ze),"class-feature":Te("\\+",je,Ze),standard:Te("",je,Ze)}}}}de.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Ee})})(ae)}},79243:function(Ge,xe,ae){"use strict";var de=ae(73584),Te=ae(55686);Ge.exports=Ee,Ee.displayName="t4Vb",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),Re.languages["t4-vb"]=Re.languages["t4-templating"].createT4("vbnet")}},31788:function(Ge,xe,ae){"use strict";var de=ae(14409);Ge.exports=Te,Te.displayName="tap",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.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:Ee.languages.yaml,alias:"language-yaml"}}}},60871:function(Ge){"use strict";Ge.exports=xe,xe.displayName="tcl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="textile",xe.aliases=[];function xe(ae){(function(de){var Te=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Ee=/\)|\((?![^|()\n]+\))/.source;function Re(st,ht){return RegExp(st.replace(/<MOD>/g,function(){return"(?:"+Te+")"}).replace(/<PAR>/g,function(){return"(?:"+Ee+")"}),ht||"")}var je={css:{pattern:/\{[^{}]+\}/,inside:{rest:de.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Ze=de.languages.textile=de.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Re(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Re(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:je},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Re(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Re(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/^[*#]+/}},table:{pattern:Re(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Re(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:je},punctuation:/\||^\./}},inline:{pattern:Re(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Re(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Re(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Re(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Re(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Re(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Re(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Re(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Re(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Re(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Re(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Re(/(^")<MOD>+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Re(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Re(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Re(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:je},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:/[()]/}}}}}),we=Ze.phrase.inside,it={inline:we.inline,link:we.link,image:we.image,footnote:we.footnote,acronym:we.acronym,mark:we.mark};Ze.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Je=we.inline.inside;Je.bold.inside=it,Je.italic.inside=it,Je.inserted.inside=it,Je.deleted.inside=it,Je.span.inside=it;var Ye=we.table.inside;Ye.inline=it.inline,Ye.link=it.link,Ye.image=it.image,Ye.footnote=it.footnote,Ye.acronym=it.acronym,Ye.mark=it.mark})(ae)}},14693:function(Ge){"use strict";Ge.exports=xe,xe.displayName="toml",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Ee(Re){return Re.replace(/__/g,function(){return Te})}de.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Ee(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Ee(/(^[\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:/[.,=[\]{}]/}})(ae)}},8743:function(Ge){"use strict";Ge.exports=xe,xe.displayName="tremor",xe.aliases=[];function xe(ae){(function(de){de.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 Te=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;de.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Te+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Te+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Te),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:de.languages.tremor}}},string:/[\s\S]+/}},de.languages.troy=de.languages.tremor,de.languages.trickle=de.languages.tremor})(ae)}},1689:function(Ge,xe,ae){"use strict";var de=ae(24103),Te=ae(92784);Ge.exports=Ee,Ee.displayName="tsx",Ee.aliases=[];function Ee(Re){Re.register(de),Re.register(Te),function(je){var Ze=je.util.clone(je.languages.typescript);je.languages.tsx=je.languages.extend("jsx",Ze),delete je.languages.tsx.parameter,delete je.languages.tsx["literal-property"];var we=je.languages.tsx.tag;we.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+we.pattern.source+")",we.pattern.flags),we.lookbehind=!0}(Re)}},69210:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="tt2",Te.aliases=[];function Te(Ee){Ee.register(de),function(Re){Re.languages.tt2=Re.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:/[[\]{},()]/}),Re.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Re.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Re.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 Re.languages.tt2.string,Re.hooks.add("before-tokenize",function(je){var Ze=/\[%[\s\S]+?%\]/g;Re.languages["markup-templating"].buildPlaceholders(je,"tt2",Ze)}),Re.hooks.add("after-tokenize",function(je){Re.languages["markup-templating"].tokenizePlaceholders(je,"tt2")})}(Ee)}},58710:function(Ge){"use strict";Ge.exports=xe,xe.displayName="turtle",xe.aliases=[];function xe(ae){ae.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:/@/}}},ae.languages.trig=ae.languages.turtle}},60452:function(Ge,xe,ae){"use strict";var de=ae(51478);Ge.exports=Te,Te.displayName="twig",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.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:/[()\[\]{}:.,]/},Ee.hooks.add("before-tokenize",function(Re){if(Re.language==="twig"){var je=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Ee.languages["markup-templating"].buildPlaceholders(Re,"twig",je)}}),Ee.hooks.add("after-tokenize",function(Re){Ee.languages["markup-templating"].tokenizePlaceholders(Re,"twig")})}},92784:function(Ge){"use strict";Ge.exports=xe,xe.displayName="typescript",xe.aliases=["ts"];function xe(ae){(function(de){de.languages.typescript=de.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/}),de.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 de.languages.typescript.parameter,delete de.languages.typescript["literal-property"];var Te=de.languages.extend("typescript",{});delete Te["class-name"],de.languages.typescript["class-name"].inside=Te,de.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:Te}}}}),de.languages.ts=de.languages.typescript})(ae)}},36489:function(Ge){"use strict";Ge.exports=xe,xe.displayName="typoscript",xe.aliases=["tsconfig"];function xe(ae){(function(de){var Te=/\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/;de.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:Te}},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:Te,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Te,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},de.languages.tsconfig=de.languages.typoscript})(ae)}},78380:function(Ge){"use strict";Ge.exports=xe,xe.displayName="unrealscript",xe.aliases=["uc","uscript"];function xe(ae){ae.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:/[()[\]{};,.]/},ae.languages.uc=ae.languages.uscript=ae.languages.unrealscript}},10409:function(Ge){"use strict";Ge.exports=xe,xe.displayName="uorazor",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="uri",xe.aliases=["url"];function xe(ae){ae.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":/\//}}},ae.languages.url=ae.languages.uri}},82028:function(Ge){"use strict";Ge.exports=xe,xe.displayName="v",xe.aliases=[];function xe(ae){(function(de){var Te={pattern:/[\s\S]+/,inside:null};de.languages.v=de.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":Te}}}},"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/}),Te.inside=de.languages.v,de.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),de.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+/}}}),de.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:de.languages.v.generic.inside}}}})})(ae)}},62282:function(Ge){"use strict";Ge.exports=xe,xe.displayName="vala",xe.aliases=[];function xe(ae){ae.languages.vala=ae.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/}),ae.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:ae.languages.vala}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Ge,xe,ae){"use strict";var de=ae(51422);Ge.exports=Te,Te.displayName="vbnet",Te.aliases=[];function Te(Ee){Ee.register(de),Ee.languages.vbnet=Ee.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(Ge){"use strict";Ge.exports=xe,xe.displayName="velocity",xe.aliases=[];function xe(ae){(function(de){de.languages.velocity=de.languages.extend("markup",{});var Te={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:/[(){}[\]:,.]/};Te.variable.inside={string:Te.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Te.number,boolean:Te.boolean,punctuation:Te.punctuation},de.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:Te}},variable:Te.variable}),de.languages.velocity.tag.inside["attr-value"].inside.rest=de.languages.velocity})(ae)}},37116:function(Ge){"use strict";Ge.exports=xe,xe.displayName="verilog",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="vhdl",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="vim",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="visualBasic",xe.aliases=[];function xe(ae){ae.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:/[{}().,:?]/},ae.languages.vb=ae.languages["visual-basic"],ae.languages.vba=ae.languages["visual-basic"]}},17723:function(Ge){"use strict";Ge.exports=xe,xe.displayName="warpscript",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="wasm",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="webIdl",xe.aliases=[];function xe(ae){(function(de){var Te=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Ee="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Te+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Re={};de.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Te),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Re},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Ee),lookbehind:!0,inside:Re},{pattern:RegExp("("+/\bcallback\s+/.source+Te+/\s*=\s*/.source+")"+Ee),lookbehind:!0,inside:Re},{pattern:RegExp(/(\btypedef\b\s*)/.source+Ee),lookbehind:!0,inside:Re},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Te),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Te),lookbehind:!0},RegExp(Te+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Te),lookbehind:!0},{pattern:RegExp(Ee+"(?="+/\s*(?:\.{3}\s*)?/.source+Te+/\s*[(),;=]/.source+")"),inside:Re}],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 je in de.languages["web-idl"])je!=="class-name"&&(Re[je]=de.languages["web-idl"][je]);de.languages.webidl=de.languages["web-idl"]})(ae)}},8921:function(Ge){"use strict";Ge.exports=xe,xe.displayName="wiki",xe.aliases=[];function xe(ae){ae.languages.wiki=ae.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:ae.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),ae.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:ae.languages.markup.tag.inside}}}})}},13429:function(Ge){"use strict";Ge.exports=xe,xe.displayName="wolfram",xe.aliases=["mathematica","wl","nb"];function xe(ae){ae.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:/[{}[\];(),.:]/},ae.languages.mathematica=ae.languages.wolfram,ae.languages.wl=ae.languages.wolfram,ae.languages.nb=ae.languages.wolfram}},65197:function(Ge){"use strict";Ge.exports=xe,xe.displayName="wren",xe.aliases=[];function xe(ae){ae.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:/[\[\](){}.,;]/},ae.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:ae.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Ge){"use strict";Ge.exports=xe,xe.displayName="xeora",xe.aliases=["xeoracube"];function xe(ae){(function(de){de.languages.xeora=de.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"}}),de.languages.insertBefore("inside","punctuation",{variable:de.languages.xeora["function-inline"].inside.variable},de.languages.xeora["function-block"]),de.languages.xeoracube=de.languages.xeora})(ae)}},35:function(Ge){"use strict";Ge.exports=xe,xe.displayName="xmlDoc",xe.aliases=[];function xe(ae){(function(de){function Te(Ze,we){de.languages[Ze]&&de.languages.insertBefore(Ze,"comment",{"doc-comment":we})}var Ee=de.languages.markup.tag,Re={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Ee}},je={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Ee}};Te("csharp",Re),Te("fsharp",Re),Te("vbnet",je)})(ae)}},86095:function(Ge){"use strict";Ge.exports=xe,xe.displayName="xojo",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="xquery",xe.aliases=[];function xe(ae){(function(de){de.languages.xquery=de.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:/[[\](){},;:/]/}),de.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,de.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,de.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,de.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:de.languages.xquery,alias:"language-xquery"};var Te=function(Re){return typeof Re=="string"?Re:typeof Re.content=="string"?Re.content:Re.content.map(Te).join("")},Ee=function(Re){for(var je=[],Ze=0;Ze<Re.length;Ze++){var we=Re[Ze],it=!1;if(typeof we!="string"&&(we.type==="tag"&&we.content[0]&&we.content[0].type==="tag"?we.content[0].content[0].content==="</"?je.length>0&&je[je.length-1].tagName===Te(we.content[0].content[1])&&je.pop():we.content[we.content.length-1].content==="/>"||je.push({tagName:Te(we.content[0].content[1]),openedBraces:0}):je.length>0&&we.type==="punctuation"&&we.content==="{"&&(!Re[Ze+1]||Re[Ze+1].type!=="punctuation"||Re[Ze+1].content!=="{")&&(!Re[Ze-1]||Re[Ze-1].type!=="plain-text"||Re[Ze-1].content!=="{")?je[je.length-1].openedBraces++:je.length>0&&je[je.length-1].openedBraces>0&&we.type==="punctuation"&&we.content==="}"?je[je.length-1].openedBraces--:we.type!=="comment"&&(it=!0)),(it||typeof we=="string")&&je.length>0&&je[je.length-1].openedBraces===0){var Je=Te(we);Ze<Re.length-1&&(typeof Re[Ze+1]=="string"||Re[Ze+1].type==="plain-text")&&(Je+=Te(Re[Ze+1]),Re.splice(Ze+1,1)),Ze>0&&(typeof Re[Ze-1]=="string"||Re[Ze-1].type==="plain-text")&&(Je=Te(Re[Ze-1])+Je,Re.splice(Ze-1,1),Ze--),/^\s+$/.test(Je)?Re[Ze]=Je:Re[Ze]=new de.Token("plain-text",Je,null,Je)}we.content&&typeof we.content!="string"&&Ee(we.content)}};de.hooks.add("after-tokenize",function(Re){Re.language==="xquery"&&Ee(Re.tokens)})})(ae)}},14409:function(Ge){"use strict";Ge.exports=xe,xe.displayName="yaml",xe.aliases=["yml"];function xe(ae){(function(de){var Te=/[*&][^\s[\]{},]+/,Ee=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Re="(?:"+Ee.source+"(?:[ ]+"+Te.source+")?|"+Te.source+"(?:[ ]+"+Ee.source+")?)",je=/(?:[^\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}),Ze=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function we(it,Je){Je=(Je||"").replace(/m/g,"")+"m";var Ye=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Re}).replace(/<<value>>/g,function(){return it});return RegExp(Ye,Je)}de.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 Re})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Re}).replace(/<<key>>/g,function(){return"(?:"+je+"|"+Ze+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:we(/\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:we(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:we(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:we(Ze),lookbehind:!0,greedy:!0},number:{pattern:we(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Ee,important:Te,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},de.languages.yml=de.languages.yaml})(ae)}},33460:function(Ge){"use strict";Ge.exports=xe,xe.displayName="yang",xe.aliases=[];function xe(ae){ae.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(Ge){"use strict";Ge.exports=xe,xe.displayName="zig",xe.aliases=[];function xe(ae){(function(de){function Te(Je){return function(){return Je}}var Ee=/\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/,Re="\\b(?!"+Ee.source+")(?!\\d)\\w+\\b",je=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Ze=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Te(je)),we=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Te(Re)),it="(?!\\s)(?:!?\\s*(?:"+Ze+"\\s*)*"+we+")+";de.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,Te(it)).replace(/<ALIGN>/g,Te(je))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Te(it)).replace(/<ALIGN>/g,Te(je))),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:Ee,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:/[.:,;(){}[\]]/},de.languages.zig["class-name"].forEach(function(Je){Je.inside===null&&(Je.inside=de.languages.zig)})})(ae)}},92848:function(Ge,xe){"use strict";var ae;xe.Q=Re,ae=je;var de="",Te=" ",Ee=/[ \t\n\r\f]+/g;function Re(Ze){var we=String(Ze||de).trim();return we===de?[]:we.split(Ee)}function je(Ze){return Ze.join(Te).trim()}},58970:function(Ge,xe,ae){"use strict";var de=this&&this.__importDefault||function(Re){return Re&&Re.__esModule?Re:{default:Re}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=Ee;var Te=de(ae(93193));function Ee(Re,je){var Ze=null;if(!Re||typeof Re!="string")return Ze;var we=(0,Te.default)(Re),it=typeof je=="function";return we.forEach(function(Je){if(Je.type==="declaration"){var Ye=Je.property,st=Je.value;it?je(Ye,st,Je):st&&(Ze=Ze||{},Ze[Ye]=st)}}),Ze}},97270:function(Ge){Ge.exports=ae;var xe=Object.prototype.hasOwnProperty;function ae(){for(var de={},Te=0;Te<arguments.length;Te++){var Ee=arguments[Te];for(var Re in Ee)xe.call(Ee,Re)&&(de[Re]=Ee[Re])}return de}},90034:function(Ge,xe,ae){var de={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164};function Te(Re){var je=Ee(Re);return ae(je)}function Ee(Re){if(!ae.o(de,Re)){var je=new Error("Cannot find module '"+Re+"'");throw je.code="MODULE_NOT_FOUND",je}return de[Re]}Te.keys=function(){return Object.keys(de)},Te.resolve=Ee,Ge.exports=Te,Te.id=90034},93314:function(Ge){"use strict";Ge.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=="},63604:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAQWUlEQVR4nO3df2zU9R3H8c/3SqECSpFUyGCjYCYmG9DTDCgILc4pLhNrUBMNC+wPdXFumdPplrg5jckyp45sarb5j0QjiT9Cp/uD6YQCKuLiWmB/yKZQHDiwYK9YoPTXd+9X8aC9u8/nvnf3/Vzv+7nXI+n1c9jefe7u+/z+uhM8NQo6Ozvr+vtja5Tn18nVRkWhOHGyRx04dFhVVY3tjsVi78eU94vL58/ZLv+J8lTUQCSM6r6B2O885a9VFLpkIMONG1u5eVysd1U8Hk/IVcpR0QKROOr6B7wtMqyWL7IgUyDgxbzTFd7goiUL4m1ylXJQlEAkjlqJo1WG1fJFlugCgZjn9cZigwsZSW6KEkjH0QS2HI2KrDIFAowkd9YDOXq0s8lX3kYZkmXZAgFGkhvrgXQc7WyWu7lehmRZkECAkQRXhEASvnyjIggaCDCSYKwGIgfnOHPVKkMqglwCAUaSndVAOjo6G5U3dGqXiiDXQICRmDEQh+QTCDASPQbikHwDAUaSGQNxSCGBACNJx0AcUmggwEhGYiAOCSMQYCTnMBCHhBUIMJIzGIhDwgwEGIliIC4JOxAo90gYiENsBALlHAkDcYitQKBcI2EgDrEZCJRjJAzEIbYDgXKLhIE4pBiBQDlFwkAcUqxAoFwiYSAOKWYgUA6RMBCHFDsQcD0SBuKQ0QgEXI6EgThktAIBVyNhIA4ZzUDAxUgYiENGOxBwLRIG4pBSCARcioSBOKRUAgFXImEgDimlQMCFSBiIQ0otEIh6JAzEIaUYCEQ5EgbikFINBKIaCQNxSCkHAlGMhIE4pNQDgahFwkAcEoVAIEqRMBCHRCUQiEokDMQhUQoEohAJA3FI1AKBUo+EgTgkioFAKUfCQBwS1UCgVCNhIA6JciBQipEwEIdEPRAotUgYiENcCARKKRIG4hBXAoFSiYSBOMSlQACR+P7gHcvq48+qUcJAHOJaIEme8r83WpEwEIe4GgiMViQMxCEuBwKjEQkDcYjrgUCxI2EgDimHQKCYkTAQh/Sc7lX7Pv5ERu4bU+HHi3EKmIE45oOPPlaDg4MycpvnqZOVvv+1+vp4u7KIgTjm0OGjquvzbhm5T94n2bB00fxbZWgNA3FMb1+/+rD9oIzKw1jlz7K5FWEgDjrWeVwdOfqZjNznef7dyxbF18nQCgbiqLLZ1fL9vzQsjjfJyAoG4rBy2JLIAvz2svq6K2Rohdy+PQxk9OGYpONYQn1+4qSTZ7fGVFS0LVkwNy5DKxhIGcEbiYD3S1yJRR7Lby6bd8nPZGgFA6Fo8/3lNTWTW5QlDISijYEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDKIcyN/f2fOd+Zd8+TUZElmx69//ve6qxXP/KkMrrAUy4Rt31k2pHv/k+xseWCJXiay4/JZH3j6WOHnXiX883SZXQ2clEMTRN9C/ZcqkCe27X3qwTv6IyIp5Nz3UdqzrRG1lxZjlNiIJPZBkHDKslkDaGAjZ9EUgWMYSNiIJNZDhcciXYiBk27BAIPRIQgskNQ5gIGRbSiAQaiShBJIpDmAgZFuGQCC0SAoORBcHMBCyTRMIhBJJQYGY4gAGQrYZAoGCI8k7kGxxAAMh27IEAgVFklcgQeIABkK2BQgE8o4k50CCxgEMhGwLGAjkFUlOgeQSBzAQsi2HQCDnSAIHkmscwEDIthwDgZwiCRRIPnEAAyHb8ggEAkeSNZB84wAGQrblGQgEisQYSCFxAAMh2woIBLJGog2k0DiAgZBtBQYCxkgyBhJGHMBAyLYQAgFtJGmBVF/52MxTxw8876vBiXK1IF+6aErX73++pkGGRFb86Nfrt37y6bFJMiyIp2Ld510wc3Vi870H5OpZnnyNULViQ6Pv+1tkSFRWPM9b3rPplhY1DAMh+gIDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGEiJua5+upp/8WQZKTVv9mRVPbFSRkoluvvU7n2dMlLqtR2H1K6PzoyLZfi8ls27SC7P2PVRQnWd6JXvnWr7nk+H5ukSpwLBCzhpwpkFKl/bdn8ql8WFBe6735olC+EMCWKs/El2ie5eCeWgeu6N/dbmnM+8tu0+oh55/l/y3c6cis2pQF5/9JtDL2qhkgvfq+8clO+H5E/smDl1gvrtHZeplYtnyLX8PffGvqGF8sCRE3KtcGHMC6Hc9vjO0OY0WhhIFth1+Omf/ikveLhrRKyZn7lnkYzCc9vj70os+2WUP8wLcQTdYphgRXP7EzuHVjRRxUACwloaoYSxj/3MPQtlQZwto/D9YePeoXnmA3GEHS0s/MGmoRVNFDGQHOBFvub+NwuKxGYcSYgZuze5sBUHYEtyzf2bh56/qGEgOcKLnG8kP7xhztDuiwnOCGGXBLt0qfvveGw4LsDZrWywFcHWJAgcc+x8akWg3SrMC2fTsNDDsnlT5eRItZwcMf8unjdsSaKmLALBwoIXyAS/hwUEa9JsL/aTzXvVvX/MbTcGZ9iwEOogDCzQONjOBgv0Y9+/bOjskg4W4KBr7dcfvVIe/1QZZYa5YV7YMulWDHjeHlg9d2huOo88v0e+sj++UlIWgVx935tDa76g8GJjATSFkutt7l1/nSw8mf+HTKyRb3poe9oWI5ts80Qc2dbauA3TrhXmhseqC2M4vGeDLaRuFxLRXrr2Vfme/bZKBQPRwIuN29Ptzhw40q3mrAn2j/WaFsJcFsBMsGXCFkAXyc0Pbx/aZdMxhYvn7OaHt+U8N9NxVtS2IgzEIFsk2Ra+JNNCiDU81vSFMB3b4P2Iq+/bLKN0eK7w+DLBbtWcNfmv7d97ekXG5w1bkWk3viKjaGAgWWANrTt2MC18SaatR5hrU91jB93jf+nBpdrjmKDx65iet0Jvu5gYSACmXQasZU3HDrqFsNA1dCo8bjz+THQnFeSFl8t0eDyYW6F0jx2fUsAxVxQwkABwZmbv+pUySoczZDj7pHP45VWyq5Z+fKBbaAuhe/x47HgOhsPP4eczCeMdecB94CuTsLactjGQgHT71Dj1qXtTzrSbEcaxRyrTsYi8hnJ5julnp934cmhbtqhjIAE9sPrr8jVXRiOZzmaZFkJ5TuUyXKYgU58D3e5PWLtXrmAgAeEd7Bd/uVRG6eT5kct0uqgwF8zJBnkx5TId7g/3m6R7rkxbxHLEQALC7eL2M5HnRy7TjUYgR15ZlfE9Edwf7jcJjwWPKVWYZ9ZcwEACwu3i9jOR50cu0+nOfmEumJMNmCPmmgr3h/tN0v0cAxmJgQSE28XtZ6I74MbP4/dS2dyN0d1n6nsPup9jICMxkIBwu7j9TOT5kct0+JzUXU1zZDQS5oI52YA5Yq6pcH+43yTdz9mMN4oYSEC4Xdx+JvL8yGW60TgGkRdTLtPh/nC/SXgseEyp8DP4WTqDgQSE28XtZyLPj1ym0wViOjVcCHx27PDLN8ooXepzgMeCx5QKP4OfpTMYSEC69zRM7xuYPoeF38HvhgmPHc9BJqlv/ulOIIT9YUJ80hhwZg3v0yRFZVeOgQSkW6BML7TpIyphfZxjON0xDz5Sv+DOTTI6Rxc8pMaUL9N7R6knDUoVAwlI95mqbJ/FQiAIJRXOeuHsV5h0c8z0uS+szXXvuocVr26lgg9qTl0V3lbKJgYSgGlNmG1XSbeQQKHzGs60O6dbW8sLL5fpwvi0rel4yLTVLTUMJADd//CUadclFbYe2IpkgoN1bEUK3Z3BwvjBsyvle/rWA/Ei4kxM8eJ38Lv50p2gADxmbEGjgIFkYdpXD7orovtgIISxNjUt6KY3/ky7WUH+ZzAd00oBrwNej6hgIAam3RbsR2MtG2TtjzlhbjqFRGKKI8gcdR/jh6ArgFSIDvFlku9rMVoYiIZpFwFyXXhMWxHAMcLtT7xrXJiHw1oaWzYcH+lkO4EA+H3d8RWYtkCpsKv3558sGrrNTPAa4LWIEgbyBSxw+MJCvHLxdBmnH3Mk4bZwm7nAwrPzqWvldtPPaCXhPQhEh7NOuv1/rJlXXzVLthqz5DbTjzmScpljtnhxrIRIcPCuCxjzwUrF9Lxha6Z7XKWqLAIJE3ZbsG+ez0EmFm7sfgSB28d9YYFKRmX6y92Gw+/h5AF+NwjEi2MGvJmXzfB5AeYWZF65bIlKCQPJARaMfONIwppWd1wTBswRp2ixBcmFzXlhLkG3ZqWGgQSEBa/QOJKwJcFHMIKssXNR6BwRCd6ND3NeOBWOYJNbnKhhIAFg3xsH5br973wgEhxkhzVfrKUxx0IXRMwLB+3YdSoU5pTP38xYShiIAcLAQTPOMNmCMz4IJd8FEkEgDCyMYcExCT7ThfeA8tmaYEuGj7bguYs6pwLB7oHunH4QOFuDBQ5fiKOYaz6EgrhxNilbLMn5IQqb8WIemBd2vYI8r5gP5oX3dYr53NnkVCCuwBo8uUBilwf/MCkWPsA+/WgtfAgYknOCUpiXTQyEyOD0325N6yHtD2DcNS/48o2onHRJINXyfQRNIBualfKvlyFRWfA8tb5n061rVYqMgYy/9oWmgUG1UYZEZSHT8QdkDASqVrzQ4vuqQYZETtNtPUAbSHXTxupTp061K6UmyReRq3add955jYnmGxIyTqMNBCZ8+8W6gcH+ZtmSzJSrRK7ZJbtWTbJr1a40jIEAtiQ9PafWSSRr5CqREzzPf6iqavw63ZYjKWsgSfL+SK3caJOE0iRXlXxvkG9EkSDHGVt930vEYn6LfG82bTWGCxxIPjo6OhtlZltkSGSH7y+vqZncoixhIBRtDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEOl98J/9y5fWx1uUJVYD2b6jtfHSr85iIGRN5AOZXTvjubGVlfp/VpUoT93dJ9sO/u/I3ZEO5PzzJz44fVpNoyIK2cefHN568sSpX0U6kEHlNV968VdULBbjX2FKoent6zv4Yfuh82PKb4p6IFuqxla+NXvm9Cvkj4hC8WH7wZ29ff0LJZBoH4MgEBmqmimT36q5cBIjoYK1H5Jdq5M9DTJUzgQC48dXba2dPq1BhkR52Xfg0Fs9vX1nV7ROBTLEUwdrLqxul6+zD5LIZHBwsOtY4viejs8StcpXM+SPznIvkHO6Kioq9o8bV9k1Jlbhy3WiEXp7e8f0DQxOHBgYqJOrGY2p8ONLFsTbZGiF1UDefq+1rn/Aa5UhkRUN9XVWl2GrNw5bd7Rx60BW+Mo/0Fgfr1UW2Q/kndZm5XnXy5AoZP76hvr4WmWR9UC27Wxt8ge9jTIkCpXtA3SwHghs3dHaInfVoIhCY3/rAUUJZMeO1trTSrV5ypskV4kKIsceuyZVqcZ4PJ6Qq1YVJRDAGa2+AdXCSKgQiKOyQq21eWp3uKIFAq2trdXHe9Q6uds1cpUoR/76C6rUj4ux5UgqaiBJ2Jr096u1cu91iscmpCFbiy5ZQNtk2DJWqWfr6+Ptqsj+Dz/HRYzs4T73AAAAAElFTkSuQmCC"},30045:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAARiUlEQVR4nO3dW2wdxR0G8BluBRWIQ/tAgyoMLa3agjBIUNSq2JF6eUBVTF+4SC0O4gkqxSkSPABKEPAAEo2RCk8Ih1bi8tI4Qjz0IsVJ1aotEjiCtiIQJSkkhKbxJQm5EXv7/w4+9MTs/md2z87ezveTxt5jJXtmZ+ebmd1z7GNNRc0ciQbMvBlcMGbARqbfWDNkqBB7P9h/4PMXnnvd5SuW75GHPc1KqYyZY1H/wkmzRgIxLDXrN1SK3XveM6dOzR/74sV93+j1kFgppVsMxjqpzIih0iEgR48eM+ecc07Ph8RKKdXMXLQuMma9ocpoBwR6PSRWSikwa0QnzCapwYA8pArpDAj0ckislMLhAjw6ZbbIs/fJQ6qYpQGBXg2JlVKomUPRcLRgxuWZGY6KigsI9GJIrJTCcOaoh6SAQK+FxEopxEwU9UVzZpc8I8NRcVpAoJdCYqUUYno22iLPNmSo8lwBgV4JiZUSnNzKHZVbuRtkk2rAJyDQCyGxUoLi0qp+fAMCTQ+JlRLUwblovTzJOtmkmkgTEGhySKyUYDh71FPagEBTQ2KlBCOveYxEkbzmQbWSJSDQxJBYKcFMz0UT8m2VFKqRrAGBpoXESglGAhLJN6qZbgICTQqJlRLEzOFoKFqQV82pdroNCDQlJFZKELx7VV95BASaEBIrJQgJyJjsfI1sUs3kFRCoe0islCCmZ6NJ2fugbFLN5BkQqHNIrJQgGJD6yjsgUNeQWClBMCD1FSIgUMeQWClBMCD1tX//f8z0zKxs5a9uIbFSgmBA6uvAgYPmwH8PylYYdQqJlRIEA1JfB6dnzIcfHpCtcOoSEislCAakvj766KjZ8+/3ZSusOoTESgmCAam3f/5rh3wNr+ohsVKCYEDqLdSdrDhVDomVEgQDUm9FXId0qmpIrJQgGJB6m5+fN2/v2ClbxaliSKyUIBiQ+tu7b7+ZmzskW8WpWkislCAYkPo7efJj8+7OXbJVrCqFxEoJggFphpCvqmuqEhIrJQgGpBlwLfLOu7vMwsKCPCpWFUJipQTBgDRHUS8cxik7JFZKEAxIs8zOzpl9H3woW8UrMyRWShAMSPOUcVerrayQWClBMCDNVNZFO5QREislCAakuXppuWWlBMGANNvx48fNe+/vMx9/fEoeFavIkFgpQTAgvQG/XIX3bRV9G7iokFgpQTAgvQOvlUxPz5rZublCZ5QiQmKlBMGA9KZDh4+Yo/K6yUdHj5kTJ07IT8IKHRIrJQgGhAAvMsJxCcvCfJhl2Nlnnf23y/uX3SCbuWNAqP4is/WiPjtkAmBAqP4YECIFA0KkYECIFAwIkYIBIVIwIEQKBoRIwYAQKRgQIgUDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECJF7QLS/52BLS88t+Xqb329Tx4RBbX9H2/Prrz9zpVm91+m5GGu8g+IhMPMmy2vjP+q77vXXSM/IArrz6+9YX68+uez5kyTe0jyDchiOEwU9b2y8WnDgFARWgEZuUd6s809JPkFpCMc8sgwIFSUTwMCOYckn4AsCQcwIFSU0wICOYak+4DEhAMYECrKZwICOYWku4AkhAMYECpKbEAgh5BkD4gSDmBAqCiJAYEuQ5ItII5wAANCRVEDAl2EJH1APMIBDAgVxRkQyBiSdAHxDAcwIFQUr4BAhpD4ByRFOIABoaJ4BwRShsQvICnDAQwIFSVVQCBFSNwByRAOYECoKKkDAp4h0QOSMRzAgFBRMgUEPEKSHJAuwgEMCBUlc0DAEZL4gHQZDmBAqChdBQSUkHw2IDmEAxgQKkrXAYGEkJwekJzCAQwIFSWXgEBMSP4fkBzDAQwIFSW3gMCSkHwSkJzDAQwIFSXXgEBHSGyIcAADQkXJPSCwGBJrvnnLMWMWzpUf5er24ZvMl1dcLFtEYb23b795YeJV2crbGcet+fbaSLaIKAYDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAutB3wXnm6itWyJYxQ9d+1cwePmam3tkrj4zZ/s6+1uMyDF77FflqzMAVl7TqCJOvvytfy61XHZUWkIGvXWI2jK6SrWxwkqfkZO/+YNps3vZW63ER+r90kVl145Vm5KbrWsegmdqx12x89bVW/VDPkNp1Gh68Sh7pstQLxz3+0K2ylQzn4Ob7x2UrvfV3/ejTYCd56uVtZmLrW7JVnNICghF3yzN3y1Y+Jra+aSbkhD8vJz4EjMQI9MhN18uj9Da++nezdmxzqxPlCe2IjosOnAXq9fCzv/cKysQTd7aCqFn9yIuyz3TnAHXftelB2Uo2d+SY6b/50dzbz6UxAWnDUgInHN/zgpF5w+hwKyTdwMldOzaRugPFQV3GH7zVa8ZwQb1WP/qiDDL66OzTkRG0y6Qjp7HxodvMHdLGmoef/Z1ZL6VojQtI29hLW6Uzbpat7mDWGL11ULby023dEI4tT9/tXOKl5VMvn86cZhbxCd0eCR1mjzI0NiCA5cPqR16SrWywdMm6pHLppm5v/Pre3MPR5urcCOdu6dDLzk+eTdPMInkHLm+NDghk7Yijt94os8ewbIWD5dbYS9tkyx8uZtdJCemanz3ZupBP4lOHlXc/41zm+swe2+Wu4MBPn5StclQ2ILgom9qxT7ZO13fBuXJrNd3ombYj4sRhlMZo6YI7QehMuL3bJ6Mq/i+OzXVHBrD2X3nPM63/7wOzBurlgiUJbligg84ePi4/wf9dYYZvvMqrXvh/6OBJ0C5TUo9L5ViTuPYBeQUtpMoGZOvrO83Q3U/LVjycJFw8j95yo3qi2lyjYid0QnRGDeo38siLreVEHARl4onVzjCjTqibD596uS5m0e4bZenoajNXx0Tbj8vySKPtA+dv128fbH1PgjbW+kARahuQNjTwmCyFXOtYnCicMJfhwSvNpsfvlK1kuJWMcPjIa43tUy+f/QDazDUDYGYcvu852UqGaxFtH1qb+8weuI5JGoCKUvuAtPl0RJwsnDQN6oS6JUlbL5j6zb3qTOIzi7jq5dOhO2Ff2GcSLP+W/+AB2Urm2gfEtTkC6po90gxCITUmINDNiAauOkGWUc1nv6gX6hcHyzXXxWyWernaC6FFeDWTz9yjXtfEBdc1e+D6ExfmaY8nhEYFxLVP0E762Nphs0auaZJ0M6q5Zjht3647anGd0Iero/rc3PBp887wYtZwzR6u66giNSog4FrOaCfddRF88/3POV9tTuK6hkAHQkeK43qLh++1x1KuOvl21DThd4USswdeFMQSrwoaFxDX3ZWk0RYj2swfHpOteDhxfd9/QLaycy1pEBAEZSksr7DMSpL0/1xc58A3IKgb6qhp1xFtjLZOog1gZWhcQFwnCyNT3MVnqPp0cq3Xk65Dor/+Ur7G6ya4aCsMKEkm5Zjj6hPHNTNgFsG+tMELr99g9qiSxgUEZv/4mPpWCHvDL+Tr6Vz18R1NNa5OlLRU0gLSTTvlCbMCZkit3TGDIJRJulnChtLIgLhG6riAYCTVRrciAhL3HOhQ2ozYTTvlzXV8miodR6eeDEjcUsZ1cuM6b1pZniNkO4WAWUS7zkoSd06qgAFZlKXzppXlOUK2UwiumThO0o2TKmBAFmXpvGlleY6Q7RSK61b7Uu07XFXEgCzK0nnTyvIcIdspFFedO+HuVvs1kipiQBZl6bxpZXmOkO0Uku8sUuXZAxiQRVk6b1pZniNkO4XiuvPWKe6Yq4QBWZSl86aV5TlCtlMoqC/q7QMv3OL9cVWdRRiQRVk6b1pZniNkO4Xgqm+cKl+HMCCLsnTetLI8R8h2CsH1hs8kceekCnoyIJjSl77lPUvnTSvLc4Rsp7xleQ2kDeFASKqmkQFxjWJxbzVx1Seu86aVJSB4jxPeAZukm3bKGy7McYGeVdJ70crUyIBob+6DLAHJY53s+oUsjKAYSZfSjgczIWbEsrnCj3fqovNr/wYX6jgWXLhXReMC4tovTlTcW6ox42DmSZJHR3Qt/bIEBOIC78PVVnEzWhzMcq7fEsTsgD9FhPdqae/49X3OojQuIK7fbsNfCB/dMCFbn+V6m3w3L2qh82hLJUjq6FmD5eI6B76d1TUzdg5KrpkGswcGoqztnLdGBQSd0DWSab9z4PrV1m5+2811Aasdr6sDaqHXuDqrz/HimgPXHhrMHlheAc6NaxbJYzmbl0YFxHXC8dt3GMkwSsVx/XEEjGqYRbJAJ0JnSqJ1RtfvjuN4LvtJ8nElcc22PjPTpsdXS/2ukq14nbNHm+s8AWYRLGvL1piAuK4hwDXS+oxunaOhL9fsAQgeApjEtfzzXQ614VhdSz78arIWOtc5hLj2wnO72hnBREDL1oiAoMFdSytwdUJwjaroMGn/ni4+qkCrm8+SwjXqpq2Xa9nm80ejcf5wHpPEzR5truMBbTlclNoHBMuP8QdvUzsguGaPNiyDsBzSIGT4qDFXZ0Q4sATBPjU+wcXxuUZ87MOnXmgzbckGrhnJZ1aMmz3acDyuWQTHg7YpU2UDgpM8KuvyOOhwA1eskBN9VWvbBaPhkEzXGGV9+IxugA+ceerlP7VOZCfUac0t35NrmkF5pPMNLvjUC8c4JvvEfrHdCfVad9cPpXNfL4+Sua7VAIMI9pdEmz3afI7HFdTQKhuQvOBkIxwIXBq+v88A6Ej4+APo/GRZFwTXtYxZKk29cMyzcvyAzoziw9UpXTczwLUPQDu5ZhG0bZYbEHlpfEC0aV6DzoTOqJ28bmQNLpZtk9JuoerlCi06tet6D8eG2cOnU7uu+cDnGi2UxgYEJylLB+wUqjN2Wze0HT57JES9EI6lS8ZOeS+LMBBhueZS1m3fRgYEF/i4fsmjQXEC0Rl9lzUuGKGH7xtXO6GPvMOLeo088pLaZmgLV2dGyHxnjzafWaSs276NCgguDDFyZVlSabCcwCdZYe2dtUOi4+CFQFxAp+k8GnRY3K7VXv33gT+7gyWMq14+HTnN7NGG43AFD8q47Vv7gKDjodEmtr3Z+h4SgoJPs8JtUt+gtOuHTtPtrJEEbTm2dlXqWQ4zLeqF0dkFz+E6XzjWtLNHm0/40H5F3/YtLSDobLjj0w2fExsKOgyC0j6G9psJ0ekAd7VQP4SjKBiJUSd8WCfggzvbQUbnxYei4q7WxNY3pW47Wx3OF/aNosG+tSWaxrc/oF2zBDCr0gJCVAcMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVJYKUFMz0aTsvdB2SQKKzJbL+qzQyYABoTqjwEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVLUMSAH56Ix2fka2SQKKjLmqS8ss6OymTvpw2FIQNbLztfJJlFQkTEPS0DWmwCkD4cxczgaihbMFtkkCsqeYVYuv8BOmgCCBQSm56JIvhEFddEyG6wfB9sxSEAm5NsqKUShbJaADMv3IIIGZOZQNCJzyLhsEgUhc8fq5RfajSaQsAGJor5ozuyWZ1kmD4nyFZk5u8z0L7d2Vh4FETQgwLtZFEoU8O5Vm/TdsDiLUBAFzB4QPCAwMxeNSto3yCZRLqTjrl2+zI7JZlDyPMXgW08oNwHfWrJUYQHhUotyUdDSqq2wgMDMkWggOmUm5VkZEkoP4TjLDC0/307Jo0IUGhBovQVl3kzIMzMk5K+EcEDhAQHOJJRKSeGAUgICM8ei/uhEaya5Wh4SxYvMdvs5M7z8PLvblKC0gLS1XkiMzKjUZJk8JPqEzBqRNWOhXwh0KT0ggNlk4aRZL5W5Qx5Sj4uMef6Mc8z6smaNTtInq2MxKCMyo4xIzS6VH1GviMwemTE2SjA2ViEYbZUKSCdcyJt5M7RgzIAEpl9qOig/piaQ5ZN8nYqs2X2GfDdnmskyLsB9/A+krB6cv+qtogAAAABJRU5ErkJggg=="},13740:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOXUlEQVR4nO3dXWxbZx3H8b/TOG3TlyQdgdFu1O3Wsa1odaADpQMlQbsBAU0lkBhCaiYhcQHS2kuu1t5y00ziBglprUDaJCY1E7BdMNEEtlVjk5wKqUNKWZ2p3YuSLk7WZG3ezP9Xz63rnPP42D6Pc87j30c69XMyxbGd5+vzYsdLyDqYmZlJLy+3HJVEPq2r/UKhuDiRlWRrq7Qlk7NtG1v/dv+9O37V1dWV0/9ENWpoIBpG59JKy6mE5IeEQodASmksq1vbN//2sf0P/EZXqQYNC0TjSC+vJM7psFMXsqA8kKKt7e2Zbxx46Os6pCo1JBCNI6VxZHTIOCzyCwS2bN586WD6q/t0SFVoSCBT0zlsOfqFrDIFAoyketYDmZ6eGcxL4qwOybJKgQAjqY71QKamZ0b0xxzWIVkWJBBgJME1IJBcXi+oAYIGAowkGKuB6ME5zlxldEgNUE0gwEgqsxrI1NRMvyRundqlBqg2EGAkZgzEIbUEAozEHwNxSK2BACPxxkAcUk8gwEjWYiAOqTcQYCR3YyAOCSMQYCR3MBCHhBUIMJICBuKQMAMBRiIMxCVhBwLNHgkDcYiNQKCZI2EgDrEVCDRrJAzEITYDgWaMhIE4xHYg0GyRMBCHNCIQaKZIGIhDGhUINEskDMQhjQwEmiESBuKQRgcCrkfCQByyHoGAy5EwEIesVyDgaiQMxCHrGQi4GAkDcch6BwKuRcJAHBKFQMClSBiIQ6ISCLgSCQNxSJQCARciYSAOiVogEPdIGIhDohgIxDkSBuKQqAYCcY2EgTgkyoFAHCNhIA6JeiAQt0gYiEPiEAjEKRIG4pC4BAJxiYSBOCROgUAcImEgDolbIBD1SBiIQ+IYCEQ5EgbikLgGAlGNhIE4JM6BQBQjYSAOiXsgELVIGIhDXAgEohQJA3GIK4FAVCJhIA5xKRCIQiQMxCGuBQLrHQkDcYiLgcB6RsJAHOJqILBekTAQh7gcCKxHJAzEIf97/wO5eXNRR+5qdCQMxCHZKx/Jwmc3dOS2LZs3XjyYfmS/Dq1jIA65NjMnH09/oiP3bd/S/kLPYw/9TIdWMRCH3NDdq/d0N6sZtLS05Hd1f2HP3r07J3XVmoQu1jCQxrv60bTMfnpdR+7bvn3LSM/+fUd0aA0DcczKyqpMZK/I6uqqrrmtLZn8rPfg/nYdWsNAHIRdLRywN0Mkfb1pq3PY6pUzkPWDSK5+PO38ad/7v/TFlM3jkIQu1jCQ9Zebuy7XcnPOhnJPx7bjX3v0gWEdWsFAmsTi0rIsYVnWRS9d0daWfOrBPbte1KEVDITiLZ8f6O7uGhVLGAjFGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGcQ5kLl3z/3gZnfPX3RIZMXGqcwPtz8y8FcdWmEtkPwpSa8kv/y7mZ+++4SuElnR9eIjb2xY+vDXieMyrquhsxII4pBlOZfftCN77an30volIivueWHveOLGJylplQEbkYQeSDEOHXZqIOMMhGz6PBDMsZyNSEINpDQOXYSBkG0lgUDokYQWSHkcwEDItrJAINRIQgnEKw5gIGSbRyAQWiR1B+IXBzAQss0nEAglkroCMcUBDIRsMwQCdUdScyCV4gAGQrZVCATqiqSmQILEAQyEbAsQCNQcSdWBBI0DGAjZFjAQqCmSqgKpJg5gIGRbFYFA1ZEEDqTaOICBkG1VBgJVRRIokFriAAZCttUQCASOpGIgtcYBDIRsqzEQCBSJMZB64gAGQrbVEQhUjMQ3kHrjAAZCttUZCBgj8QwkjDiAgZBtIQQCvpGsCST/B9ktn8qfJC9bdbUu+a27Zue++/s+HRJZsf0fvxxLXL/aocP6JOS6bJOfJ34hk7p2W0KXu+T/LP0it7YeRM1mIPETGZUSDIToDgZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwkIo60yLJkhdmcxdElnI6CCDZqd9/QAd1mBrTf9YBbnt3n97+tK6oDr1s69SBms+KLOgCH7ysj8m4DpzEQIx6z4rsGtRBmTeP6MQY0YFBd3/h+4uTqh6YkFOjIpNnCpe2tKdEdh4u3Gfc/qAWc4XbhccEt9EdDMTox3n9xwOe1cf6xejRE7o8K6HDRLxwPNxnbWwt9j0j8uCx+oNGzBdPuBIKAzGKYiBF48dELj2ngzo9qGHgttYbRjkE/M7Thcv4YiBGUQ4ELp7U5YTU7ODzIqkhsQa7Xrh9YYS8PhiIUdQDgbef1t2Z01IV7FL1nbtzAG7T0qzI3/XnLGQlhhiIURwCgVf2VDcBn8wEiwNn7HDgPZ+9+/pxMI/v3zkosmW3GNUScHQwECNbgbyU0H8qwLM8ziRhEuKsUump5nJXR0TOH9FBAEF2q7JnCrtGC1mpCLHgvqaOyho4mTAxrIPYYiBG6xlIKUzCQyP6rH1AfAXZiuw7JnLglA58zE/qgfWQ3r9RqRpuY3pYgz4styCyd4Yk5hiIUVQCAWxR+kb9I6n0bI3v/95l/7NV2J3CfQr6Iqgf3G9s9V5LiwMYiFGUAgHs9+P4wUul23TwtHjuBkFYcbiHgRhFLRB4clxDOaADD37Xi92f718WTzjLhPsS79crbGEgRlEMpJbrPTCsxx/P6MDDxZO6nBDyxECMXAkExx5bUrIGth6vpPQyJ+SJgRhFMRAcqONdtl68rtd03DLxnB7cH9MB+WAgRlEM5Ecz3mei5idFXk3JGvuO6S7WKR14GBvQ+zIq5IuBGEUtEJw+PXRWBx7wdxlv6n8vZ+N2NA8GYhSlQPA6BnaVvI4lwO8tHX67ZDj+eFmvs1q7h8T3dLGf+azuyh3Xn5mTmGEgRlEJpDOtr2M8X7j083KX9wT0CyTIffDi95hU4hdwtDEQI7/JEGRyhREI3raB3arUkBhdPKnLCfEUlUBMtzG6GIiR32QIMrlMgVQ6MC79++9K5icLb+vw2noAA6kHAzHymwxBJpcpkDBVOhPFQOrBQIz8JkOQydWIQILs1/sFAkF39UqZXpU3YSAOimogOAP19pCe2h2RikwTutLWpxZ+QTIQB0UxEPxsxLGQlUC6+3XSnhNPNl5JZyBNJCqBYIuBvxq8NFzbu24P5/R1lA4dlFnUr7+6R69fL8PCQJqIrUCwa2OC1zsweReyhclbSxSlDo3o6eLDOvAQ9sRlIE3CtGtSbyC1HBzXw3Rf4LWe+iMsYiAxhDfr4ZP+qpkEpoPbIPvuUQoE/CYuzGcLkWBrVS+/n8NAIgpv0UgNFeLArk3QSeD3NxQQ5PRq1AKptBWZzxY+GQWPUz3wfjHsIpZjIBFUjKMI+/WYBJVObZZ/X7kgnyAStUDg4Gm9X0fFFx4fbBmxta0WAsSW2isOYCARY5rk2dOFSVAeCt4xi+/D51D58XtbebkoBgJ+u0ClsBXBZMaxVqUt7u6jhccZgZgwkAjBW7Iff14qwjPm7LgOPlfplwzYTSsPy0tUA8GTAD74odInIhbhviKY0lBwHdhSBHm8ivB294lhHcSKo4HAoRH/U5u1CnJwXhTVQACfcoLHx+/TUcKE13Cw5ZgYlhhyOBA8yx0a0We5Pl0JAT476rW0DgKKciCAx+fx0+E/iZTCY/bOkF6OS0w5HEiR6XRtUDjuwNs7SnczKol6IEW4nfuOaTAdEpr5ycJWo9KZvuhrgkAA+8oHTwff7y7C7sHEcOGXXS1MvDgEAtiaIBIs9YTiThhFTRJIEULBATzOUpkmAn7ReKcsftnVbDVK4Wd5ve6AM0Nj/RJJCAW3e+dg5ccI8ASCg3gseK/YQlYc02SBlMJZGEwILBjPZwu/YAQR1j5z8bpLYTLFRentxyUeIzw+EKf7UbsmDoSoAo1jTQ9rvgAaSV4viJrJrAbSqZd38QtkRC8O60LULM5oIENSxjuQl2RQtyFndUjULAY0kFEp4xkI6FZkVPS8jC5ErjujcQyJB/9Azur+2LJkRaRDFyI35eWCJKU/cURyuraGbyCgkaQ1khEd7taFyC2FOAY1jqz4MAYCGkmnRjKsw6O6ELnipLTKsMaR07GvioEUaSgpDWVQh1igTxeiuBjTJafLqIYxomFkJYCELtZMTc30SyJxTodEduTzA93dXaNiCQOheGMgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITI338nLg98p7dnVCyxGsi/zmf6H963h4GQNbEPZG/qvj+2JZP36SpRqK5fXxi/8uHHx2MdyLZtW5/ddW93vxCF7P0PPhpbmP/sRKwDWZXEyMMPfEVaWlr4EaYUmsWlpSuXsle3tUh+MO6BnNvUlnx97+5d39YvEYXiUvbKW4tLy9/SQOJ9DIJAdCjd93S93r2jg5FQ3bJXdddq4UafDsWZQKC9fdNYate9fTokqsl7k1dfv7G4dPuJ1qlAbknIle4dnVldbt9JIpPV1dXZa7m5/0x9kktJXu7TL93mXiB3zG7YsOHyxo3J2daWDXldJ7rL4uJi69LK6taVlZW0rnpq3ZDveeKbPeM6tMJqIG/8O5NeXklkdEhkRV9v2uoctnrlMHZ+nFsHsiIv+cn+3p6UWGQ/kDczI5JIHNYhUcjyZ/p6e4bEIuuB/POtzGB+NXFWh0Shsn2ADtYDgbHzmVH9UX1CFBr7Ww9oSCDnz2dSN0XGE5Lo0FWiuuixx4WOTdLf09OT01WrGhII4IzW0oqMMhKqB+JIbpAhm6d2SzUsEMhkMp1zN/B/zE0c1VWiKuXPbN8kxxqx5ShqaCBF2JosL8uQ/vS08NiEfOjWYlYn6LgOR9tETvf29mSlwf4P8IbCQbr23ycAAAAASUVORK5CYII="},58881:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPcklEQVR4nO3da4xU5R3H8efscrNcFm3EVgQXq4mKCo2toEJY3oiNvRC5aNJWQbGpiVG8tNoXChiTxkaFJm1s4gVq+0YQg0lNrX3BEryA0bpbbk1FFkRQMQK77IIuu5z+fztOZ3eZ8zzPmTnP2XOe/X2ScZ5dWGdYnu/M/8zMDoEaIC0ndtWf6uq8NVRhg1KBnKgabScPq11tW1VtMHTv0GDY1qHB8HU/nvCL9fJLVIXUA2kJW8Z2tbctkwteKh9SQoqB9Da0Zti2M4LRd/9owh2Niioi+zQ9hThaNwYqmCofUoLKBQI1qub4qNozb2AklUktEMbhVlQgwEgql1ogu481r5Kze+REDugCAUZSmVQCwQF5d1dniyzJEVMgwEjiSyWQD9ubl4ahWilLcsQmEGAk8aQSyAfHmhvlgmbJkhyxDQQYiT3Zt+7tbms+Ipc0VpbkSJxAgJHYSSeQY82hnJFDcQMBRmLGQDxRSSDASPQYiCcqDQQYSTQG4olqAgFGUh4D8US1gQAjOR0D8UQSgQAj6YuBeCKpQICRlDAQTyQZCDCSAgbiiaQDAUTyafDJ5feev3KPfDgoMRBPuAgEuk6d/Ohw7eHZgzUSBuIJV4EAIvnW2ed/f87oWw7Jh4MKA/GEy0AAP+t+5llnTxtskTAQT7gOBAZjJAzEE2kEAoMtEgbiibQCgcEUCQPxRJqBwGCJhIF4Iu1AYDBEwkA8MRCBgO+RMBBPDFQg4HMkDMQTAxkI+BoJA/HEQAcCPkbCQDyRhUDAt0gYiCeyEgj4FAkD8USWAgFfImEgnshaIHAy7Nz46vEXr183eUenfJhLDMQTWQwE8h4JA/FEVgOBPEfCQDyR5UAgr5EwEE9kPRAYVnPGawsm3vMDWeYGA/FEHgKBvEXCQDyRl0AgT5EwEE/kKRDISyQMxBN5CwTyEAkD8UQeA4GsR8JAPJHXQCDLkTAQT+Q5EMhqJAzEE3kPBLIYCQPxhA+BQNYiYSCe8CUQyFIkDMQTPgUCJ0+d/OOiCx6+S5YDioF4wrdA4ER3++NLvvPYQ7IcMAzEEz4GAgMdCQPxhK+BwEBGwkA84XMgMFCRMBBPdIdd6t3D/5SVvwYiEgbika1f/F3+67dhNSMeXjBx6WOyTAUD8QhGLIxaPutW3cdHBCPnLjx/aSp3lwzEI59+uVft69glK78NrRm2beHE+66QpXMMxDPvH2lUnadOyMpvQ4MR16VxL8JAPHOk8zP132P/kpXfzqj5xtobJ959kyydYiAe+vyrA2pP+79l5a8hNcO33zTx3stl6RQD8RQi2dexs+fhXx/VqtrPb67/1ThZOsVAPIY4EMlhGbuw9s1P6x9yvn+dXwAwkIF3vLtNdZ3q+vr8pHwm/xrOme98/zq/AGAg5MKFo6c437/OLwAYCLnAQIg0GAiRBgMh0mAgRBoMhEiDgRBpMBAiDQZCpMFAiDQYCJEGAyHSYCBEGgyESIOBEGkwECINBkKkwUCINBgIkQYDIdJgIEQaXgTSsHrs2GfnbzoiS6JELXlp1pmNi48elaUzTgNBHF+Fpzb+ZcHmqfIhUaJ+vm5m0/CgZrbLSJwFUowjVOHUvy54Qz5DlKyfrZshGzhwGomzQK5+fsz7iEOWioGQCwgEAoeROAlk+uoxq1UYLlJfYyDkQjEQCBxFkngg/eMABkIu9A4EAgeRJBpIuTiAgZAL/QOBIOFIEgskKg5gIORCuUC+1rjltmOz5bxqgZyqposDGAi5oAlEdnawZsvitsWyqkogp6qY4gAGQi5oA4EEIgnkVDGbOICBkAvGQKDKSAI5VcQ2DmAg5IJVIFBFJIGcYosTBzAQcsE6EKgwkkBOscSNAxgIuRArEKggkkBO1iqJAxgIuRA7EIgZSSAnK5XGAQyEXKgoEIgRSSAno2riAAZCLlQcCFhGEshJq9o4gIGQC1UFAhaRBHKKlEQcwEDIhaoDAUMkgZzKmr56bIMKu5erBEggs+SMKFESyCY5q1pNULv0rcVHm2R5mkBOzvFNG8iFAX3Thnlvjl+lQjVFllW7YOTlDYooYXs6tjWqJASqef21B5bK6jSRgdy4eXyjCsJZsiTyWxhsennmgQZVBgMhYiBEGgyESIOBEGkwECINBkKkwUCINBgIkQYDIdJgIEQaDIRIg4EQaTCQwWNkbZ2qH3mpGjlkjJxPls8UYI3Pwd6OHaqjq01WpfXejp2qo7tVPjMIMZC+bppwv1o48T5ZRTv05X5153vTZZWsH557h1o8abnS2dH6tnpk+3xZ6SGGyXXTezb/5Lqr1SQ5HzmkTn6lMi3tO9SOtrd6Ln9H65bBEwwD6csmEHig6TrVIrewSXpiyutq0qjSLXs52KA2gay/9oD8142Orlb1zhf/UGv3P6UOfbVfPuMxBtKXbSB/O/isWt2yTFbJGDd8gnr6e1tkpZeFQHrb+Nla9eonzyZ+Y5EZDKSvxZNWyKizRFZ6SY9ZNuNV0bw3x8t/9dIKpOj5Pct6QvEOA+nr0cte6pnZbSQ5ZtmMV0VZDAS2t76lfrdriV/HJwykrziBJDVm2Y5XRVkNBHB8smz7gsRuOAYcA+krTiBJjVlxxiu4ZculxlvpgQoEvIqEgfQVZ9SBJMasuJf5yLYFPQ+56tgEggN+KJ4XFW8gcM929ojzZBUfbjweaJpjDDnzGEhfNhurt2rHLGzCOOMVJBHI2o+eUi/uf1JWerh+COaqs65XV31zjnzGHo5JcE+SawykL9PG6g+3lNWMWXHHK0gzkN4Qy8KJ96vZ4+w3/R8+uFdtPLRWVjnFQPoybaxyqhmznr5yixo3YoKs7D2+63b1zuHXZBXN9OeoJJAi3JvcddFKeWa+8PIUHRyP3Pnu1fkdtRhICW4h4447UOmYhZd/PDH1dVnFY7O5XQYC+F7hAQ2bY5TVLcvle/SMrHKIgZRMHnONevTydbKKp9Ixy/ZJyf5sNrfrQACBr5BITPcklX5/MoGBlFQaCFQyZlUyXoHN5k4jELA9hrIZCzOJgZRUE0jcMQu3vpWMV7Dx0Do5+C37fsr/l1Yg8KcrtxpHLZvrnEkMpGT2uIU9B59R8PMRePl4OXHHCNN49fmXH0duOjxvYXrBYpqBmL5vgJfLP9B8naxyhoGUmF7Ji4NN3TgRZ8zSjVcIET+ohOcfyslaIPDCtF3GYxGbVwBkDgMpMQVy57vTtY9y2Y5ZpvEKIV511pxcBfLgxc8bn0i0ef4mcxhIiSkQvEjwSdnY1Y5ZpvEKIWJkiQrE5nLSDsRmzEL4uXu4l4GUmG4FEYjpURubMcs0Xt0v/w88xxAVCOC66KQdiM0DHElfZioYSInNpsQTZNWMWTbjFW5lba6LTtqBmL4vkPRlpoKBlOg2JR5V+uV702SlqhqzbMYr/Jy36fdlLRAwXabNsVPmMJASXSC9/3KrGbNsxiswHQ/pLgNMm5WBWGIgJS9M2ykPVdbJ6nS9/3JN40TUmGU7XoEpENMjQqbNmnQgeJuhF6bvlFW0qO9LpjGQEt2m6h0IVDJmmcam4ngFeQuEB+m9MJDKxizb8QryFgheAv/gJc/JKlrSl5kKBlKi21T9A4k7ZsUZr8AUSP/f35/uzwJJb1bTvSPk8gWLDKTANCL0DwTijFmmDdR7vAJTIKYNnnYgNj9XX+5eNfMYSEElgcQZs+KMV5CnQEz3pkWmh6YziYEUmALBe9E+/p/bZFVi2hjFMSvueAWm62Pa4GkGctdFq5Tp59TL3cDkAgMpqHRD2oxZcccrMF0f04ZLKxDTjURRuRuBXGAgBZWONDZj1q8vfi7WeAV5CQR/tmnfvF5WeuVuBHKBgRRUGojpFhTvDXVZ3TWyKi/qljUPgZi+Z0Wm65ppDKTA9Jet21C6l6iYRN2yZj2QG769RN12wQpZmZmes8k0BlJgOk7QbSibn4UoJ2q8AlMgoHtUyFUgeEkJRsrZ5yyUj8xMIWceAykw3QvoNhQ2jel1SOVEjVeQtUDwZ7zh3Nt7bkSiXq9WDo7Big915xIDKagmEDD9sFU5UeMVmB4ahmoCwb8MhbcEjfoHOhEE/sFPfE9w0h1HRTF9z3KBgRRUG0jcMUs3XhWZNrnuTRBMX+taueeNcomBFJheKmF6HRFuceOMWbrxqsi0yXUHv6avdQnx47pFxZsrDKTAtKHwFx61GYvijFm68aqomutk+lpXcM+Bd3T3Ig5gIAWmDaXbjEW2YxZuYU3jFVRznUxfmzS8jxdeVoPjGq8wkALThtJtxiLbMctmvALTddKNfaavTRKCx3Ux3SPmEgOx29g2gYDNmGUzXoFpk+seODB9bRLwHMeLch1svi+5xUDsnnOwDcQ0ZmFT2T5xZtrkukAQKh6VM70daFx4d5ftbW/LZT9pFXnuMZDCcw54Jl0H87XNE164N9L96CleAh81FvWHh551MO/jpIM/29nDJxTOR0xQ44YX3hAb8ZggBkSAPzfGKMSNjwcVBkJ4wSUiAoTgzSNQSWAgRBoMhEiDgRBpVBLIvDfGrwlVeKssibwWBMHv5dHEsv92XGQgN24+d7n86jJZEvktVCtennlwuSojMpD5m89rOBWc2ihLIq/VhDWzX5r5caMqIzKQRe/Xj23r6DwiSyKvvTzjYGQHkb8APA4h3wUq+PP6GQcWqQjaQDhmke904xVoA4F5b5y7IVTqJ7Ik8ops/lfWzzg4V5aR5Pfo3fx2fX1n98kmOdSvkw+JPBG0jhk5tH7Nd/celQ8iGQOBBW+On9odqkZGQn4IWmsD1bDu2gNN8oGWVSBQiCTcIMvz5USUV/tqg2CuTRxgHQj0PPTb3rlUvmqRYiiUL/tUqNaMGTVslWms6i1WIL0hlvb2rqmyNLrjwt9ulDOiRD2z+zez5cxo1KghTXGi6C2Qk3O7jzWHckaUqAtHT3G+f51fADAQcoGBEGkwECINBkKkwUCINBgIkQYDIdJgIEQa/gTS1nRUBQFf6EiJkVvcTReNntKgHEslkA+ONTfKBc2SJVFSXpF7kLly7pTsW/c+bG9eGoZqpSyJkhEEiy8cdcUa5VgqgbSc2FXf3dXZIkui6oVha+3ouvpJwaSj8pFTqQQCcqC+Ss7ukRNRVUKlVsjxx3KVgtQCaQlbxna1tzYGKpgiHxJVROLYJHE0qJSkFggwEqoG4hgyaszcSSmMVkWpBgKIpLu9bbniuEW25JgjDIJVcs+xXKUs9UCKcODe1dW5SCnVEIThVHlUok7WRAWFKJpqArWhpnbYhklnXLJXDYD/AURtGX0bg0UyAAAAAElFTkSuQmCC"},28982:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAM/0lEQVR4nO3dbXBcVR3H8XPz1DZtmqQ1WFuwaZGC1MFdKToRJclbFKkzCojMtDo6ivJCnDoOb6jljaMywowM6OALOiLWhxk6IvgyGwU6GJkNOjIKSFOmLcWkJGlDaPN0/f8atk0395y99+49u3vP/j4zN3tumtmH9Hz3Puwm8VQVjI+PZ+bmGnYpz8/Iap+iRLz86ohqbmpSLc3Nky0rmp6+bMO6b3d2dk7IP1FMFQ1EwuiYnW94wFP+bkWJQyBLSSwLa1pX/fia7ZffI6sUQ8UCkTgyc/PegAw7ZCELigMpWNPamr/2o9s+JkOKqCKBSBzdEkdehozDIl0gsHrVqtd2ZK68QoYUQUUCGR2bwJajT5FVpkCAkURnPZCxsfGdvvKelCFZVioQYCTRWA9kdGz8oNzMzTIky8IEAowkvAoEMuHLBVVA2ECAkYRjNRA5OMeZq7wMqQKiBAKMpDSrgYyOjvcp79ypXaqAqIEAIzFjIA6JEwgwEj0G4pC4gQAjCcZAHFJOIMBIlmMgDik3EGAkF2MgDkkiEGAkFzAQhyQVCDCSRQzEIUkGAoxEMRCXJB0I1HskDMQhNgKBeo6EgTjEViBQr5EwEIfYDATqMRIG4hDbgUC9RcJAHFKJQKCeImEgDqlUIFAvkTAQh1QyEKiHSBiIQyodCLgeCQNxSDUCAZcjYSAOqVYg4GokDMQh1QwEXIyEgTik2oGAa5EwEIfUQiDgUiQMxCG1Egi4EgkDcUgtBQIuRMJAHFJrgUDaI2EgDqnFQCDNkTAQh9RqIJDWSBiIQ2o5EEhjJAzEIbUeCKQtEgbikDQEAmmKhIE4JC2BQFoiYSAOSVMgkIZIGIhD0hYI1HokDMQhaQwEajkSBuKQtAYCtRoJA3FImgOBWoyEgTgk7YFArUXCQBziQiBQS5EwEIe4EgjUSiQMxCEuBQK1EAkDcYhrgUC1I2EgDnExEKhmJAzEIa4GAtWKhIE4xOVAoBqRMBCH/PeN4+rs2RkZuavSkTAQh4wcPaGm3z0jI7etXrXi5R2ZD2+XoXUMxCEnx0+pt8belpH71q5u/U32mm23y9AqBuKQM7J79brsZtWDhoYGf1PX+7Zs3brxiKxa48liDQOpvGMnxtTk6SkZuW/t2tUHs9uv+LwMrWEgjpmfX1CvjhxVCwsLsua2lubmd3t2bG+VoTUMxEHY1cIBez1E0tuTsTqHrV45A6keRHLsrTHnT/te9v5Lum0eh3iyWMNAqm/i1JQ6OXHK2VDWt7fd/ZGrL39QhlYwkDoxMzunZrHMySKXrmhpaf7Sh7ZsOiBDKxgIpZvv93d1deaUJQyE0o2BEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAzSHMiJ5wc+27gt+5QMiayYfyV/04ZP9v9JhlZYC+TwdR0Zf/36h9oef/F6WSWy4vQd1z7nnTx515ahiWFZTZyVQM7FoeYGGtrXjaw+8I+MfIrIinduu2Z4YfLtbk819duIJPFACnHIzmFHQ/v6YQZCNi0GclLmmDdhI5JEA1kah6wqBkK2XQgEko8ksUCK4wAGQrZdHAgkG0kigQTFAQyEbFseCCQXSdmB6OIABkK2BQcCyURSViCmOICBkG36QKD8SGIHUioOYCBkmzkQKC+SWIGEiQMYCNlWOhCIH0nkQMLGAQyEbAsXCMSLJFIgUeIABkK2hQ8EokcSOpCocQADIduiBQLRIgkVSJw4gIGQbdEDgfCRlAwkbhzAQMi2eIFAuEiMgZQTBzAQsi1+IFA6Em0g5cYBDIRsKy8QMEcSGEgScQADIdvKDwT0kSwLZPzGLZtPT4w/7vv+GlktS2PXxsk19zzSK0MiK6Z+eOfg/OjxdhmWxfO8qbaOzjs6nzl8RFbP82S5iH9bpk8tqAEZEtWXBtXvHRjOqSUYCFEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDOoikF3fU2rzNhmUafT44vLy32V5UT4RwdXXyoeYpqeUGvmPDBLUtVGWD8jAstE3ZZHvWVrVRSB7f1neBA3yzmmlnvm1Un9+YnFcym/z8iEBCAWBDj61OI7ri99U6gvfkIFlf/iFUr//uQxSioGUCZP0kb2LlyZJBbLU/44v3jaCiYqBhMNAEoAtyP3fNU9UG4EUDMl/DULB/QiLgYTDQBKCyfn92/T72zYDAWzBEKnu9osxkHAYSIL+JVuQ+74ugwC2AwFEittHLKUwkHDqOhBMpP33y6CE7iuVWt0mZ8Lk8ro+ZbRPJmjQrpYuEBxsl3rWx+3i9oMeQzE8JmzJStEFMn1aruMVGSRk8I9K5WRJq7oOBKdq931NBhHg9Oien6pz0QTBhH/4XhkU0QWiCyoIIrmuX05b71GqVcY6YZ61dYHE+Z64jIHEmAyYqD86sBhLMezmfPUGGRRJIpAC3D5e2+m9SVY0sBXB1kSHgYTDQGJOBt0EAwSCUJZKMpCCb92nj0S3JSvQ3f9yvicuYiAxJ8PVO+R6H5VBgKBJbyMQ0D02uOsz+uMbBhIOA4k5GWolEBwLYXcviOlYhIGEw0BiTgZTIEH7/7YCgT0PyMF7n1oG9wH3JQgDCYeBxJwMpv3/W7PyoYjNQHBmC2fWggQdDwEDCYeBxJgMpt0a3bO2zUAg6vUzkHAYSITJgNO6mFR4xsap1iC6/f6oEzgq3WPU3R9dIAh8/09kkBC+3T0FdJMHux6YEGFgq6GLogCvQuPMEa63mO1A8LrIjbfLoEjUQJKmu/20qOtAkmaaDLYD0U143X3SfX3SdLefFgwkIaV216oVyFBOqfvvVsvovj5pDCQFbAeC3TS8izZo16qgWoHowtV9fdIYSArYDOSZJ8Id1FYrEN0E1X190nS3nxYMJAYcjA/lFv/jw56hSUsgeGx8u/sFdR8IJlBY2JVCELiMynYguseIxxclEN0uWb2q+0CCXvW2wXYgP3taqUs2yqAIflY96BmcgYTDQBwIBC9gPiSBBMHrMtjqFWMg4TAQBwK58cvyQuEeGRTB8cRXbpBBAAYSDgNxIBDd7tVQLvg1EGAg4TCQrHyoAFuB9H1OqTv3ySAAfg0QfmdWEAYSDgNJcSB4bxi2HrgshuMOHH/oMJBwGEhKA0EU9z6qzr2JMoju9G4BAwmHgaQwEPw0I3argo47AFsP/EyK6a0vDCQcBpKCQHAaF3+qAL9ADsccuq1GgenYo4CBhMNAqhxI0sJOcAYSDgNxKBC8BabUu4oLGEg4DMSRQKLEAQwkHAbiQCBDOaUeuTd8HMBAwmEgKQ4EbyV5eK8EMiArETGQcOoiEJz5wZmgIKbXCpKUZCBDucWfs4gTRgG+J72yFMOuWpgfAKsXdRFILcAzdlx4XQN/jxCXWKhyGAiRnve74WU9LPsE+LdkfLkgqieTEkiHXF4kOJBbMweVr26WIVG92C+B7FZFggO5JbNTLp6Uhag+BBx/QGAgIJHklJz7kIXIdYFbD9AHsjvToabViFKqXRYiV72kWlWf99jwhIyX0QYC/u2ZjJpXOB7ZLKtErnlJdq12yq7ViNIwBgLvbUkelOEuWYhcsU+2HA/qthwFJQMpkNdHumVLsvPcsqhXFqK0GJTZPiGXObk8aNpqLBU6kDhGR8f7lOcNyJDIDt/v7+rqzClLGAilGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIER6/371cP+ne7I5ZYnVQP56KN931RVbGAhZk/pAtnZf+quW5uZLZZUoUVNT08NH33zr7lQH0ta2Zu+mDV19iihhbxw/MTj9zrs/SHUgC8o7eNXlH1QNDQ38FaaUmJnZ2aOvjRxra1D+zrQHMrCypfnZrZs3fUo+RZSI10aOvjAzO/cJCSTdxyAIRIaqa33ns13r2hkJlW3kmOxaTZ/plaFyJhBobV052L1pQ68MiWJ5/cixZ8/MzJ5/onUqkHM8dbRrXceILOcfJJHJwsLC5MmJU/8cfXuiW/nqUvnUee4FcsFkY2Pj4RUrmiebGhp9WSe6yMzMTNPs/MKa+fn5jKwGamr0s9d/PDssQyusBvLc3/KZuXkvL0MiK3p7MlbnsNUrh8FDw9w6kBW+8o/09WS7lUX2A3k+f1B53s0yJEqYv7+3J7tbWWQ9kL+8kN/pL3hPypAoUbYP0MF6IDB4KJ+Tm+pVRImxv/WAigRy6FC++6xSw57y2mWVqCxy7PFS+0rVl81mJ2TVqooEAjijNTuvcoyEyoE4mhvVbpundpeqWCCQz+c7Tp3BX8z1dskqUUT+/rUr1XcqseUoqGggBdiazM2p3XLrGcVjE9KQrcWkTNBhGeZalHqspyc7oirs/3osUFCVjsa6AAAAAElFTkSuQmCC"},2487:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOyUlEQVR4nO3dTWwc5R3H8f9DQkKhxHYaEG2BGAqV0qaKUalaFalxuHGoYoTUIg6NubS3YlT1BFIcCS7tIeHYXnB6QLRShREHeqqdSqAitcJRU6ImQGwSIOTF63XIi4Pt6f/nsGLZzDzPzOzzzM7s/j7SxLMmPLv2Pt+dt7VjpKRqn0ZDsiI7V0WGTCSDYmRYqBAffnz67C2bbvrBvd8YmNObPc3oUhq1y9Hg6lV5SoMY0Uc2KNQRs3MnZXl55fKWO/q39XokRpeO+zyMvfpgRoU6DoFcunRZNmzY0PORGF06qlaP9kYi40Kl0QgEej0So0tHYKsRLckr+giG9CaVSHMg0MuRGF0KhwPwaFmm9N779SaVTGsg0KuRGF0KVVuMRqJVeVHvmXGUVFwg0IuRGF0Kwy1HNSQFAr0WidGlELUo6o/qckLvkXGUnC0Q6KVIjC6FmF+IpvTehoVKzxUI9EokRpfg9FTumJ7K3a+rVAFpAoFeiMToEhR3raonbSDQ7ZEYXYI6X4/G9U726ipVRJZAoJsjMboEw61HNWUNBLo1EqNLMHrNYzSK9JoHVUqeQKAbIzG6BDNfjyb1w25dqELyBgLdFonRJRgNJNIPVDHtBALdFInRJYjahWg4WtWr5lQ57QYC3RKJ0SUInr2qLh+BQDdEYnQJQgM5oIM/patUMb4CgapHYnQJYn4hmtbRd+oqVYzPQKDKkRhdgmAg1eU7EKhqJEaXIBhIdYUIBKoYidElCAZSXadPn5H52oKu+Ve1SIwuQTCQ6jp79rycPXde18KoUiRGlyAYSHWdn6/JJ5+c1bVwqhKJ0SUIBlJdFy9ekrkPTulaWFWIxOgSBAOptneOHtM/wyt7JEaXIBhItYU6kxWnzJEYXYJgINVWxHFIs7JGYnQJgoFU28rKivzv2Hu6VpwyRmJ0CYKBVN+HH52Wen1R14pTtkiMLkEwkOq7evUzefe9E7pWrDJFYnQJgoF0h5BX1W3KEonRJQgG0h1wLHL83ROyurqqt4pVhkiMLkEwkO5R1IXDOJ2OxOgSBAPpLgsLdfno4090rXidjMToEgQD6T6dOKvV0KlIjC5BMJDu1KmDduhEJEaXIBhI9+ql3S2jSxAMpLtduXJFTp76SD77bFlvFavISIwuQTCQ3oAfrsL7too+DVxUJEaXIBhI78C1kvn5BVmo1wvdohQRidElCAbSmxYvfCqX9LrJxUuXZWlpST8TVuhIjC5BMBACXGSEKxrL6kqY3bAb19/41r2DfT/SVe8YCFVfJIc295thCYCBUPUxECILBkJkwUCILBgIkQUDIbJgIEQWDITIgoEQWTAQIgsGQmTBQIgsGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyYCBEFgyEyIKBEFkwECKLygXy/BNDUz97bmrH7ff06y2ioA6fObGw6y/P7pJnXprRm175D0TjkBUz9dpjz/Q/dOc2/QRRWG+cOio//evzC7Iu8h6J30A+j0O3ef2vPfasMBAqwrVAntM14z0Sf4E0xaG3hIFQUb4IBPxG4ieQljiAgVBRvhwI+Iuk/UBi4gAGQkW5PhDwE0l7gSTEAQyEihIfCLQfSf5ALHEAA6GiJAcC7UWSLxBHHMBAqCj2QCB/JNkDSREHMBAqijsQyBdJtkBSxgEMhIqSLhDIHkn6QDLEAQyEipI+EMgWSbpAMsYBDISKki0QSB+JO5AccQADoaJkDwTSRWIPJGccwECoKPkCAXckyYG0EQcwECpK/kDAHkl8IG3GAQyEitJeIJAcyfWBeIgDGAgVpf1AID6SLwfiKQ5gIFQUP4HA9ZF8EYjHOICBUFH8BQJfjuRaIJ7jAAZCRfEbCHwRiQkRBzAQKor/QOBaJEZe+s1liaKb9DNePbHtJ3LXpi26RhTWycVz8tLRf+iaZ8ZcMfLP30W6SkQxGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFA6FYQzffLn3rNsrgxk269OlnRKYXT+qfIocvnZGFlSVd636VDgRP4v6tu3StPQvLSzKjTzomwKEL1yZBHge2Piw7br5N1+LtO/WmTAcc/+m5qbWvI6/dA/fJyMD9utwn/evtb8+buXhGJmvH5eC5/8rsUl0/050qHcjwrXfJ1Hce1zV/Fpav6BP/ruz78M3MT/z0tsdl56a7dC0exrtn5o+6lo9r/F3vvJwrQESBF5rGliKribNHcn2/qoCBWBz4+F9rT3za3QnXBIYn33tdJs4d0bXsXONnDaRfd6Fe+faIDG+6W2+1By8sT77/N31xOa63ugcDccCuxKPHJ1O9OromMGAiYSuSNrpmrvGzBII4pnS8oVtu11v+PD33dzlw+t+61h0YSAqY1A8c+ZMzEtcEbth36g0Z1y1TVq7x0waCXam3t//CeZyR16PHJrtmS8JAUsKWZNfRl62v/K4J3IDg8mxFXOOnDWRq28+97FYlwdeX5gWlChhIBq5XftcEbnZQD2xH339d19JzjZ8mkPFv/lj23vmQrtnN6eTGyQq8MDQmOnbHcEBvewwNeb6+MurqQA7padthfdW3wb44Xk0xcXboBHDBK39jwrRyTeBWtrHiuMZ3BYJdqxNDv9Q1O9cLAb7vE996RLbqeDZZv74y6vlAmk3c+4jsuW27riWzvTK6JnCryfnjaycA0nKN7wokzdeX9iwbXlhmh34lfes36q14rtCqgIG0mNTTnrt1NyIJXhHxyhjHNYHjuCZ1M9f4trEwoWsP/lrXkmWd0KNbtsuLuiVJkuf7XzYMpEWa3ZAH/nMw9oq1awLHmV78QA/+/6xrbq7xbYGM3fF9vRj4sK7Fqy8vyeDMHzKfOJjV75VtV8u89Xv9s7oYSAzXViRpN8Q1gZOkPS3qGt8WiOv/zXv9wrXbxkA6KFQgOGC3nelJ2hVxTcIktt22Zq7xbYFEP/yt/pkM94/HkZXre8VAOihUIK59a9+BQJpXcNf4SYG4vk+H9VTu0JGDupYdxh62PKa471OVMJAYoQLB40n677i4hldx2zGAa/ykQHDtAu+5SmI7M9frGEgM125D3kBwrIF99qRTo0njNrjGTwok79dDDCRWqIN0TGDsjiRNVmxFbG/RSDM+A/GLgbQIeZq3MYFtp0Ztuztpx2/FQPJjIC1euX9ERjYnbz3wHqVBPVaIk3YCu45xcCwStxVJO34rBpIfA2my/+5dMvb1B3Utma9X+JntexLf+5V08TDL+M0YSH49HwjegoFJhyvNeNOiS9KrO2SZwK7H3vx3G7KM36zdQPCz//gFDnnU9axc3O5oVXR1IL69oNcpxvR6RZKsE9j29+O2Ira/D63jN7QbiOt+bdK8SJUZA0kJF9PwRPu8ToFX5re/t0fX4rWeLcs6fgMDyY+BpIA38uFKc9KuVYNrIsVNYFwXSXovE+4Pu3QNecYHBpIfA3HAlmPkuJ9f2hA3gV2nlZsnb57xgYHkx0AsXMccrVwTKc8ExsVDbEWwaxdifGAgyRhIC+xOYb8fbxxMs9Vo5ppISRMYZ9JsP53XmMB5x283EPxGRxwvxcFjTzpdDQykg1yBYLKnOcWIv4NX6rVfUqDreeWdwOCaxNiK4Hglz/iusV2B2LieAwbSQWV7ctoJBFxvQcHxSp7xGUh+DMSjdgNxvQUFWznbL3tLGt/1fXq1dlxGjk3qWnausYt+DnxjIB61GwjY3oLikjQ+tjy2M2U41sIuXB5lew58YyAe+QjE9TXZ2Ma37b6B7f+1cT3eop8D3xiIRz4CAdc4SWzj4wA/6YIk4Bgn6U2YNmV7DnxjIB65JrZtAjfDKVXbW1CS2MZ3/dgt2P7/JGV7DnxjIB75CgRcr/hxXOO7drPwe3hdv6C7VdmeA98YiEc+A3EdWMdxje86SwZZIsFFQvwyulFLyEU/B74xEI98BgKu6xet0oyf5iwZTifjLTb49wfjIAz8e4bj+tgQsk3Rz4FvDMQj34FgItregtIqzfg4vsHjTDMmQml9Z0H/upvW/hmEtLK+n61sGIhHmHg+A4EsW5G046fZ1fIB74TG9z/N7lpZMRCPQgQCroPrhizjZwkvj26IAxiIR6ECSfuKn3X8tONmhWsq2K2qehzAQDwKFQi4xoY84+N7iINt19hp4Fcijc1NSZrfVF8VDMQj1yTOM4EbXF8rtDM+tib4zS6uM1xx8H2e0K0Gfo6m21Q6EJxiHN3yXV2LN7u0WOiThkk2uHGTrsWb0NOmeGNgXpjAOLOVpN3xAd/TET2Fiyvv0Bp842ds1hY9zkCQ7d5nmVU6EKLQGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyMLoEMb8QTevoO3WVKKxIDm3uN8MSAAOh6mMgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyYCBEFgyEyIKBEFkwECILBkJkwUCILBgIkQUDIbJgIEQWVQzkfD06oIM/patEQUUiL3ytz4zpqnc6h8PQQMZ18L26ShRUJLJPAxmXAHQOh1G7EA1HqzKlq0RBmRtk18CtZloCCBYIzNejSD8QBbW5zwSbx8EGBg1kUj/s1oUolFc1kBH9GETQQGqL0ahuQ17UVaIgdNvx5MAmMyGBhA0kivqjuszqvfTpTSK/IqmbPhkcMGZBbwURNBDg2SwKJQp49qpB525Y3IpQEAVsPSB4IFCrR2Na+35dJfJCJ+7TA33mgK4GpfdTDL71hLwJ+NaSVoUFwl0t8qKgXauGwgKB2qfRULQs03qvjISyQxzrZXjgq2ZGbxWi0EBg7S0oKzKp98xIKL0OxAGFBwLcklAmHYoDOhII1C5Hg9HS2pZkh94kihfJYbNRRga+YmalAzoWSMPahcRIxvSR9OlNomt0qxEZORD6QqBLxwMBbE1Wr8q4Ppg9epN6XCRy8IYNMt6prUYznZPl8Xkoo7pFGdVHtlU/Rb0ikjndYkxoGBNlCKOhVIE0w4G8rMjwqsiQBjOoj3Snfpq6ge4+6Z8zkZHZG/SjrJPpThyAp/F/OcKpbw/+s/sAAAAASUVORK5CYII="},3164:function(Ge){"use strict";Ge.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=="},16722:function(Ge,xe,ae){"use strict";ae.d(xe,{Z:function(){return it}});const de=Je=>typeof Je=="object"&&Je!=null&&Je.nodeType===1,Te=(Je,Ye)=>(!Ye||Je!=="hidden")&&Je!=="visible"&&Je!=="clip",Ee=(Je,Ye)=>{if(Je.clientHeight<Je.scrollHeight||Je.clientWidth<Je.scrollWidth){const st=getComputedStyle(Je,null);return Te(st.overflowY,Ye)||Te(st.overflowX,Ye)||(ht=>{const Lt=(ze=>{if(!ze.ownerDocument||!ze.ownerDocument.defaultView)return null;try{return ze.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ht);return!!Lt&&(Lt.clientHeight<ht.scrollHeight||Lt.clientWidth<ht.scrollWidth)})(Je)}return!1},Re=(Je,Ye,st,ht,Lt,ze,ee,ne)=>ze<Je&&ee>Ye||ze>Je&&ee<Ye?0:ze<=Je&&ne<=st||ee>=Ye&&ne>=st?ze-Je-ht:ee>Ye&&ne<st||ze<Je&&ne>st?ee-Ye+Lt:0,je=Je=>{const Ye=Je.parentElement;return Ye==null?Je.getRootNode().host||null:Ye},Ze=(Je,Ye)=>{var st,ht,Lt,ze;if(typeof document=="undefined")return[];const{scrollMode:ee,block:ne,inline:fe,boundary:le,skipOverflowHiddenElements:me}=Ye,Se=typeof le=="function"?le:Zn=>Zn!==le;if(!de(Je))throw new TypeError("Invalid target");const ke=document.scrollingElement||document.documentElement,Be=[];let Ne=Je;for(;de(Ne)&&Se(Ne);){if(Ne=je(Ne),Ne===ke){Be.push(Ne);break}Ne!=null&&Ne===document.body&&Ee(Ne)&&!Ee(document.documentElement)||Ne!=null&&Ee(Ne,me)&&Be.push(Ne)}const Ke=(ht=(st=window.visualViewport)==null?void 0:st.width)!=null?ht:innerWidth,$e=(ze=(Lt=window.visualViewport)==null?void 0:Lt.height)!=null?ze:innerHeight,{scrollX:at,scrollY:lt}=window,{height:Tt,width:nt,top:Ut,right:kt,bottom:dn,left:nn}=Je.getBoundingClientRect(),{top:qt,right:un,bottom:mn,left:Ct}=(Zn=>{const zt=window.getComputedStyle(Zn);return{top:parseFloat(zt.scrollMarginTop)||0,right:parseFloat(zt.scrollMarginRight)||0,bottom:parseFloat(zt.scrollMarginBottom)||0,left:parseFloat(zt.scrollMarginLeft)||0}})(Je);let qe=ne==="start"||ne==="nearest"?Ut-qt:ne==="end"?dn+mn:Ut+Tt/2-qt+mn,Bt=fe==="center"?nn+nt/2-Ct+un:fe==="end"?kt+un:nn-Ct;const Cn=[];for(let Zn=0;Zn<Be.length;Zn++){const zt=Be[Zn],{height:sn,width:Mn,top:fi,right:Rn,bottom:li,left:Ot}=zt.getBoundingClientRect();if(ee==="if-needed"&&Ut>=0&&nn>=0&&dn<=$e&&kt<=Ke&&(zt===ke&&!Ee(zt)||Ut>=fi&&dn<=li&&nn>=Ot&&kt<=Rn))return Cn;const kn=getComputedStyle(zt),$n=parseInt(kn.borderLeftWidth,10),xi=parseInt(kn.borderTopWidth,10),xn=parseInt(kn.borderRightWidth,10),Gt=parseInt(kn.borderBottomWidth,10);let jt=0,It=0;const vt="offsetWidth"in zt?zt.offsetWidth-zt.clientWidth-$n-xn:0,Xt="offsetHeight"in zt?zt.offsetHeight-zt.clientHeight-xi-Gt:0,Zt="offsetWidth"in zt?zt.offsetWidth===0?0:Mn/zt.offsetWidth:0,yt="offsetHeight"in zt?zt.offsetHeight===0?0:sn/zt.offsetHeight:0;if(ke===zt)jt=ne==="start"?qe:ne==="end"?qe-$e:ne==="nearest"?Re(lt,lt+$e,$e,xi,Gt,lt+qe,lt+qe+Tt,Tt):qe-$e/2,It=fe==="start"?Bt:fe==="center"?Bt-Ke/2:fe==="end"?Bt-Ke:Re(at,at+Ke,Ke,$n,xn,at+Bt,at+Bt+nt,nt),jt=Math.max(0,jt+lt),It=Math.max(0,It+at);else{jt=ne==="start"?qe-fi-xi:ne==="end"?qe-li+Gt+Xt:ne==="nearest"?Re(fi,li,sn,xi,Gt+Xt,qe,qe+Tt,Tt):qe-(fi+sn/2)+Xt/2,It=fe==="start"?Bt-Ot-$n:fe==="center"?Bt-(Ot+Mn/2)+vt/2:fe==="end"?Bt-Rn+xn+vt:Re(Ot,Rn,Mn,$n,xn+vt,Bt,Bt+nt,nt);const{scrollLeft:ft,scrollTop:_e}=zt;jt=yt===0?0:Math.max(0,Math.min(_e+jt/yt,zt.scrollHeight-sn/yt+Xt)),It=Zt===0?0:Math.max(0,Math.min(ft+It/Zt,zt.scrollWidth-Mn/Zt+vt)),qe+=_e-jt,Bt+=ft-It}Cn.push({el:zt,top:jt,left:It})}return Cn},we=Je=>Je===!1?{block:"end",inline:"nearest"}:(Ye=>Ye===Object(Ye)&&Object.keys(Ye).length!==0)(Je)?Je:{block:"start",inline:"nearest"};function it(Je,Ye){if(!Je.isConnected||!(Lt=>{let ze=Lt;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 st=(Lt=>{const ze=window.getComputedStyle(Lt);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(Je);if((Lt=>typeof Lt=="object"&&typeof Lt.behavior=="function")(Ye))return Ye.behavior(Ze(Je,Ye));const ht=typeof Ye=="boolean"||Ye==null?void 0:Ye.behavior;for(const{el:Lt,top:ze,left:ee}of Ze(Je,we(Ye))){const ne=ze-st.top+st.bottom,fe=ee-st.left+st.right;Lt.scroll({top:ne,left:fe,behavior:ht})}}},47854:function(Ge){"use strict";Ge.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(Ge){"use strict";Ge.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"}')}}]);
}());