(self.webpackChunk=self.webpackChunk||[]).push([[5382],{89489:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},59477:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},40001:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},26227:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},49198:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},41464:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},73331:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},15277:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},52671:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},8657:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},56082:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},33853:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},15075:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},43531:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},61485:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},38819:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},47472:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Rn,wn){"use strict";wn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function Rn(fe,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(Rn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(Rn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(Rn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(Rn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof Rn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ae=go.Shape._FigureParameters[fe];ae||(ae=[],go.Shape._FigureParameters[fe]=ae),ae[z]=ee};var wn=[];function $e(fe,z){var ee=wn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function tt(){var fe=wn.pop();return fe===void 0?new go.Point:fe}function Pt(fe){wn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,be){be||(be=new go.Point);var Ce=fe-ee,Fe=re-ue,je=NaN,ke=NaN;if(Ce===0)if(Fe===0)fe===ee&&(je=fe,ke=z);else{var Ae=(le-pe)/Fe,Be=le-Ae*re;je=fe,ke=Ae*je+Be}else if(Fe===0){var _e=(z-ae)/Ce,et=z-_e*fe;je=re,ke=_e*je+et}else{var _e=(z-ae)/Ce,Ae=(le-pe)/Fe,et=z-_e*fe,Be=le-Ae*re;je=(Be-et)/(_e-Ae),ke=_e*je+et}return be.x=je,be.y=ke,be}function Ge(fe,z,ee,ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae){var Be=1-be,_e=be,et=fe*Be+ee*_e,ze=z*Be+ae*_e,Xe=ee*Be+re*_e,Qe=ae*Be+le*_e,lt=re*Be+ue*_e,ct=le*Be+pe*_e,vt=et*Be+Xe*_e,nt=ze*Be+Qe*_e,it=Xe*Be+lt*_e,pt=Qe*Be+ct*_e,xt=vt*Be+it*_e,yt=nt*Be+pt*_e;Ce.x=et,Ce.y=ze,Fe.x=vt,Fe.y=nt,je.x=xt,je.y=yt,ke.x=it,ke.y=pt,Ae.x=lt,Ae.y=ct}var De=new go.Spot(.156,.156),me=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Rn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(fe,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(fe,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=De,re.spot2=me,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Rn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=De,le.spot2=me,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new Rn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Rn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(fe,z,ee){var ae=ce/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),be=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Fe=new go.PathFigure(be,0,!0);return re.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-be,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-be,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,be,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new Rn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new Rn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,ce*z,0,z,(.5-ce/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+ce/2)*ee,ce*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,be=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-be+pe)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-be+pe-.02)*ee)),le=.2,ue=0,pe=-.3,be=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-be+pe)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-be+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,be=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-be+pe-.02)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(fe,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,be=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=ce*.4;var Ce=tt(),Fe=tt(),je=tt(),ke=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Fe,je,ke,ke);var Ae=tt(),Be=tt(),_e=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,ke,ke,_e,Ae,Be);var et=tt(),ze=tt(),Xe=tt();Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,et,ze,Xe,ke,ke);var Qe=tt(),lt=tt(),ct=tt();return Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,ke,ke,ct,Qe,lt),be.add(new go.PathSegment(go.PathSegment.Move,ct.x*z,ct.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Qe.x*z,Qe.y*ee,lt.x*z,lt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,je.x*z,je.y*ee,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,ct.x*z,ct.y*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,Xe.x*z,Xe.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,_e.x*z,_e.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ae.x*z,Ae.y*ee,Be.x*z,Be.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Xe.x*z,Xe.y*ee,et.x*z,et.y*ee,ze.x*z,ze.y*ee).close()),Pt(Ce),Pt(Fe),Pt(je),Pt(ke),Pt(Ae),Pt(Be),Pt(_e),Pt(et),Pt(ze),Pt(Xe),Pt(Qe),Pt(lt),Pt(ct),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,re,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,be=tt(),Ce=tt(),Fe=tt(),je=tt(),ke=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Fe,je,Ce,be,be),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee));var Ae=$e(Ce.x,Ce.y);Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,be,be,Ce,Fe,je);var Be=$e(Ce.x,Ce.y);ke.add(new go.PathSegment(go.PathSegment.Line,(Ae.x*.1+.95*.9)*z,Ae.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ae.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var _e=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var et=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(et),Pt(be),Pt(Ce),Pt(Fe),Pt(je),Pt(Ae),Pt(Be),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(fe,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*ce,be=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var be=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var be=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(be),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(fe,z,ee){var ae=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Rn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Rn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,be=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);be.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),be.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return be.spot2=new go.Spot(Fe.x,Fe.y),Pt(Fe),be}),go.Shape.setFigureParameter("Arrow2",0,new Rn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Rn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,be=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);be.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),be.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return be.spot2=new go.Spot(Fe.x,Fe.y),Pt(Fe),be}),go.Shape.defineFigureGenerator("Chevron",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Rn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var be=oe(0,.5,.3,0,0,re/ee,.1,re/ee,tt());return ue.spot1=new go.Spot(be.x,be.y),be=oe(.7,1,1,.5,0,le/ee,1,le/ee,be),ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Rn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Rn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,be=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,be=ee):(le=0,ue=ee,pe=0,be=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var je=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,tt());return Ce.spot1=new go.Spot(je.x,je.y),je=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,je),Ce.spot2=new go.Spot(je.x,je.y),Pt(je),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new Rn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new Rn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Rn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,be=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,be=ee):(le=0,ue=ee,pe=0,be=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var je=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,tt());return Ce.spot2=new go.Spot(je.x,je.y),Pt(je),Ce}),go.Shape.setFigureParameter("Pointer",0,new Rn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(.2,.65,1,.65,0,1,1,.5,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new Rn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(0,.65,1,.65,0,1,1,.5,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new Rn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Rn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("SquareArrow",0,new Rn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-ce*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-ce*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-ce*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-ce*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-ce*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-ce*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-ce*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+ce*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+ce*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-ce*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-ce*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(fe,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=ce*re,pe=ce*le,be=.5,Ce=.1,Fe=new go.PathFigure(be*z,(Ce+le)*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-re)*z,Ce*ee,(be-ue)*z,(Ce+le)*ee,(be-re)*z,(Ce+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-le)*ee,(be-re)*z,(Ce-pe)*ee,(be-ue)*z,(Ce-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+re)*z,Ce*ee,(be+ue)*z,(Ce-le)*ee,(be+re)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+le)*ee,(be+re)*z,(Ce+pe)*ee,(be+ue)*z,(Ce+le)*ee));var je=.05,ke=ce*je;be=.05,Ce=.25;var Ae=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),be=.95,Ce=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be+je)*z,Ce*ee,(be+ke)*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),je=.025,ke=ce*je,be=.825,Ce=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),je=.05,ke=ce*je,be=.5,Ce=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),je=.025,ke=ce*je,be=.175,Ce=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),je=.05,ke=ce*je,be=.05,Ce=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee,(be-ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new Rn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=ce*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(fe,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=ce*.5,pe=.5,be=new go.PathFigure(z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Ce=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var be=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.9,pe=.5,be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.4,ue=ce*.1,pe=.1,be=.9,Ce=.5,Fe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var je=new go.PathFigure((be+pe)*z,Ce*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z,Ce*ee,(be-ue)*z,(Ce+pe)*ee,(be-pe)*z,(Ce+ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z,Ce*ee,(be+ue)*z,(Ce-pe)*ee,(be+pe)*z,(Ce-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,be=new go.PathFigure(0,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,be=new go.PathFigure(.1*z,0,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Fe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,be=new go.PathFigure(.1*z,0,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.1,pe=.5,be=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,be=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(fe,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=ce*.8,pe=.8,be=0,Ce=.5,Fe=(re-z)/2,je=(le-ee)/2,ke=new go.PathFigure(be*z+Fe,(Ce+pe)*ee+je,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce-pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce-ue)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce+ue)*ee+je,be*z+Fe,(Ce+pe)*ee+je).close()),ue=ce*.4,pe=.4,be=.2,Ce=.5;var Ae=new go.PathFigure(be*z+Fe,(Ce+pe)*ee+je,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce-pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce-ue)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce+ue)*ee+je,be*z+Fe,(Ce+pe)*ee+je).close()),ue=ce*.2,pe=.2,be=.5,Ce=.5;var Be=new go.PathFigure((be-pe)*z+Fe,Ce*ee+je,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),ue=ce*.4,pe=.4,be=.8,Ce=.5;var _e=new go.PathFigure(be*z+Fe,(Ce-pe)*ee+je,!0);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce+pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce+ue)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce-ue)*ee+je,be*z+Fe,(Ce-pe)*ee+je).close()),ue=ce*.8,pe=.8,be=1,Ce=.5;var et=new go.PathFigure(be*z+Fe,(Ce-pe)*ee+je,!0);return ae.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce+pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce+ue)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce-ue)*ee+je,be*z+Fe,(Ce-pe)*ee+je).close()),ae}),go.Shape.defineFigureGenerator("Email",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,be=tt(),Ce=tt(),Fe=tt(),je=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Fe,je);var ke=$e(Ce.x,Ce.y),Ae=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,je,Ce,be,be),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee)),re=ce*.3,le=.3,Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,je,Ce,be,be),Ae.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,je.x*z,je.y*ee,Fe.x*z,Fe.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Fe,je),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,je.x*z,je.y*ee,Fe.x*z,Fe.y*ee).close());var Ae=new go.PathFigure(.45*z,0,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Pt(be),Pt(Ce),Pt(Fe),Pt(je),Pt(ke),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,be){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+be)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*ce,be=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,Fe=1,je=.5,ke=.5,Ae=0,Be=new go.PathFigure(be*z,(1-Ce)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,je*ee,Fe*z,.7*ee,Fe*z,je*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+le)*z,(Ae+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,be=ue,Ce=Math.PI/4,Fe=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),je=Fe*.5,ke=ue,Ae=ue,Be=Fe*ke,_e=Fe*Ae;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ke)*z,be*ee,(pe-(Be+ke)/2)*z,(be+(Ae+_e)/2)*ee,(pe-ke)*z,(be+_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(be-Ae)*ee,(pe-ke)*z,(be-_e)*ee,(pe-Be)*z,(be-Ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ke)*z,be*ee,(pe+Be)*z,(be-Ae)*ee,(pe+ke)*z,(be-_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+ke)*z,(be+_e)*ee,(pe+(Be+ke)/2)*z,(be+(Ae+_e)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var et=new go.PathFigure(.2*z,ee,!1);ae.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var ze=new go.PathFigure(.8*z,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=ce*.1,be=.2,Ce=.9,Fe=new go.PathFigure((be-ue)*z,Ce*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-ue)*z,Ce*ee,(be-pe)*z,(Ce+ue)*ee,(be-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=ce*.1,be=.8,Ce=.9;var je=new go.PathFigure((be-ue)*z,Ce*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be-ue)*z,Ce*ee,(be-pe)*z,(Ce+ue)*ee,(be-ue)*z,(Ce+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var be=.1,Ce=ce*.1,Fe=.1,je=.9,ke=new go.PathFigure((Fe-be)*z,je*ee,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je-be)*ee,(Fe-be)*z,(je-Ce)*ee,(Fe-Ce)*z,(je-be)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*z,je*ee,(Fe+Ce)*z,(je-be)*ee,(Fe+be)*z,(je-Ce)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je+be)*ee,(Fe+be)*z,(je+Ce)*ee,(Fe+Ce)*z,(je+be)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*z,je*ee,(Fe-Ce)*z,(je+be)*ee,(Fe-be)*z,(je+Ce)*ee)),be=.1,Ce=ce*.1,Fe=.4,je=.9;var Ae=new go.PathFigure((Fe-be)*z,je*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je-be)*ee,(Fe-be)*z,(je-Ce)*ee,(Fe-Ce)*z,(je-be)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*z,je*ee,(Fe+Ce)*z,(je-be)*ee,(Fe+be)*z,(je-Ce)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je+be)*ee,(Fe+be)*z,(je+Ce)*ee,(Fe+Ce)*z,(je+be)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*z,je*ee,(Fe-Ce)*z,(je+be)*ee,(Fe-be)*z,(je+Ce)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var Fe=.05,je=ce*.05,ke=.175,Ae=.95,pe=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.375,Ae=.95,be=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.625,Ae=.95,Ce=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.825,Ae=.95,Be=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee).close());var _e=new go.PathFigure(0,ee,!1);return ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,be=ce*.05,Ce=.35,Fe=.775,je=new go.PathFigure((Ce-pe)*z,Fe*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe-pe)*ee,(Ce-pe)*z,(Fe-be)*ee,(Ce-be)*z,(Fe-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Fe*ee,(Ce+be)*z,(Fe-pe)*ee,(Ce+pe)*z,(Fe-be)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe+pe)*ee,(Ce+pe)*z,(Fe+be)*ee,(Ce+be)*z,(Fe+pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Fe*ee,(Ce-be)*z,(Fe+pe)*ee,(Ce-pe)*z,(Fe+be)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(fe,z,ee){var ae=new go.Geometry,re=.3,le=ce*.3,ue=.5,pe=.7,be=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(0,.7*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,be=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,be=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=ce*.05,ue=.5,pe=.8;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var be=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var be=new go.PathFigure(z*.816,ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var be=new go.PathFigure(z*1,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),be.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var be=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var ae=new go.Geometry,re=8,le=re*ce,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var be=new go.PathFigure(z*.83,ee*1,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(fe,z,ee){var ae=new go.Geometry,re=15,le=re*ce,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),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")},80727: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 Rn={},wn="5.0",$e={},tt=null,Pt=!1,oe=!1,Ge=null,De=!1,me=null,ce=null,we=0;we4?parseFloat(ft):5};Rn.setHTML5Codebase=function(ft,gt){ce=ft,pt(ft,gt)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(ft,gt){var mt=parseFloat(ft);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}me=ft,it(ft,gt)},Rn.getHTML5CodebaseVersion=function(){return fe},Rn.getParameters=function(){return $e},Rn.setFontsCSSURL=function(ft){ue=ft},Rn.setGiacJSURL=function(ft){},Rn.setJNLPFile=function(ft){Se=ft},Rn.setJNLPBaseDir=function(ft){},Rn.inject=function(){function ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",mt=$e.id,Nt,Tt=!1,zt=0;zt=5)return!0;var ft=Rn.getAppletObject();return ft&&typeof ft.recalculateEnvironments=="function"?(ft.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var ft=Rn.getAppletObject();return ft&&typeof ft.startAnimation=="function"?(ft.startAnimation(),!0):!1},Rn.stopAnimation=function(){var ft=Rn.getAppletObject();return ft&&typeof ft.stopAnimation=="function"?(ft.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var ft=$e.id!==void 0?$e.id:"ggbApplet";return window[ft]},Rn.resize=function(){};var Be=function(ft,gt,mt){var Nt=document.createElement("param");Nt.setAttribute("name",gt),Nt.setAttribute("value",mt),ft.appendChild(Nt)},_e=function(ft){return ft&&ft!=="false"},et=function(ft,gt,mt){be(fe)<=4.2&&(mt=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Tt=document.createElement("div");Tt.classList.add("appletParameters","notranslate");var zt=gt.width,St=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(be(fe)<=4.4)_e(gt.showToolBar)&&(gt.height-=7),_e(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&_e(gt.showToolBar)&&(gt.width=605,zt=605);else{var wt=100;(_e(gt.showToolBar)||_e(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),wt=_e(gt.showMenuBar)?245:155),zt=5?(gt.appletOnLoad=function(ht){var Lt=ft.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pe),window.GGBT_wsf_view&&$(window).trigger("resize"),Ye(ht)},Te||Pe.appendChild(Ve)):Tt.appendChild(Ve),Pe.appendChild(Tt),Te||ft.appendChild(Pe),setTimeout(function(){Rn.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Tt),ft.appendChild(Ze),gt.appletOnLoad=function(ht){Rn.resize(),Ye(ht)}}function Ee(ht,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,Lt.appletOnLoad):renderGGBElement(ht),xt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function He(ht,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Ee(en.article,en.params)}),html5AppletsToProcess=null)},be(fe)<5&&(ht.className+=" geogebraweb")):Ee(ht,Lt)}if(Nt){scriptLoadStarted=!0;for(var We=0;We0?(at.remove(),Pe.attr("id","fullscreencontent").show(),jQuery(Ye).append(Pe),window.dispatchEvent(new Event("resize"))):et(at,gt,!1),window.GGBT_wsf_view.launchFullScreen(Ye)}else xe=Nt,et(ft,gt,!1);if(!window.GGBT_wsf_view)for(St=0;Stft/4*3&&(at=ft/4*3),Ye=at/5.8,wt.setAttribute("src",re),wt.setAttribute("width",at),wt.setAttribute("height",Ye);var Pe=(ft-at)/2,Te=(gt-Ye)/2;wt.style.left=Pe+"px",wt.style.top=Te+"px",Tt.appendChild(wt)}}return Tt.appendChild(St),Tt},vt=function(ft){return ft=ft.toLowerCase(),ft==="html5"||ft==="screenshot"?ft:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(ft,gt){if(fe=ft,gt){pt(fe,!0);return}var mt=!Pt;if(mt){var Nt=be(fe);!isNaN(Nt)&&Nt<4.4&&(mt=!1)}var Tt,zt;window.location.protocol.substr(0,4)==="http"?Tt=window.location.protocol:Tt="http:";var St=fe.indexOf("//");St>0?zt=fe:St===0?zt=Tt+fe:zt="https://www.geogebra.org/apps/5.2.814.0/";for(var wt in nt)if(fe.slice(nt[wt].length*-1)===nt[wt]||fe.slice((nt[wt].length+1)*-1)===nt[wt]+"/"){pt(zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!tt.is3D&&!tt.AV&&!tt.SV&&!tt.CV&&!tt.EV2&&!tt.CP&&!tt.PC&&!tt.DA&&!tt.FI&&!tt.PV&&!_e($e.showToolBar)&&!_e($e.showMenuBar)&&!_e($e.showAlgebraInput)&&!_e($e.enableRightClick)&&(!$e.appName||$e.appName=="classic")?zt+="webSimple/":zt+="web3d/",pt(zt,!1)},pt=function(ft,gt){if(ft.requirejs){Oe=ft;return}ft.slice(-1)!=="/"&&(ft+="/"),Oe=ft,gt===null&&(gt=ft.indexOf("http")===-1),ve=gt,z="web.nocache.js",ee=!1;var mt=Oe.split("/");mt.length>1&&(!gt&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):nt.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=ft.split("/"),fe=mt[mt.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var Nt=parseFloat(fe);Nt!==NaN&&Nt<5&&ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),it("5.0",gt))},xt=function(ft,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(ft)};$e.material_id!==void 0?je(yt):yt();function yt(){var ft=wn;me!==null?ft=me:parseFloat(ft)<5&&(ft="5.0"),it(ft,!1),ce!==null&&pt(ce,ve),De=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function wn(De,me){me!=1?(De.style.transformOrigin="0% 0% 0px",De.style.webkitTransformOrigin="0% 0% 0px",De.style.transform="scale("+me+","+me+")",De.style.webkitTransform="scale("+me+","+me+")",De.style.maxWidth="initial",De.querySelector(".ggb_preview")!==null&&(De.querySelector(".ggb_preview").style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[0]!==void 0&&(De.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[1]!==void 0&&(De.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(De.style.transform="none",De.style.webkitTransform="none")}function $e(De,me,ce,we,Le,Se){var Oe=null;if(Se!=null&&Se!="")for(var ve=De.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+Se+" ")>-1){Oe=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(Oe)xe=Oe.offsetWidth,fe=Math.max(we?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),De){var ue=De.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Le===void 0||!Le)&&(document.dir==="rtl"?(ae=xe-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(De&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=De.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return De&&((ce===void 0||!ce)&&me>0&&me+ee1&&(Se=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(De.hasOwnProperty("disableAutoScale")&&De.disableAutoScale))Le=tt(De,me,Se,ce,De.scaleContainerClass);else return we;return Se&&(!De.hasOwnProperty("scale")||we===1)?Le:Math.min(we,Le)}function oe(De){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),we=De.getBoundingClientRect(),Le=(me-we.width)/2,Se=(ce-we.height)/2;Se<0&&(Se=0),De.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Le<40?De.style.left="40px":De.style.left=Le+"px",De.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?De.style.top="40px":De.style.top=Se+"px",De.style.left=Le+"px")}function Ge(De,me){var ce=De.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(De)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var we=Pt(me,De);Rn()&&ce.setAttribute("data-param-scale",we);for(var Le=null,Se=0;Se=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(Rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rn){var wn=c[Rn];return wn==null?null:wn},r=d,webModule.__errFn=e}function B(){function Rn(De){var me=De.lastIndexOf(rb);me==-1&&(me=De.length);var ce=De.indexOf(sb);ce==-1&&(ce=De.length);var we=De.lastIndexOf(tb,Math.min(ce,me));return we>=O?De.substring(O,we+P):W}function wn(De){if(!De.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=De+vb,De=Rn(me.src)}return De}function $e(){var De=__gwt_getMetaProperty(wb);return De!=null?De:W}function tt(){for(var De=o.getElementsByTagName(_),me=O;meO?De[De.length-P].href:W}function oe(){var De=o.location;return De.href==De.protocol+zb+De.host+De.pathname+De.search+De.hash}var Ge=$e();return Ge==W&&(Ge=tt()),Ge==W&&(Ge=Pt()),Ge==W&&oe()&&(Ge=Rn(o.location.href)),Ge=wn(Ge),Ge}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],wn=O,$e=[],tt=[];function Pt(De){var me=tt[De](),ce=$e[De];if(me in ce)return me;var we=[];for(var Le in ce)we[ce[Le]]=Le;throw r&&r(De,we,me),null}if(__gwt_isKnownPropertyValue=function(De,me){return me in $e[De]},webModule.__getPropMap=function(){var De={};for(var me in $e)$e.hasOwnProperty(me)&&(De[me]=Pt(me));return De},webModule.__computePropValue=Pt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ge=oe.indexOf(Db);Ge!=-1&&(wn=parseInt(oe.substring(Ge+P),$),oe=oe.substring(O,Ge))}catch(De){}return webModule.__softPermutationId=wn,C(oe+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})()},77903:function(Rn,wn,$e){"use strict";$e.d(wn,{Ax:function(){return Ge},Ds:function(){return De},KI:function(){return ce},SI:function(){return oe},f1:function(){return Pt}});var tt=$e(3294);function Pt(we){let Le=!0;if(we.length>0){for(let Se=0;Senew Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())}),Oe=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,tt.useRef)(null),pe=(0,tt.useRef)(null),be=(0,tt.useRef)(null),Ce=(0,tt.useRef)(null),[Fe,je]=(0,tt.useState)(!1),[ke,Ae]=(0,tt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,tt.useEffect)(()=>(be.current||(be.current=document.createElement("style"),document.head.appendChild(be.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),be.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Be()):(document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)),()=>{document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)}),[ve==null?void 0:ve.visible]);const Be=()=>Le(void 0,null,function*(){je(!0),Ae("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xe=yield(0,we.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Xe,ue.current.onload=function(){ze()},je(!1),Ae("")}),_e=Xe=>Le(void 0,null,function*(){je(!0),Ae("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Xe.dataUrl}});Qe!=null&&Qe.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(Xe.state)}})).status===0&&ae():Qe!=null&&Qe.id&&ae(Qe),je(!1),Ae("")}),et=()=>{const Xe=document.querySelector('a[href="https://markerjs.com/"]');Xe&&Xe.parentNode&&(Xe.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(lt=>{const ct=document.querySelector(lt.name);ct&&ct.setAttribute("title",lt.title)})},ze=()=>{pe.current=new me.hP(ue.current),pe.current.targetRoot=Ce.current,pe.current.addEventListener("render",_e),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return tt.createElement(tt.Fragment,null,(ve==null?void 0:ve.visible)&&tt.createElement(De.Z,{spinning:Fe,tip:ke,style:{position:"absolute",width:"100vw"}},tt.createElement("div",{ref:Ce,className:Ge()(Pt.imageDimensions,xe,fe?Pt.fullWidth:""),style:z},tt.createElement("img",{className:Pt.img,ref:ue}))))}},41588:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(95237),oe=$e(43604),Ge=$e(99313),De=$e(3113),me=$e(85149),ce=$e(88010),we=$e(48136),Le=$e(59301);const Se=(0,tt.forwardRef)(({callback:Oe,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,tt.useRef)(),ee=[{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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,be)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:`$$${pe.value}$$`}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Le.createElement("div",{key:Fe},Le.createElement("h1",null,Ce.name),Le.createElement(Pt.Z,{gutter:[10,10]},Ce.data.map((je,ke)=>Le.createElement(oe.Z,{key:ke,onClick:()=>re(je),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,be)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Le.createElement("div",{key:Fe},Ce.name&&Le.createElement("h1",null,Ce.name),Le.createElement(Pt.Z,{gutter:[10,10]},Ce.data.map((je,ke)=>Le.createElement(oe.Z,{key:ke,onClick:()=>re(je),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var be=pe.innerText;return Oe&&Oe(be),be};return(0,tt.useImperativeHandle)(fe,()=>({getData:ue})),Le.createElement("div",{className:ce.Z.mathWrap},Le.createElement(Ge.default,{defaultActiveKey:"1",items:le}),Le.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&Le.createElement("div",{className:ce.Z.button},Le.createElement(De.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});wn.Z=Se},8797:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(93314),oe=$e(3113),Ge=Object.defineProperty,De=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Se=(fe,z,ee)=>z in fe?Ge(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Oe=(fe,z)=>{for(var ee in z||(z={}))we.call(z,ee)&&Se(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Le.call(z,ee)&&Se(fe,ee,z[ee]);return fe},ve=(fe,z)=>De(fe,me(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:be,loading:Ce=!1})=>tt.createElement("section",{className:"tc animated fadeIn",style:Oe(Oe({},{color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"}),ee)},tt.createElement("img",{src:fe||Pt,style:ve(Oe({},be),{pointerEvents:"none",userSelect:"none"})}),tt.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&tt.createElement(oe.ZP,Oe({className:ue,onClick:le},z),re),pe&&pe);wn.Z=xe},23210:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return ue}});var tt=$e(59301),Pt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=$e(3113),Ge=$e(70557),De=$e(23954),me=$e(6848),ce=$e(955),we=$e(94941),Le=$e(8797),Se=$e(3294),Oe=$e(19381),ve=$e(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,be,Ce)=>be in pe?xe(pe,be,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[be]=Ce,re=(pe,be)=>{for(var Ce in be||(be={}))z.call(be,Ce)&&ae(pe,Ce,be[Ce]);if(fe)for(var Ce of fe(be))ee.call(be,Ce)&&ae(pe,Ce,be[Ce]);return pe},le=(pe,be,Ce)=>new Promise((Fe,je)=>{var ke=_e=>{try{Be(Ce.next(_e))}catch(et){je(et)}},Ae=_e=>{try{Be(Ce.throw(_e))}catch(et){je(et)}},Be=_e=>_e.done?Fe(_e.value):Promise.resolve(_e.value).then(ke,Ae);Be((Ce=Ce.apply(pe,be)).next())}),ue=({editOffice:pe="view",data:be,theme:Ce,type:Fe,filename:je,monacoEditor:ke,className:Ae,style:Be,close:_e,onClose:et,hasMask:ze,disabledDownload:Xe,onImgDimensions:Qe,showNodata:lt,recordInfo:ct})=>{const[vt,nt]=(0,tt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[it,pt]=(0,tt.useState)(""),[xt,yt]=(0,tt.useState)(),ft=window.ENV==="build"?"/react/build":"",gt=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,Nt=10*(1024*1024),Tt=(0,tt.useRef)();be!=null&&be.startsWith("/api")&&Fe!=="txt"&&(be=Se.Z.API_SERVER+be);const zt=Ye=>Ye.substring(Ye.lastIndexOf("/")+1).split(".").pop();je&&ke&&(ke.filename=je),(0,tt.useEffect)(()=>{var Ye,Pe;const Te=(Pe=(Ye=document.cookie)==null?void 0:Ye.replace(/\s/g,""))==null?void 0:Pe.split(";");Te==null||Te.map(Ve=>{let Ze=Ve.split("=");Ze[0]==="_educoder_session"&&pt(Ze[1])})},[]),(0,tt.useEffect)(()=>{Fe==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?yt({url:be,fileType:zt(be),model:be.indexOf("model=edit")?"edit":"view"}):St())},[Fe,be]);const St=()=>le(void 0,null,function*(){console.log("data:",be);let Ye=be;be.startsWith("http")||(Ye=location.origin+Ye);let Pe=new URL(Ye).pathname.split("/").pop();const Te=yield(0,we.gJ)({attachment_id:Pe});Te.url=gt+Te.url,yt(Te)}),wt=()=>{if(be.startsWith("http")||be.startsWith("blob:")){at();return}(0,ce.Sv)(je||"educoder",be,je)},at=()=>{ct&&(0,Oe.fc)({id:ct==null?void 0:ct.id,watch_type:1,course_id:ct==null?void 0:ct.course_id}),(0,ce.Nd)(je||"educoder",decodeURIComponent(be))};return ve.createElement("div",{style:re({},Be||{}),className:`${ze&&Pt.bgBlack} ${Fe?Pt.wrp:"hide"}`},_e&&ve.createElement("div",{className:Pt.close,ref:Tt},!!Qe&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:()=>{et(),Qe()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Xe&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:at},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Tt.current},ve.createElement("span",{className:"",onClick:et},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${Pt[Ae]} ${Ae} ${Pt.monaco} ${Fe==="txt"?"show":"hide"}`},Fe==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(De.ZP,re({},ke)))),Fe==="audio"&&ve.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}),Fe==="video"&&ve.createElement(ve.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),Fe==="office"&&xt&&ve.createElement("iframe",{src:`${ft}/office.html?key=${xt.key}&url=${btoa(xt.url)}&callbackUrl=${gt+(xt.callbackUrl||"")}&fileType=${xt.fileType}&title=${xt.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Xe}`}),Fe==="html"&&ve.createElement("iframe",{src:be+"&disposition=inline"}),Fe==="pdf"&&ve.createElement("iframe",{src:`${ft}/js/pdfview/index.html?filename=${je||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!Xe}`}),Fe==="image"&&ve.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(Fe==="other"||Fe==="download")&&ve.createElement(ve.Fragment,null,lt?ve.createElement(Le.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(oe.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:wt,disabled:Xe},"\u4E0B\u8F7D")}):ve.createElement(oe.ZP,{type:"primary",size:"middle",onClick:wt,disabled:Xe},ve.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Rn,wn,$e){"use strict";$e.d(wn,{z:function(){return Fe},Z:function(){return je}});var tt=$e(59301),Pt=$e(50304),oe=$e(24768),Ge=$e(64018),De=$e(40846),me=$e(3294),ce=$e(955),we=$e(15342),Le=$e(1012),Se=$e(23210),Oe=$e(59301),xe=({html:ke})=>{const Ae=(0,tt.useRef)(null),Be=(0,tt.useRef)(null),_e=`.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,tt.useEffect)(()=>{const et=Ae.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=ke,et.appendChild(Be.current);const ze=document.createElement("style");return ze.textContent=_e,et.appendChild(ze),()=>{et.innerHTML=""}},[]),(0,tt.useEffect)(()=>{Be.current&&(Be.current.innerHTML=ke)},[ke]),Oe.createElement("div",{ref:Ae})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(ke,Ae,Be)=>Ae in ke?fe(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,le=(ke,Ae)=>{for(var Be in Ae||(Ae={}))ee.call(Ae,Be)&&re(ke,Be,Ae[Be]);if(z)for(var Be of z(Ae))ae.call(Ae,Be)&&re(ke,Be,Ae[Be]);return ke};const ue="@\u2581\u2581@",pe="@\u2581@",be=/]*>/g;function Ce(ke){let Ae=document.createElement("div");return Ae.innerHTML=ke,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Fe=(ke,Ae)=>{ke=ke||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/api/attachments/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ke=ke.replace(ze,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/attachments/download/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(Be,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/api/attachments/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(_e,(Xe,Qe,lt,ct,vt)=>{const nt=Qe||ct,it=lt||vt||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+nt+it+nt+it+"&t="+(0,ce.Jn)(nt,Date.now())}).replace(et,(Xe,Qe,lt,ct,vt)=>{const nt=Qe||ct,it=lt||vt||"";return"("+me.Z.API_SERVER+"/files/uploads/"+nt+it+nt+it+"&t="+(0,ce.Jn)(nt,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,` `),ke)};var je=({value:ke="",className:Ae,showTextOnly:Be,showLines:_e,style:et={},stylesPrev:ze={},highlightKeywords:Xe,showProgramFill:Qe,isProgramFill:lt,disabledFill:ct=!1,programFillValue:vt,onFillChange:nt=xt=>{},onFillBlur:it=()=>{},onFillFocus:pt=()=>{}})=>{let xt=String(ke);const[yt,ft]=(0,tt.useState)(""),[gt,mt]=(0,tt.useState)("office"),[Nt,Tt]=(0,tt.useState)([]),zt=(0,tt.useRef)("a"+(0,Le.Z)()),St={},wt=(dt,Ct,ht)=>{const Lt=document.createElement(dt===pe?"input":"textarea");Lt.style.width="100%",Lt.style.height=dt===pe?"40px":"151px",Lt.rows=5,Lt.spellcheck=!1,Lt.name="edu-program-fill",Lt.placeholder="\u8BF7\u8F93\u5165",Lt.dataset.id=Ct;const en=Object.keys(St).length;return St[en]=Lt,`${Lt.outerHTML}`};function at(dt){return dt=dt.replace(/!\[.*?\]\(.*?\)/g,""),dt=dt.replace(/\[.*?\]\(.*?\)/g,""),dt=dt.replace(new RegExp("","gs"),""),dt=dt.replace(//g,""),dt=dt.replace(//g,""),dt=dt.replace(new RegExp(".*?<\\/video>","gs"),""),dt=dt.replace(new RegExp(".*?<\\/audio>","gs"),""),dt=dt.replace(new RegExp(".*?<\\/style>","gs"),""),dt=dt.replace(new RegExp(".*?<\\/script>","gs"),""),dt}const Ye=dt=>dt.replace(/([\s\S]+?)<\/style>/gim,function(Ct,ht){let Lt=ht.replace(/(\n|\r)/g,"").split("}"),en=[];return Lt.map(Vt=>{Vt!=""&&en.push(`.${zt.current} ${Vt}`)}),``}),Pe=(0,tt.useMemo)(()=>{try{const Lt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,en=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Kt=/\(\/attachments\/download\//g;xt=xt.replace(Kt,"("+me.Z.API_SERVER+"/attachments/download/").replace(Lt,"("+me.Z.API_SERVER+"/api/attachments/").replace(en,'"'+me.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+me.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(Lt){}if(Qe){let Lt=-1;return xt=xt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(en,Vt,Kt){var Ut;return++Lt,wt(en,Lt,(Ut=vt==null?void 0:vt[Lt])==null?void 0:Ut.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ye(xt||"")}
`}let dt=Ye(xt);dt=(0,oe.ZP)(dt);const Ct=(0,oe.ez)();xt.match(/\[TOC\]/)&&(dt=dt.replace("

[TOC]

",(0,oe.Qv)()),(0,oe.Iy)()),dt=dt.replace(/(__special_katext_id_\d+__)/g,(Lt,en)=>{const{type:Vt,expression:Kt}=Ct[en];return(0,we.renderToString)(Ce(Kt)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),dt=dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const ht=document.createElement("div");if(ht.innerHTML=dt,Be)return ht.innerText;if(Xe){const Lt=Xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ee(ht,Lt),ht.innerHTML}return setTimeout(()=>Ke(),500),ht.innerHTML},[xt,Xe]);(0,tt.useEffect)(()=>{He.current&&He.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=Te,Ct.onblur=Ve,Ct.onfocus=Ze})},[Nt]),(0,tt.useEffect)(()=>{var dt,Ct,ht,Lt,en;if(vt!=null&&vt.length)try{const Vt=He.current.querySelectorAll(".edu-program-fill-score"),Kt=He.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ut,rn]of Kt.entries())rn.value=((dt=vt==null?void 0:vt[Ut])==null?void 0:dt.value)||"",((Ct=vt==null?void 0:vt[Ut])==null?void 0:Ct.type)==="warning"?rn.className="program-fill-warning":((ht=vt==null?void 0:vt[Ut])==null?void 0:ht.type)==="success"?rn.className="program-fill-success":rn.className="";for(const[Ut,rn]of Vt.entries())rn.innerHTML=(Lt=vt==null?void 0:vt[Ut])!=null&&Lt.score?`${(en=vt==null?void 0:vt[Ut])==null?void 0:en.score}\u5206`:"";Tt(vt)}catch(Vt){console.log(Vt,"error")}},[vt]);const Te=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),nt(Nt,dt.target.dataset.id)},Ve=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),it(Nt,dt.target.dataset.id)},Ze=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),pt(Nt,dt.target.dataset.id)};function Ee(dt,Ct){return dt.childNodes.forEach(ht=>{var Lt;if(ht.childNodes.length>0)Ee(ht,Ct);else if(ht.nodeName!=="IMG")if(ht.innerHTML)ht.innerHTML=(Lt=ht.innerHTML)==null?void 0:Lt.replace(new RegExp(Ct,"gi"),'$&');else{const en=document.createElement("span");en.innerHTML=ht.textContent.replace(new RegExp(Ct,"gi"),'$&'),ht.replaceWith(en)}})}const He=(0,tt.useRef)();oe.jb.WebkitLineClamp=_e,_e&&(et=le(le({},et),oe.jb));function We(dt){let Ct=dt.target;if(Ct.tagName.toUpperCase()==="A"){let ht=Ct.getAttribute("href");if(ht.indexOf("office")>-1)dt.preventDefault(),ft(ht),mt("office");else if(ht.indexOf("application/pdf")>-1)dt.preventDefault(),ft(ht),mt("pdf");else if(ht.indexOf("text/html")>-1)dt.preventDefault(),ft(ht),mt("html");else if(ht.startsWith("#")){dt.preventDefault();let Lt=document.getElementById(ht.replace("#",""));Lt&&Lt.scrollIntoView(!0)}}}const Ke=()=>{var dt;const Ct=(dt=He.current)==null?void 0:dt.querySelectorAll("video");Ct==null||Ct.forEach(ht=>{if(ht.oncontextmenu=()=>!1,ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(De.ZP.isSupported()){var Lt=new De.ZP;Lt.loadSource(ht.src),Lt.attachMedia(ht)}}})};(0,tt.useEffect)(()=>{if(He.current&&Pe&&Pe.match(be)&&window.PR.prettyPrint(),He.current)return He.current.addEventListener("click",We),()=>{var dt;(dt=He.current)==null||dt.removeEventListener("click",We),(0,oe.AL)(),(0,oe.Iy)()}},[Pe,He.current,We]),(0,tt.useEffect)(()=>{var dt;const Ct=ht=>{ht.preventDefault(),ht.clipboardData.setData("text",window.getSelection().toString())};return(dt=He.current)==null||dt.addEventListener("copy",Ct),()=>{var ht;(ht=He.current)==null||ht.removeEventListener("copy",Ct)}},[He.current]);const Je=dt=>//i.test(dt||"");return tt.createElement(tt.Fragment,null,Be&&tt.createElement("div",{ref:He},Pe),!Be&&!Je(Pe)&&tt.createElement("div",{ref:He,style:le({},et),className:`${Ae||""} ${ct?"disabled-fill":""} markdown-body ${zt.current}`,dangerouslySetInnerHTML:{__html:Pe}}),!Be&&Je(Pe)&&tt.createElement(xe,{html:Pe}),tt.createElement(Se.Z,{close:!0,data:yt,type:yt!=null&&yt.length?gt:"",style:le({},ze),onClose:()=>ft("")}))}},81939:function(Rn,wn,$e){"use strict";$e.d(wn,{cT:function(){return ke},pe:function(){return Ce}});var tt=$e(59301),Pt=$e(54580),oe=$e(8591),Ge=$e(99064),De=$e(28209),me=$e.n(De),ce=$e(1012),we=$e(89070),Le=$e(47257),Se=$e.n(Le),Oe=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,_e,et)=>_e in Be?Oe(Be,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Be[_e]=et,re=(Be,_e)=>{for(var et in _e||(_e={}))z.call(_e,et)&&ae(Be,et,_e[et]);if(fe)for(var et of fe(_e))ee.call(_e,et)&&ae(Be,et,_e[et]);return Be},le=(Be,_e)=>ve(Be,xe(_e)),ue=(Be,_e)=>{var et={};for(var ze in Be)z.call(Be,ze)&&_e.indexOf(ze)<0&&(et[ze]=Be[ze]);if(Be!=null&&fe)for(var ze of fe(Be))_e.indexOf(ze)<0&&ee.call(Be,ze)&&(et[ze]=Be[ze]);return et},pe=(Be,_e,et)=>new Promise((ze,Xe)=>{var Qe=vt=>{try{ct(et.next(vt))}catch(nt){Xe(nt)}},lt=vt=>{try{ct(et.throw(vt))}catch(nt){Xe(nt)}},ct=vt=>vt.done?ze(vt.value):Promise.resolve(vt.value).then(Qe,lt);ct((et=et.apply(Be,_e)).next())});const{Dragger:be}=Pt.default,Ce=Be=>{const _e="bf3c199c2470cb477d907b1e0917c17b",et="5183666c72eec9e4";var ze=me().enc.Utf8.parse(_e);let Xe=me().enc.Utf8.parse(et);var Qe=me().AES.decrypt(Be,ze,{iv:Xe,mode:me().mode.CBC});return Qe.toString(me().enc.Utf8)};let Fe;const je=Be=>pe(void 0,[Be],function*({identifier:_e,oldFilename:et,newFilename:ze}){var Xe,Qe,lt,ct,vt,nt;const it=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});it.data=JSON.parse(Ce(it.data));const pt=new OSS({endpoint:(Xe=it==null?void 0:it.data)==null?void 0:Xe.end_point,region:(Qe=it==null?void 0:it.data)==null?void 0:Qe.region,accessKeyId:(lt=it==null?void 0:it.data)==null?void 0:lt.access_key_id,accessKeySecret:(ct=it==null?void 0:it.data)==null?void 0:ct.access_key_secret,bucket:(vt=it==null?void 0:it.data)==null?void 0:vt.bucket,stsToken:(nt=it==null?void 0:it.data)==null?void 0:nt.security_token});return new Promise((xt,yt)=>{console.log(11111,`${_e}/${et}`,`${_e}/${ze}`,it.data),pt.copy(`/${_e}/${et}`,`/${_e}/${ze}`).then(ft=>{console.log("\u62F7\u8D1D\u6210\u529F",ft)}).catch(ft=>{console.log(ft)})})}),ke=(Be,_e,et)=>pe(void 0,null,function*(){var ze,Xe,Qe,lt,ct,vt;_e.file_name=Be.name;const nt=yield(0,Ge.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(nt.data)),nt.data=JSON.parse(Ce(nt.data));const it=Be.name.split(".");it.pop();const pt=_e.realFileName?it.join(""):(0,ce.Z)(),xt=new(Se())({endpoint:(ze=nt==null?void 0:nt.data)==null?void 0:ze.end_point,region:(Xe=nt==null?void 0:nt.data)==null?void 0:Xe.region,accessKeyId:(Qe=nt==null?void 0:nt.data)==null?void 0:Qe.access_key_id,accessKeySecret:(lt=nt==null?void 0:nt.data)==null?void 0:lt.access_key_secret,bucket:(ct=nt==null?void 0:nt.data)==null?void 0:ct.bucket,stsToken:(vt=nt==null?void 0:nt.data)==null?void 0:vt.security_token});return new Promise((yt,ft)=>{var gt;xt.multipartUpload(`${pt}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},et),{callback:{url:(gt=nt==null?void 0:nt.data)==null?void 0:gt.callback_url,host:nt==null?void 0:nt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(_e)}})).then(function(mt){var Nt;Be.response=(Nt=mt.data)==null?void 0:Nt.data,yt(mt==null?void 0:mt.data)}).catch(function(mt){ft(mt),console.log("err:",mt)})})}),Ae=Be=>{var _e=Be,{user:et,cancelUpload:ze}=_e,Xe=ue(_e,["user","cancelUpload"]);const[Qe,lt]=(0,tt.useState)([]);let[ct,vt]=(0,tt.useState)();const nt={onRemove:pt=>{lt([...Qe.filter(xt=>xt.name!==pt.name)]),Xe.onChange(Qe.filter(xt=>xt.name!==pt.name))},disabled:Xe.disabled,multiple:!0,fileList:Qe==null?void 0:Qe.map(pt=>pt.file),customRequest:()=>{},beforeUpload:pt=>pe(void 0,null,function*(){let xt=Xe.maxSize||1073741824;if(Qe.filter(yt=>yt.name===pt.name).length){oe.ZP.info(`${pt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(pt==null?void 0:pt.size)>xt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${xt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Qe.push({name:pt.name,file:pt}),lt([...Qe]),Xe.onChange(Qe),!1)})},it=(pt,xt)=>pe(void 0,null,function*(){var yt,ft,gt,mt,Nt,Tt;xt.file_name=pt.name;const zt=pt.name,St=yield(0,Ge.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(St.data=JSON.parse(Ce(St.data)),(St==null?void 0:St.status)!==0){Qe[Qe.findIndex(Ye=>Ye.name===zt)].status="error",Qe[Qe.findIndex(Ye=>Ye.name===zt)].file.status="error",Xe.onChange(Qe),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ct=new(Se())({endpoint:(yt=St==null?void 0:St.data)==null?void 0:yt.end_point,region:(ft=St==null?void 0:St.data)==null?void 0:ft.region,accessKeyId:(gt=St==null?void 0:St.data)==null?void 0:gt.access_key_id,accessKeySecret:(mt=St==null?void 0:St.data)==null?void 0:mt.access_key_secret,bucket:(Nt=St==null?void 0:St.data)==null?void 0:Nt.bucket,stsToken:(Tt=St==null?void 0:St.data)==null?void 0:Tt.security_token}),console.log(pt,"file"),vt(ct);const wt=pt.name.split(".");wt.pop();const at=zt.indexOf(".")>-1?xt.realFileName?wt.join("."):(0,ce.Z)():zt;return new Promise((Ye,Pe)=>{var Te;try{ct.multipartUpload(`${Xe.identifier}/${at}${zt.indexOf(".")>-1?"."+zt.split(".").pop():""}`,new Blob([pt.file],{type:pt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ve,Ze,Ee)=>{try{console.log("\u8FDB\u5EA6",Ve,Ze,Ee);const He=Qe.findIndex(We=>We.name===zt);Qe[He].file.percent=Ve*100,Qe[He].tempCheckpoint=Ze,lt([...Qe])}catch(He){}},checkpoint:Qe[Qe.findIndex(Ve=>Ve.name===zt)].tempCheckpoint,callback:{customValue:{id:zt+""},url:(Te=St==null?void 0:St.data)==null?void 0:Te.callback_url,host:St==null?void 0:St.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(xt)}}).then(function(Ve){var Ze,Ee,He;const We=Qe.findIndex(Je=>Je.name===zt);let Ke="done";if(((Ze=Ve.data)==null?void 0:Ze.status)===0){pt.response=(Ee=Ve.data)==null?void 0:Ee.data;const Je=Qe.findIndex(dt=>dt.name===zt);Qe[Je].status="done",Qe[Je].file.status="done"}else oe.ZP.warning((He=Ve.data)==null?void 0:He.message),Ke="error";Qe[We].status=Ke,Qe[We].file.status=Ke,Xe.onChange(Qe),Ye(Ve==null?void 0:Ve.data)}).catch(function(Ve){Qe[Qe.findIndex(Ze=>Ze.name===zt)].status="error",Qe[Qe.findIndex(Ze=>Ze.name===zt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),lt([...Qe]),Xe.onChange(Qe),Pe(Ve),console.log("err:",Ve)})}catch(Ve){}})});return(0,tt.useEffect)(()=>{Qe.every(pt=>pt==="done"||pt==="error")&&Xe.onComplete(Qe)},[Qe]),(0,tt.useEffect)(()=>{ze&&(ct==null||ct.cancel())},[ze]),(0,tt.useEffect)(()=>{Xe.uploading&&Qe.map(pt=>pe(void 0,null,function*(){var xt;if((!pt.status||pt.status==="error")&&!ze){pt.status="uploading",pt.file.status="uploading";const yt=yield it(pt,{login:(xt=et==null?void 0:et.userInfo)==null?void 0:xt.login,container_type:Xe.container_type,container_id:Xe.container_id,description:Xe.description,realFileName:Xe.realFileName})}}))},[Xe.uploading]),tt.createElement(be,le(re({},nt),{height:Xe.height,className:Xe.className}),tt.createElement("p",{className:"ant-upload-hint"},Xe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};wn.ZP=(0,we.connect)(({loading:Be,globalSetting:_e,user:et})=>({globalSetting:_e,loading:Be.models.competitions,user:et}))(Ae)},97692:function(Rn,wn,$e){"use strict";$e.d(wn,{h:function(){return pe}});var tt=$e(59301),Pt=$e(57809),oe=$e(78241),Ge=$e(3113),De=$e(89780),me=$e.n(De),ce=$e(37036),we=$e(95625),Le=Object.defineProperty,Se=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(be,Ce,Fe)=>Ce in be?Le(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):be[Ce]=Fe,ee=(be,Ce)=>{for(var Fe in Ce||(Ce={}))xe.call(Ce,Fe)&&z(be,Fe,Ce[Fe]);if(ve)for(var Fe of ve(Ce))fe.call(Ce,Fe)&&z(be,Fe,Ce[Fe]);return be},ae=(be,Ce)=>Se(be,Oe(Ce));const re=Pt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};wn.Z=({callback:be,onCancel:Ce})=>{const[Fe,je]=(0,tt.useState)("python");function ke(Be){je(ue[Be][1])}function Ae(Be){be(Be)}return tt.createElement(oe.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae,style:{width:500}}),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},tt.createElement(Pt.default,{getPopupContainer:Be=>Be.parentNode,onChange:ke},Object.keys(ue).map(Be=>tt.createElement(re,{key:Be,value:Be},ue[Be][0])))),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},tt.createElement(pe,{mode:Fe})),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(Ge.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:be,onChange:Ce,mode:Fe,options:je={}}){const ke=(0,tt.useRef)(),[Ae,Be]=(0,tt.useState)();return(0,tt.useEffect)(()=>{if(Ae){let _e=function(et){const ze=et.getValue();Ce&&Ce(ze)};return Ae.on("change",_e),()=>{Ae.off("change",_e)}}},[Ae,Ce]),(0,tt.useEffect)(()=>{Ae&&Ae.setOption("mode",Fe)},[Ae,Fe]),(0,tt.useEffect)(()=>{Ae&&(be!==Ae.getValue()||be==="")&&setTimeout(()=>{Ae.setValue(be||"")},300)},[Ae,be]),(0,tt.useEffect)(()=>{if(ke.current&&!Ae){const _e=me().fromTextArea(ke.current,ee({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));Be(_e)}},[ke.current,Ae]),tt.createElement("div",{className:"my-codemirror-container"},tt.createElement("textarea",{ref:ke}))}},12290:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return or}});var tt=$e(59301),Pt=$e(89780),oe=$e.n(Pt),Ge=$e(76374),De=$e(37036),me=$e(6313),ce=$e(25717),we=$e(99498),Le=$e(25419),Se=$e(67549),Oe=$e(85149),ve=({value:qt="",className:Jt,showTextOnly:Et,showLines:ln,style:Pn={}})=>{const $t=(0,tt.useMemo)(()=>"",[qt]);return tt.createElement(tt.Fragment,null,tt.createElement("div",{dangerouslySetInnerHTML:{__html:$t}}))},xe=$e(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(qt,Jt,Et)=>Jt in qt?fe(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):qt[Jt]=Et,pe=(qt,Jt)=>{for(var Et in Jt||(Jt={}))re.call(Jt,Et)&&ue(qt,Et,Jt[Et]);if(ae)for(var Et of ae(Jt))le.call(Jt,Et)&&ue(qt,Et,Jt[Et]);return qt},be=(qt,Jt)=>z(qt,ee(Jt));let Ce=[{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 Fe({onActionCallback:qt,title:Jt,icon:Et,actionName:ln,className:Pn="",children:$t}){function It(){qt(ln)}return xe.createElement("a",{title:Jt,className:Pn,onClick:It},xe.createElement("i",{className:`${Et}`}),$t)}var je=({watch:qt,showNullButton:Jt,showNullProgramButton:Et,onActionCallback:ln,fullScreen:Pn,insertTemp:$t,hidetoolBar:It,extraUse:fn})=>{const un=[...Ce,{title:`${qt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!It&&un.map((Gn,Xn)=>xe.createElement("li",{key:Xn},Gn.actionName?xe.createElement(Fe,be(pe({},Gn),{onActionCallback:ln})):xe.createElement("span",{className:"v-line"}))),Jt?xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Et?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,$t&&xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${$t}`,onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fn&&xe.createElement("li",null,fn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Fe,{icon:`${Pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ln})))},ke=$e(79346),Ae=$e(78241),Be=$e(92832),_e=$e(3113),et=Object.defineProperty,ze=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,vt=(qt,Jt,Et)=>Jt in qt?et(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):qt[Jt]=Et,nt=(qt,Jt)=>{for(var Et in Jt||(Jt={}))lt.call(Jt,Et)&&vt(qt,Et,Jt[Et]);if(Qe)for(var Et of Qe(Jt))ct.call(Jt,Et)&&vt(qt,Et,Jt[Et]);return qt},it=(qt,Jt)=>ze(qt,Xe(Jt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var xt=({callback:qt,onCancel:Jt})=>{function Et(ln){qt(ln)}return tt.createElement(Ae.default,it(nt({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Et,style:{width:500}}),tt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},tt.createElement(Be.default,null)),tt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},tt.createElement(Be.default,null)),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},yt=$e(97692),ft=$e(28451),gt=$e(43418),mt=$e(95237),Nt=$e(73524),Tt=$e(59301),zt=({callback:qt,onCancel:Jt})=>{const Et=document.createElement("canvas"),ln=Et.getContext("2d");Et.width=1e3,Et.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Et.width,Et.height);const Pn=Et.toDataURL("image/png");return Tt.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Tt.createElement(mt.Z,{style:{height:"100vh"}},Tt.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:$t=>{qt({src:$t.url})},onClose:Jt})))},St=$e(12378);function wt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(wt,go.CommandHandler),wt.prototype.canAlignSelection=function(){var qt=this.diagram;return!(qt===null||qt.isReadOnly||qt.isModelReadOnly||qt.selection.count<2)},wt.prototype.alignLeft=function(){var qt=this.diagram;qt.startTransaction("aligning left");var Jt=1/0;qt.selection.each(function(Et){Et instanceof go.Link||(Jt=Math.min(Et.position.x,Jt))}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Jt,Et.position.y))}),qt.commitTransaction("aligning left")},wt.prototype.alignRight=function(){var qt=this.diagram;qt.startTransaction("aligning right");var Jt=-1/0;qt.selection.each(function(Et){if(!(Et instanceof go.Link)){var ln=Et.actualBounds.x+Et.actualBounds.width;Jt=Math.max(ln,Jt)}}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Jt-Et.actualBounds.width,Et.position.y))}),qt.commitTransaction("aligning right")},wt.prototype.alignTop=function(){var qt=this.diagram;qt.startTransaction("alignTop");var Jt=1/0;qt.selection.each(function(Et){Et instanceof go.Link||(Jt=Math.min(Et.position.y,Jt))}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.position.x,Jt))}),qt.commitTransaction("alignTop")},wt.prototype.alignBottom=function(){var qt=this.diagram;qt.startTransaction("aligning bottom");var Jt=-1/0;qt.selection.each(function(Et){if(!(Et instanceof go.Link)){var ln=Et.actualBounds.y+Et.actualBounds.height;Jt=Math.max(ln,Jt)}}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.actualBounds.x,Jt-Et.actualBounds.height))}),qt.commitTransaction("aligning bottom")},wt.prototype.alignCenterX=function(){var qt=this.diagram,Jt=qt.selection.first();if(Jt){qt.startTransaction("aligning Center X");var Et=Jt.actualBounds.x+Jt.actualBounds.width/2;qt.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(Et-ln.actualBounds.width/2,ln.actualBounds.y))}),qt.commitTransaction("aligning Center X")}},wt.prototype.alignCenterY=function(){var qt=this.diagram,Jt=qt.selection.first();if(Jt){qt.startTransaction("aligning Center Y");var Et=Jt.actualBounds.y+Jt.actualBounds.height/2;qt.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Et-ln.actualBounds.height/2))}),qt.commitTransaction("aligning Center Y")}},wt.prototype.alignColumn=function(qt){var Jt=this.diagram;Jt.startTransaction("align Column"),qt===void 0&&(qt=0),qt=parseFloat(qt);var Et=new Array;Jt.selection.each(function(fn){fn instanceof go.Link||Et.push(fn)});for(var ln=0;ln0){for(var fn=$t.elt(It-1);fn!==null&&fn.isTreeExpanded&&!fn.isTreeLeaf;){var un=this._sortTreeChildrenByY(fn);fn=un.last()}fn!==null&&qt.select(fn)}else qt.select(Pn)}}else if(Et.key==="Down")if(Jt.isTreeExpanded&&!Jt.isTreeLeaf){var ln=this._sortTreeChildrenByY(Jt).first();ln!==null&&qt.select(ln)}else for(;Jt!==null;){var Pn=Jt.findTreeParentNode();if(Pn===null)break;var $t=this._sortTreeChildrenByY(Pn),It=$t.indexOf(Jt);if(It<$t.length-1){qt.select($t.elt(It+1));break}else Jt=Pn}var Gn=qt.selection.first();Gn!==null&&qt.scrollToRect(Gn.actualBounds)}},wt.prototype._sortTreeChildrenByY=function(qt){var Jt=new go.List().addAll(qt.findTreeChildrenNodes());return Jt.sort(function(Et,ln){var Pn=Et.location,$t=ln.location;return Pn.y<$t.y?-1:Pn.y>$t.y?1:Pn.x<$t.x?-1:Pn.x>$t.x?1:0}),Jt},wt.prototype.copyToClipboard=function(qt){go.CommandHandler.prototype.copyToClipboard.call(this,qt),this._lastPasteOffset.set(this.pasteOffset)},wt.prototype.pasteFromClipboard=function(){var qt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(qt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),qt},Object.defineProperty(wt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(qt){if(qt!=="move"&&qt!=="select"&&qt!=="scroll"&&qt!=="tree"&&qt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+qt);this._arrowKeyBehavior=qt}}),Object.defineProperty(wt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(qt){if(!(qt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+qt);this._pasteOffset.set(qt)}});var at=wt,Ye=$e(74413),Pe=$e(43604),Te=$e(99064),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=$e(24065),Ee=$e(59301),He=(qt,Jt,Et)=>new Promise((ln,Pn)=>{var $t=un=>{try{fn(Et.next(un))}catch(Gn){Pn(Gn)}},It=un=>{try{fn(Et.throw(un))}catch(Gn){Pn(Gn)}},fn=un=>un.done?ln(un.value):Promise.resolve(un.value).then($t,It);fn((Et=Et.apply(qt,Jt)).next())});function We({onCancel:qt,callback:Jt}){let Et=(0,tt.useRef)(),ln=(0,tt.useRef)(),Pn=(0,tt.useRef)(),$t=(0,tt.useRef)(!1);const It=(0,tt.useRef)(!1),[fn,un]=(0,tt.useState)(0);function Gn(){const Ht=St.bx.make,kn={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"};Et.current=new St.S0(ln.current,{padding:20,grid:Ht(St.s_,"Grid",Ht(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jn=>{var sr=Jn.diagram.commandHandler.addTopLevelParts(Jn.diagram.selection,!0);sr||Jn.diagram.currentTool.doCancel()},commandHandler:Ht(at),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jn=>{var sr=Jn.subject;sr.location=sr.location.copy().snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jn=>{var sr=Jn.subject;setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jn=>{var sr=Jn.parameter.part;sr.invalidateConnectedLinks();var Sr=Jn.subject;Jn.diagram.toolManager.linkingTool.isForwards?Sr.toNode.invalidateConnectedLinks():Sr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Et.current.nodeTemplate=Ht(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),Ht(St.bn,{name:"SHAPE",fill:kn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ht(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Et.current.nodeTemplate.toolTip=Ht("ToolTip",Ht(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},Ht(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),Ht(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function Wn(Jn,sr){var Sr=(mr,$r)=>{mr.handled=!0,mr.diagram.model.commit(ri=>{var Rr=$r.part.adornedPart,br=new St.E9().setRectSpot(Rr.actualBounds,Jn);br.subtract(Rr.location),br.scale(2,2),br.x+=Math.sign(br.x)*130,br.y+=Math.sign(br.y)*130,br.add(Rr.location),br.snapToGridPoint(mr.diagram.grid.gridOrigin,mr.diagram.grid.gridCellSize);var ur=ri.copyNodeData(Rr.data);ri.setGroupKeyForNodeData(ur,ri.getGroupKeyForNodeData(Rr.data)),ri.addNodeData(ur);var vn={from:Rr.key,to:ri.getKeyForNodeData(ur)};ri.addLinkData(vn);var cr=mr.diagram.findNodeForData(ur);cr.location=br,mr.diagram.select(cr),setTimeout(()=>{mr.diagram.commandHandler.editTextBlock()},20)})};return Ht(St.bn,{figure:sr,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(St.z6.Top)||Jn.equals(St.z6.Bottom)?25:18,height:Jn.equals(St.z6.Top)||Jn.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:kn.white,strokeWidth:4,mouseEnter:(mr,$r)=>$r.fill="dodgerblue",mouseLeave:(mr,$r)=>$r.fill="orange",isActionable:!0,click:Sr,contextClick:Sr})}function lr(Jn){return Ht(St.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:(sr,Sr)=>Sr.fill="dodgerblue",mouseLeave:(sr,Sr)=>Sr.fill="orange",click:(sr,Sr)=>{sr.diagram.commandHandler.showContextMenu(Sr.part.adornedPart)}},Jn||{})}Et.current.nodeTemplate.selectionAdornmentTemplate=Ht(St.uz,"Spot",Ht(St.Vm,{padding:10}),Wn(St.z6.Top,"TriangleUp"),Wn(St.z6.Left,"TriangleLeft"),Wn(St.z6.Right,"TriangleRight"),Wn(St.z6.Bottom,"TriangleDown"),lr({alignment:new St.z6(.75,0)}));function on(Jn,sr){return(Sr,mr)=>{Sr.handled=!0,Sr.diagram.model.commit($r=>{$r.set(mr.part.adornedPart.data,Jn,sr)})}}function Mn(Jn,sr){return sr||(sr="color"),Ht(St.bn,{width:16,height:16,stroke:"lightgray",fill:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.stroke="dodgerblue",mouseLeave:(Sr,mr)=>mr.stroke="lightgray",click:on(sr,Jn),contextClick:on(sr,Jn)})}function an(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.white,"fill"),Mn(kn.beige,"fill"),Mn(kn.extralightblue,"fill"),Mn(kn.extralightred,"fill"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.lightgray,"fill"),Mn(kn.lightgreen,"fill"),Mn(kn.lightblue,"fill"),Mn(kn.lightred,"fill")))]}function Sn(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.black),Mn(kn.green),Mn(kn.blue),Mn(kn.red))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.white),Mn(kn.magenta),Mn(kn.purple),Mn(kn.orange)))]}function gn(Jn,sr){return sr||(sr="thickness"),Ht(St.bn,"LineH",{width:16,height:16,strokeWidth:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on(sr,Jn),contextClick:on(sr,Jn)})}function yn(Jn,sr){return sr||(sr="dash"),Ht(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on(sr,Jn),contextClick:on(sr,Jn)})}function On(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",gn(1),gn(2),gn(3),gn(4))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",yn(null),yn([2,4]),yn([4,4])))]}function Nn(Jn,sr){return sr||(sr="figure"),Ht(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.fill="dodgerblue",mouseLeave:(Sr,mr)=>mr.fill="lightgray",click:on(sr,Jn),contextClick:on(sr,Jn)})}Et.current.nodeTemplate.contextMenu=Ht("ContextMenu",Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Rectangle"),Nn("RoundedRectangle"),Nn("Ellipse"),Nn("Diamond"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Parallelogram2"),Nn("ManualOperation"),Nn("Procedure"),Nn("Cylinder1"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Terminator"),Nn("CreateRequest"),Nn("Document"),Nn("TriangleDown"))),an(),Sn(),On()),Et.current.groupTemplate=Ht(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jn,sr)=>{var Sr=sr.addMembers(sr.diagram.selection,!0);Sr||sr.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),Ht(St.s_,"Auto",{name:"BODY"},Ht(St.bn,{parameter1:10,fill:kn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.Vm,{background:"transparent",margin:20})),Ht(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),Et.current.groupTemplate.selectionAdornmentTemplate=Ht(St.uz,"Spot",Ht(St.s_,"Auto",Ht(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ht(St.Vm,{margin:1.5})),lr({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),Et.current.groupTemplate.contextMenu=Ht("ContextMenu",an(),Sn(),On()),Et.current.linkTemplate=Ht(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new St.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new St.KX("points").makeTwoWay(),Ht(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn===1)),Ht(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn>=1),new St.KX("width","thickness",Jn=>7+3*Jn),new St.KX("height","thickness",Jn=>7+3*Jn),new St.KX("segmentOffset","thickness",Jn=>new St.E9(-15,4+1.5*Jn))),Ht(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn===2),new St.KX("width","thickness",Jn=>7+3*Jn),new St.KX("height","thickness",Jn=>7+3*Jn),new St.KX("segmentOffset","thickness",Jn=>new St.E9(-15,4+1.5*Jn))),Ht(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Et.current.linkTemplate.selectionAdornmentTemplate=Ht(St.uz,Ht(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fn(2)},new St.KX("pathPattern","thickness",Fn)),lr({alignmentFocus:new St.z6(0,0,-6,-4)}));function Fn(Jn){return Ht(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jn+4).toString()+" H3"})}function zn(Jn){var sr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jn===0?sr="M0 0 M16 16 M0 8 L16 8":Jn===2&&(sr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ht(St.bn,{geometryString:sr,margin:2,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on("dir",Jn),contextClick:on("dir",Jn)})}function xr(Jn){var sr=(Sr,mr)=>{Sr.handled=!0,Sr.diagram.model.commit($r=>{var ri=mr.part.adornedPart;$r.set(ri.data,Jn?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(Jn?ri.toNode:ri.fromNode).invalidateConnectedLinks()})};return Ht(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:sr,contextClick:sr})}function mn(Jn,sr){var Sr=0,mr=St.z6.RightSide;Jn.equals(St.z6.Top)?(Sr=270,mr=St.z6.TopSide):Jn.equals(St.z6.Left)?(Sr=180,mr=St.z6.LeftSide):Jn.equals(St.z6.Bottom)&&(Sr=90,mr=St.z6.BottomSide),sr||(Sr-=180);var $r=(ri,Rr)=>{ri.handled=!0,ri.diagram.model.commit(br=>{var ur=Rr.part.adornedPart;br.set(ur.data,sr?"toSpot":"fromSpot",St.z6.stringify(mr)),(sr?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return Ht(St.bn,{alignment:Jn,alignmentFocus:Jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Sr,background:"transparent",mouseEnter:(ri,Rr)=>Rr.background="dodgerblue",mouseLeave:(ri,Rr)=>Rr.background="transparent",click:$r,contextClick:$r})}Et.current.linkTemplate.contextMenu=Ht("ContextMenu",Sn(),On(),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",zn(0),zn(1),zn(2))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Ht(St.s_,"Spot",xr(!1),mn(St.z6.Top,!1),mn(St.z6.Left,!1),mn(St.z6.Right,!1),mn(St.z6.Bottom,!1)),Ht(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},xr(!0),mn(St.z6.Top,!0),mn(St.z6.Left,!0),mn(St.z6.Right,!0),mn(St.z6.Bottom,!0)))));const Fr=`{ "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 Yr=["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 Br(Jn){return console.log("shapeName:",Jn),Yr.indexOf(Jn)>=0}var bn=new St.YI(Pn.current,{maxSelectionCount:1,linkTemplate:Ht(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:Ht(St.uz,"Link",{locationSpot:St.z6.Center},Ht(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ht(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),Ht(St.bn,{isPanelMain:!0,strokeWidth:2}),Ht(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Et.current.addDiagramListener("TextEdited",function(Jn){var sr;const Sr=Jn.subject.part;var mr=(sr=document.activeElement)==null?void 0:sr.value;typeof mr=="string"&&mr.trim()===""&&Et.current.model.commit(function($r){$r.set(Sr.data,"text","\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=Ht(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),Ht(St.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 St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),Ht(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{Et.current.grid=Ht(St.s_,"Grid",Ht(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Et.current.grid.visible=!0,Et.current.grid.gridCellStroke="darkgray",Et.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Et.current,Et.current}const Xn=()=>He(this,null,function*(){var Ht,kn=Et.current.makeImage();const Wn=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:kn.src,file_data:JSON.stringify({login:(Ht=(0,Ze.eY)())==null?void 0:Ht.login,data:JSON.parse(Et.current.model.toJson())})}});Jt({src:Wn.url})});return(0,tt.useEffect)(()=>(setTimeout(()=>{Gn()},500),un(fn+1),()=>{Et.current=null}),[]),Ee.createElement("div",{ref:It,className:$t.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Ee.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ee.createElement(mt.Z,null,Ee.createElement(Pe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ee.createElement(Pe.Z,{onClick:()=>{var Ht,kn,Wn=Et.current.selection.first();if($t.current=!$t.current,document.activeElement&&Wn){let lr=(kn=(Ht=document.activeElement)==null?void 0:Ht.value)==null?void 0:kn.trim();typeof lr=="string"&&Et.current.model.commit(function(on){on.set(Wn.data,"text",lr||"\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}un(fn+1)}},Ee.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:qt},Ee.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},Ee.createElement("div",{style:{display:"flex",height:"100%"}},Ee.createElement("div",{style:{width:"300px",height:"100%"}},Ee.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ee.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:Pn})),Ee.createElement("div",{style:{flex:1,position:"relative"}},Ee.createElement("div",{ref:ln,style:{height:"80vh"}}))),Ee.createElement("div",{className:"tr"},Ee.createElement(_e.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ke=We,Je=$e(5112),dt=$e(5871);const Ct=Je.ZP.Group,ht={margin:"0 8px"};var Lt=({callback:qt,onCancel:Jt})=>{function Et(ln){qt(ln)}return tt.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Et},tt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},tt.createElement("span",{style:ht},"\u5355\u5143\u683C\u6570\uFF1A"),tt.createElement("span",{style:ht},"\u884C\u6570"),tt.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},tt.createElement(dt.Z,null)),tt.createElement("span",{style:ht},"\u5217\u6570"),tt.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},tt.createElement(dt.Z,null))),tt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},tt.createElement("span",{style:ht},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),tt.createElement(Ae.default.Item,{name:"align"},tt.createElement(Ct,null,tt.createElement(Je.ZP,{value:"default"},tt.createElement("i",{className:"fa fa-align-justify"})),tt.createElement(Je.ZP,{value:"left"},tt.createElement("i",{className:"fa fa-align-left"})),tt.createElement(Je.ZP,{value:"center"},tt.createElement("i",{className:"fa fa-align-center"})),tt.createElement(Je.ZP,{value:"right"},tt.createElement("i",{className:"fa fa-align-right"}))))),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},en=$e(78673),Vt=$e(80727),Kt=$e.n(Vt),rn=(0,tt.forwardRef)(({use3d:qt,width:Jt,height:Et,callback:ln,showSaveButton:Pn},$t)=>{const It=(0,tt.useRef)(),fn=(0,tt.useRef)(),[un,Gn]=(0,tt.useState)(!1),Xn=(0,tt.useRef)({id:It,appName:"graphing",width:Jt||1e3,height:Et||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,tt.useEffect)(()=>{fn.current=new(Kt())(Xn.current,!0),window.onload=function(){fn.current.inject("applet_container")}},[]);const Ht=()=>{var kn=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(kn),kn};return(0,tt.useEffect)(()=>{Xn.current.appName=un?"3D":"graphing",fn.current.inject("applet_container")},[un]),(0,tt.useEffect)(()=>{Gn(qt)},[qt]),(0,tt.useImperativeHandle)($t,()=>({getImgData:Ht})),tt.createElement(tt.Fragment,null,tt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:It}),tt.createElement(mt.Z,{align:"middle"},tt.createElement(Pe.Z,{flex:1},tt.createElement(en.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:un,onChange:kn=>Gn(kn)})),tt.createElement(Pe.Z,null,tt.createElement(_e.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ft=$e(41588),Xt=$e(8591);const tn="link",dn="upload-image",En="add-flowchart",An="draw-image",ar="add-flowchart",tr="code-block",Tr="add-table",Vn="------------",Or={default:Vn,left:`:${Vn}`,center:`:${Vn}:`,right:`${Vn}:`};var Dr=$e(58856);function Jr(){}let ni=0;const Nr=1e4,di="\u2581",Ir="@\u2581\u2581@",ot="@\u2581@",Ci=` **\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`,xi=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function pr(qt){return/^\d+$/.test(qt)?`${qt}px`:qt}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Li={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},nr={[tn]:"\u6DFB\u52A0\u94FE\u63A5",[tr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dn]:"\u6DFB\u52A0\u56FE\u7247",[An]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var or=({defaultValue:qt="",onChange:Jt,width:Et="100%",height:ln=400,miniToolbar:Pn=!1,isFocus:$t=!1,watch:It,insertTemp:fn,mode:un="markdown",id:Gn="markdown-editor-id",showResizeBar:Xn=!1,noStorage:Ht=!1,showNullButton:kn=!1,showNullProgramButton:Wn=!1,hidetoolBar:lr=!1,fullScreen:on=!1,onBlur:Mn,onCMBeforeChange:an,onFullScreen:Sn,className:gn="",disablePaste:yn=!1,disabled:On=!1,disabledFill:Nn=!1,placeholder:Fn="",values:zn="",extraUse:xr})=>{const[mn,Fr]=(0,tt.useState)(null),[Yr,Br]=(0,tt.useState)(qt),[bn,Jn]=(0,tt.useState)(It),[sr,Sr]=(0,tt.useState)(on),[mr,$r]=(0,tt.useState)(""),[ri,Rr]=(0,tt.useState)(0),[br,ur]=(0,tt.useState)(ln),[vn,cr]=(0,tt.useState)(!1),[xn,zr]=(0,tt.useState)(0),[$i,Mi]=(0,tt.useState)(0),yo=(0,tt.useRef)(),no=(0,tt.useRef)(),Wr=(0,tt.useRef)(),Hr=(0,tt.useRef)();(0,tt.useEffect)(()=>{const Kr=window.scrollY||window.pageYOffset;Br(zn),mn==null||mn.setValue(zn),window.scrollTo(0,Kr)},[zn]),(0,tt.useEffect)(()=>{Sn==null||Sn(sr)},[sr]),(0,tt.useEffect)(()=>{if(yo.current){let Kr=function(Yn,ci){var ro;if(yn){ci.preventDefault();return}const Wo=ci.clipboardData;if(Wo){const _o=Wo.types.toString(),Xo=Wo.items;if(_o==="Files"||Wo.types.indexOf("Files")>-1){if(ci.preventDefault(),un=="stex")return;try{let Pa=Xo[1];((ro=Xo[0])==null?void 0:ro.kind)==="file"&&(Pa=Xo[0]);const na=Pa.getAsFile(),os=na.name.split(".").pop();(0,ft.I)(na,Da=>{var fs,Ln,Fa;Da.id?((fs=na==null?void 0:na.type)==null?void 0:fs.indexOf("image"))>-1?Vr.replaceSelection(``):((Ln=na==null?void 0:na.type)==null?void 0:Ln.indexOf("video"))>-1?Vr.replaceSelection(``):((Fa=na==null?void 0:na.type)==null?void 0:Fa.indexOf("pdf"))>-1?Vr.replaceSelection(`${na.name}`):xi.includes(os)?Vr.replaceSelection(`${na.name}`):Vr.replaceSelection(`[${na.name}](/api/attachments/${Da.id}?type=${Da.content_type})`):(Da==null?void 0:Da.status)===401&&(document.location.href="/user/login")})}catch(Pa){Xt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Vr=oe().fromTextArea(yo.current,{mode:un,lineNumbers:!Pn,lineWrapping:!0,value:qt,autoCloseTags:!0,autoCloseBrackets:!0});return Vr.on("keyup",function(Yn,ci){ci.keyCode===8&&(Yn.getValue()==""?Vr.setOption("placeholder",Fn):Vr.setOption("placeholder",null))}),Vr.on("keydown",function(Yn,ci){if(ci.keyCode===8){var ro=vi(Yn);ro&&ci.preventDefault()}}),$t&&Vr.focus(),Vr.on("paste",Kr),On&&Vr.on("beforeChange",function(Yn,ci){(ci.origin==="paste"||ci.origin==="+input")&&ci.cancel()}),Fr(Vr),()=>{Vr.off("paste",Kr)}}},[]);const wi=(0,tt.useCallback)(()=>{if(no.current)try{}catch(Kr){console.log(Kr,"---- to set md editor body height")}},[br,no,sr]);(0,tt.useEffect)(()=>{function Kr(){let Vr=new Ge.Z(Yn=>{for(let ci of Yn)(ci.target.offsetHeight>0||ci.target.offsetWidth>0)&&(wi(),mn.setSize("100%","100%"),mn.refresh())});return Vr.observe(yo.current.parentElement),Vr}if(mn){const Vr=Kr();return()=>{var Yn,ci;(Yn=yo.current)!=null&&Yn.parentElement&&Vr.unobserve((ci=yo.current)==null?void 0:ci.parentElement)}}},[mn,wi]),(0,tt.useEffect)(()=>{if(mn){let Kr=[];for(const[Vr,Yn]of Object.entries(Li)){let ci={[Vr]:()=>{fr(Yn)}};Kr.push(ci),mn.addKeyMap(ci)}return()=>{for(let Vr of Kr)mn.removeKeyMap(Vr)}}},[mn]),(0,tt.useEffect)(()=>{on!==sr&&Sr(on)},[on]),(0,Dr.Z)(()=>{if(!Ht&&ri>0){let Kr=new Date().getTime(),Vr=window.sessionStorage.getItem(Gn);Kr>=ri+Nr&&(!Vr||Vr!==Yr)&&(window.sessionStorage.setItem(Gn,Yr),cr(!0))}},Nr),(0,tt.useEffect)(()=>{Jn(It)},[mn,It]),(0,tt.useEffect)(()=>{mn&&$t&&mn.focus()},[mn,$t]),(0,tt.useEffect)(()=>{if(bn&&mn){let Kr=function(Yn){let ci=Yn.target;if(Hr.current){let ro=ci.scrollTop/ci.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*ro}};const Vr=mn.getScrollerElement();return Vr.addEventListener("scroll",Kr),()=>{Vr.removeEventListener("scroll",Kr)}}},[mn,bn]),(0,tt.useEffect)(()=>{if(mn&&an){let Kr=function(Vr,Yn){an(Vr,Yn)};return mn.on("beforeChange",Kr),()=>{mn.off("beforeChange",Kr)}}},[mn,an]),(0,tt.useEffect)(()=>{if(mn&&Mn){let Kr=function(){Mn(mn.getValue())};return mn.on("blur",Kr),()=>{mn.off("blur",Kr)}}},[mn,Mn]);function vi(Kr,Vr){var Yn=Kr.getDoc(),ci=Yn.getCursor(),ro=Yn.getLine(ci.line),Wo=ro.charAt(ci.ch-1),_o=ro.lastIndexOf("@\u2581@",ci.ch),Xo=ro.lastIndexOf("@\u2581\u2581@",ci.ch),Pa=_o>Xo?_o:Xo,na=_o>Xo?3:4;if(Ir.indexOf(Wo)===-1)return null;if(console.log("change1:",Vr,Kr,ro,ci,Pa,_o,Xo,Wo),Pa>=0&&ci.ch-Pa<5){var os=Pa+na;return Yn.replaceRange("",{line:ci.line,ch:Pa},{line:ci.line,ch:os}),{line:ci.line,ch:os}}return null}(0,tt.useEffect)(()=>{if(mn){let Kr=function(Vr,Yn){const ci=Vr.getValue();Br(ci),Rr(new Date().getTime()),Vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&(Wn?Jt(ci,ii(ci)):Jt(ci))};return mn.on("change",Kr),()=>{mn.off("change",Kr)}}},[mn,Jt]),(0,tt.useEffect)(()=>{if(mn)if(qt==null)mn.setValue(""),Br("");else{const Kr=window.scrollY||window.pageYOffset;qt!==mn.getValue()&&(mn.setValue(qt),Br(qt),mn.setCursor(On?1:mn.lineCount(),0),window.scrollTo(0,Kr))}},[mn,qt]);const fr=(0,tt.useCallback)(Kr=>{const Vr=mn.getCursor(),Yn=mn.getSelection();let ci=Yn.split(` `);switch(Kr){case"bold":return mn.replaceSelection("**"+Yn+"**"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+Yn+"*"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+Yn+"`"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+1),mn.focus();case"inline-latex":return $r("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+Yn+"\n```"),mn.setCursor(Vr.line+1,Yn.length+1),mn.focus();case"line-break":return mn.replaceSelection(`
`),mn.focus();case"list-ul":return Yn===""?mn.replaceSelection("- "+Yn):mn.replaceSelection(ci.map(ro=>ro===""?"":`- ${ro}`).join(` `)),mn.focus();case"list-ol":return Yn===""?mn.replaceSelection("1. "+Yn):mn.replaceSelection(ci.map((ro,Wo)=>ro===""?"":`${Wo+1}. ${ro}`).join(` `)),mn.focus();case"add-null-ch":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(di),mn.focus();case"add-signal":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(ot),mn.focus();case"add-multiple":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(Ir),mn.focus();case"inster-template-1":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(Ci),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return Jn(!bn),mn.focus();case"trigger-full-screen":return Sr(!sr),mn.focus();case tn:$r(tn);return;case tr:$r(tr);return;case dn:$r(dn);return;case An:$r(An);return;case"maths-latex":$r("maths-latex");return;case En:$r(En);return;case Tr:$r(Tr);return;default:throw new Error}},[mn,bn,sr]),kt=(0,tt.useCallback)((Kr,Vr)=>{var Yn,ci,ro,Wo,_o,Xo;switch($r(""),mr){case tn:const{title:fs,link:Ln}=Kr;return mn.replaceSelection(`[${fs}](${Ln})`),mn.focus();case tr:const{language:Fa,content:rc}=Kr;return mn.replaceSelection(["```"+Fa,rc,"```"].join(` `)),mn.focus();case"maths-latex":for(var Pa=atob(Kr),na=new Uint8Array(Pa.length),os=0;os{bi.id?mn.replaceSelection(`![,](/api/attachments/${bi.id}?type=${bi.content_type})`):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+Kr+"$$`");break;case dn:case An:case ar:const{src:el,alt:xo}=Kr,eo=Vr,ga=(ro=(ci=(Yn=eo==null?void 0:eo.name)==null?void 0:Yn.split("."))==null?void 0:ci.pop)==null?void 0:ro.call(ci);return((Wo=eo==null?void 0:eo.type)==null?void 0:Wo.indexOf("image"))>-1||!(eo!=null&&eo.type)?eo!=null&&eo.align||eo!=null&&eo.width?mn.replaceSelection(`

${xo||

`):mn.replaceSelection(`${xo||`):((_o=eo==null?void 0:eo.type)==null?void 0:_o.indexOf("video"))>-1?mn.replaceSelection(``):((Xo=eo==null?void 0:eo.type)==null?void 0:Xo.indexOf("pdf"))>-1?mn.replaceSelection(`${eo.name}`):xi.includes(ga)?mn.replaceSelection(`${eo.name}`):mn.replaceSelection(`[${eo.name}](${el})`),mn.focus();case Tr:const{row:jo,col:Yi,align:No}=Kr;let xs=` `;for(let bi=0;bi{switch(mr){case tn:return tt.createElement(xt,{callback:kt,onCancel:Ki});case tr:return tt.createElement(yt.Z,{callback:kt,onCancel:Ki});case dn:return tt.createElement(ft.Z,{callback:kt,onCancel:Ki});case En:return tt.createElement(Ke,{callback:kt,onCancel:Ki});case Tr:return tt.createElement(Lt,{callback:kt,onCancel:Ki});case"maths-latex":return tt.createElement(rn,{showSaveButton:!0,callback:kt});case"inline-latex":return tt.createElement(Ft.Z,{showSaveButton:!0,callback:kt});default:return null}},[mr]);function Ki(){$r("")}(0,tt.useEffect)(()=>{if(Wr.current){let Kr=function(_o){ro=!0,Wo=_o.pageY},Vr=function(){ro=!1},Yn=function(_o){if(ro){let Xo=_o.pageY-Wo;Xo<0&&(Xo=0),Xo>300&&(Xo=300);let Pa=ln+Xo+"px";ur(Pa)}},ci=Wr.current,ro=!1,Wo=0;return ci.addEventListener("mousedown",Kr),document.addEventListener("mousemove",Yn),document.addEventListener("mouseup",Vr),()=>{ci.removeEventListener("mousedown",Kr),document.removeEventListener("mousemove",Yn),document.removeEventListener("mouseup",Vr)}}},[mn,Wr]),(0,tt.useEffect)(()=>{ur(ln)},[ln]);const gi=pr(Et),oo=pr(br),So={width:gi,height:oo},Qr=(0,tt.useMemo)(()=>{if(ri){let Kr=new Date(ri),Vr=Kr.getHours(),Yn=Kr.getMinutes(),ci=Kr.getSeconds();return Vr=Vr<10?"0"+Vr:Vr,Yn=Yn<10?"0"+Yn:Yn,ci=ci<10?"0"+ci:ci,`${Vr}:${Yn}:${ci}`}return 0},[ri]),ii=Kr=>{const Vr=[];if(Wn){let Yn=-1;Kr=Kr.replace(/(@▁▁@|@▁@)/g,function(ci,ro,Wo){Vr.push({multiLine:ci!==ot})})}return Vr};function Oi(){window.sessionStorage.removeItem(Gn),cr(!1),Rr(0)}function Pi(){cr(!1),Rr(0),mn.setValue(window.sessionStorage.getItem(Gn))}(0,tt.useEffect)(()=>{nr[mr]&&mr!==An&&mr!==En&&setTimeout(()=>{const Kr=document.getElementsByClassName("markdown-popup-form")[0],Vr=window.innerWidth/2-Kr.offsetWidth/2,Yn=window.innerHeight/2-Kr.offsetHeight/2;zr(Vr),Mi(Yn)},0)},[mr]);const co=Kr=>{Kr.preventDefault();const Vr=Kr.clientX-xn,Yn=Kr.clientY-$i;document.body.onmousemove=ci=>{let ro=ci.clientX-Vr,Wo=ci.clientY-Yn;const _o=document.getElementsByClassName("markdown-popup-form")[0],Xo=window.innerWidth-_o.offsetWidth,Pa=window.innerHeight-_o.offsetHeight;ro=Math.max(0,Math.min(ro,Xo)),Wo=Math.max(0,Math.min(Wo,Pa)),To(ci.clientX,ci.clientY,Vr,Yn)&&(zr(ro),Mi(Wo))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(Kr,Vr,Yn,ci)=>{const ro=document.body.clientHeight,Wo=document.body.clientWidth;return Kr<20&&Yn>Kr||Kr>Wo-20&&YnVr||Vr>ro-20&&ciAe in ke?Oe(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,re=(ke,Ae)=>{for(var Be in Ae||(Ae={}))z.call(Ae,Be)&&ae(ke,Be,Ae[Be]);if(fe)for(var Be of fe(Ae))ee.call(Ae,Be)&&ae(ke,Be,Ae[Be]);return ke},le=(ke,Ae)=>ve(ke,xe(Ae));const{useForm:ue}=tt.default,pe={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:ke,onCancel:Ae})=>{const[Be]=ue();let _e=(0,Le.useRef)();function et(Qe){_e.current.width=Be.getFieldValue("width"),_e.current.align=Be.getFieldValue("align"),ke(Qe,_e.current)}function ze(Qe,lt){if(Qe.status===-1){Pt.ZP.error(Qe.message);return}Be.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:lt.type})}function Xe(Qe){let lt=Qe.target.files[0];_e.current=lt,je(lt,ze)}return Se.createElement(tt.default,le(re({form:Be},be),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Se.createElement("div",{className:"flex-container"},Se.createElement(tt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Se.createElement(oe.default,{style:pe})),Se.createElement(Fe,{onFileChange:Xe}))),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Se.createElement(oe.default,{style:{width:264}})),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Se.createElement(Ge.Z,null,Se.createElement(tt.default.Item,{name:"width",style:{margin:0}},Se.createElement(De.Z,{style:{width:264}})),Se.createElement("span",{className:"ml8"},"%"))),Se.createElement(tt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Se.createElement(me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Se.createElement("aside",null,Se.createElement(tt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Se.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(ce.ZP,{type:"default",onClick:Ae},"\u53D6\u6D88"))))};function Fe({onFileChange:ke}){return Se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Se.createElement("input",{type:"file",onChange:ke}))}function je(ke,Ae){if(!ke)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",ke),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var _e=new window.XMLHttpRequest;_e.withCredentials=!0,_e.addEventListener("load",function(et){Ae(JSON.parse(et.target.responseText),ke)},!1),_e.addEventListener("error",function(et){console.error(et)},!1),_e.open("POST",`${we.KI}/api/attachments.json`),_e.send(Be)}},79346:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return oe}});var tt=$e(59301),Pt=$e(4676);class oe extends tt.Component{constructor(De){super(De);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:De}=this.props;return(0,Pt.createPortal)(De,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Rn,wn,$e){"use strict";$e.d(wn,{SV:function(){return He},ZP:function(){return Ee}});var tt=$e(59301),Pt=$e(76374);const oe={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"]},Ge={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},De={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},me={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(` `)}]},ce={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 we=$e(53184),Le=$e.n(we),Se=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(We,Ke,Je)=>Ke in We?Se(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,ae=(We,Ke)=>{for(var Je in Ke||(Ke={}))fe.call(Ke,Je)&&ee(We,Je,Ke[Je]);if(xe)for(var Je of xe(Ke))z.call(Ke,Je)&&ee(We,Je,Ke[Je]);return We},re=(We,Ke)=>Oe(We,ve(Ke)),le=(We,Ke,Je)=>new Promise((dt,Ct)=>{var ht=Vt=>{try{en(Je.next(Vt))}catch(Kt){Ct(Kt)}},Lt=Vt=>{try{en(Je.throw(Vt))}catch(Kt){Ct(Kt)}},en=Vt=>Vt.done?dt(Vt.value):Promise.resolve(Vt.value).then(ht,Lt);en((Je=Je.apply(We,Ke)).next())});const ue={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"]}},pe=(We,Ke)=>Ke.map(Je=>({label:Je,kind:We.languages.CompletionItemKind.Keyword,insertText:Je})),be=We=>Object.keys(ue.tables).map(Ke=>({label:Ke,kind:We.languages.CompletionItemKind.Variable,insertText:Ke})),Ce=(We,Ke)=>{const Je=ue.tables[We];return Je?Je.map(dt=>({label:dt,kind:Ke.languages.CompletionItemKind.Field,insertText:dt})):[]};function Fe(We,Ke,Je,dt,Ct){let ht=Ke.getWordUntilPosition(Je),Lt={startLineNumber:Je.lineNumber,endLineNumber:Je.lineNumber,startColumn:ht.startColumn,endColumn:ht.endColumn},en=dt.map(Vt=>({label:Vt,kind:We.languages.CompletionItemKind.Keyword,insertText:Vt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Lt}));return Ct.map(Vt=>{en.push(re(ae({},Vt),{range:Lt}))}),en}var je=We=>{ue.languages.map(Ct=>(We.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(ht,Lt,en){return le(this,null,function*(){const Vt=Le()(ht.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:ht.getFullModelRange(),text:Vt}]})}}),Ct));const Ke=De.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Je=me.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet})),dt=Ge.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet}));We.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...De.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...De.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn};return{suggestions:[...oe.keywords.map(Vt=>({label:Vt,kind:We.languages.CompletionItemKind.Function,documentation:Vt,insertText:Vt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...Ge.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...Ge.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...ce.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...ce.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...me.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...me.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}})};const ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ae=Object.defineProperty,Be=(We,Ke,Je)=>Ke in We?Ae(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,_e=(We,Ke,Je)=>Be(We,typeof Ke!="symbol"?Ke+"":Ke,Je);const et=class mx{constructor(Ke,Je,dt){this.placeholder=Ke,this.editor=Je,this.monaco=dt,Je.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};_e(et,"ID","editor.widget.placeholderHint");var Xe=et,Qe=$e(96236),lt=$e(8591),ct=$e(6848),vt=$e(89392),nt=$e(34604),it=$e(56102),pt=Object.defineProperty,xt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Nt=(We,Ke,Je)=>Ke in We?pt(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,Tt=(We,Ke)=>{for(var Je in Ke||(Ke={}))gt.call(Ke,Je)&&Nt(We,Je,Ke[Je]);if(ft)for(var Je of ft(Ke))mt.call(Ke,Je)&&Nt(We,Je,Ke[Je]);return We},zt=(We,Ke)=>xt(We,yt(Ke)),St=(We,Ke)=>{var Je={};for(var dt in We)gt.call(We,dt)&&Ke.indexOf(dt)<0&&(Je[dt]=We[dt]);if(We!=null&&ft)for(var dt of ft(We))Ke.indexOf(dt)<0&&mt.call(We,dt)&&(Je[dt]=We[dt]);return Je},wt=(We,Ke,Je)=>new Promise((dt,Ct)=>{var ht=Vt=>{try{en(Je.next(Vt))}catch(Kt){Ct(Kt)}},Lt=Vt=>{try{en(Je.throw(Vt))}catch(Kt){Ct(Kt)}},en=Vt=>Vt.done?dt(Vt.value):Promise.resolve(Vt.value).then(ht,Lt);en((Je=Je.apply(We,Ke)).next())});function at(We){return/^\d+$/.test(We)?`${We}px`:We}function Ye(){}let Pe=!1;const Te={"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 Ve(We=[]){let Ke=We;if(Array.isArray(We)){for(let Je=0;Je{var Ke=We,{width:Je="100%",height:dt="100%",value:Ct,language:ht="javascript",style:Lt={},options:en={},overrideServices:Vt={},theme:Kt="vs-dark",onEditBlur:Ut,isCopy:rn=!1,onSave:Ft,autoHeight:Xt=!1,forbidCopy:tn=!1,onChange:dn=Ye,editorDidMount:En=Ye,onFocus:An=Ye,onBreakPoint:ar=Ye,breakPointValue:tr=[],filename:Tr="educoder.txt",errorLine:Vn,errorContent:Or="",highlightLine:Dr,openBreakPoint:Jr=!1,placeholder:ni=""}=Ke,Nr=St(Ke,["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 di=(0,tt.useRef)(),Ir=(0,tt.useRef)({}),ot=(0,tt.useRef)(),Ci=(0,tt.useRef)(),xi=(0,tt.useRef)([]),pr=(0,tt.useRef)(!1),Pr=(0,tt.useRef)(),Ar=(0,tt.useRef)(),Li=(0,tt.useRef)(!1),[nr,or]=(0,tt.useState)(!1);function qt(){let on;return di.current&&(on=new Pt.Z(Mn=>{for(let an of Mn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&Ir.current.instance.layout()}),on.observe(di.current)),on}function Jt(){lt.ZP.warning({content:decodeURIComponent(ke),key:"monaco-editor-tip"})}const Et=()=>{let on=Ir.current.instance;if(Ct!=null&&on&&nr){const Mn=on.getModel();Mn&&Ct!==Mn.getValue()&&(Pe=!0,Mn.setValue(Ct),on.layout(),Pe=!1)}};(0,tt.useEffect)(()=>{const on=nt.Z.subscribe("formatDocument",Mn=>{var an;let Sn=Ir.current.instance;(an=Sn==null?void 0:Sn.getAction)==null||an.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mn=>{dn(Mn)},on},[]),(0,tt.useEffect)(()=>{var on;let Mn=Ir.current.instance;Ci.current&&clearTimeout(Ci.current),Ci.current=setTimeout(()=>{Et()},500),Ct&&(Ct!=null&&Ct.length)&&((on=Mn==null?void 0:Mn.updateOptions)==null||on.call(Mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,nr,Ir.current]),(0,tt.useEffect)(()=>{if(Vn&&Ir.current&&Ir.current.instance){let Mn=Ir.current.instance;Mn.changeViewZones(function(an){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=Or,an.addZone({afterLineNumber:Vn||11,heightInLines:3,domNode:Sn})});var on={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}};Mn.addOverlayWidget(on),Mn.revealPositionInCenter({lineNumber:20,column:1})}},[Vn,Ir.current,nr]);const ln=(on="",Mn)=>{if(!on||on.trim()==="")return!0;const Sn=Ir.current.instance.getModel().getLineTokens(Mn);let gn=!1;for(let yn=0;yn<2;yn++)Sn.getStandardTokenType(yn)===1&&(gn=!0);return gn};(0,tt.useEffect)(()=>{var on;const Mn=(on=Ir.current)==null?void 0:on.instance;if(Mn&&nr&&tn){const an=Mn.onDidBlurEditorWidget(()=>{Li.current=!1}),Sn=Mn.onDidFocusEditorText(()=>{Li.current=!0});return()=>{an.dispose(),Sn.dispose()}}},[Ir.current,nr,tn]),(0,tt.useEffect)(()=>{var on;if((on=Ir.current)!=null&&on.instance&&nr&&Jr){let Mn=Ir.current.instance,an=Mn.getModel();if(!an)return;(()=>{var Br;let bn=[],Jn=[];const sr=an.getAllDecorations();for(let mr of sr)mr.options.className==="highlighted-line"&&(bn.push((Br=mr==null?void 0:mr.range)==null?void 0:Br.startLineNumber),Jn.push(mr==null?void 0:mr.id));if(Dr===bn[0])return;an.deltaDecorations(Jn,[]);const Sr=an.getLineCount();Dr&&Dr<=Sr&&(Mn.deltaDecorations([],[{range:new Ze.Range(Dr,1,Dr,an.getLineMaxColumn(Dr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mn.revealLineInCenter(Dr))})();const gn=(Br=!1)=>{var bn;let Jn=[],sr=[];const Sr=an.getAllDecorations();for(let mr of Sr)mr.options.linesDecorationsClassName==="breakpoints-select"&&(Jn.push((bn=mr==null?void 0:mr.range)==null?void 0:bn.startLineNumber),sr.push(mr==null?void 0:mr.id));if(Br)return{lines:Jn,ids:sr};ar(Jn)},yn=Br=>wt(void 0,null,function*(){let bn={range:new Ze.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield an.deltaDecorations([],[bn]),gn()}),On=Br=>wt(void 0,null,function*(){let bn=[];const Jn=Mn.getLineDecorations(Br);for(let sr of Jn)sr.options.linesDecorationsClassName==="breakpoints-select"&&bn.push(sr.id);yield an.deltaDecorations(bn,[]),gn()}),Nn=Br=>{let bn=Mn.getLineDecorations(Br);for(let Jn of bn)if(Jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vt.isEqual)(tr,gn(!0).lines)){an.deltaDecorations(gn(!0).ids,[]);const Br=tr.map(bn=>({range:new Ze.Range(bn,1,bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));an.deltaDecorations([],Br)}const Fn=Mn.onDidChangeModelContent(Br=>{let bn=Mn.getPosition();if(bn){let Jn=bn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{ln(an.getLineContent(Jn),Jn)?On(Jn):Nn(Jn)?(On(Jn),yn(Jn)):gn()},100)}}),zn=Mn.onMouseDown(Br=>{var bn,Jn,sr;if(Br.target.detail&&((sr=(Jn=(bn=Br.target)==null?void 0:bn.element)==null?void 0:Jn.className)!=null&&sr.includes("line-numbers"))){let Sr=Br.target.position.lineNumber;if(ln(an.getLineContent(Sr),Sr))return;Nn(Sr)?On(Sr):yn(Sr)}}),xr=Br=>{let bn={range:new Ze.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};xi.current=Mn.deltaDecorations(xi.current,[bn])},mn=()=>{xi.current=Mn.deltaDecorations(xi.current,[])},Fr=Mn.onMouseMove(Br=>{var bn,Jn,sr;if(mn(),Br.target.detail&&((sr=(Jn=(bn=Br.target)==null?void 0:bn.element)==null?void 0:Jn.className)!=null&&sr.includes("line-numbers"))){let Sr=Br.target.position.lineNumber;if(ln(an.getLineContent(Sr),Sr))return;xr(Sr)}}),Yr=Mn.onMouseLeave(()=>{mn()});return()=>{Fn.dispose(),zn.dispose(),Fr.dispose(),Yr.dispose()}}},[Ir.current,nr,tr,Dr,Jr,ht]),(0,tt.useEffect)(()=>{var on;(on=Ir.current)!=null&&on.instance&&Jr&&Ir.current.instance.setPosition({lineNumber:0,column:0})},[Dr]);function Pn(){let on=Ir.current.instance;if(on){const Mn=on.getSelection(),an=Ir.current.pastePos||{},Sn=new Ze.Range(an.startLineNumber||Mn.endLineNumber,an.startColumn||Mn.endColumn,an.endLineNumber||Mn.endLineNumber,an.endColumn||Mn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Sn,text:""}])},300)}}function $t(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Ft())}const It=()=>{if(Xt&&Ir.current.instance){const on=Ir.current.instance.getContentHeight();Wn(on{if(!Li.current)return;const{keyCode:Mn,ctrlKey:an,metaKey:Sn,target:gn,type:yn}=on;return(yn==="paste"||(Mn===67||Mn===86)&&(Sn||an))&&gn.nodeName==="TEXTAREA"&&(Jt(),on.preventDefault()),!1};function Gn(on,Mn){var an=window.URL||window.webkitURL||window,Sn=new Blob([Mn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=an.createObjectURL(Sn),gn.download=on,fn(gn)}(0,tt.useEffect)(()=>{It()},[It]),(0,tt.useEffect)(()=>{di.current&&!nr&&Promise.all([$e.e(8909),$e.e(3267)]).then($e.bind($e,71448)).then(on=>{try{Ze=on,Ir.current.instance=Ze.editor.create(di.current,{value:Ct,language:Ve(ht),theme:Kt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Vt);const Mn=Ir.current.instance;let gn=[...Qe.BH._menuItems].find(Fn=>Fn[0]._debugName=="EditorContext")[1],yn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],On=(Fn,zn)=>{var xr,mn;let Fr=Fn._first;do zn.includes((mn=(xr=Fr.element)==null?void 0:xr.command)==null?void 0:mn.id)&&Fn._remove(Fr);while(Fr=Fr.next)};if(En(Mn,Ze),setTimeout(()=>{It(),Ir.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Gn(Tr||"educoder.txt",Mn.getValue())}})},500),Ir.current.subscription=Mn.onDidChangeModelContent(Fn=>{pr.current?clearTimeout(Pr.current):(It(),dn(Mn.getValue(),Fn)),Pr.current=setTimeout(()=>{pr.current=!1},500)}),window.Monaco||je(Ze,Ve(ht)),tn&&(On(gn,yn),di.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",un),window.removeEventListener("paste",un),window.addEventListener("keydown",un),window.addEventListener("paste",un)),window.Monaco=Ze,Ut&&Mn.onDidBlurEditorWidget(()=>{Ut(Mn.getValue())}),An&&Mn.onDidFocusEditorText(()=>{An(Mn.getValue())}),tn)try{Mn.onDidPaste(Fn=>{const zn=Mn.getSelection(),xr=Ir.current.pastePos||{},mn=new Ze.Range(xr.startLineNumber||zn.endLineNumber,xr.startColumn||zn.endColumn,xr.endLineNumber||zn.endLineNumber,xr.endColumn||zn.endColumn);Mn.executeEdits("",[{range:Fn.range,text:""}])})}catch(Fn){}let Nn=qt();return ni&&typeof ni=="string"&&new Xe(ni,Mn,Ze),or(!0),()=>{const Fn=Ir.current.instance;Fn.dispose();const zn=Fn.getModel();zn&&zn.dispose(),Ir.current.subscription&&Ir.current.subscription.dispose(),Nn.unobserve(di.current)}}catch(Mn){}})},[]),(0,tt.useEffect)(()=>{if(Ir.current.instance&&nr)return document.addEventListener("keydown",$t,!1),()=>{document.removeEventListener("keydown",$t)}},[Ft,nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;if(on&&nr){let Mn=Ve(ht);Ze.editor.setModelLanguage(on.getModel(),Mn)}},[ht,nr]),(0,tt.useEffect)(()=>{Ir.current.instance&&nr&&Ze.editor.setTheme(Kt)},[Kt,nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;ot.current=en,on&&nr&&(on.updateOptions(Tt({},en)),setTimeout(()=>{on.getModel().updateOptions(Tt({},en))},200))},[JSON.stringify(en),nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;on&&nr&&on.layout()},[Je,dt,nr]);const[Xn,Ht]=(0,tt.useState)(at(Je)),[kn,Wn]=(0,tt.useState)(at(dt)),lr=zt(Tt({},Lt),{width:Xn,height:kn,position:"relative"});return tt.createElement("div",{className:"my-monaco-editor",ref:di,style:lr},rn&&tt.createElement(it.CopyToClipboard,{text:Ct,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},tt.createElement(ct.Z,{title:"\u590D\u5236\u4EE3\u7801"},tt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},tt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function He({width:We="100%",height:Ke="100%",original:Je,modified:dt,language:Ct,options:ht={}}){const Lt=(0,tt.useRef)(),[en,Vt]=(0,tt.useState)(null);function Kt(Xt){let tn;return Lt.current&&(tn=new Pt.Z(dn=>{for(let En of dn)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&Xt.layout()}),tn.observe(Lt.current)),tn}(0,tt.useEffect)(()=>(Lt.current&&Promise.all([$e.e(8909),$e.e(9404)]).then($e.bind($e,2550)).then(Xt=>{Ze=Xt;const tn=Ze.editor.createDiffEditor(Lt.current,zt(Tt({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},ht),{wordWrap:!0}));Vt(tn);let dn=Kt(tn);return()=>{tn.dispose();const En=tn.getModel();En&&En.dispose(),dn.unobserve(Lt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,tt.useEffect)(()=>{en&&en.setModel({original:Ze.editor.createModel(Je,Ct),modified:Ze.editor.createModel(dt,Ct)})},[Je,dt,Ct,en]);const Ut=at(We),rn=at(Ke),Ft={width:Ut,height:rn};return tt.createElement("div",{className:"my-diff-editor",ref:Lt,style:Ft})}},85057:function(Rn,wn,$e){"use strict";$e.d(wn,{jL:function(){return De},w9:function(){return gt},QD:function(){return dn},cQ:function(){return it},op:function(){return Kt},O5:function(){return Li},_b:function(){return Vn},t7:function(){return re},Gi:function(){return wt},YG:function(){return zt},qp:function(){return Oe},vr:function(){return ar},qE:function(){return Ft},Je:function(){return pe},wb:function(){return Qe},cq:function(){return Ze},tp:function(){return fe}});var tt=$e(59301),Pt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},oe="data:image/png;base64,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",De=({dataSource:nr=[],img:or,imgWidth:qt=346,title:Jt,sunTitle:Et,bannerExtraContent:ln})=>tt.createElement("div",{className:Pt.banner},tt.createElement("div",{className:Pt.content},tt.createElement("aside",null,tt.createElement("p",null,tt.createElement("b",null,Jt),tt.createElement("span",null,Et)),nr.length>0&&tt.createElement("div",{className:Pt.btns},nr.map((Pn,$t)=>tt.createElement("div",{key:$t,onClick:Pn.click},Pn.name,Pn.sign?tt.createElement("img",{src:oe,width:39}):null))),ln),or&&tt.createElement("img",{style:{marginTop:33,marginRight:38},src:or,width:qt}))),me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ce=$e(92310),we=$e.n(ce),Le=$e(89392),Oe=({dataSource:nr=[],value:or,onChange:qt,onTitleChange:Jt,className:Et,title:ln,titleWidth:Pn=41,style:$t={},fontColor:It="#6A7283",showCount:fn})=>{const[un,Gn]=(0,tt.useState)(0),[Xn,Ht]=(0,tt.useState)(!1),kn=(0,tt.useRef)(null),Wn=(0,tt.useRef)(null);return(0,tt.useEffect)(()=>{var lr;nr.length!==0&&(((lr=kn==null?void 0:kn.current)==null?void 0:lr.clientHeight)>97?Gn(1):Gn(0)),nr.length===0&&Gn(0),Ht(!1)},[nr]),tt.createElement("div",{className:we()(me.row,Et),style:$t},tt.createElement("div",{onClick:(0,Le.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:Pn,marginTop:Xn?12:4},className:`${me.title} ${Jt?"current":""}`},ln),tt.createElement("div",{className:Xn?`${me.tagsWrap} ${me.tagsBorderWrap}`:me.tagsWrap},tt.createElement("div",{className:me.bar,ref:Wn,style:un>0?{height:un===1?97:"auto",overflow:un===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},tt.createElement("div",{className:me.tag,ref:kn},nr==null?void 0:nr.map(lr=>tt.createElement("span",{onClick:()=>qt(lr.id),key:lr.id,style:{color:It},className:or===lr.id?me.active:""},tt.createElement("span",{title:lr.name,className:me.name},lr.name),!!fn&&tt.createElement("span",{className:me.num},lr.count))))),!!un&&tt.createElement(tt.Fragment,null,un===1?tt.createElement("div",{onClick:()=>{var lr;Gn(2),((lr=kn==null?void 0:kn.current)==null?void 0:lr.clientHeight)>245?Ht(!0):Ht(!1)},className:me.action},"\u5C55\u5F00",tt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):tt.createElement("div",{onClick:()=>{Wn.current.scrollTop=0,Gn(1),Ht(!1)},className:me.action},"\u6536\u8D77",tt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},fe=({dataSource:nr=[],value:or,onChange:qt,className:Jt,style:Et={}})=>tt.createElement("div",{style:Et,className:we()(ve.tabs,Jt)},nr.map(ln=>tt.createElement("span",{onClick:()=>qt(ln.id),className:or===ln.id?ve.active:"",key:ln.id},ln.name))),z={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=$e(92832),re=({dataSource:nr=[],value:or="",onChange:qt,onInputChange:Jt=()=>{},className:Et,style:ln={},placeholder:Pn,allowClear:$t=!1})=>{var It;const[fn,un]=(0,tt.useState)(""),[Gn,Xn]=(0,tt.useState)("");(0,tt.useEffect)(()=>{var Wn;let lr=or;(Wn=JSON.stringify(or))!=null&&Wn.includes("{")&&(un(or.id),lr=or.value||"");try{Xn(decodeURIComponent(lr||""))}catch(on){Xn(decodeURIComponent(lr||""))}},[or]);const Ht=()=>{qt(encodeURIComponent(Gn),fn||null)},kn=Wn=>{Wn!==fn&&(un(Wn),qt(encodeURIComponent(Gn),Wn))};return tt.createElement("div",{className:we()(z.input,Et),style:ln},!!nr.length&&tt.createElement("div",{className:z.dropdown},tt.createElement("div",{className:z.text},(It=nr.find(Wn=>Wn.id===fn))==null?void 0:It.name,tt.createElement("i",{className:"iconfont icon-zhankai4"}),tt.createElement("b",{className:z.b1}),tt.createElement("b",{className:z.b2})),tt.createElement("div",{className:z.menu},nr.map((Wn,lr)=>tt.createElement("div",{key:lr,onClick:()=>kn(Wn.id)},Wn.name)))),tt.createElement(ee.default,{onPressEnter:Ht,value:Gn,onChange:Wn=>{Xn(Wn.target.value),Jt(encodeURIComponent(Wn.target.value),fn||null)},bordered:!1,placeholder:Pn}),tt.createElement("i",{onClick:Ht,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:nr,onChange:or,className:qt,total:Jt,pageSize:Et,style:ln={}})=>{const Pn=nr<2,$t=nr>=Math.ceil(Jt/Et);return Jt<=Et?tt.createElement(tt.Fragment,null):tt.createElement("div",{className:we()(le.quickPager,qt),style:ln},tt.createElement("div",{onClick:()=>{Pn||or(nr-1,"prev")},className:Pn?le.disabled:""},"\u4E0A\u4E00\u9875"),tt.createElement("div",{onClick:()=>{$t||or(nr+1,"next")},className:$t?le.disabled:""},"\u4E0B\u4E00\u9875"))},be={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ce=$e(71418),Fe=$e(6848),je=$e(13570),ke=$e(3294),Ae=$e(955),Be=$e(96908),_e=$e(57177),et=$e(81378),ze=$e(8797),Qe=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It})=>{const fn=Math.floor((Pn-(qt-1)*Jt)/qt);return tt.createElement(Ce.Z,{spinning:It},tt.createElement("div",{className:we()(be.list,nr)},!!or.length&&or.map((un,Gn)=>{const{name:Xn,id:Ht,identifier:kn,power:Wn,cover_image_id:lr,pic:on}=un;return tt.createElement("div",{className:be.wrap,key:Ht,style:{width:fn,marginRight:(1+Gn)%qt===0?0:Jt+ln,marginBottom:Et}},tt.createElement("a",{target:"_blank",href:`/shixuns/${kn}/challenges`,className:be.li,onClick:Mn=>{Mn.preventDefault(),$t&&(0,Ae.L9)([$t]),Wn&&(0,Ae.xg)(`/shixuns/${kn}/challenges`)}},tt.createElement("div",{className:be.img},tt.createElement("img",{className:be.cover,src:`${on}`}),un.is_jupyter&&tt.createElement("img",{className:be.sign,src:Be}),un.is_jupyter_lab&&tt.createElement("img",{className:be.sign,src:_e}),un.is_unity_3d&&tt.createElement("img",{className:be.sign,src:et})),tt.createElement("div",{className:be.name},tt.createElement(Fe.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},tt.createElement("span",{className:be.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),tt.createElement("div",{className:be.tags},tt.createElement(Fe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),tt.createElement("span",null,un.challenges_count))),!!un.myshixuns_count&&tt.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),tt.createElement("span",null,un.myshixuns_count))),tt.createElement(Fe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},tt.createElement("span",null,tt.createElement("span",null,un.level))),tt.createElement("div",{className:be.rate},tt.createElement(je.Z,{allowHalf:!0,disabled:!0,defaultValue:un.score_info}),tt.createElement("span",null,"\xA0",un.score_info?`${un.score_info}\u5206`:"5\u5206")))),!Wn&&tt.createElement("div",{className:be.lockWrap},tt.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),tt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!or.length&&tt.createElement(ze.Z,null)))},lt={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},ct=$e(24065),vt=$e(59301),it=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It,onRemove:fn=()=>{},isCurrent:un=!0,showAlias:Gn=!1})=>{const Xn=Math.floor((Pn-(qt-1)*Jt)/qt),Ht=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return vt.createElement(Ce.Z,{spinning:It},vt.createElement("div",{className:we()(lt.list,nr)},!!(or!=null&&or.length)&&(or==null?void 0:or.map((kn,Wn)=>{var lr;const{name:on,id:Mn,identifier:an,featured:Sn,school_name:gn,image_url:yn,excellent:On,is_plan:Nn}=kn;return vt.createElement("div",{key:Mn,className:lt.wrap,style:{width:Xn,marginRight:(1+Wn)%qt===0?0:Jt+ln,marginBottom:Et}},vt.createElement("a",{className:lt.li,onClick:Fn=>{Fn.preventDefault(),Fn.stopPropagation(),$t&&(0,Ae.L9)([$t]),(0,Ae.xg)(`/paths/${an}`)}},vt.createElement("div",{className:lt.img},vt.createElement("img",{className:lt.cover,src:`${yn}`}),un&&(0,ct.bg)()&&(kn==null?void 0:kn.studying)&&vt.createElement("div",{className:`${lt.movebq} user-path-items`,onClick:Fn=>{Fn.stopPropagation(),fn(kn)}},vt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),vt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(lr=kn==null?void 0:kn.subject_tags)==null?void 0:lr.map((Fn,zn)=>{var xr,mn;if(zn===0){const Yr=(xr=Ht.find(Br=>Br.name==Fn))==null?void 0:xr.swimg;return vt.createElement("img",{className:lt.sign,src:Yr,style:{left:"-4px"}})}const Fr=(mn=Ht.find(Yr=>Yr.name==Fn))==null?void 0:mn.ptimg;return vt.createElement("img",{className:lt.sign,src:Fr,style:{left:`${48+52*(zn-1)+2*zn}px`}})}),vt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(kn==null?void 0:kn.excellent)&&vt.createElement("div",{className:lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),vt.createElement("div",{className:lt.name},vt.createElement(Fe.Z,{title:Gn&&(kn!=null&&kn.excellent_alias_name)?vt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${on}`,vt.createElement("br",null),vt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${kn==null?void 0:kn.excellent_alias_name}`)):on},vt.createElement("span",{className:lt.e},Gn&&(kn==null?void 0:kn.excellent_alias_name)||on))),vt.createElement(Fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${gn}`},vt.createElement("div",{className:lt.unit},vt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),gn)),vt.createElement("div",{className:lt.tags},vt.createElement("div",null,vt.createElement(Fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),vt.createElement("span",null,kn.stages_count))),vt.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),vt.createElement("span",null,kn.members_count)))))))})),!or.length&&vt.createElement(ze.Z,null)))},pt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},xt="data:image/png;base64,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",yt=$e(59301),gt=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It,handleVery:fn=()=>!0})=>{const un=Math.floor((Pn-(qt-1)*Jt)/qt);return yt.createElement(Ce.Z,{spinning:It},yt.createElement("div",{className:we()(pt.list,nr)},!!or.length&&or.map((Gn,Xn)=>{const{subject_identifier:Ht,id:kn,identifier:Wn,power:lr}=Gn,on=Gn.is_public!=0&&Gn.is_public;return yt.createElement("div",{className:pt.wrap,key:kn,style:{width:un,marginRight:(1+Xn)%qt===0?0:Jt+ln,marginBottom:Et}},yt.createElement("a",{className:pt.li,onClick:Mn=>{Mn.preventDefault(),fn(Gn==null?void 0:Gn.first_category_url)&&($t&&(0,Ae.L9)([$t]),(0,Ae.xg)(Gn.first_category_url))}},yt.createElement("div",{className:pt.top},yt.createElement(Fe.Z,{title:Gn.name},yt.createElement("div",{className:pt.name},Gn.name)),yt.createElement("img",{className:pt.img,src:ke.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),yt.createElement("div",{className:pt.text,title:Gn.creator},Gn.creator),Ht&&yt.createElement("div",{className:pt.btns},yt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),yt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),on&&yt.createElement("div",{className:pt.sign},"\u516C\u5F00")),yt.createElement("div",{className:pt.bottom},Gn.visits>0&&yt.createElement(Fe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-liulanyan"}),yt.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&yt.createElement(Fe.Z,{title:"\u6210\u5458",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&yt.createElement(Fe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?yt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):yt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&yt.createElement("div",{className:pt.lockWrap},yt.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!or.length&&yt.createElement(ze.Z,null)))},mt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Nt=$e(89070),zt=({dataSource:nr=[],value:or,onChange:qt,className:Jt,style:Et={},tabBarExtraContent:ln})=>tt.createElement("div",{className:we()(mt.tabs,Jt),style:Et},tt.createElement("div",{className:mt.tabsWrap},nr.map((Pn,$t)=>!(Pn!=null&&Pn.hide)&&tt.createElement("aside",{className:mt.tab,onClick:()=>{qt(Pn.id),Pn.link&&Nt.history.push(Pn.link)},key:$t},tt.createElement("div",{className:or===Pn.id?mt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&tt.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&tt.createElement(Fe.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},tt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",tt.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",tt.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),tt.createElement("div",{className:mt.tabBar},ln)),wt=({className:nr,style:or={},children:qt})=>tt.createElement("div",{className:we()(nr),style:or},qt),at={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ye=$e(38854),Pe=$e(20834);const Te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ze=({sortValue:nr,dropValue:or,className:qt,onSort:Jt,onDrop:Et,dataSource:ln=Te})=>{var Pn;return tt.createElement("div",{className:we()(at.orderWrap,qt)},tt.createElement(Ye.Z,{dropdownRender:()=>tt.createElement(Pe.default,null,ln.map(($t,It)=>tt.createElement(Pe.default.Item,{key:It,onClick:()=>Et($t.id)},$t.name)))},tt.createElement("span",{className:at.orderTextWrap},(Pn=ln.find($t=>or===$t.id))==null?void 0:Pn.name)),tt.createElement("span",{className:at.orderIconWrap},tt.createElement("span",{className:at.orderAsc},tt.createElement("i",{className:nr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer}`,onClick:()=>Jt(nr==="asc"?"desc":"asc")})),tt.createElement("span",{className:at.orderDesc},tt.createElement("i",{className:nr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer}`,onClick:()=>Jt(nr==="asc"?"desc":"asc")}))))},Ee={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},He=$e(3113),We=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ct=(nr,or,qt)=>or in nr?We(nr,or,{enumerable:!0,configurable:!0,writable:!0,value:qt}):nr[or]=qt,ht=(nr,or)=>{for(var qt in or||(or={}))Je.call(or,qt)&&Ct(nr,qt,or[qt]);if(Ke)for(var qt of Ke(or))dt.call(or,qt)&&Ct(nr,qt,or[qt]);return nr},Lt=(nr,or)=>{var qt={};for(var Jt in nr)Je.call(nr,Jt)&&or.indexOf(Jt)<0&&(qt[Jt]=nr[Jt]);if(nr!=null&&Ke)for(var Jt of Ke(nr))or.indexOf(Jt)<0&&dt.call(nr,Jt)&&(qt[Jt]=nr[Jt]);return qt},en=(nr,or,qt)=>new Promise((Jt,Et)=>{var ln=It=>{try{$t(qt.next(It))}catch(fn){Et(fn)}},Pn=It=>{try{$t(qt.throw(It))}catch(fn){Et(fn)}},$t=It=>It.done?Jt(It.value):Promise.resolve(It.value).then(ln,Pn);$t((qt=qt.apply(nr,or)).next())}),Kt=nr=>{var or=nr,{className:qt,style:Jt,children:Et,loading:ln=!1,openLoading:Pn,onClick:$t=()=>{},size:It="middle",shape:fn="round"}=or,un=Lt(or,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,Xn]=(0,tt.useState)(!1);return tt.createElement(He.ZP,ht({onClick:(0,Le.throttle)(Ht=>en(void 0,null,function*(){Pn&&Xn(!0);try{yield $t(Ht)}catch(kn){console.log("error",kn)}Pn&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:we()(Ee.btn,Ee[`${It}-${fn}`],qt),style:Jt,size:It,shape:fn,loading:Gn||ln},un),Et)},Ut={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ft=({className:nr,style:or,children:qt=null,onClick:Jt,title:Et})=>tt.createElement("div",{className:we()(Ut.head,nr),style:or},tt.createElement("span",{className:"primary-hover",onClick:Jt},tt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),tt.createElement("b",{title:Et},Et),tt.createElement("div",{className:Ut.node},qt)),Xt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},dn=({confirmShow:nr=!0,confirmTitle:or,confirmClick:qt,cancelShow:Jt=!0,cancelTitle:Et,cancelClick:ln,className:Pn,style:$t,confirmLoading:It=!1})=>tt.createElement("div",{className:we()(Xt.btns,Pn),style:$t},nr&&tt.createElement(He.ZP,{loading:It,onClick:qt,type:"primary",className:Xt.confirm},or),Jt&&tt.createElement(He.ZP,{onClick:ln,className:Xt.cancel},Et)),En={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ar=({className:nr,style:or={},LeftContent:qt,children:Jt,RightContent:Et})=>tt.createElement("div",{className:we()(En.fixedBottom,nr),style:or},tt.createElement("div",{className:En.wrap},tt.createElement("div",{className:En.left},qt),tt.createElement("div",{className:En.center},Jt),tt.createElement("div",{className:En.right},Et))),tr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Vn=({className:nr,style:or={},dataSource:qt=[]})=>tt.createElement("div",{className:we()(tr.crumbs,nr),style:or},qt.map((Jt,Et)=>EtNt.history.push(Jt.path)},Jt.name):tt.createElement("span",null,Jt.name),tt.createElement("span",null,"\xA0",">","\xA0")):tt.createElement("span",{key:Et,style:{color:"#5F6368"}},Jt.name))),Or=$e(31797),Dr=Object.defineProperty,Jr=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,ot=(nr,or,qt)=>or in nr?Dr(nr,or,{enumerable:!0,configurable:!0,writable:!0,value:qt}):nr[or]=qt,Ci=(nr,or)=>{for(var qt in or||(or={}))di.call(or,qt)&&ot(nr,qt,or[qt]);if(Nr)for(var qt of Nr(or))Ir.call(or,qt)&&ot(nr,qt,or[qt]);return nr},xi=(nr,or)=>Jr(nr,ni(or)),pr=(nr,or)=>{var qt={};for(var Jt in nr)di.call(nr,Jt)&&or.indexOf(Jt)<0&&(qt[Jt]=nr[Jt]);if(nr!=null&&Nr)for(var Jt of Nr(nr))or.indexOf(Jt)<0&&Ir.call(nr,Jt)&&(qt[Jt]=nr[Jt]);return qt};const{Countdown:Pr}=Or.default;var Li=nr=>{var or=nr,{onChange:qt}=or,Jt=pr(or,["onChange"]);const[Et,ln]=(0,tt.useState)(null);(0,tt.useEffect)(()=>{typeof Et=="number"&&Et>=0&&qt(Et)},[Et]);const Pn=$t=>{const It=Math.floor($t/1e3);ln(It)};return tt.createElement(Pr,xi(Ci({},Jt),{onChange:Pn}))}},58856:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});var tt=$e(59301);function Pt(oe,Ge){const De=(0,tt.useRef)();(0,tt.useEffect)(()=>{De.current=oe}),(0,tt.useEffect)(()=>{function me(){De.current()}if(Ge!==null){let ce=setInterval(me,Ge);return()=>clearInterval(ce)}},[Ge])}},19683:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Xe}});var tt=$e(59301),Pt=$e(92832),oe=$e(78241),Ge=$e(8591),De=$e(43418),me=$e(71418),ce=$e(54580),we=$e(6848),Le=$e(93948),Se=$e(5112),Oe={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},ve=$e(99064),xe=$e(955),fe=$e(81939),z=$e(1012),ee=$e(47257),ae=$e.n(ee),re=$e(56210),le=$e(85057),ue=$e(24065),pe=$e(89070),be=$e(59301),Ce=Object.defineProperty,Fe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ae=(Qe,lt,ct)=>lt in Qe?Ce(Qe,lt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Qe[lt]=ct,Be=(Qe,lt)=>{for(var ct in lt||(lt={}))je.call(lt,ct)&&Ae(Qe,ct,lt[ct]);if(Fe)for(var ct of Fe(lt))ke.call(lt,ct)&&Ae(Qe,ct,lt[ct]);return Qe},_e=(Qe,lt,ct)=>new Promise((vt,nt)=>{var it=yt=>{try{xt(ct.next(yt))}catch(ft){nt(ft)}},pt=yt=>{try{xt(ct.throw(yt))}catch(ft){nt(ft)}},xt=yt=>yt.done?vt(yt.value):Promise.resolve(yt.value).then(it,pt);xt((ct=ct.apply(Qe,lt)).next())});const et=Pt.default.TextArea,ze=({dataSetInfo:Qe,attachmentInfo:lt,visible:ct,user:vt,dispatch:nt,onClose:it=()=>{},onSuccess:pt=()=>{}})=>{var xt,yt;const[ft,gt]=(0,tt.useState)([]),[mt,Nt]=(0,tt.useState)(!1),[Tt,zt]=(0,tt.useState)(!1),[St]=oe.default.useForm(),[wt,at]=(0,tt.useState)([]),[Ye,Pe]=(0,tt.useState)({}),Te=(0,tt.useRef)([]);(0,tt.useEffect)(()=>{if(ct){if(Qe){const{title:ht,is_public:Lt,desc:en,attachments:Vt,data_set_tags:Kt}=Qe||{},Ut=Vt.map(Ft=>({id:String(Math.random()).slice(-6),name:Ft.title,response:{attachment_id:Ft.id},size:Ft.size,description:Ft.description||"",percent:100,status:"done"}));gt(Ut),at(Kt);const rn={title:ht,is_public:Lt,desc:en};St.setFieldsValue(rn)}if(lt){const ht=lt.map(Lt=>({id:String(Math.random()).slice(-6),name:Lt.title,response:{attachment_id:Lt.id},size:Lt.size,description:Lt.description||"",percent:100,status:"done"}));gt(ht)}Ve()}},[ct]),(0,tt.useEffect)(()=>{Te.current=ft},[ft]),(0,tt.useEffect)(()=>{ft!=null&&ft.length?St.setFields([{name:"attachments",errors:[]}]):St.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[ft.length]),(0,tt.useEffect)(()=>{wt!=null&&wt.length?St.setFields([{name:"tag_ids",errors:[]}]):St.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[wt.length]);const Ve=()=>_e(void 0,null,function*(){zt(!0);const ht=yield(0,ve.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});ht.status===0&&(Pe(ht==null?void 0:ht.data),zt(!1))}),Ze={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:ht=>_e(void 0,null,function*(){var Lt,en,Vt,Kt,Ut,rn;if(((Kt=(Vt=(en=(Lt=ht.name)==null?void 0:Lt.split("."))==null?void 0:en.slice(0,-1))==null?void 0:Vt.join("."))==null?void 0:Kt.length)>60)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Ye.data_set_filenames,...Te.current.map(An=>An.name)].includes(ht.name))return Ge.ZP.warning(`\u300A${ht.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Xt=ht.size/1024/1024/1024;let tn=Ye==null?void 0:Ye.data_sets_filesize;if(Te.current.forEach(An=>{tn+=An==null?void 0:An.size}),tn=tn/1024/1024/1024,(0,ue.Ny)()){if(Xt>50)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(Xt>2)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(tn+Xt>((Ut=vt==null?void 0:vt.userInfo)==null?void 0:Ut.cloud_space)&&!(Ye!=null&&Ye.current_user_no_limit))return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(rn=vt==null?void 0:vt.userInfo)==null?void 0:rn.cloud_space}GB)`),Promise.reject();const En={id:String(Math.random()).slice(-6),name:ht.name,size:ht.size,file:ht,description:"",percent:0,status:"uploading"};return We(En,{login:Ye==null?void 0:Ye.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),gt(An=>[...An,En]),Promise.reject()})},Ee=ht=>_e(void 0,null,function*(){var Lt,en,Vt;const Kt=Te.current.find(Ut=>Ut.name===ht.name);(Lt=Kt==null?void 0:Kt.response)!=null&&Lt.attachment_id&&(yield(0,ve.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(en=Kt==null?void 0:Kt.response)==null?void 0:en.attachment_id}})),Kt!=null&&Kt.client&&((Vt=Kt==null?void 0:Kt.client)==null||Vt.cancel()),gt(Ut=>Ut.filter(rn=>rn.name!==ht.name))}),He=()=>{var ht;(ht=Te.current)==null||ht.forEach(Lt=>{var en;Lt!=null&&Lt.client&&((en=Lt==null?void 0:Lt.client)==null||en.cancel())})};console.log(ft,"fileList1");const We=(ht,Lt)=>_e(void 0,null,function*(){var en,Vt,Kt,Ut,rn,Ft,Xt,tn,dn;Lt.file_name=ht.name;const En=ht.name,An=yield(0,ve.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((An==null?void 0:An.status)!==0){gt(Vn=>(Vn[Vn.findIndex(Or=>Or.name===En)].status="error",[...Vn])),Ge.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}An.data=JSON.parse((0,fe.pe)(An.data));const ar=new(ae())({endpoint:(en=An==null?void 0:An.data)==null?void 0:en.end_point,region:(Vt=An==null?void 0:An.data)==null?void 0:Vt.region,accessKeyId:(Kt=An==null?void 0:An.data)==null?void 0:Kt.access_key_id,accessKeySecret:(Ut=An==null?void 0:An.data)==null?void 0:Ut.access_key_secret,bucket:(rn=An==null?void 0:An.data)==null?void 0:rn.bucket,stsToken:(Ft=An==null?void 0:An.data)==null?void 0:Ft.security_token}),tr=ht.name.split(".");tr.pop();const Tr=Lt.realFileName?tr.join("."):(0,z.Z)();ar.multipartUpload(`datasets/${Lt==null?void 0:Lt.login}/${Tr}${En.indexOf(".")>-1?"."+En.split(".").pop():""}`,new Blob([ht.file],{type:ht.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Vn,Or,Dr)=>{console.log("\u8FDB\u5EA6",Vn,Or,Dr),gt(Jr=>{const ni=Jr.findIndex(Nr=>Nr.name===En);return Jr[ni].client=ar,Jr[ni].percent=Vn*100,Jr[ni].checkpoint=Or,[...Jr]})},checkpoint:(tn=Te.current[(Xt=Te.current)==null?void 0:Xt.findIndex(Vn=>Vn.name===En)])==null?void 0:tn.checkpoint,callback:{customValue:{id:En+""},url:(dn=An==null?void 0:An.data)==null?void 0:dn.callback_url,host:An==null?void 0:An.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ve.rz)(Lt)}}).then(function(Vn){gt(Or=>{var Dr,Jr,ni;const Nr=Or.findIndex(Ir=>Ir.name===En);let di="done";return((Dr=Vn.data)==null?void 0:Dr.status)===0?Or[Nr].response=(Jr=Vn.data)==null?void 0:Jr.data:(Ge.ZP.warning((ni=Vn.data)==null?void 0:ni.message),di="error"),Or[Nr].status=di,[...Or]})}).catch(function(Vn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Vn),(Vn==null?void 0:Vn.name)!=="cancel"&>(Or=>{const Dr=Or.findIndex(Jr=>Jr.name===En);return Or[Dr].status="error",[...Or]})})}),Ke=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/\s+/g,""),ht),Je=()=>_e(void 0,null,function*(){var ht;const Lt=St.getFieldsValue(),{title:en,is_public:Vt,desc:Kt}=Lt,Ut=[];if(Ke(en)||Ut.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),ft!=null&&ft.length||Ut.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),wt!=null&&wt.length||Ut.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),Ut.length){St.setFields(Ut);return}const rn=ft.map(tn=>{var dn;return{attachment_id:(dn=tn.response)==null?void 0:dn.attachment_id,description:tn.description}});Nt(!0);const Ft={title:Lt.title,attachments:rn,tag_ids:wt.map(tn=>tn.id),is_public:Vt,desc:Kt};let Xt;Qe?Xt=yield(0,ve.ZP)(`/api/data_sets/${Qe==null?void 0:Qe.id}.json`,{method:"put",body:Ft}):Xt=yield(0,ve.ZP)("/api/data_sets.json",{method:"post",body:Ft}),Xt.status===0&&(Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),pt((ht=Xt==null?void 0:Xt.data)==null?void 0:ht.data_set_id),nt({type:"user/getUserInfo"})),Nt(!1)}),dt=ht=>{at(ht)},Ct=ft.some(ht=>ht.status==="uploading");return console.log("fileList",ft),be.createElement(De.default,{destroyOnClose:!0,confirmLoading:mt,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:Ct},title:Qe?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(Ct){De.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{it()}});return}it()},okText:"\u786E\u5B9A",onOk:Je,open:ct,afterClose:()=>{gt([]),at([]),Nt(!1),zt(!1),He(),St.resetFields()}},be.createElement(me.Z,{spinning:Tt},!(Ye!=null&&Ye.current_user_no_limit)&&!Tt&&be.createElement("div",{className:Oe.prompt},be.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",be.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},(xt=vt==null?void 0:vt.userInfo)==null?void 0:xt.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",be.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((Ye==null?void 0:Ye.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),be.createElement(oe.default,{form:St,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},be.createElement(oe.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement(Pt.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),be.createElement(oe.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement("div",{style:{position:"relative"}},be.createElement(ce.default,Be({},Ze),be.createElement(le.op,{style:{borderRadius:2}},be.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),be.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},be.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,ue.Ny)()?50:2,"G"),be.createElement("div",null,"2.",Ye!=null&&Ye.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(yt=vt==null?void 0:vt.userInfo)==null?void 0:yt.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),be.createElement("div",{className:Oe.box},ft.map(ht=>be.createElement("div",{key:ht.id,className:Oe.row},be.createElement("div",{className:Oe.icon},ht.status==="done"&&be.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ht.status==="error"&&be.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),be.createElement("div",{style:{width:176}},be.createElement(we.Z,{title:ht==null?void 0:ht.name},be.createElement("div",{style:{color:ht.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,xe.tP)(ht==null?void 0:ht.name,9))),ht.status==="uploading"&&be.createElement(Le.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ht.percent,showInfo:!1,size:[168,4]})),be.createElement("i",{onClick:()=>Ee(ht),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),be.createElement(Pt.default,{value:ht.description,onChange:Lt=>{gt(en=>{const Vt=en.findIndex(Kt=>Kt.name===ht.name);return en[Vt].description=Lt.target.value,[...en]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),be.createElement(oe.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement(re.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:dt,tags:wt})),be.createElement(oe.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},be.createElement(Se.ZP.Group,null,be.createElement(Se.ZP,{value:1},"\u662F"),be.createElement(Se.ZP,{value:0},"\u5426"))),be.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),be.createElement(oe.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},be.createElement(et,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Xe=(0,pe.connect)(({user:Qe,dispatch:lt})=>({user:Qe,dispatch:lt}))(ze)},437:function(Rn,wn,$e){"use strict";$e.r(wn),$e.d(wn,{default:function(){return xi}});var tt=$e(59301),Pt=$e(89070),oe=$e(71418),Ge=$e(66104),De=$e(6848),me=$e(43418),ce=$e(24905),we=$e(8591),Le=$e(38854),Se=$e(5112),Oe=$e(1710),ve={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},xe=$e(3294),fe={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},z=$e(12290),ee=$e(85149),ae=$e(78241),re=$e(92832),le=$e(54580),ue=$e(93948),pe=$e(37904),be=$e(61186),Ce=$e.n(be),Fe=$e(955),je=$e(1643),ke=$e(99064),Ae=$e(47257),Be=$e.n(Ae),_e=$e(81939),et=$e(1012),ze=$e(24065),Xe=$e(59301),Qe=Object.defineProperty,lt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pt=(pr,Pr,Ar)=>Pr in pr?Qe(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,xt=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))nt.call(Pr,Ar)&&pt(pr,Ar,Pr[Ar]);if(vt)for(var Ar of vt(Pr))it.call(Pr,Ar)&&pt(pr,Ar,Pr[Ar]);return pr},yt=(pr,Pr)=>lt(pr,ct(Pr)),ft=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});const gt=({polls:pr,globalSetting:Pr,loading:Ar,dispatch:Li,user:nr,dataSetInfo:or,indexType:qt,getInfo:Jt})=>{const Et=(0,Pt.useParams)(),[ln,Pn]=(0,tt.useState)(!1),[$t,It]=(0,tt.useState)(0),fn=(0,tt.useRef)(null),un=(0,tt.useRef)(null),[Gn,Xn]=(0,tt.useState)(""),[Ht,kn]=(0,tt.useState)(""),[Wn]=ae.default.useForm(),[lr,on]=(0,tt.useState)([]),Mn=(0,tt.useRef)([]),[an,Sn]=(0,tt.useState)(!1),[gn,yn]=(0,tt.useState)(!1),[On,Nn]=(0,tt.useState)(""),Fn=lr.some(ur=>ur.status==="uploading"),[zn,xr]=(0,tt.useState)(!1),[mn,Fr]=(0,tt.useState)([]),[Yr,Br]=(0,tt.useState)(!1),[bn,Jn]=(0,tt.useState)(0),[sr,Sr]=(0,tt.useState)({page:1,limit:10,type:"",id:""}),mr=(ur,vn)=>ft(void 0,null,function*(){Br(!0);const cr=yield(0,pe.iw)({container_type:ur||(sr==null?void 0:sr.type),container_id:vn||(sr==null?void 0:sr.id),page:sr.page,limit:sr.limit});Fr(cr==null?void 0:cr.data),Jn(cr==null?void 0:cr.total_count),Br(!1)});(0,tt.useEffect)(()=>{var ur;((ur=fn==null?void 0:fn.current)==null?void 0:ur.clientHeight)>80?It(1):It(0)},[Gn]),(0,tt.useEffect)(()=>{Mn.current=lr},[lr]),(0,tt.useEffect)(()=>{Xn(or==null?void 0:or.introduce),kn(or==null?void 0:or.introduce)},[or==null?void 0:or.introduce]);const $r={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:lr==null?void 0:lr.map(ur=>ur.file),beforeUpload:ur=>ft(void 0,null,function*(){var vn,cr,xn,zr,$i;if(((zr=(xn=(cr=(vn=ur.name)==null?void 0:vn.split("."))==null?void 0:cr.slice(0,-1))==null?void 0:xn.join("."))==null?void 0:zr.length)>60)return we.ZP.warning(`\u300A${ur.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Mn.current.map(Wr=>Wr.name)].includes(ur.name))return we.ZP.warning(`\u300A${ur.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(ur.size/1024/1024/1024>2)return we.ZP.warning(`\u300A${ur.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const no={id:String(Math.random()).slice(-6),name:ur.name,size:ur.size,file:ur,description:"",percent:0,status:"uploading"};return br(no,{login:($i=nr==null?void 0:nr.userInfo)==null?void 0:$i.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),on(Wr=>[...Wr,no]),Promise.reject()})},ri=ur=>ft(void 0,null,function*(){var vn,cr,xn;const zr=Mn.current.find($i=>$i.name===ur.name);(vn=zr==null?void 0:zr.response)!=null&&vn.attachment_id&&(yield(0,ke.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(cr=zr==null?void 0:zr.response)==null?void 0:cr.attachment_id}})),zr!=null&&zr.client&&((xn=zr==null?void 0:zr.client)==null||xn.cancel()),on($i=>$i.filter(Mi=>Mi.name!==ur.name))}),Rr=()=>{var ur;(ur=Mn.current)==null||ur.forEach(vn=>{var cr;vn!=null&&vn.client&&((cr=vn==null?void 0:vn.client)==null||cr.cancel())})},br=(ur,vn)=>ft(void 0,null,function*(){var cr,xn,zr,$i,Mi,yo,no,Wr,Hr;vn.file_name=ur.name;const wi=ur.name,vi=yield(0,ke.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((vi==null?void 0:vi.status)!==0){on(Ki=>(Ki[Ki.findIndex(gi=>gi.name===wi)].status="error",[...Ki])),we.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}vi.data=JSON.parse((0,_e.pe)(vi.data));const fr=new(Be())({endpoint:(cr=vi==null?void 0:vi.data)==null?void 0:cr.end_point,region:(xn=vi==null?void 0:vi.data)==null?void 0:xn.region,accessKeyId:(zr=vi==null?void 0:vi.data)==null?void 0:zr.access_key_id,accessKeySecret:($i=vi==null?void 0:vi.data)==null?void 0:$i.access_key_secret,bucket:(Mi=vi==null?void 0:vi.data)==null?void 0:Mi.bucket,stsToken:(yo=vi==null?void 0:vi.data)==null?void 0:yo.security_token}),kt=ur.name.split(".");kt.pop();const Fi=vn.realFileName?kt.join("."):(0,et.Z)();fr.multipartUpload(`datasets/${vn==null?void 0:vn.login}/${Fi}${wi.indexOf(".")>-1?"."+wi.split(".").pop():""}`,new Blob([ur.file],{type:ur.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ki,gi,oo)=>{console.log("\u8FDB\u5EA6",Ki,gi,oo),console.log("client--",fr),on(So=>{const Qr=So.findIndex(ii=>ii.name===wi);return Qr!==-1&&(So[Qr].client=fr,So[Qr].percent=Ki*100,So[Qr].checkpoint=gi),[...So]})},checkpoint:(Wr=Mn.current[(no=Mn.current)==null?void 0:no.findIndex(Ki=>Ki.name===wi)])==null?void 0:Wr.checkpoint,callback:{customValue:{id:wi+""},url:(Hr=vi==null?void 0:vi.data)==null?void 0:Hr.callback_url,host:vi==null?void 0:vi.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ke.rz)(vn)}}).then(function(Ki){on(gi=>{var oo,So,Qr;const ii=gi.findIndex(Pi=>Pi.name===wi);let Oi="done";return ii!==-1&&(((oo=Ki.data)==null?void 0:oo.status)===0?gi[ii].response=(So=Ki.data)==null?void 0:So.data:(we.ZP.warning((Qr=Ki.data)==null?void 0:Qr.message),Oi="error"),gi[ii].status=Oi),[...gi]})}).catch(function(Ki){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Ki),(Ki==null?void 0:Ki.name)!=="cancel"&&on(gi=>{const oo=gi.findIndex(So=>So.name===wi);return oo!==-1&&(gi[oo].status="error"),[...gi]})})});return Xe.createElement("div",{className:fe.content},!ln&&!Gn&&qt&&Xe.createElement("div",{className:fe.introduceNoData,onClick:()=>{Pn(!0)}},Xe.createElement("div",{className:fe.introduceAdd},Xe.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),Xe.createElement("div",{className:fe.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!ln&&Gn&&Xe.createElement("div",{className:fe.introduceContent},Xe.createElement("div",{className:fe.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",qt&&Xe.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Pn(!0)}})),Xe.createElement("div",{className:fe.introContentWrap},Xe.createElement("div",null,Xe.createElement("div",{ref:un,style:$t>0?{height:$t===1?80:"auto",overflow:$t===1?"hidden":"auto"}:{paddingRight:0}},Xe.createElement("div",{ref:fn},Xe.createElement(ee.Z,{value:Gn,style:{fontSize:"14px"}}))),!!$t&&Xe.createElement(tt.Fragment,null,$t===1?Xe.createElement("div",{onClick:()=>{It(2)},className:fe.action},"\u5C55\u5F00",Xe.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):Xe.createElement("div",{onClick:()=>{It(1)},className:fe.action},"\u6536\u8D77",Xe.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),ln&&Xe.createElement("div",{style:{marginTop:"30px"}},Xe.createElement(z.Z,{watch:!0,onChange:ur=>{kn(ur)},defaultValue:Ht,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),Xe.createElement("div",{className:fe.introduceButton},Xe.createElement("div",{className:fe.close,onClick:ur=>{ur.stopPropagation(),Pn(!1)}},"\u53D6\u6D88"),Xe.createElement("div",{className:fe.submit,onClick:ur=>{ur.stopPropagation(),(0,pe.R2)({id:Et==null?void 0:Et.id,introduce:Ht}).then(vn=>{(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Pn(!1),Jt(!0))})}},"\u786E\u8BA4"))),Xe.createElement("div",{className:fe.fileTable},Xe.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),qt&&Xe.createElement("div",{className:fe.addBtn,onClick:()=>{Sn(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),Xe.createElement(Oe.default,{dataSource:or==null?void 0:or.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:ur=>Xe.createElement("span",{style:{color:"#666666"}},ur?Ce()(ur).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(ur,vn)=>Xe.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){var cr;((0,ze.Ny)()||((cr=nr==null?void 0:nr.userInfo)==null?void 0:cr.login)==="mfflo3p2e")&&(xr(!0),sr.type=vn==null?void 0:vn.container_type,sr.id=vn==null?void 0:vn.container_id,sr.page=1,sr.limit=10,Sr(xt({},sr)),yield mr(vn==null?void 0:vn.container_type,vn==null?void 0:vn.container_id))})},ur||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:qt?130:60,render:(ur,vn,cr)=>Xe.createElement("span",{style:{color:"#3061D0"}},Xe.createElement("div",{style:{display:"flex"}},Xe.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){yield(0,Fe.Nd)(vn.title,vn==null?void 0:vn.download_url),yield(0,pe.SG)({id:vn==null?void 0:vn.id}),Jt()})},"\u4E0B\u8F7D"),qt&&Xe.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var xn,zr,$i,Mi;let yo=(zr=vn==null?void 0:vn.title)==null?void 0:zr.substring(((xn=vn==null?void 0:vn.title)==null?void 0:xn.lastIndexOf("."))+1);Wn.setFieldsValue({title:(Mi=vn==null?void 0:vn.title)==null?void 0:Mi.substring(0,($i=vn==null?void 0:vn.title)==null?void 0:$i.lastIndexOf(".")),description:vn==null?void 0:vn.description}),me.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:Xe.createElement("div",null,Xe.createElement(ae.default,{form:Wn,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},Xe.createElement(ae.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},Xe.createElement(re.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:Xe.createElement("span",null,".",yo)})),Xe.createElement(ae.default.Item,{label:"\u5907\u6CE8",name:"description"},Xe.createElement(je.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>ft(void 0,null,function*(){yield Wn.validateFields(),(0,pe.A0)({id:Et==null?void 0:Et.id,attachment_id:vn.id,filename:Wn.getFieldValue("title")+"."+yo,description:Wn.getFieldValue("description")}).then(no=>{(no==null?void 0:no.status)==0&&(we.ZP.success("\u7F16\u8F91\u6210\u529F"),Jt())})})})}},"\u7F16\u8F91"),qt&&Xe.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{me.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>ft(void 0,null,function*(){(0,pe.Il)({attachment_id:vn==null?void 0:vn.id}).then(xn=>{(xn==null?void 0:xn.status)==0&&(we.ZP.success("\u5220\u9664\u6210\u529F"),Li({type:"user/getUserInfo"}),Jt(!0))})})})}},"\u5220\u9664")))}]}),Xe.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:an,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:gn,disabled:Fn},width:"1000px",onOk:()=>ft(void 0,null,function*(){const ur=lr.map(cr=>{var xn;return{attachment_id:(xn=cr.response)==null?void 0:xn.attachment_id,description:On}});if(lr.length===0){we.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}yn(!0);const vn=yield(0,ke.ZP)(`/api/data_sets/${Et==null?void 0:Et.id}/upload_attachments.json`,{method:"post",body:{attachments:ur}});(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Jt(),Sn(!1),Li({type:"user/getUserInfo"})),yn(!1)}),onCancel:()=>{if(Fn){me.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Sn(!1)}});return}Sn(!1)},afterClose:()=>{on([]),Nn(""),yn(!1),Rr()}},Xe.createElement("div",{className:fe.wrap},Xe.createElement("div",{className:"mb10"},Xe.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",Xe.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),Xe.createElement("div",null,Xe.createElement(le.default.Dragger,yt(xt({},$r),{height:300}),Xe.createElement("div",null,Xe.createElement("i",{className:`iconfont icon-shangchuan font50 ${fe.colorBlue}`})),Xe.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",Xe.createElement("span",{className:`${fe.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),Xe.createElement("div",{className:fe.box},lr.map(ur=>Xe.createElement("div",{key:ur.id,className:fe.row},Xe.createElement("div",{style:{display:"flex",alignItems:"center"}},Xe.createElement("div",{className:fe.icon},ur.status==="done"&&Xe.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ur.status==="error"&&Xe.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Xe.createElement("div",{style:{flex:1}},Xe.createElement(De.Z,{title:ur==null?void 0:ur.name},Xe.createElement("div",{style:{width:"100%",color:ur.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Fe.tP)(ur==null?void 0:ur.name,9))),ur.status==="uploading"&&Xe.createElement(ue.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ur.percent,showInfo:!1,style:{width:"900px"}}))),Xe.createElement("i",{onClick:()=>ri(ur),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),Xe.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),Xe.createElement("div",null,Xe.createElement(re.default,{allowClear:!0,value:On,onChange:ur=>{Nn(ur.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),Xe.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:zn,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{xr(!1)},footer:null},Xe.createElement("div",null,Xe.createElement(Oe.default,{dataSource:mn,scroll:{y:47*6},className:"mt10 mb10",loading:Yr,pagination:{total:bn||0,onChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=ur,sr.limit=vn,Sr(xt({},sr)),yield mr()}),onShowSizeChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=1,sr.limit=vn,Sr(xt({},sr)),yield mr()}),current:sr==null?void 0:sr.page,pageSize:sr==null?void 0:sr.limit,showTotal:ur=>Xe.createElement(Xe.Fragment,null,"\u5171",Xe.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},ur),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:ur=>Xe.createElement("span",{style:{color:"#666666"}},ur?Ce()(ur).format("YYYY-MM-DD"):"--")}]}))))};var mt=(0,Pt.connect)(({polls:pr,loading:Pr,user:Ar,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:Ar,loading:Pr.effects}))(gt),Nt=$e(26227),Tt=$e(95237),zt=$e(43604),St=$e(3113),wt={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},at=$e(67508),Ye=$e(59301),Pe=Object.defineProperty,Te=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(pr,Pr,Ar)=>Pr in pr?Pe(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,Ke=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))Ee.call(Pr,Ar)&&We(pr,Ar,Pr[Ar]);if(Ze)for(var Ar of Ze(Pr))He.call(Pr,Ar)&&We(pr,Ar,Pr[Ar]);return pr},Je=(pr,Pr)=>Te(pr,Ve(Pr)),dt=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});Ce().locale("ZH-cn");function Ct({user:pr,vlist:Pr=[],dispatch:Ar,params:Li,id:nr,memo_replies:or,forumsDetail:qt}){return Ye.createElement("aside",{className:wt.comment},Pr.map(function(Jt,Et){var ln,Pn;return Ye.createElement(Tt.Z,{key:Et,className:wt.commentItem},Ye.createElement(zt.Z,{span:24},Ye.createElement(Tt.Z,null,Ye.createElement(zt.Z,{flex:"1"},Ye.createElement("a",{href:`/users/${Jt.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Jt==null?void 0:Jt.username),Ye.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Jt.time)),(Jt.can_delete||Jt.user_id===((ln=pr.userInfo)==null?void 0:ln.user_id)||Jt.user_login===((Pn=pr.userInfo)==null?void 0:Pn.login))&&Ye.createElement(zt.Z,{className:"forums-comment-delete",style:{display:"none"}},Ye.createElement(De.Z,{title:"\u5220\u9664"},Ye.createElement(Nt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ye.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>dt(this,null,function*(){const $t=yield(0,at.sW)({id:Jt.id,memo_type:"data_set"}),It=or.find(fn=>fn.id===nr).children.filter(fn=>fn.id!==Jt.id);or.find(fn=>fn.id===nr).children=It,Ar({type:"forumsDetail/setForumsDetailData",payload:Je(Ke({},qt.forumsDetailData),{memo_replies:[...or],memo_type:"data_set"})})})})}}))))),Ye.createElement(zt.Z,null,Ye.createElement(ee.Z,{value:Jt.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var ht=Ct,Lt=$e(59301),en=Object.defineProperty,Vt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Xt=(pr,Pr,Ar)=>Pr in pr?en(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,tn=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))rn.call(Pr,Ar)&&Xt(pr,Ar,Pr[Ar]);if(Ut)for(var Ar of Ut(Pr))Ft.call(Pr,Ar)&&Xt(pr,Ar,Pr[Ar]);return pr},dn=(pr,Pr)=>Vt(pr,Kt(Pr)),En=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});Ce().locale("ZH-cn");const An=({user:pr,forumsDetail:Pr,globalSetting:Ar,loading:Li,dispatch:nr,handleClick:or,memoId:qt},Jt)=>{const{memo:Et,memo_replies:ln}=Pr.forumsDetailData||{},Pn=(0,Pt.useParams)(),[$t,It]=(0,tt.useState)(""),[fn,un]=(0,tt.useState)(""),[Gn,Xn]=(0,tt.useState)(-1),[Ht,kn]=(0,tt.useState)(!1),[Wn,lr]=(0,tt.useState)(!1),[on,Mn]=(0,tt.useState)(1);(0,tt.useEffect)(()=>{kn((Et==null?void 0:Et.reply_for_memo_count)>10)},[Et==null?void 0:Et.reply_for_memo_count]),(0,tt.useEffect)(()=>{nr({type:"forumsDetail/getForumsDetailData",payload:{id:qt,memo_type:"data_set"}})},[]);const an=()=>En(void 0,null,function*(){var gn;const yn=on+1;Mn(yn);const On=yield(0,at.z5)({id:qt,page:yn,memo_type:"data_set"});On!=null&&On.memo_replies&&(nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...ln,...On.memo_replies]})}),kn(((gn=On.memo_replies)==null?void 0:gn.length)===10))}),Sn=gn=>{var yn,On,Nn,Fn;return dn(tn({},gn),{image_url:(yn=pr.userInfo)==null?void 0:yn.image_url,children:[],user_id:(On=pr.userInfo)==null?void 0:On.user_id,user_login:(Nn=pr.userInfo)==null?void 0:Nn.login,username:(Fn=pr.userInfo)==null?void 0:Fn.username,time:`${(0,Fe.li)((new Date().getTime()-new Date(gn.created_at).getTime())/1e3)}\u524D`})};return Lt.createElement("section",{className:wt.wrap},!!(ln!=null&&ln.length)&&Lt.createElement("aside",{className:wt.content},Lt.createElement("aside",{className:wt.replyList},ln==null?void 0:ln.map(function(gn,yn){var On,Nn,Fn;return Lt.createElement(Tt.Z,{gutter:[12,12],key:yn},Lt.createElement(zt.Z,{flex:"40px"},Lt.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Lt.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${xe.Z.IMG_SERVER}/images/${gn==null?void 0:gn.image_url}`}))),Lt.createElement(zt.Z,{flex:"1"},Lt.createElement(Tt.Z,{align:"middle",className:wt.commentParItem},Lt.createElement(zt.Z,{span:24},Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{flex:"1"},Lt.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Lt.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},gn==null?void 0:gn.username)),Lt.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},gn.time)),(gn.can_delete||gn.user_id===((On=pr.userInfo)==null?void 0:On.user_id)||gn.user_login===((Nn=pr.userInfo)==null?void 0:Nn.login))&&Lt.createElement(zt.Z,{className:"forums-comment-par-delete",style:{display:"none"}},Lt.createElement(De.Z,{title:"\u5220\u9664"},Lt.createElement(Nt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Lt.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>En(this,null,function*(){const zn=yield(0,at.sW)({id:gn.id,memo_type:"data_set"}),xr=ln.filter(mn=>mn.id!==gn.id);nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...xr],memo_type:"data_set"})})})})}}))))),Lt.createElement(zt.Z,{span:24,style:{marginTop:"5px"}},Lt.createElement("div",{onClick:or},Lt.createElement(ee.Z,{value:gn.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Fn=gn==null?void 0:gn.children)!=null&&Fn.length)&&Lt.createElement(ht,{user:pr,id:gn==null?void 0:gn.id,vlist:gn==null?void 0:gn.children,dispatch:nr,params:Pn,memo_replies:ln,forumsDetail:Pr}),Lt.createElement(zt.Z,{span:24,className:"mt5 c-light-black"},Gn===yn?Lt.createElement("aside",null,Lt.createElement(z.Z,{onChange:zn=>{un(zn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{span:24,className:"tr"},Lt.createElement(St.ZP,{type:"primary",size:"middle",onClick:()=>En(this,null,function*(){if(fn==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const zn=yield(0,at.ts)({parent_id:gn.id,content:fn,memo_type:"data_set"});un(null),zn&&(Xn(-1),ln.find(xr=>xr.id===zn.parent_id).children.push(Sn(zn)),nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo:dn(tn({},Et),{reply_for_memo_count:(Et==null?void 0:Et.reply_for_memo_count)+1}),memo_replies:[...ln],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):Lt.createElement("div",{className:"tr",style:{textAlign:"left"}},Lt.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Xn(yn)}),Lt.createElement(De.Z,{title:gn.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},Lt.createElement("span",{className:gn.user_praise?"c-orange":"c-gery-888"},Lt.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>En(this,null,function*(){const zn=yield(0,at.vL)({id:gn.id,container_type:"Memo",type:gn.user_praise?0:1,memo_type:"data_set"});(zn==null?void 0:zn.praise_count)>=0&&(ln.find(xr=>xr.id===gn.id).user_praise=!gn.user_praise,ln.find(xr=>xr.id===gn.id).praise_count=zn==null?void 0:zn.praise_count,nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...ln],memo_type:"data_set"})}))})}),gn.praise_count>0?gn.praise_count:"")))))))}))),Ht&&Lt.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},Lt.createElement(Tt.Z,{justify:"space-between"},Lt.createElement(zt.Z,null),Lt.createElement(zt.Z,null,Ht&&Lt.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:an},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",Lt.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),Lt.createElement("aside",{className:wt.reply},Lt.createElement(z.Z,{onBlur:()=>lr(!1),isFocus:Wn,defaultValue:$t,id:"writeForumsReviewId",onChange:gn=>{It(gn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{flex:"1"}),Lt.createElement(zt.Z,null,Lt.createElement("div",{className:wt.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>En(void 0,null,function*(){if($t==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const gn=yield(0,at.ts)({parent_id:Et==null?void 0:Et.id,content:$t,memo_type:"data_set"});It(null),gn&&nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo:dn(tn({},Et),{reply_for_memo_count:(Et==null?void 0:Et.reply_for_memo_count)+1}),memo_replies:[Sn(gn),...ln],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var ar=(0,Pt.connect)(({user:pr,forumsDetail:Pr,loading:Ar,globalSetting:Li})=>({user:pr,forumsDetail:Pr,globalSetting:Li,loading:Ar.models.forumsDetail}),null,null,{forwardRef:!0})((0,tt.forwardRef)(An)),tr=$e(85057),Tr=$e(19683),Vn=$e(59301),Or=Object.defineProperty,Dr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Nr=(pr,Pr,Ar)=>Pr in pr?Or(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,di=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))Jr.call(Pr,Ar)&&Nr(pr,Ar,Pr[Ar]);if(Dr)for(var Ar of Dr(Pr))ni.call(Pr,Ar)&&Nr(pr,Ar,Pr[Ar]);return pr},Ir=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});let ot={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const Ci=({polls:pr,globalSetting:Pr,loading:Ar,dispatch:Li,user:nr})=>{var or,qt,Jt;const Et=(0,Pt.useParams)(),[ln]=(0,Pt.useSearchParams)(),[Pn,$t]=(0,tt.useState)(!1),[It,fn]=(0,tt.useState)(1),[un,Gn]=(0,tt.useState)(null),[Xn,Ht]=(0,tt.useState)(""),[kn,Wn]=(0,tt.useState)(),[lr,on]=(0,tt.useState)(1),[Mn,an]=(0,tt.useState)(1),Sn=(0,tt.useRef)([]),[gn,yn]=(0,tt.useState)([]),[On,Nn]=(0,tt.useState)(!1),[Fn,zn]=(0,tt.useState)(!1),[xr,mn]=(0,tt.useState)(!1),[Fr,Yr]=(0,tt.useState)([]),[Br,bn]=(0,tt.useState)(!1),[Jn,sr]=(0,tt.useState)(0),[Sr,mr]=(0,tt.useState)({page:1,limit:10}),$r=()=>Ir(void 0,null,function*(){bn(!0);const cr=yield(0,pe.iw)({container_type:un==null?void 0:un.container_type,container_id:un==null?void 0:un.container_id,page:Sr==null?void 0:Sr.page,limit:Sr==null?void 0:Sr.limit});(cr==null?void 0:cr.status)==0&&(Yr(cr==null?void 0:cr.data),sr(cr==null?void 0:cr.total_count),bn(!1))});(0,tt.useEffect)(()=>{br(),(0,ke.ZP)("/api/teach_group_shares.json",{method:"get"}).then(cr=>{(cr==null?void 0:cr.status)==0&&yn(cr==null?void 0:cr.groups)})},[]),(0,tt.useEffect)(()=>{It==2&&Rr()},[It,lr]);const ri=(cr,xn)=>(cr=Math.max(cr,0),xn=Math.max(xn,1),Math.ceil(cr/xn)),Rr=()=>{(0,pe.Ce)({id:Et==null?void 0:Et.id,page:lr,limit:16}).then(cr=>{var xn,zr;(cr==null?void 0:cr.status)==0&&(Wn((xn=cr==null?void 0:cr.data)==null?void 0:xn.shixuns),an(ri((zr=cr==null?void 0:cr.data)==null?void 0:zr.count,16)))})},br=(cr=!1)=>{zn(!0),(0,pe.Ru)(Et==null?void 0:Et.id).then(xn=>{var zr,$i;(xn==null?void 0:xn.status)==0&&(Gn(xn==null?void 0:xn.data),$t((0,ze.Ny)()||((zr=xn==null?void 0:xn.data)==null?void 0:zr.is_creator)),Sn.current=($i=xn==null?void 0:xn.data)==null?void 0:$i.share_group_ids,cr&&Ht(new Date),zn(!1))})},ur=()=>{Nn(!1)},vn=()=>{br(),Nn(!1)};return Vn.createElement(oe.Z,{spinning:Fn},Vn.createElement("section",{className:ve.bg},un&&Vn.createElement(Vn.Fragment,null,Vn.createElement("div",{className:"edu-container"},Vn.createElement("aside",{className:"mt10"},Vn.createElement(Ge.Z,{separator:">"},Vn.createElement(Ge.Z.Item,null,Vn.createElement(Pt.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Vn.createElement(Ge.Z.Item,null,Vn.createElement(Pt.Link,{to:`/dataset?tabId=${ln.get("tabId")}`},ot[ln.get("tabId")])),Vn.createElement(Ge.Z.Item,null,un==null?void 0:un.title))),Vn.createElement("aside",{className:ve.wrap},Vn.createElement("div",{className:ve.leftContent,style:{width:Pn?"78%":"87%"}},Vn.createElement("div",{className:ve.header},Vn.createElement("div",{className:ve.headerBack,onClick:()=>{Pt.history.push(`/dataset?tabId=${ln.get("tabId")}`)}},Vn.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),Vn.createElement("div",{className:ve.title},un==null?void 0:un.title),Vn.createElement("div",{className:ve.time},un==null?void 0:un.create_at)),Vn.createElement("div",{className:ve.introduction},un==null?void 0:un.desc),Vn.createElement("div",{className:ve.bottom},((or=un==null?void 0:un.user_info)==null?void 0:or.image_url)&&Vn.createElement("img",{className:ve.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${xe.Z.IMG_SERVER}/images/${(qt=un==null?void 0:un.user_info)==null?void 0:qt.image_url}`}),Vn.createElement("div",{className:ve.user_name},un==null?void 0:un.user_info_name),(Jt=un==null?void 0:un.data_set_tags)==null?void 0:Jt.map((cr,xn)=>{var zr;return xn<3?Vn.createElement("div",{key:xn,className:ve.tags_name},cr==null?void 0:cr.tag_name):xn==3?Vn.createElement(De.Z,{key:xn,title:(zr=un==null?void 0:un.data_set_tags)==null?void 0:zr.map(($i,Mi)=>{var yo;if(Mi>2)return($i==null?void 0:$i.tag_name)+(Mi===((yo=un==null?void 0:un.data_set_tags)==null?void 0:yo.length)-1?"":"\u3001")}).join("")},Vn.createElement("div",{key:xn,className:ve.tags_name},"...")):null}),Vn.createElement("div",{className:ve.buttonList},Vn.createElement(De.Z,{title:`\u5F15\u7528\u6570\uFF1A${un==null?void 0:un.used_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`},Vn.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),un==null?void 0:un.used_count)),Vn.createElement(De.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${un==null?void 0:un.visited_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`,onClick:()=>Ir(void 0,null,function*(){var cr;((0,ze.Ny)()||((cr=nr==null?void 0:nr.userInfo)==null?void 0:cr.login)==="mfflo3p2e")&&(mn(!0),Sr.page=1,Sr.limit=10,mr(di({},Sr)),yield $r())})},Vn.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),un==null?void 0:un.visited_count)),Vn.createElement(De.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${un==null?void 0:un.comment_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`},Vn.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),un==null?void 0:un.comment_count))))),Vn.createElement("div",{className:ve.rightContent,style:{width:Pn?"22%":"13%"}},Pn?Vn.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Vn.createElement("div",{className:ve.share,onClick:()=>Ir(void 0,null,function*(){me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:Vn.createElement("div",{className:`font14 ${ve.overflow}`},Vn.createElement("div",{className:ve.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),Vn.createElement(ce.default.Group,{style:{marginTop:"10px"},defaultValue:un==null?void 0:un.share_group_ids,onChange:cr=>{Sn.current=cr}},gn==null?void 0:gn.map(cr=>Vn.createElement(ce.default,{key:cr==null?void 0:cr.group_id,value:cr==null?void 0:cr.group_id},cr==null?void 0:cr.name)))),onOk:()=>{(0,pe.l5)({ids:[un==null?void 0:un.id],clazz:"DataSet",group_ids:Sn.current}).then(cr=>{(cr==null?void 0:cr.status)==0&&(we.ZP.success("\u5171\u4EAB\u6210\u529F"),br())})}})})},"\u5171\u4EAB"),Vn.createElement("div",{className:ve.publicStyle,onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(un==null?void 0:un.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(un==null?void 0:un.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>Ir(void 0,null,function*(){let cr;switch(un==null?void 0:un.public_status){case 0:cr=(0,pe.To)(un==null?void 0:un.id);break;case 1:cr=(0,pe.a6)(un==null?void 0:un.id);break;case 2:cr=(0,pe.Dx)(un==null?void 0:un.id);break;default:return}cr.then(xn=>{(xn==null?void 0:xn.status)===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),br())})})})}},(un==null?void 0:un.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(un==null?void 0:un.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Vn.createElement(Le.Z,{menu:{items:[{label:Vn.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{Nn(!0)}},{label:Vn.createElement("div",{onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return Ir(this,null,function*(){(0,pe.pP)(un==null?void 0:un.id).then(cr=>{(cr==null?void 0:cr.status)==0&&(we.ZP.success("\u5220\u9664\u6210\u529F"),Pt.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},Vn.createElement("div",{className:ve.more},Vn.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):Vn.createElement("div",{className:un!=null&&un.current_user_is_collect?ve.collectActiveStyle:ve.collectStyle,onClick:()=>{let cr;un!=null&&un.current_user_is_collect?cr=(0,pe.R9)({container_id:un==null?void 0:un.id,container_type:"DataSet"}):cr=(0,pe.nW)({container_id:un==null?void 0:un.id,container_type:"DataSet"}),cr.then(xn=>{(xn==null?void 0:xn.status)===0&&br()})}},Vn.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",un==null?void 0:un.collect_count))),Vn.createElement("div",{className:ve.content},Vn.createElement("div",{style:{display:"flex",alignItems:"center"}},Vn.createElement(Se.ZP.Group,{className:ve.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:cr=>{var xn;fn((xn=cr==null?void 0:cr.target)==null?void 0:xn.value)},value:It}),Vn.createElement("div",{className:ve.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${Et==null?void 0:Et.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),It==1&&Vn.createElement(mt,{dataSetInfo:un,getInfo:br,key:Xn,indexType:Pn}),It==2&&Vn.createElement("div",null,Vn.createElement("div",{className:ve.shixunTooltip},Vn.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),Vn.createElement(tr.wb,{dataSource:kn,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),Mn>1&&Vn.createElement("div",{className:ve.pageStyle},Vn.createElement("div",{className:lr==1?ve.pageUnCan:ve.pageCan,style:{marginRight:"10px"},onClick:()=>{lr>1&&on(lr-1)}},"\u4E0A\u4E00\u9875"),Vn.createElement("div",{className:lr==Mn?ve.pageUnCan:ve.pageCan,style:{marginLeft:"10px"},onClick:()=>{lr{mn(!1)},footer:null},Vn.createElement("div",null,Vn.createElement(Oe.default,{dataSource:Fr,loading:Br,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:Jn||0,onChange:(cr,xn)=>{Sr.page=cr,Sr.limit=xn,mr(di({},Sr)),$r()},current:Sr==null?void 0:Sr.page,pageSize:Sr==null?void 0:Sr.limit,showTotal:cr=>Vn.createElement(Vn.Fragment,null,"\u5171",Vn.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},cr),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:cr=>Vn.createElement("span",{style:{color:"#666666"}},cr?Ce()(cr).format("YYYY-MM-DD"):"--")}]})))))};var xi=(0,Pt.connect)(({polls:pr,loading:Pr,user:Ar,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:Ar,loading:Pr.effects}))(Ci)},56210:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Oe}});var tt=$e(59301),Pt=$e(89070),oe=$e(57809),Ge=$e(71418),De=$e(8591),me={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},ce=$e(37904),we=$e(59301),Le=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())});const Se=({user:ve,width:xe,selectWidth:fe,tags:z,getDataSet:ee,placeholder:ae="\u5168\u90E8\u6807\u7B7E",isTagsValue:re=!1})=>{const[le,ue]=(0,tt.useState)([]),[pe,be]=(0,tt.useState)([]),[Ce,Fe]=(0,tt.useState)(!1),je=(0,tt.useRef)(null);(0,tt.useEffect)(()=>{ke()},[]);const ke=()=>Le(void 0,null,function*(){Fe(!0),yield(0,ce.bj)({}).then(Be=>{(Be==null?void 0:Be.status)==0&&ue(Be==null?void 0:Be.data)}),Fe(!1)}),Ae=z==null?void 0:z.map(Be=>Be.tag_name).join("\u3001");return we.createElement(oe.default,{onFocus:()=>{be(z)},ref:je,style:{width:fe?fe+"px":300},placeholder:(z==null?void 0:z.length)>0?re?we.createElement("span",{className:"c-grey-333"},Ae):`\u5DF2\u9009\u4E2D${z==null?void 0:z.length}\u4E2A\u6807\u7B7E`:ae,size:"large",dropdownStyle:{width:xe+"px",zIndex:1e3},className:me.selectStyle,dropdownRender:()=>we.createElement("div",{className:me.selectList,style:{width:xe+"px"}},we.createElement("div",{className:me.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),we.createElement(Ge.Z,{spinning:Ce},we.createElement("div",{className:me.selectContent},le==null?void 0:le.map((Be,_e)=>{var et;return we.createElement("aside",{key:_e},we.createElement("div",{className:me.contentTitle,style:{marginTop:_e>0?"20px":"0"}},Be==null?void 0:Be.tag_type_cn),we.createElement("div",{className:me.contentTags},(et=Be==null?void 0:Be.child)==null?void 0:et.map((ze,Xe)=>{var Qe;return we.createElement("div",{key:Xe,className:(Qe=pe==null?void 0:pe.map(lt=>lt==null?void 0:lt.id))!=null&&Qe.includes(ze==null?void 0:ze.id)?me.tagNameActive:me.tagName,onClick:()=>{var lt;(lt=pe==null?void 0:pe.map(ct=>ct==null?void 0:ct.id))!=null&<.includes(ze==null?void 0:ze.id)?be(pe.filter(ct=>(ct==null?void 0:ct.id)!=(ze==null?void 0:ze.id))):(pe==null?void 0:pe.length)<5?be([...pe,ze]):De.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},ze==null?void 0:ze.tag_name)})))}))),we.createElement("div",{className:me.activeStyle},we.createElement("div",{className:me.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),we.createElement("div",{className:me.activeValue,style:{width:xe-120+"px"}},pe==null?void 0:pe.map((Be,_e)=>we.createElement("div",{key:_e,className:me.activeItem},Be==null?void 0:Be.tag_name,we.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{be(pe.filter(et=>(et==null?void 0:et.id)!==(Be==null?void 0:Be.id)))}}))))),we.createElement("div",{style:{display:"flex",marginBottom:"20px"}},we.createElement("div",{className:me.activeClose,onClick:Be=>{Be.stopPropagation(),ee([...z]),be([]),setTimeout(()=>{je.current&&je.current.blur()},10)}},"\u53D6\u6D88"),we.createElement("div",{className:me.activeSubmit,onClick:Be=>{Be.stopPropagation(),ee([...pe]),be([]),setTimeout(()=>{je.current&&je.current.blur()},10)}},"\u786E\u8BA4")))})};var Oe=(0,Pt.connect)(({user:ve})=>({user:ve}))(Se)},37904:function(Rn,wn,$e){"use strict";$e.d(wn,{A0:function(){return Ce},Ce:function(){return re},Dx:function(){return ve},Il:function(){return be},R2:function(){return ae},R9:function(){return z},Ru:function(){return ee},SG:function(){return je},To:function(){return Oe},_S:function(){return Se},a6:function(){return xe},bj:function(){return Le},iw:function(){return Fe},l5:function(){return pe},nW:function(){return fe},pP:function(){return ue},pi:function(){return le}});var tt=$e(99064),Pt=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,me=(ke,Ae,Be)=>Ae in ke?Pt(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,ce=(ke,Ae)=>{for(var Be in Ae||(Ae={}))Ge.call(Ae,Be)&&me(ke,Be,Ae[Be]);if(oe)for(var Be of oe(Ae))De.call(Ae,Be)&&me(ke,Be,Ae[Be]);return ke},we=(ke,Ae,Be)=>new Promise((_e,et)=>{var ze=lt=>{try{Qe(Be.next(lt))}catch(ct){et(ct)}},Xe=lt=>{try{Qe(Be.throw(lt))}catch(ct){et(ct)}},Qe=lt=>lt.done?_e(lt.value):Promise.resolve(lt.value).then(ze,Xe);Qe((Be=Be.apply(ke,Ae)).next())});function Le(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets/tags.json",{method:"get",params:ce({},ke)})})}function Se(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets.json",{method:"get",params:ce({},ke)})})}function Oe(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/apply_public.json`,{method:"post"})})}function ve(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/revoke_apply_public.json`,{method:"post"})})}function xe(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/cancel_public.json`,{method:"post"})})}function fe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/collections.json",{method:"post",body:ce({},ke)})})}function z(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/collections/cancel.json",{method:"delete",body:ce({},ke)})})}function ee(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}.json`,{method:"get"})})}function ae(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/edit_introduce.json`,{method:"put",body:ce({},ke)})})}function re(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/used_shixuns.json`,{method:"get",params:ce({},ke)})})}function le(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/shixuns/${ke}/data_sets_list.json`,{method:"get"})})}function ue(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/delete.json`,{method:"delete"})})}function pe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/teach_group_shares.json",{method:"post",body:ce({},ke)})})}function be(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:ce({},ke)})})}function Ce(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/edit_file_info.json`,{method:"put",body:ce({},ke)})})}function Fe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/visit_logs.json",{method:"get",params:ce({},ke)})})}function je(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/attachments/${ke==null?void 0:ke.id}/update_download.json`,{method:"get"})})}},24768:function(Rn,wn,$e){"use strict";$e.d(wn,{AL:function(){return pe},Iy:function(){return Oe},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var tt=$e(32834),Pt=$e.n(tt),oe=$e(11690),Ge=$e.n(oe);let De=1;function me(ke,Ae){const Be=ke.match(/^(\s+)(?:```)/);if(Be===null)return Ae;const _e=Be[1];return Ae.split(` `).map(et=>{const ze=et.match(/^\s+/);if(ze===null)return et;const[Xe]=ze;return Xe.length>=_e.length?et.slice(_e.length):et}).join(` `)}let ce=[],we=["