(self.webpackChunk=self.webpackChunk||[]).push([[2967],{40001:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},26227:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},49198:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},41464:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},87169:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},73331:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},15277:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},52671:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},8657:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},10906:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},56082:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},61481:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},33853:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},15075:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},43531:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},61485:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},38819:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},47472:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={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"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},32050:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Nt}});var zt=Vt(96663),gt=Vt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Jt=Xt,Tt=Vt(7657),Bt=function(Ct,Lt){return gt.createElement(Tt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Jt}))},xt=gt.forwardRef(Bt),Nt=xt},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(kn,En){"use strict";En.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 kn(mt,et,tt,st){tt===void 0&&(tt=0),st===void 0&&(st=1/0),this._name=mt,this._defaultValue=et,this._minimum=tt,this._maximum=st}Object.defineProperty(kn.prototype,"name",{get:function(){return this._name},set:function(mt){if(typeof mt!="string"||mt==="")throw new Error("Shape name must be a valid string.");this._name=mt}}),Object.defineProperty(kn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("The default value must be a real number, not: "+mt);this._defaultValue=mt}}),Object.defineProperty(kn.prototype,"minimum",{get:function(){return this._minimum},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("Minimum must be a real number, not: "+mt);this._minimum=mt}}),Object.defineProperty(kn.prototype,"maximum",{get:function(){return this._maximum},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("Maximum must be a real number, not: "+mt);this._maximum=mt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(mt,et){var tt=go.Shape._FigureParameters[mt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(mt,et,tt){if(!(tt instanceof kn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValuett.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var st=go.Shape._FigureParameters[mt];st||(st=[],go.Shape._FigureParameters[mt]=st),st[et]=tt};var En=[];function Vt(mt,et){var tt=En.pop();return tt===void 0?new go.Point(mt,et):(tt.x=mt,tt.y=et,tt)}function zt(){var mt=En.pop();return mt===void 0?new go.Point:mt}function gt(mt){En.push(mt)}function Xt(mt,et,tt,st,rt,ut,ct,ft,pt){pt||(pt=new go.Point);var Pt=mt-tt,Dt=rt-ct,Zt=NaN,Ft=NaN;if(Pt===0)if(Dt===0)mt===tt&&(Zt=mt,Ft=et);else{var qt=(ut-ft)/Dt,te=ut-qt*rt;Zt=mt,Ft=qt*Zt+te}else if(Dt===0){var Kt=(et-st)/Pt,ce=et-Kt*mt;Zt=rt,Ft=Kt*Zt+ce}else{var Kt=(et-st)/Pt,qt=(ut-ft)/Dt,ce=et-Kt*mt,te=ut-qt*rt;Zt=(te-ce)/(Kt-qt),Ft=Kt*Zt+ce}return pt.x=Zt,pt.y=Ft,pt}function Jt(mt,et,tt,st,rt,ut,ct,ft,pt,Pt,Dt,Zt,Ft,qt){var te=1-pt,Kt=pt,ce=mt*te+tt*Kt,le=et*te+st*Kt,xe=tt*te+rt*Kt,ve=st*te+ut*Kt,Te=rt*te+ct*Kt,me=ut*te+ft*Kt,He=ce*te+xe*Kt,fe=le*te+ve*Kt,$t=xe*te+Te*Kt,ie=ve*te+me*Kt,ue=He*te+$t*Kt,ge=fe*te+ie*Kt;Pt.x=ce,Pt.y=le,Dt.x=He,Dt.y=fe,Zt.x=ue,Zt.y=ge,Ft.x=$t,Ft.y=ie,qt.x=Te,qt.y=me}var Tt=new go.Spot(.156,.156),Bt=new go.Spot(.844,.844),xt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new kn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=5),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=new go.Geometry().add(new go.PathFigure(st,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-st)).add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,st,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,st)).add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()));return rt>1&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=tt/2,st.endX=et,st.endY=tt/2,st}),go.Shape.defineFigureGenerator("LineV",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et/2,st.startY=0,st.endX=et/2,st.endY=tt,st}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(mt,et,tt){var st=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(st*et,(1-st)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(mt,et,tt){var st=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close()));return rt.spot1=Tt,rt.spot2=Bt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=0,st.endX=et,st.endY=tt,st}),go.Shape.defineFigureGenerator("Line2",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et,st.startY=0,st.endX=0,st.endY=tt,st}),go.Shape.defineFigureGenerator("Curve1",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,xt*et,0,et,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,xt*tt,(1-xt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,xt*tt,xt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-xt)*et,0,0,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new kn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=.1:st<-1?st=-1:st>1&&(st=1);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt.5&&(st=.5);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+ft,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,ft,ft).close())),ut.spot1=Tt,ut.spot2=Bt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(mt,et,tt){var st=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(st*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close())).setSpots(st/2,st/2,1-st/2,1-st/2)}),go.Shape.setFigureParameter("Pie",0,new kn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new kn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(mt,et,tt){var st=mt?mt.parameter1:NaN,rt=mt?mt.parameter2:NaN;isNaN(st)&&(st=0),isNaN(rt)&&(rt=315);var ut=st%360;ut<0&&(ut+=360);var ct=rt%360,ft=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(ft,ft).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,ft,ft,ft,ft).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(mt,et,tt){var st=xt/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-st)*tt,(rt+st)*et,(ut+st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new kn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new kn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new kn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(mt,et,tt){var st=mt?mt.parameter1:NaN;if((isNaN(st)||st<0)&&(st=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ut=et/2,ct=tt/2,ft=Math.atan2(tt,et),pt=st-Math.min(Math.cos(ft)*st/2,ut),Pt=st-Math.min(Math.sin(ft)*st/2,ct),rt=new go.Geometry,Dt=new go.PathFigure(pt,0,!0);return rt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-pt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new kn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new kn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new kn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-st)*et,.25*tt,Math.abs(1-st)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,xt*et,0,et,(.5-xt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+xt/2)*tt,xt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,ft=0,pt=ut*xt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-pt+ft)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct+.05)*et,(.5-pt+ft-.02)*tt)),ut=.2,ct=0,ft=-.3,pt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-pt+ft)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),ut=.2,ct=-.3,ft=0,pt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct-.05)*et,(.5-pt+ft-.02)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt).close()),st.setSpots(.06,.33,.93,.68),st}),go.Shape.defineFigureGenerator("YinYang",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,ft=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,ft*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*ft,ut*et,ut*et).close()),rt=new go.PathFigure(et*.5,0,!1),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),ft=.75,rt=new go.PathFigure((ct+ut)*et,ft*tt,!0),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*ft,ut*et,ut*et).close()),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Peace",function(mt,et,tt){var st=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,st*et,st*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,ft=.5,pt=new go.PathFigure(ct*et,(ft-ut)*tt);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),ut=.4,rt=xt*.4;var Pt=zt(),Dt=zt(),Zt=zt(),Ft=zt();Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.42,Pt,Dt,Zt,Ft,Ft);var qt=zt(),te=zt(),Kt=zt();Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.58,Ft,Ft,Kt,qt,te);var ce=zt(),le=zt(),xe=zt();Jt(ct,ft+ut,ct-rt,ft+ut,ct-ut,ft+rt,ct-ut,ft,.42,ce,le,xe,Ft,Ft);var ve=zt(),Te=zt(),me=zt();return Jt(ct,ft+ut,ct-rt,ft+ut,ct-ut,ft+rt,ct-ut,ft,.58,Ft,Ft,me,ve,Te),pt.add(new go.PathSegment(go.PathSegment.Move,me.x*et,me.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,ve.x*et,ve.y*tt,Te.x*et,Te.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*et,Zt.y*tt,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,me.x*et,me.y*tt).close()),pt.add(new go.PathSegment(go.PathSegment.Move,xe.x*et,xe.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,Kt.x*et,Kt.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,qt.x*et,qt.y*tt,te.x*et,te.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*et,xe.y*tt,ce.x*et,ce.y*tt,le.x*et,le.y*tt).close()),gt(Pt),gt(Dt),gt(Zt),gt(Ft),gt(qt),gt(te),gt(Kt),gt(ce),gt(le),gt(xe),gt(ve),gt(Te),gt(me),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Fragile",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new kn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30),st>et&&(st=et);var rt=(et-st)/2,ut=rt+st;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(mt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,ft=.5,pt=zt(),Pt=zt(),Dt=zt(),Zt=zt(),Ft=new go.PathFigure((ct-ut)*et,ft*tt,!1);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.44,Dt,Zt,Pt,pt,pt),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt));var qt=Vt(Pt.x,Pt.y);Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.56,pt,pt,Pt,Dt,Zt);var te=Vt(Pt.x,Pt.y);Ft.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.95*.9)*et,qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,(te.y*.1+.05*.9)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,te.x*et,te.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),ut=.35,rt=xt*.35;var Kt=new go.PathFigure(ct*et,(ft-ut)*tt,!1);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt));var ce=new go.PathFigure((ct-ut)*et,ft*tt,!1);return st.add(ce),gt(pt),gt(Pt),gt(Dt),gt(Zt),gt(qt),gt(te),st.spot1=new go.Spot(.202,.257),st.spot2=new go.Spot(.792,.739),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("GenderFemale",function(mt,et,tt){var st=new go.Geometry,rt=.375,ut=0,ct=-.125,ft=rt*xt,pt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-ft+ct)*tt,(.5+ft+ut)*et,(.5-rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,(.5+rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,ct=-.125,ft=rt*xt;var pt=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+ft+ct)*tt,(.5+ft+ut)*et,(.5+rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-ft+ct)*tt));var pt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);return st.add(pt),st.spot1=new go.Spot(.232,.136),st.spot2=new go.Spot(.682,.611),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicImplies",function(mt,et,tt){var st=mt?mt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(mt,et,tt){var st=mt?mt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(mt,et,tt){var st=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicTruth",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(mt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(mt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new kn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new kn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-st)*et,ct=(.5-rt/2)*tt,ft=(.5+rt/2)*tt,pt=new go.Geometry,Pt=new go.PathFigure(0,ct,!0);pt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),pt.spot1=new go.Spot(0,ct/tt);var Dt=Xt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,zt());return pt.spot2=new go.Spot(Dt.x,Dt.y),gt(Dt),pt}),go.Shape.setFigureParameter("Arrow2",0,new kn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new kn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=30),st>et&&(st=et);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-st,ct=(tt-rt)/2,ft=ct+rt,pt=new go.Geometry,Pt=new go.PathFigure(0,ct,!0);pt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),pt.spot1=new go.Spot(0,ct/tt);var Dt=Xt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,zt());return pt.spot2=new go.Spot(Dt.x,Dt.y),gt(Dt),pt}),go.Shape.defineFigureGenerator("Chevron",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("DoubleArrow",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),st}),go.Shape.setFigureParameter("DoubleEndArrow",0,new kn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var pt=Xt(0,.5,.3,0,0,rt/tt,.1,rt/tt,zt());return ct.spot1=new go.Spot(pt.x,pt.y),pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,pt),ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new kn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new kn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=40);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,ft=(tt-rt)/2,pt=ft+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,ft=0,pt=tt):(ut=0,ct=tt,ft=0,pt=tt));var Pt=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Pt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close());var Zt=Xt(0,.5,.3,ft/tt,0,ut/tt,1,ut/tt,zt());return Pt.spot1=new go.Spot(Zt.x,Zt.y),Zt=Xt(.7,pt/tt,1,.5,0,ct/tt,1,ct/tt,Zt),Pt.spot2=new go.Spot(Zt.x,Zt.y),gt(Zt),Pt}),go.Shape.setFigureParameter("IBeamArrow",0,new kn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new kn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new kn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=40);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,ft=(tt-rt)/2,pt=ft+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,ft=0,pt=tt):(ut=0,ct=tt,ft=0,pt=tt));var Pt=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Pt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close()),Pt.spot1=new go.Spot(0,ut/tt);var Zt=Xt(.7,pt/tt,1,.5,0,ct/tt,1,ct/tt,zt());return Pt.spot2=new go.Spot(Zt.x,Zt.y),gt(Zt),Pt}),go.Shape.setFigureParameter("Pointer",0,new kn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(st,.35);var ct=Xt(.2,.65,1,.65,0,1,1,.5,zt());return rt.spot2=new go.Spot(ct.x,ct.y),gt(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new kn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt.spot1=new go.Spot(st,.35);var ct=Xt(0,.65,1,.65,0,1,1,.5,zt());return rt.spot2=new go.Spot(ct.x,ct.y),gt(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new kn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.4);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new kn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=50);var rt=(tt-st)/2,ut=rt+st;st>tt&&(rt=0,ut=tt);var ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new kn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(st,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(0,.9*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.97),st}),go.Shape.defineFigureGenerator("Cone2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.82),st}),go.Shape.defineFigureGenerator("Cube1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.5,.85),st}),go.Shape.defineFigureGenerator("Cube2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.7,1),st}),go.Shape.defineFigureGenerator("Cylinder1",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,st,(.5+ut)*et,0,1*et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-xt*st,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,1*tt,0,tt-xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,0,st));var ft=new go.PathFigure(et,st,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*st,1*et,2*st-xt*st,(.5+ut)*et,2*st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,st,(.5-ut)*et,2*st,0,2*st-xt*st)),rt.spot1=new go.Spot(0,0,0,2*st),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,tt-st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,st,(.5+ut)*et,0,et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-xt*st,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,tt,0,tt-xt*st));var ft=new go.PathFigure(0,tt-st,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*st,0,tt-st-xt*st,(.5-ut)*et,tt-2*st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-st,(.5+ut)*et,tt-2*st,et,tt-st-xt*st)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*st),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0));var ft=new go.PathFigure(st,0,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,2*st,.5*tt,st+xt*st,0,2*st,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,st,tt,2*st,(.5+ut)*tt,st+xt*st,tt)),rt.spot1=new go.Spot(0,0,2*st,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(et-st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0));var ft=new go.PathFigure(et-st,0,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-2*st,.5*tt,et-st-xt*st,0,et-2*st,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et-2*st,(.5+ut)*tt,et-st-xt*st,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*st,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.408,.172),st.spot2=new go.Spot(.833,.662),st}),go.Shape.defineFigureGenerator("Prism2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("Pyramid1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Pyramid2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Actor",function(mt,et,tt){var st=new go.Geometry,rt=.2,ut=.1,ct=xt*rt,ft=xt*ut,pt=.5,Pt=.1,Dt=new go.PathFigure(pt*et,(Pt+ut)*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-rt)*et,Pt*tt,(pt-ct)*et,(Pt+ut)*tt,(pt-rt)*et,(Pt+ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ut)*tt,(pt-rt)*et,(Pt-ft)*tt,(pt-ct)*et,(Pt-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+rt)*et,Pt*tt,(pt+ct)*et,(Pt-ut)*tt,(pt+rt)*et,(Pt-ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ut)*tt,(pt+rt)*et,(Pt+ft)*tt,(pt+ct)*et,(Pt+ut)*tt));var Zt=.05,Ft=xt*Zt;pt=.05,Pt=.25;var qt=new go.PathFigure(.5*et,.2*tt,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),pt=.95,Pt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+Zt)*et,Pt*tt,(pt+Ft)*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Zt=.025,Ft=xt*Zt,pt=.825,Pt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Zt=.05,Ft=xt*Zt,pt=.5,Pt=.7,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Zt=.025,Ft=xt*Zt,pt=.175,Pt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Zt=.05,Ft=xt*Zt,pt=.05,Pt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt,(pt-Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),st.spot1=new go.Spot(.2,.2),st.spot2=new go.Spot(.8,.65),st}),go.Shape.setFigureParameter("Card",0,new kn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=new go.Spot(0,st),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,.25),st}),go.Shape.defineFigureGenerator("CreateRequest",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("Database",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),st.spot1=new go.Spot(0,.4),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("DataStorage",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),st.spot1=new go.Spot(.226,0),st.spot2=new go.Spot(.81,1),st}),go.Shape.defineFigureGenerator("DiskStorage",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("Display",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("DividedEvent",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=xt*.2,ct=new go.PathFigure(0,.2*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var ft=new go.PathFigure(0,rt*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("DividedProcess",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("Document",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("ExternalOrganization",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("ExternalProcess",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("File",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Interrupt",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("InternalStorage",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ft=new go.PathFigure(rt*et,0,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),st}),go.Shape.defineFigureGenerator("Junction",function(mt,et,tt){var st=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=xt*.5,ft=.5,pt=new go.PathFigure(et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,tt,et,(ft+ct)*tt,(ft+ct)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*tt,(ft-ct)*et,tt,0,(ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-ct)*tt,(ft-ct)*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*tt,(ft+ct)*et,0,et,(ft-ct)*tt));var Pt=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Pt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),st}),go.Shape.defineFigureGenerator("LinedDocument",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),st.spot1=new go.Spot(.1,0),st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("LoopLimit",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MagneticTape",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.8),st}),go.Shape.defineFigureGenerator("ManualInput",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MessageFromUser",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("MicroformProcessing",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("MicroformRecording",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("MultiDocument",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.8,.77),st}),go.Shape.defineFigureGenerator("MultiProcess",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),st.spot1=new go.Spot(0,.2),st.spot2=new go.Spot(.8,1),st}),go.Shape.defineFigureGenerator("OfflineStorage",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var ft=new go.PathFigure(.5*rt*et,rt*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),st}),go.Shape.defineFigureGenerator("OffPageConnector",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("Or",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var ft=new go.PathFigure(et,.5*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st}),go.Shape.defineFigureGenerator("PaperTape",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=new go.Spot(0,.49),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Procedure",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-rt)*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st}),go.Shape.defineFigureGenerator("Process",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Sort",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.5),st}),go.Shape.defineFigureGenerator("Start",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),st.spot1=new go.Spot(rt,0),st.spot2=new go.Spot(1-rt,1),st}),go.Shape.defineFigureGenerator("Terminator",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),st.spot1=new go.Spot(.23,0),st.spot2=new go.Spot(.77,1),st}),go.Shape.defineFigureGenerator("TransmittalTape",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("AndGate",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.55,1),st}),go.Shape.defineFigureGenerator("Buffer",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Clock",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var ft=new go.PathFigure(et,ut*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var pt=new go.PathFigure(.8*et,.75*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),st}),go.Shape.defineFigureGenerator("Ground",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),st}),go.Shape.defineFigureGenerator("Inverter",function(mt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.9,ft=.5,pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Pt=new go.PathFigure((ct+ut)*et,ft*tt,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.4,.75),st}),go.Shape.defineFigureGenerator("NandGate",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.4,ct=xt*.1,ft=.1,pt=.9,Pt=.5,Dt=new go.PathFigure(.8*et,.5*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var Zt=new go.PathFigure((pt+ft)*et,Pt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et,Pt*tt,(pt-ct)*et,(Pt+ft)*tt,(pt-ft)*et,(Pt+ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et,Pt*tt,(pt+ct)*et,(Pt-ft)*tt,(pt+ft)*et,(Pt-ct)*tt)),st.spot1=new go.Spot(0,.05),st.spot2=new go.Spot(.55,.95),st}),go.Shape.defineFigureGenerator("NorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,ft=.5,pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.7*et,(ft-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,ft=.5;var Pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.6,.75),st}),go.Shape.defineFigureGenerator("OrGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,ft=.5,pt=new go.PathFigure(0,0,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(ft-rt)*tt,.8*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(ft+ut)*tt,(ct+ut+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("XnorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,ft=.5,pt=new go.PathFigure(.1*et,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.7*et,(ft-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,ft=.5;var Dt=new go.PathFigure((ct-rt)*et,ft*tt,!0);return st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.65,.75),st}),go.Shape.defineFigureGenerator("XorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,ft=.5,pt=new go.PathFigure(.1*et,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Pt=new go.PathFigure(.2*et,0,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.9*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.8,.75),st}),go.Shape.defineFigureGenerator("Capacitor",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Resistor",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Inductor",function(mt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.1,ft=.5,pt=new go.PathFigure((ct-rt*.5)*et,tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt*.5)*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),st}),go.Shape.defineFigureGenerator("ACvoltageSource",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-ut)*et,ft*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,ft*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,ft*tt,ct*et,(ft-ut)*tt,ct*et,(ft+ut)*tt)),st}),go.Shape.defineFigureGenerator("DCvoltageSource",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Diode",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Wifi",function(mt,et,tt){var st=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=xt*.8,ft=.8,pt=0,Pt=.5,Dt=(rt-et)/2,Zt=(ut-tt)/2,Ft=new go.PathFigure(pt*et+Dt,(Pt+ft)*tt+Zt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft+ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt-ct)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt+ct)*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt).close()),ct=xt*.4,ft=.4,pt=.2,Pt=.5;var qt=new go.PathFigure(pt*et+Dt,(Pt+ft)*tt+Zt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft+ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt-ct)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt+ct)*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt).close()),ct=xt*.2,ft=.2,pt=.5,Pt=.5;var te=new go.PathFigure((pt-ft)*et+Dt,Pt*tt+Zt,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),ct=xt*.4,ft=.4,pt=.8,Pt=.5;var Kt=new go.PathFigure(pt*et+Dt,(Pt-ft)*tt+Zt,!0);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft-ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt+ct)*tt+Zt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt-ct)*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt).close()),ct=xt*.8,ft=.8,pt=1,Pt=.5;var ce=new go.PathFigure(pt*et+Dt,(Pt-ft)*tt+Zt,!0);return st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft-ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt+ct)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt-ct)*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt).close()),st}),go.Shape.defineFigureGenerator("Email",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Ethernet",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var ft=new go.PathFigure(0,.5*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Power",function(mt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,ft=.5,pt=zt(),Pt=zt(),Dt=zt(),Zt=zt();Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.5,pt,pt,Pt,Dt,Zt);var Ft=Vt(Pt.x,Pt.y),qt=new go.PathFigure(Pt.x*et,Pt.y*tt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),Jt(ct-ut,ft,ct-ut,ft-rt,ct-rt,ft-ut,ct,ft-ut,.5,Dt,Zt,Pt,pt,pt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),rt=xt*.3,ut=.3,Jt(ct-ut,ft,ct-ut,ft-rt,ct-rt,ft-ut,ct,ft-ut,.5,Dt,Zt,Pt,pt,pt),qt.add(new go.PathSegment(go.PathSegment.Line,Pt.x*et,Pt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Zt.x*et,Zt.y*tt,Dt.x*et,Dt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Jt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.5,pt,pt,Pt,Dt,Zt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Zt.x*et,Zt.y*tt,Dt.x*et,Dt.y*tt).close());var qt=new go.PathFigure(.45*et,0,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),gt(pt),gt(Pt),gt(Dt),gt(Zt),gt(Ft),st.spot1=new go.Spot(.25,.45),st.spot2=new go.Spot(.75,.8),st}),go.Shape.defineFigureGenerator("Fallout",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,ft,pt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+ft)*et,(.8+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+ft)*et,(.5+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+ft)*et,(.5+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+ft)*et,(.8+pt)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),st}),go.Shape.defineFigureGenerator("IrritationHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),st.spot1=new go.Spot(.3,.3),st.spot2=new go.Spot(.7,.7),st}),go.Shape.defineFigureGenerator("ElectricalHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),st}),go.Shape.defineFigureGenerator("FireHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),st.spot1=new go.Spot(.07,.445),st.spot2=new go.Spot(.884,.958),st}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=0,ct=0,ft=rt*xt,pt=.4*Math.SQRT2/2+.5,Pt=.5-.5*Math.SQRT2/2,Dt=1,Zt=.5,Ft=.5,qt=0,te=new go.PathFigure(pt*et,(1-Pt)*tt,!1);return st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,Zt*tt,Dt*et,.7*tt,Dt*et,Zt*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+ut)*et,(qt+ut)*tt,(.5+rt+ut)*et,(.5-ft+ut)*tt,(.5+ft+ut)*et,(.5-rt+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),st}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,ft=.5,pt=ct,Pt=Math.PI/4,Dt=4*(1-Math.cos(Pt))/(3*Math.sin(Pt)),Zt=Dt*.5,Ft=ct,qt=ct,te=Dt*Ft,Kt=Dt*qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Ft)*et,pt*tt,(ft-(te+Ft)/2)*et,(pt+(qt+Kt)/2)*tt,(ft-Ft)*et,(pt+Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(pt-qt)*tt,(ft-Ft)*et,(pt-Kt)*tt,(ft-te)*et,(pt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Ft)*et,pt*tt,(ft+te)*et,(pt-qt)*tt,(ft+Ft)*et,(pt-Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(ft+Ft)*et,(pt+Kt)*tt,(ft+(te+Ft)/2)*et,(pt+(qt+Kt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ce=new go.PathFigure(.2*et,tt,!1);st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var le=new go.PathFigure(.8*et,tt,!1);return st.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventError",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Caution",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),st}),go.Shape.defineFigureGenerator("Recycle",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=new go.PathFigure(et,rt*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var ft=new go.PathFigure(rt*et,0,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Package",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),st.spot1=new go.Spot(0,.1),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Class",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Component",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),st}),go.Shape.defineFigureGenerator("Boat Shipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Customer/Supplier",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Workcell",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Supermarket",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),st}),go.Shape.defineFigureGenerator("TruckShipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,ft=xt*.1,pt=.2,Pt=.9,Dt=new go.PathFigure((pt-ct)*et,Pt*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ct)*et,Pt*tt,(pt+ft)*et,(Pt-ct)*tt,(pt+ct)*et,(Pt-ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ct)*et,Pt*tt,(pt-ft)*et,(Pt+ct)*tt,(pt-ct)*et,(Pt+ft)*tt).close()),ct=.1,ft=xt*.1,pt=.8,Pt=.9;var Zt=new go.PathFigure((pt-ct)*et,Pt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ct)*et,Pt*tt,(pt+ft)*et,(Pt-ct)*tt,(pt+ct)*et,(Pt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ct)*et,Pt*tt,(pt-ft)*et,(Pt+ct)*tt,(pt-ct)*et,(Pt+ft)*tt).close()),st}),go.Shape.defineFigureGenerator("KanbanPost",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),st}),go.Shape.defineFigureGenerator("Forklift",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var ft=new go.PathFigure(.5*et,.7*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var pt=.1,Pt=xt*.1,Dt=.1,Zt=.9,Ft=new go.PathFigure((Dt-pt)*et,Zt*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt-pt)*tt,(Dt-pt)*et,(Zt-Pt)*tt,(Dt-Pt)*et,(Zt-pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+pt)*et,Zt*tt,(Dt+Pt)*et,(Zt-pt)*tt,(Dt+pt)*et,(Zt-Pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt+pt)*tt,(Dt+pt)*et,(Zt+Pt)*tt,(Dt+Pt)*et,(Zt+pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-pt)*et,Zt*tt,(Dt-Pt)*et,(Zt+pt)*tt,(Dt-pt)*et,(Zt+Pt)*tt)),pt=.1,Pt=xt*.1,Dt=.4,Zt=.9;var qt=new go.PathFigure((Dt-pt)*et,Zt*tt,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt-pt)*tt,(Dt-pt)*et,(Zt-Pt)*tt,(Dt-Pt)*et,(Zt-pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+pt)*et,Zt*tt,(Dt+Pt)*et,(Zt-pt)*tt,(Dt+pt)*et,(Zt-Pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt+pt)*tt,(Dt+pt)*et,(Zt+Pt)*tt,(Dt+Pt)*et,(Zt+pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-pt)*et,Zt*tt,(Dt-Pt)*et,(Zt+pt)*tt,(Dt-pt)*et,(Zt+Pt)*tt)),st}),go.Shape.defineFigureGenerator("RailShipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Dt=.05,Zt=xt*.05,Ft=.175,qt=.95,ft=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.375,qt=.95,pt=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.625,qt=.95,Pt=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.825,qt=.95,te=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt).close());var Kt=new go.PathFigure(0,tt,!1);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Warehouse",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var ft=.05,pt=xt*.05,Pt=.35,Dt=.775,Zt=new go.PathFigure((Pt-ft)*et,Dt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Dt-ft)*tt,(Pt-ft)*et,(Dt-pt)*tt,(Pt-pt)*et,(Dt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ft)*et,Dt*tt,(Pt+pt)*et,(Dt-ft)*tt,(Pt+ft)*et,(Dt-pt)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Dt+ft)*tt,(Pt+ft)*et,(Dt+pt)*tt,(Pt+pt)*et,(Dt+ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ft)*et,Dt*tt,(Pt-pt)*et,(Dt+ft)*tt,(Pt-ft)*et,(Dt+pt)*tt).close()),st}),go.Shape.defineFigureGenerator("ControlCenter",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),st}),go.Shape.defineFigureGenerator("Bluetooth",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Globe",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),st}),go.Shape.defineFigureGenerator("Wave",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Operator",function(mt,et,tt){var st=new go.Geometry,rt=.3,ut=xt*.3,ct=.5,ft=.7,pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt));var Pt=new go.PathFigure(0,.7*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),st}),go.Shape.defineFigureGenerator("TripleFanBlades",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),st}),go.Shape.defineFigureGenerator("CentrifugalPump",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),st}),go.Shape.defineFigureGenerator("Battery",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),st}),go.Shape.defineFigureGenerator("Delete",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt));var Pt=new go.PathFigure(.15*et,.5*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Flag",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),st}),go.Shape.defineFigureGenerator("Help",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-rt)*et,ft*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt).close()),rt=.05,ut=xt*.05,ct=.5,ft=.8;var Pt=new go.PathFigure((ct-rt)*et,ft*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt).close()),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),st}),go.Shape.defineFigureGenerator("Location",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),st}),go.Shape.defineFigureGenerator("Unlocked",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),st}),go.Shape.defineFigureGenerator("Gear",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),st}),go.Shape.defineFigureGenerator("Map",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),st}),go.Shape.defineFigureGenerator("Eject",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),st}),go.Shape.defineFigureGenerator("Pencil",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var ft=new go.PathFigure(.678*et,.85*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var pt=new go.PathFigure(.5*et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),st}),go.Shape.defineFigureGenerator("Staircase",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),st}),go.Shape.defineFigureGenerator("5Bars",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var ft=new go.PathFigure(et*.612,tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var pt=new go.PathFigure(et*.816,tt,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),st}),go.Shape.defineFigureGenerator("PC",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var ft=new go.PathFigure(et*.055,.18*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var pt=new go.PathFigure(et*1,0,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),st}),go.Shape.defineFigureGenerator("Plane",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),st}),go.Shape.defineFigureGenerator("Key",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),st}),go.Shape.defineFigureGenerator("FilmTape",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var ft=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var pt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),st}),go.Shape.defineFigureGenerator("FloppyDisk",function(mt,et,tt){var st=new go.Geometry,rt=8,ut=rt*xt,ct=new go.PathFigure(rt,0,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var ft=new go.PathFigure(et*.83,0,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var pt=new go.PathFigure(et*.83,tt*1,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Pt=new go.PathFigure(et*.78,tt*.05,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),st}),go.Shape.defineFigureGenerator("SpeechBubble",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=15),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=tt*.8,ct=new go.Geometry,ft=new go.PathFigure(st,0,!0);return ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut-st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-st,ut,et,ut-rt,et-rt,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,st,ut)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-st,rt,ut,0,ut-rt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()),rt>1?(ct.spot1=new go.Spot(0,0,rt,rt),ct.spot2=new go.Spot(1,.8,-rt,-rt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),st}),go.Shape.defineFigureGenerator("Windows",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),st}),go.Shape.defineFigureGenerator("Beaker",function(mt,et,tt){var st=new go.Geometry,rt=15,ut=rt*xt,ct=new go.PathFigure(et*.62,tt*.475,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(st.spot1=new go.Spot(0,0,ut,ut),st.spot2=new go.Spot(1,1,-ut,-ut)):(st.spot1=go.Spot.TopLeft,st.spot2=go.Spot.BottomRight),st}),go.Shape.defineFigureGenerator("Download",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),st}),go.Shape.defineFigureGenerator("Bin",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),st}),go.Shape.defineFigureGenerator("Upload",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),st}),go.Shape.defineFigureGenerator("EmptyDrink",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),st}),go.Shape.defineFigureGenerator("Drink",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),st}),go.Shape.defineFigureGenerator("4Arrows",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),st}),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 kn={},En="5.0",Vt={},zt=null,gt=!1,Xt=!1,Jt=null,Tt=!1,Bt=null,xt=null,Nt=0;Nt4?parseFloat(he):5};kn.setHTML5Codebase=function(he,Ne){xt=he,ie(he,Ne)},kn.setJavaCodebase=kn.setJavaCodebaseVersion=kn.isCompiledInstalled=kn.setPreCompiledScriptPath=kn.setPreCompiledResourcePath=function(){},kn.setHTML5CodebaseVersion=function(he,Ne){var ke=parseFloat(he);if(ke!==NaN&&ke<5){console.log("The GeoGebra HTML5 codebase version "+ke+" is deprecated. Using version latest instead.");return}Bt=he,$t(he,Ne)},kn.getHTML5CodebaseVersion=function(){return mt},kn.getParameters=function(){return Vt},kn.setFontsCSSURL=function(he){ct=he},kn.setGiacJSURL=function(he){},kn.setJNLPFile=function(he){Ct=he},kn.setJNLPBaseDir=function(he){},kn.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ne="auto",ke=Vt.id,$e,Re=!1,tn=0;tn=5)return!0;var he=kn.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},kn.startAnimation=function(){var he=kn.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},kn.stopAnimation=function(){var he=kn.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},kn.getAppletObject=function(){var he=Vt.id!==void 0?Vt.id:"ggbApplet";return window[he]},kn.resize=function(){};var te=function(he,Ne,ke){var $e=document.createElement("param");$e.setAttribute("name",Ne),$e.setAttribute("value",ke),he.appendChild($e)},Kt=function(he){return he&&he!=="false"},ce=function(he,Ne,ke){pt(mt)<=4.2&&(ke=!0);var $e=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==mt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&($e=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Re=document.createElement("div");Re.classList.add("appletParameters","notranslate");var tn=Ne.width,Ae=Ne.height;if(Ne.disableAutoScale=Ne.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ne.disableAutoScale,Ne.width!==void 0)if(pt(mt)<=4.4)Kt(Ne.showToolBar)&&(Ne.height-=7),Kt(Ne.showAlgebraInput)&&(Ne.height-=37),Ne.width<605&&Kt(Ne.showToolBar)&&(Ne.width=605,tn=605);else{var Ie=100;(Kt(Ne.showToolBar)||Kt(Ne.showMenuBar))&&(Ne.hasOwnProperty("customToolBar")&&(Ne.customToolbar=Ne.customToolBar),Ie=Kt(Ne.showMenuBar)?245:155),tn=5?(Ne.appletOnLoad=function(oe){var de=he.querySelector(".ggb_preview");de&&de.parentNode.removeChild(de),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(It),window.GGBT_wsf_view&&$(window).trigger("resize"),se(oe)},bt||It.appendChild(Yt)):Re.appendChild(Yt),It.appendChild(Re),bt||he.appendChild(It),setTimeout(function(){kn.resize()},1)}else{var _t=document.createElement("div");_t.className="applet_scaler",_t.style.position="relative",_t.style.display="block",_t.appendChild(Re),he.appendChild(_t),Ne.appletOnLoad=function(oe){kn.resize(),se(oe)}}function Mt(oe,de){de&&typeof de.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(oe,de.appletOnLoad):renderGGBElement(oe),ue("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",de)}function Gt(oe,de){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:oe,params:de}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ge){Mt(Ge.article,Ge.params)}),html5AppletsToProcess=null)},pt(mt)<5&&(oe.className+=" geogebraweb")):Mt(oe,de)}if($e){scriptLoadStarted=!0;for(var St=0;St0?(Fe.remove(),It.attr("id","fullscreencontent").show(),jQuery(se).append(It),window.dispatchEvent(new Event("resize"))):ce(Fe,Ne,!1),window.GGBT_wsf_view.launchFullScreen(se)}else Ot=$e,ce(he,Ne,!1);if(!window.GGBT_wsf_view)for(Ae=0;Aehe/4*3&&(Fe=he/4*3),se=Fe/5.8,Ie.setAttribute("src",rt),Ie.setAttribute("width",Fe),Ie.setAttribute("height",se);var It=(he-Fe)/2,bt=(Ne-se)/2;Ie.style.left=It+"px",Ie.style.top=bt+"px",Re.appendChild(Ie)}}return Re.appendChild(Ae),Re},He=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},fe=["web","webSimple","web3d","tablet","tablet3d","phone"],$t=function(he,Ne){if(mt=he,Ne){ie(mt,!0);return}var ke=!gt;if(ke){var $e=pt(mt);!isNaN($e)&&$e<4.4&&(ke=!1)}var Re,tn;window.location.protocol.substr(0,4)==="http"?Re=window.location.protocol:Re="http:";var Ae=mt.indexOf("//");Ae>0?tn=mt:Ae===0?tn=Re+mt:tn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ie in fe)if(mt.slice(fe[Ie].length*-1)===fe[Ie]||mt.slice((fe[Ie].length+1)*-1)===fe[Ie]+"/"){ie(tn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ke&&!zt.is3D&&!zt.AV&&!zt.SV&&!zt.CV&&!zt.EV2&&!zt.CP&&!zt.PC&&!zt.DA&&!zt.FI&&!zt.PV&&!Kt(Vt.showToolBar)&&!Kt(Vt.showMenuBar)&&!Kt(Vt.showAlgebraInput)&&!Kt(Vt.enableRightClick)&&(!Vt.appName||Vt.appName=="classic")?tn+="webSimple/":tn+="web3d/",ie(tn,!1)},ie=function(he,Ne){if(he.requirejs){Lt=he;return}he.slice(-1)!=="/"&&(he+="/"),Lt=he,Ne===null&&(Ne=he.indexOf("http")===-1),At=Ne,et="web.nocache.js",tt=!1;var ke=Lt.split("/");ke.length>1&&(!Ne&&ke[ke.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):fe.indexOf(ke[ke.length-2])>=0&&(et=ke[ke.length-2]+".nocache.js")),ke=he.split("/"),mt=ke[ke.length-3],mt.substr(0,4)==="test"?mt=mt.substr(4,1)+"."+mt.substr(5,1):(mt.substr(0,3)==="war"||mt.substr(0,4)==="beta")&&(mt="5.0");var $e=parseFloat(mt);$e!==NaN&&$e<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead."),$t("5.0",Ne))},ue=function(he,Ne){window.console&&window.console.log&&(!Ne||typeof Ne.showLogging=="undefined"||Ne.showLogging&&Ne.showLogging!=="false")&&console.log(he)};Vt.material_id!==void 0?Zt(ge):ge();function ge(){var he=En;Bt!==null?he=Bt:parseFloat(he)<5&&(he="5.0"),$t(he,!1),xt!==null&&ie(xt,At),Tt=!0}return kn},GGBAppletUtils=function(){"use strict";function kn(){return window.GGBT_wsf_edit!==void 0}function En(Tt,Bt){Bt!=1?(Tt.style.transformOrigin="0% 0% 0px",Tt.style.webkitTransformOrigin="0% 0% 0px",Tt.style.transform="scale("+Bt+","+Bt+")",Tt.style.webkitTransform="scale("+Bt+","+Bt+")",Tt.style.maxWidth="initial",Tt.querySelector(".ggb_preview")!==null&&(Tt.querySelector(".ggb_preview").style.maxWidth="initial"),Tt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Tt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Tt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Tt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Tt.style.transform="none",Tt.style.webkitTransform="none")}function Vt(Tt,Bt,xt,Nt,jt,Ct){var Lt=null;if(Ct!=null&&Ct!="")for(var At=Tt.parentNode;At!=null;)if((" "+At.className+" ").indexOf(" "+Ct+" ")>-1){Lt=At;break}else At=At.parentNode;var Ot=0,mt=0,et=0,tt=0,st=0,rt=0,ut=0;if(Lt)Ot=Lt.offsetWidth,mt=Math.max(Nt?Lt.offsetWidth:0,Lt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),mt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Ot):(Ot=window.innerWidth,mt=window.innerHeight,et=window.innerWidth),Tt){var ct=Tt.getBoundingClientRect();ct.left>0&&ct.left<=Ot&&(jt===void 0||!jt)&&(document.dir==="rtl"?(st=Ot-ct.width-ct.left,rt=et<=480?10:30):(rt=ct.left,st=et<=480?10:30),tt=rt+st)}if(Tt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=Tt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Tt&&((xt===void 0||!xt)&&Bt>0&&Bt+tt1&&(Ct=!0)),Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ct=!0),!(Tt.hasOwnProperty("disableAutoScale")&&Tt.disableAutoScale))jt=zt(Tt,Bt,Ct,xt,Tt.scaleContainerClass);else return Nt;return Ct&&(!Tt.hasOwnProperty("scale")||Nt===1)?jt:Math.min(Nt,jt)}function Xt(Tt){var Bt=Math.min(window.innerWidth,document.documentElement.clientWidth),xt=Math.min(window.innerHeight,document.documentElement.clientHeight),Nt=Tt.getBoundingClientRect(),jt=(Bt-Nt.width)/2,Ct=(xt-Nt.height)/2;Ct<0&&(Ct=0),Tt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(jt<40?Tt.style.left="40px":Tt.style.left=jt+"px",Tt.style.top=Ct+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ct<40?Tt.style.top="40px":Tt.style.top=Ct+"px",Tt.style.left=jt+"px")}function Jt(Tt,Bt){var xt=Tt.querySelector(".appletParameters");if(xt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Bt.id!==xt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Tt)}if(xt.parentElement&&/fullscreen/.test(xt.parentElement.className))return;var Nt=gt(Bt,Tt);kn()&&xt.setAttribute("data-param-scale",Nt);for(var jt=null,Ct=0;Ct=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(kn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(kn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(kn){var En=c[kn];return En==null?null:En},r=d,webModule.__errFn=e}function B(){function kn(Tt){var Bt=Tt.lastIndexOf(rb);Bt==-1&&(Bt=Tt.length);var xt=Tt.indexOf(sb);xt==-1&&(xt=Tt.length);var Nt=Tt.lastIndexOf(tb,Math.min(xt,Bt));return Nt>=O?Tt.substring(O,Nt+P):W}function En(Tt){if(!Tt.match(/^\w+:\/\//)){var Bt=o.createElement(ub);Bt.src=Tt+vb,Tt=kn(Bt.src)}return Tt}function Vt(){var Tt=__gwt_getMetaProperty(wb);return Tt!=null?Tt:W}function zt(){for(var Tt=o.getElementsByTagName(_),Bt=O;BtO?Tt[Tt.length-P].href:W}function Xt(){var Tt=o.location;return Tt.href==Tt.protocol+zb+Tt.host+Tt.pathname+Tt.search+Tt.hash}var Jt=Vt();return Jt==W&&(Jt=zt()),Jt==W&&(Jt=gt()),Jt==W&&Xt()&&(Jt=kn(o.location.href)),Jt=En(Jt),Jt}function C(kn){return kn.match(/^\//)||kn.match(/^[a-zA-Z]+:\/\//)?kn:webModule.__moduleBase+kn}function D(){var kn=[],En=O,Vt=[],zt=[];function gt(Tt){var Bt=zt[Tt](),xt=Vt[Tt];if(Bt in xt)return Bt;var Nt=[];for(var jt in xt)Nt[xt[jt]]=jt;throw r&&r(Tt,Nt,Bt),null}if(__gwt_isKnownPropertyValue=function(Tt,Bt){return Bt in Vt[Tt]},webModule.__getPropMap=function(){var Tt={};for(var Bt in Vt)Vt.hasOwnProperty(Bt)&&(Tt[Bt]=gt(Bt));return Tt},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xt;try{Xt=Cb;var Jt=Xt.indexOf(Db);Jt!=-1&&(En=parseInt(Xt.substring(Jt+P),$),Xt=Xt.substring(O,Jt))}catch(Tt){}return webModule.__softPermutationId=En,C(Xt+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})()},64881:function(kn,En,Vt){"use strict";Vt.d(En,{$Y:function(){return tn},A0:function(){return Ne},EP:function(){return Tt},F_:function(){return Nt},Fk:function(){return Mt},G9:function(){return xt},GB:function(){return ie},GR:function(){return rt},GW:function(){return $e},Hh:function(){return Gt},Hp:function(){return Ot},Ir:function(){return gt},N$:function(){return ue},NZ:function(){return xe},Nv:function(){return _t},OA:function(){return It},OJ:function(){return me},QF:function(){return de},RS:function(){return Pt},RY:function(){return Ut},Rj:function(){return ve},SX:function(){return Ft},Tp:function(){return Ae},Ui:function(){return he},V1:function(){return fe},Vn:function(){return Zt},dL:function(){return Yt},fo:function(){return te},gG:function(){return Kt},gK:function(){return st},hK:function(){return mt},i3:function(){return Ct},ib:function(){return et},lS:function(){return tt},m5:function(){return Bt},n4:function(){return zt},n_:function(){return Lt},oP:function(){return Ie},p2:function(){return ke},pl:function(){return le},rM:function(){return ft},sM:function(){return At},t2:function(){return Dt},tD:function(){return ut},u8:function(){return ct},um:function(){return oe},vm:function(){return bt},wQ:function(){return jt},wj:function(){return He},wt:function(){return ce},yS:function(){return pt},yi:function(){return Xt},ym:function(){return Te},z2:function(){return Jt}});const zt="FETCH_TASK_START",gt="FETCH_TASK_FAILURE",Xt="FETCH_TASK_SUCCESS",Jt="UPDATE_TASK_DATA",Tt="HIDE_EVALUATE_RESULT",Bt="SHOW_EVALUATE_RESULT",xt="UPDATE_TIMESTRAP",Nt="MOVE_X",jt="MOVE_Y",Ct="TRIGGER_RIGHT_PANEL_MASK ",Lt="SET_ACTIVE_INDEX",At="GET_TASK_LIST",Ot="SHOW_TASK_LIST",mt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",st="TRIGGER_TAB_FIXED ",rt="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",ft="PLUS_DISCUSS",pt="SET_ACTION_TYPE",Pt="SHOW_REWARD_DIALOG",Dt="CANCEL_REWARD_DIALOG",Zt="SET_REWARD",Ft="ACTIVE_DISCUSS_INDEX",qt="CREATE_DISCUSS",te="DISABLE_DISCUSS",Kt="CHANGE_PAGE",ce="SHOW_ANSWER_LOADING",le="FETCH_ANSWER_INFO",xe="HIGH_TIP_MODAL",ve="SHOW_TIP_MODAL",Te="SELECT_UNLOCK_ANSWER",me="SET_CHOOSE_ANSWERS",He="EVAL_CHOOSE_START",fe="EVAL_CHOOSE_END",$t="SHOW_REP_loading",ie="FETCH_REP_CONTENT",ue="EDIT_REP_CONTENT",ge="SET_REP_PATH",he="SHOW_EVALUATE_LOADING",Ne="HIDE_EVALUATE_LOADING",ke="SET_EVALUATE_MESSAGE",$e="SET_SHOW_DIR",Re="SET_EDITOR_SETTING",tn="SET_EDITOR_THEME",Ae="SET_EDITOR_FONTSIZE",Ie="SET_REPOS",Fe="SHOW_PATH_LIST",se="HIDE_PATH_LIST",It="HIDE_PICTURE_VIEW",bt="SHOW_PICTURE_VIEW",Yt="SHOW_NOTICE",_t="HIDE_NOTICE",Mt="SHOW_CASE_NOTICE",Gt="HIDE_CASE_NOTICE",St="SET_TAB_INDEX",wt="SET_SSH_TABS",Rt="SET_SSH_CONFIGDATA",Wt="SET_SSH_CONFIGDATAARR",Ut="SET_VNC_LOADING ",oe="ON_TAB_TO_SPACE ",de="ON_AUTO_FORMAT "},77903:function(kn,En,Vt){"use strict";Vt.d(En,{Ax:function(){return Jt},Ds:function(){return Tt},KI:function(){return xt},SI:function(){return Xt},f1:function(){return gt}});var zt=Vt(3294);function gt(Nt){let jt=!0;if(Nt.length>0){for(let Ct=0;Cttt in et?Xt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,Ct=(et,tt)=>{for(var st in tt||(tt={}))xt.call(tt,st)&&jt(et,st,tt[st]);if(Bt)for(var st of Bt(tt))Nt.call(tt,st)&&jt(et,st,tt[st]);return et},Lt=(et,tt)=>Jt(et,Tt(tt)),At=(et,tt)=>{var st={};for(var rt in et)xt.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&Bt)for(var rt of Bt(et))tt.indexOf(rt)<0&&Nt.call(et,rt)&&(st[rt]=et[rt]);return st},Ot=(et,tt,st)=>new Promise((rt,ut)=>{var ct=Pt=>{try{pt(st.next(Pt))}catch(Dt){ut(Dt)}},ft=Pt=>{try{pt(st.throw(Pt))}catch(Dt){ut(Dt)}},pt=Pt=>Pt.done?rt(Pt.value):Promise.resolve(Pt.value).then(ct,ft);pt((st=st.apply(et,tt)).next())});const mt=et=>{var tt=et,{children:st}=tt,rt=At(tt,["children"]);const[ut,ct]=(0,gt.useState)(!1);return gt.createElement(zt.ZP,Lt(Ct({},rt),{loading:ut,onClick:ft=>Ot(void 0,null,function*(){try{ct(!0),yield rt.onClick(ft),ct(!1)}catch(pt){console.error(pt),ct(!1)}})}),st)}},5171:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Ct}});var zt=Vt(59301),gt=Vt(3113),Xt=Vt(8591),Jt=Vt(54580),Tt=Vt(32050),Bt=Vt(19248),xt=Vt(3294),Nt={img:"img___BgL9D"},Ct=({value:Lt,onChange:At,getFileProgress:Ot})=>{const[mt,et]=(0,zt.useState)(!1),tt=zt.createElement(gt.ZP,{loading:mt,icon:zt.createElement(Tt.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),st=()=>zt.createElement("div",{className:Nt.img},zt.createElement("img",{src:xt.Z.API_SERVER+"/api/attachments/"+Lt,alt:"avatar",style:{width:288}}),zt.createElement("div",null,zt.createElement(Bt.Z,{onClick:()=>At(""),style:{fontSize:"16px",color:"red"}}))),rt=ut=>{var ct,ft,pt,Pt,Dt,Zt;if(Ot&&Ot(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((ft=(ct=ut.file)==null?void 0:ct.response)==null?void 0:ft.status)===-1){Xt.ZP.error((Pt=(pt=ut.file)==null?void 0:pt.response)==null?void 0:Pt.message);return}At((Zt=(Dt=ut==null?void 0:ut.file)==null?void 0:Dt.response)==null?void 0:Zt.id)}};return zt.createElement(zt.Fragment,null,Lt?st():zt.createElement("div",null,zt.createElement(Jt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${xt.Z.API_SERVER}/api/attachments.json`,onChange:rt,accept:"image/*"},tt),zt.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),zt.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},73524:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Lt}});var zt=Vt(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xt=Vt(92310),Jt=Vt.n(Xt),Tt=Vt(71418),Bt=Vt(2859),xt=Vt(99064),Nt=Vt(955),jt=(At,Ot,mt)=>new Promise((et,tt)=>{var st=ct=>{try{ut(mt.next(ct))}catch(ft){tt(ft)}},rt=ct=>{try{ut(mt.throw(ct))}catch(ft){tt(ft)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(st,rt);ut((mt=mt.apply(At,Ot)).next())}),Lt=({data:At,className:Ot,fullWidth:mt,style:et={},onClose:tt,onOk:st,showFullTools:rt,noAssociationId:ut})=>{const ct=(0,zt.useRef)(null),ft=(0,zt.useRef)(null),pt=(0,zt.useRef)(null),Pt=(0,zt.useRef)(null),[Dt,Zt]=(0,zt.useState)(!1),[Ft,qt]=(0,zt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,zt.useEffect)(()=>(pt.current||(pt.current=document.createElement("style"),document.head.appendChild(pt.current)),At!=null&&At.visible?(document.body.setAttribute("data-custom","y-hidden"),pt.current.innerHTML=" html { overflow-y: hidden; }",At!=null&&At.src&&te()):(document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)),()=>{document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)}),[At==null?void 0:At.visible]);const te=()=>jt(void 0,null,function*(){Zt(!0),qt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const xe=yield(0,Nt.ZJ)(At==null?void 0:At.src);ct.current.src="",ct.current.src=xe,ct.current.onload=function(){le()},Zt(!1),qt("")}),Kt=xe=>jt(void 0,null,function*(){Zt(!0),qt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ve=yield(0,xt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:At.title,file:xe.dataUrl}});ve!=null&&ve.id&&!ut?(yield(0,xt.ZP)(`/api/attachments/${At.id}/add_subitem.json`,{method:"post",body:{subitem_id:ve==null?void 0:ve.id,settings:JSON.stringify(xe.state)}})).status===0&&st():ve!=null&&ve.id&&st(ve),Zt(!1),qt("")}),ce=()=>{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(Te=>{const me=document.querySelector(Te.name);me&&me.setAttribute("title",Te.title)})},le=()=>{ft.current=new Bt.hP(ct.current),ft.current.targetRoot=Pt.current,ft.current.addEventListener("render",Kt),ft.current.addEventListener("beforeclose",tt),rt&&(ft.current.availableMarkerTypes=ft.current.ALL_MARKER_TYPES,ft.current.uiStyleSettings.redoButtonVisible=!0,ft.current.uiStyleSettings.notesButtonVisible=!0,ft.current.uiStyleSettings.zoomButtonVisible=!0,ft.current.uiStyleSettings.zoomOutButtonVisible=!0,ft.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ft.current.uiStyleSettings,ft.current.show(),At!=null&&At.snapshotData&&ft.current.restoreState(At.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ce()},300)};return zt.createElement(zt.Fragment,null,(At==null?void 0:At.visible)&&zt.createElement(Tt.Z,{spinning:Dt,tip:Ft,style:{position:"absolute",width:"100vw"}},zt.createElement("div",{ref:Pt,className:Jt()(gt.imageDimensions,Ot,mt?gt.fullWidth:""),style:et},zt.createElement("img",{className:gt.img,ref:ct}))))}},41588:function(kn,En,Vt){"use strict";var zt=Vt(59301),gt=Vt(95237),Xt=Vt(43604),Jt=Vt(99313),Tt=Vt(3113),Bt=Vt(85149),xt=Vt(88010),Nt=Vt(48136),jt=Vt(59301);const Ct=(0,zt.forwardRef)(({callback:Lt,showSaveButton:At,value:Ot=""},mt)=>{const et=(0,zt.useRef)(),tt=[{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 "}]}]}],st=[{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}`}]}]}],rt=ft=>{et.current.setValue(et.current.getValue()+" "+ft.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:jt.createElement(gt.Z,{className:xt.Z.lists,gutter:[10,10]},tt.map((ft,pt)=>jt.createElement(Xt.Z,{flex:"110px",className:xt.Z.item},jt.createElement("div",null,jt.createElement(Bt.Z,{value:`$$${ft.value}$$`}),ft.name),jt.createElement("div",{className:xt.Z.children},ft.children.map((Pt,Dt)=>jt.createElement("div",{key:Dt},jt.createElement("h1",null,Pt.name),jt.createElement(gt.Z,{gutter:[10,10]},Pt.data.map((Zt,Ft)=>jt.createElement(Xt.Z,{key:Ft,onClick:()=>rt(Zt),className:xt.Z.diamond},jt.createElement(Bt.Z,{value:"`$$"+Zt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:jt.createElement(gt.Z,{className:xt.Z.lists,gutter:[10,10]},st.map((ft,pt)=>jt.createElement(Xt.Z,{flex:"110px",className:xt.Z.item},jt.createElement("div",null,jt.createElement(Bt.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),jt.createElement("div",{className:xt.Z.children},ft.children.map((Pt,Dt)=>jt.createElement("div",{key:Dt},Pt.name&&jt.createElement("h1",null,Pt.name),jt.createElement(gt.Z,{gutter:[10,10]},Pt.data.map((Zt,Ft)=>jt.createElement(Xt.Z,{key:Ft,onClick:()=>rt(Zt),className:xt.Z.diamond},jt.createElement(Bt.Z,{value:"`$$"+Zt.value+"$$`"}))))))))))}],ct=()=>{var ft=document.createElement("div");ft.innerHTML=et.current.getValue();var pt=ft.innerText;return Lt&&Lt(pt),pt};return(0,zt.useImperativeHandle)(mt,()=>({getData:ct})),jt.createElement("div",{className:xt.Z.mathWrap},jt.createElement(Jt.default,{defaultActiveKey:"1",items:ut}),jt.createElement("math-field",{locale:"zh_cn",className:xt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Ot||""),At&&jt.createElement("div",{className:xt.Z.button},jt.createElement(Tt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});En.Z=Ct},57490:function(kn,En,Vt){"use strict";Vt.d(En,{z:function(){return He},Z:function(){return fe}});var zt=Vt(59301),gt=Vt(54580),Xt=Vt(8591),Jt=Vt(43418),Tt=Vt(3113),Bt=Vt(3294),xt=Vt(23538),Nt=Object.defineProperty,jt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,At=($t,ie,ue)=>ie in $t?Nt($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,Ot=($t,ie)=>{for(var ue in ie||(ie={}))Ct.call(ie,ue)&&At($t,ue,ie[ue]);if(jt)for(var ue of jt(ie))Lt.call(ie,ue)&&At($t,ue,ie[ue]);return $t},mt=($t,ie,ue)=>new Promise((ge,he)=>{var Ne=Re=>{try{$e(ue.next(Re))}catch(tn){he(tn)}},ke=Re=>{try{$e(ue.throw(Re))}catch(tn){he(tn)}},$e=Re=>Re.done?ge(Re.value):Promise.resolve(Re.value).then(Ne,ke);$e((ue=ue.apply($t,ie)).next())});const et="\u3000\u3000";function tt($t){var ie=["Bytes","KB","MB","GB","TB"];if($t==0)return"0 Byte";var ue=parseInt(""+Math.floor(Math.log($t)/Math.log(1024)),10);return($t/Math.pow(1024,ue)).toFixed(1)+" "+ie[ue]}var st=({value:$t=[],action:ie,onChange:ue,className:ge,maxSize:he=150,title:Ne="\u6587\u4EF6\u4E0A\u4F20",accept:ke=null})=>{const $e={multiple:!1,fileList:$t,accept:ke,withCredentials:!0,beforeUpload:tn=>tn.size/1024/1024(bt.name.indexOf(et)===-1&&(bt.name=`${bt.name}${et}${tt(bt.size)}`),Ot({},bt))),tn.file.status==="done"&&((Ie=(Ae=tn.file)==null?void 0:Ae.response)==null?void 0:Ie.status)===-1){message.error((se=(Fe=tn.file)==null?void 0:Fe.response)==null?void 0:se.message),ue([]);return}ue(It)},onRemove:tn=>mt(void 0,null,function*(){const Ae=tn.size/1024/1024;return tn.status==="uploading"?!0:Ae0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:$t.length>0,ghost:!0},Ne),React.createElement("span",{onClick:Re,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",he,"M)"," ")))},rt=Vt(61481),ut=Vt(89392),ct=Object.defineProperty,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Dt=($t,ie,ue)=>ie in $t?ct($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,Zt=($t,ie)=>{for(var ue in ie||(ie={}))pt.call(ie,ue)&&Dt($t,ue,ie[ue]);if(ft)for(var ue of ft(ie))Pt.call(ie,ue)&&Dt($t,ue,ie[ue]);return $t};const Ft=$t=>React.createElement("svg",Zt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},$t),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",te=Object.defineProperty,Kt=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,xe=($t,ie,ue)=>ie in $t?te($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,ve=($t,ie)=>{for(var ue in ie||(ie={}))ce.call(ie,ue)&&xe($t,ue,ie[ue]);if(Kt)for(var ue of Kt(ie))le.call(ie,ue)&&xe($t,ue,ie[ue]);return $t},Te=($t,ie,ue)=>new Promise((ge,he)=>{var Ne=Re=>{try{$e(ue.next(Re))}catch(tn){he(tn)}},ke=Re=>{try{$e(ue.throw(Re))}catch(tn){he(tn)}},$e=Re=>Re.done?ge(Re.value):Promise.resolve(Re.value).then(Ne,ke);$e((ue=ue.apply($t,ie)).next())});const{Dragger:me}=gt.default;function He($t){let ie=[];return $t&&$t.length>0&&(ie=$t.map(ue=>({uid:ue.id,id:ue.id,name:ue.title+et+ue.filesize,url:ue.url,filesize:ue.filesize,status:"done",response:{id:ue.id}}))),ie}var fe=({value:$t,onChange:ie,action:ue,data:ge,className:he,maxSize:Ne=150,title:ke="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:$e=!1,accept:Re="",additionalText:tn,isDragger:Ae,number:Ie=1e3,aloneClear:Fe=!1,realTimeRemove:se=!0,uploadText:It,setFileProgress:bt,showFileProgress:Yt})=>{const[_t,Mt]=(0,zt.useState)(!1);let[Gt,St]=(0,zt.useState)($t||[]),[wt,Rt]=(0,zt.useState)(1);(0,zt.useEffect)(()=>{$t&&(wt===1&&St([...$t]),Rt(2),Ie===($t==null?void 0:$t.length)&&Mt(!0))},[$t]);const Wt=()=>{setTimeout(()=>{Gt.pop(),St([...Gt])},500)};Yt&&bt(Gt.some(de=>de.status==="uploading"));const Ut={multiple:!0,disabled:_t,accept:Re,withCredentials:!0,fileList:Gt,beforeUpload:(de,Ge)=>{const Ze=de.size/1024/1024;return Gt.concat(Ge).length>Ie?(Gt.pop(),St([...Gt]),Xt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ie}\u4E2A\u6587\u4EF6`),Fe?Promise.reject():(Wt(),!1)):Ze=Ie?Mt(!0):Mt(!1),St([...Gt]),Gt=Gt.map(gn=>{var De,Ke;return(De=gn==null?void 0:gn.response)!=null&&De.id&&(gn.url=(Ke=gn==null?void 0:gn.response)==null?void 0:Ke.url),gn.name.indexOf(et)===-1&&(gn.name=`${gn.name}${et}${tt(gn.size)}`),ve({},gn)}),console.log("info:",de,Gt),ie(Gt)},onRemove:de=>Te(void 0,null,function*(){if(!se)return!0;const Ge=()=>Te(void 0,null,function*(){if(de.response?de.response.id:de.id){let We=yield(0,xt.JZ)(de.response?de.response.id:de.uid);return Promise.resolve(We)}else return!0});return $e?new Promise((Ze,We)=>{Jt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:zt.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Te(void 0,null,function*(){const hn=yield Ge();Xt.ZP.success("\u5220\u9664\u6210\u529F"),Ze(!0)}),onCancel:()=>Ze(!1)})}):yield Ge()})};function oe(de){de.preventDefault(),de.stopPropagation()}return zt.createElement("div",{className:`multi-upload ${he||""}`},Ae&&zt.createElement(me,ve({},Ut),zt.createElement("p",{className:"ant-upload-drag-icon"},zt.createElement(rt.Z,null)),zt.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",zt.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ne,"MB)"," "),tn),!Ae&&zt.createElement(gt.default,ve({},Ut),zt.createElement(Tt.ZP,{disabled:_t,className:"upload_button"},zt.createElement("img",{className:"aBtn_img",src:qt}),ke),zt.createElement("span",{onClick:oe,className:"upload_text"},It||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ne}MB)`)))}},8797:function(kn,En,Vt){"use strict";var zt=Vt(59301),gt=Vt(93314),Xt=Vt(3113),Jt=Object.defineProperty,Tt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Ct=(mt,et,tt)=>et in mt?Jt(mt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):mt[et]=tt,Lt=(mt,et)=>{for(var tt in et||(et={}))Nt.call(et,tt)&&Ct(mt,tt,et[tt]);if(xt)for(var tt of xt(et))jt.call(et,tt)&&Ct(mt,tt,et[tt]);return mt},At=(mt,et)=>Tt(mt,Bt(et));const Ot=({img:mt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:ft,imgStyles:pt,loading:Pt=!1})=>zt.createElement("section",{className:"tc animated fadeIn",style:Lt(Lt({},{color:"#999",margin:"100px auto",visibility:Pt?"hidden":"visible"}),tt)},zt.createElement("img",{src:mt||gt,style:At(Lt({},pt),{pointerEvents:"none",userSelect:"none"})}),zt.createElement("p",{className:"mt20 font14"},st||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&zt.createElement(Xt.ZP,Lt({className:ct,onClick:ut},et),rt),ft&&ft);En.Z=Ot},23210:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return ct}});var zt=Vt(59301),gt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Xt=Vt(3113),Jt=Vt(70557),Tt=Vt(23954),Bt=Vt(6848),xt=Vt(955),Nt=Vt(94941),jt=Vt(8797),Ct=Vt(3294),Lt=Vt(19381),At=Vt(59301),Ot=Object.defineProperty,mt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(ft,pt,Pt)=>pt in ft?Ot(ft,pt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):ft[pt]=Pt,rt=(ft,pt)=>{for(var Pt in pt||(pt={}))et.call(pt,Pt)&&st(ft,Pt,pt[Pt]);if(mt)for(var Pt of mt(pt))tt.call(pt,Pt)&&st(ft,Pt,pt[Pt]);return ft},ut=(ft,pt,Pt)=>new Promise((Dt,Zt)=>{var Ft=Kt=>{try{te(Pt.next(Kt))}catch(ce){Zt(ce)}},qt=Kt=>{try{te(Pt.throw(Kt))}catch(ce){Zt(ce)}},te=Kt=>Kt.done?Dt(Kt.value):Promise.resolve(Kt.value).then(Ft,qt);te((Pt=Pt.apply(ft,pt)).next())}),ct=({editOffice:ft="view",data:pt,theme:Pt,type:Dt,filename:Zt,monacoEditor:Ft,className:qt,style:te,close:Kt,onClose:ce,hasMask:le,disabledDownload:xe,onImgDimensions:ve,showNodata:Te,recordInfo:me})=>{const[He,fe]=(0,zt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[$t,ie]=(0,zt.useState)(""),[ue,ge]=(0,zt.useState)(),he=window.ENV==="build"?"/react/build":"",Ne=location.host.startsWith("localhost")?Ct.Z.PROXY_SERVER:Ct.Z.API_SERVER,$e=10*(1024*1024),Re=(0,zt.useRef)();pt!=null&&pt.startsWith("/api")&&Dt!=="txt"&&(pt=Ct.Z.API_SERVER+pt);const tn=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Zt&&Ft&&(Ft.filename=Zt),(0,zt.useEffect)(()=>{var se,It;const bt=(It=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:It.split(";");bt==null||bt.map(Yt=>{let _t=Yt.split("=");_t[0]==="_educoder_session"&&ie(_t[1])})},[]),(0,zt.useEffect)(()=>{Dt==="office"&&(pt.indexOf("bigfilescdn.")>-1||pt.indexOf("bigfiles1")>-1?ge({url:pt,fileType:tn(pt),model:pt.indexOf("model=edit")?"edit":"view"}):Ae())},[Dt,pt]);const Ae=()=>ut(void 0,null,function*(){console.log("data:",pt);let se=pt;pt.startsWith("http")||(se=location.origin+se);let It=new URL(se).pathname.split("/").pop();const bt=yield(0,Nt.gJ)({attachment_id:It});bt.url=Ne+bt.url,ge(bt)}),Ie=()=>{if(pt.startsWith("http")||pt.startsWith("blob:")){Fe();return}(0,xt.Sv)(Zt||"educoder",pt,Zt)},Fe=()=>{me&&(0,Lt.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,xt.Nd)(Zt||"educoder",decodeURIComponent(pt))};return At.createElement("div",{style:rt({},te||{}),className:`${le&>.bgBlack} ${Dt?gt.wrp:"hide"}`},Kt&&At.createElement("div",{className:gt.close,ref:Re},!!ve&&At.createElement(Bt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Re.current},At.createElement("span",{onClick:()=>{ce(),ve()}},At.createElement("i",{className:"icon-yulanpizhu"}))),!xe&&At.createElement(Bt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Re.current},At.createElement("span",{onClick:Fe},At.createElement("i",{className:"icon-quxiaozhiding"}))),At.createElement(Bt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Re.current},At.createElement("span",{className:"",onClick:ce},At.createElement("i",{className:"icon-guanbi1"})))),At.createElement("div",{className:`${gt[qt]} ${qt} ${gt.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&At.createElement(At.Fragment,null,At.createElement(Tt.ZP,rt({},Ft)))),Dt==="audio"&&At.createElement("audio",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${pt}`,autoPlay:!0}),Dt==="video"&&At.createElement(At.Fragment,null,(pt==null?void 0:pt.indexOf("http"))>-1?At.createElement("video",{controls:!0,src:`${pt}`,autoPlay:!0}):At.createElement("video",{controls:!0,src:`data:video/mp4;base64,${pt}`,autoPlay:!0})),Dt==="office"&&ue&&At.createElement("iframe",{src:`${he}/office.html?key=${ue.key}&url=${btoa(ue.url)}&callbackUrl=${Ne+(ue.callbackUrl||"")}&fileType=${ue.fileType}&title=${ue.title||""}&model=${ft}&officeServer=${Ct.Z.ONLYOFFICE}&disabledDownload=${!!xe}`}),Dt==="html"&&At.createElement("iframe",{src:pt+"&disposition=inline"}),Dt==="pdf"&&At.createElement("iframe",{src:`${he}/js/pdfview/index.html?filename=${Zt||"educoder.pdf"}&url=${encodeURIComponent(pt)}&disabledDownload=${!!xe}`}),Dt==="image"&&At.createElement("img",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${pt}`}),(Dt==="other"||Dt==="download")&&At.createElement(At.Fragment,null,Te?At.createElement(jt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:At.createElement(Xt.ZP,{icon:At.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ie,disabled:xe},"\u4E0B\u8F7D")}):At.createElement(Xt.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:xe},At.createElement(Jt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(kn,En,Vt){"use strict";Vt.d(En,{z:function(){return Dt},Z:function(){return Zt}});var zt=Vt(59301),gt=Vt(50304),Xt=Vt(24768),Jt=Vt(64018),Tt=Vt(40846),Bt=Vt(3294),xt=Vt(955),Nt=Vt(15342),jt=Vt(1012),Ct=Vt(23210),Lt=Vt(59301),Ot=({html:Ft})=>{const qt=(0,zt.useRef)(null),te=(0,zt.useRef)(null),Kt=`.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,zt.useEffect)(()=>{const ce=qt.current.attachShadow({mode:"open"});te.current=document.createElement("div"),te.current.className="markdown-body",te.current.innerHTML=Ft,ce.appendChild(te.current);const le=document.createElement("style");return le.textContent=Kt,ce.appendChild(le),()=>{ce.innerHTML=""}},[]),(0,zt.useEffect)(()=>{te.current&&(te.current.innerHTML=Ft)},[Ft]),Lt.createElement("div",{ref:qt})},mt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,qt,te)=>qt in Ft?mt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,ut=(Ft,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&rt(Ft,te,qt[te]);if(et)for(var te of et(qt))st.call(qt,te)&&rt(Ft,te,qt[te]);return Ft};const ct="@\u2581\u2581@",ft="@\u2581@",pt=/]*>/g;function Pt(Ft){let qt=document.createElement("div");return qt.innerHTML=Ft,qt.childNodes.length===0?"":qt.childNodes[0].nodeValue}const Dt=(Ft,qt)=>{Ft=Ft||"";const te=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Kt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ce=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,le=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return qt?Ft.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(te,(xe,ve,Te,me,He,fe,$t)=>{const ie=ve||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/api/attachments/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ft=Ft.replace(le,(xe,ve,Te,me,He,fe,$t)=>{const ie=ve||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/attachments/download/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replace(te,(xe,ve,Te,me,He,fe,$t)=>{const ie=ve||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/api/attachments/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replace(Kt,(xe,ve,Te,me,He)=>{const fe=ve||me,$t=Te||He||"";return'"'+Bt.Z.API_SERVER+"/api/attachments/"+fe+$t+fe+$t+"&t="+(0,xt.Jn)(fe,Date.now())}).replace(ce,(xe,ve,Te,me,He)=>{const fe=ve||me,$t=Te||He||"";return"("+Bt.Z.API_SERVER+"/files/uploads/"+fe+$t+fe+$t+"&t="+(0,xt.Jn)(fe,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,` `),Ft)};var Zt=({value:Ft="",className:qt,showTextOnly:te,showLines:Kt,style:ce={},stylesPrev:le={},highlightKeywords:xe,showProgramFill:ve,isProgramFill:Te,disabledFill:me=!1,programFillValue:He,onFillChange:fe=ue=>{},onFillBlur:$t=()=>{},onFillFocus:ie=()=>{}})=>{let ue=String(Ft);const[ge,he]=(0,zt.useState)(""),[Ne,ke]=(0,zt.useState)("office"),[$e,Re]=(0,zt.useState)([]),tn=(0,zt.useRef)("a"+(0,jt.Z)()),Ae={},Ie=(Wt,Ut,oe)=>{const de=document.createElement(Wt===ft?"input":"textarea");de.style.width="100%",de.style.height=Wt===ft?"40px":"151px",de.rows=5,de.spellcheck=!1,de.name="edu-program-fill",de.placeholder="\u8BF7\u8F93\u5165",de.dataset.id=Ut;const Ge=Object.keys(Ae).length;return Ae[Ge]=de,`${de.outerHTML}`};function Fe(Wt){return Wt=Wt.replace(/!\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(/\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(new RegExp("","gs"),""),Wt=Wt.replace(//g,""),Wt=Wt.replace(//g,""),Wt=Wt.replace(new RegExp(".*?<\\/video>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/audio>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/style>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/script>","gs"),""),Wt}const se=Wt=>Wt.replace(/([\s\S]+?)<\/style>/gim,function(Ut,oe){let de=oe.replace(/(\n|\r)/g,"").split("}"),Ge=[];return de.map(Ze=>{Ze!=""&&Ge.push(`.${tn.current} ${Ze}`)}),``}),It=(0,zt.useMemo)(()=>{try{const de=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ge=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ze=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,We=/\(\/attachments\/download\//g;ue=ue.replace(We,"("+Bt.Z.API_SERVER+"/attachments/download/").replace(de,"("+Bt.Z.API_SERVER+"/api/attachments/").replace(Ge,'"'+Bt.Z.API_SERVER+"/api/attachments/").replace(Ze,'"'+Bt.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(de){}if(ve){let de=-1;return ue=ue.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ge,Ze,We){var hn;return++de,Ie(Ge,de,(hn=He==null?void 0:He[de])==null?void 0:hn.value.replaceAll("<","<").replaceAll(">",">"))}),`
${se(ue||"")}
`}let Wt=se(ue);Wt=(0,Xt.ZP)(Wt);const Ut=(0,Xt.ez)();ue.match(/\[TOC\]/)&&(Wt=Wt.replace("

[TOC]

",(0,Xt.Qv)()),(0,Xt.Iy)()),Wt=Wt.replace(/(__special_katext_id_\d+__)/g,(de,Ge)=>{const{type:Ze,expression:We}=Ut[Ge];return(0,Nt.renderToString)(Pt(We)||"",{displayMode:Ze==="block",throwOnError:!1,output:"html"})}),Wt=Wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Xt.AL)();const oe=document.createElement("div");if(oe.innerHTML=Wt,te)return oe.innerText;if(xe){const de=xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Mt(oe,de),oe.innerHTML}return setTimeout(()=>wt(),500),oe.innerHTML},[ue,xe]);(0,zt.useEffect)(()=>{Gt.current&&Gt.current.querySelectorAll(["input","textarea"]).forEach(Ut=>{Ut.oninput=bt,Ut.onblur=Yt,Ut.onfocus=_t})},[$e]),(0,zt.useEffect)(()=>{var Wt,Ut,oe,de,Ge;if(He!=null&&He.length)try{const Ze=Gt.current.querySelectorAll(".edu-program-fill-score"),We=Gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[hn,gn]of We.entries())gn.value=((Wt=He==null?void 0:He[hn])==null?void 0:Wt.value)||"",((Ut=He==null?void 0:He[hn])==null?void 0:Ut.type)==="warning"?gn.className="program-fill-warning":((oe=He==null?void 0:He[hn])==null?void 0:oe.type)==="success"?gn.className="program-fill-success":gn.className="";for(const[hn,gn]of Ze.entries())gn.innerHTML=(de=He==null?void 0:He[hn])!=null&&de.score?`${(Ge=He==null?void 0:He[hn])==null?void 0:Ge.score}\u5206`:"";Re(He)}catch(Ze){console.log(Ze,"error")}},[He]);const bt=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),fe($e,Wt.target.dataset.id)},Yt=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),$t($e,Wt.target.dataset.id)},_t=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),ie($e,Wt.target.dataset.id)};function Mt(Wt,Ut){return Wt.childNodes.forEach(oe=>{var de;if(oe.childNodes.length>0)Mt(oe,Ut);else if(oe.nodeName!=="IMG")if(oe.innerHTML)oe.innerHTML=(de=oe.innerHTML)==null?void 0:de.replace(new RegExp(Ut,"gi"),'$&');else{const Ge=document.createElement("span");Ge.innerHTML=oe.textContent.replace(new RegExp(Ut,"gi"),'$&'),oe.replaceWith(Ge)}})}const Gt=(0,zt.useRef)();Xt.jb.WebkitLineClamp=Kt,Kt&&(ce=ut(ut({},ce),Xt.jb));function St(Wt){let Ut=Wt.target;if(Ut.tagName.toUpperCase()==="A"){let oe=Ut.getAttribute("href");if(oe.indexOf("office")>-1)Wt.preventDefault(),he(oe),ke("office");else if(oe.indexOf("application/pdf")>-1)Wt.preventDefault(),he(oe),ke("pdf");else if(oe.indexOf("text/html")>-1)Wt.preventDefault(),he(oe),ke("html");else if(oe.startsWith("#")){Wt.preventDefault();let de=document.getElementById(oe.replace("#",""));de&&de.scrollIntoView(!0)}}}const wt=()=>{var Wt;const Ut=(Wt=Gt.current)==null?void 0:Wt.querySelectorAll("video");Ut==null||Ut.forEach(oe=>{if(oe.oncontextmenu=()=>!1,oe.src.indexOf(".m3u8")>-1&&!oe.canPlayType("application/vnd.apple.mpegurl")){if(Tt.ZP.isSupported()){var de=new Tt.ZP;de.loadSource(oe.src),de.attachMedia(oe)}}})};(0,zt.useEffect)(()=>{if(Gt.current&&It&&It.match(pt)&&window.PR.prettyPrint(),Gt.current)return Gt.current.addEventListener("click",St),()=>{var Wt;(Wt=Gt.current)==null||Wt.removeEventListener("click",St),(0,Xt.AL)(),(0,Xt.Iy)()}},[It,Gt.current,St]),(0,zt.useEffect)(()=>{var Wt;const Ut=oe=>{oe.preventDefault(),oe.clipboardData.setData("text",window.getSelection().toString())};return(Wt=Gt.current)==null||Wt.addEventListener("copy",Ut),()=>{var oe;(oe=Gt.current)==null||oe.removeEventListener("copy",Ut)}},[Gt.current]);const Rt=Wt=>//i.test(Wt||"");return zt.createElement(zt.Fragment,null,te&&zt.createElement("div",{ref:Gt},It),!te&&!Rt(It)&&zt.createElement("div",{ref:Gt,style:ut({},ce),className:`${qt||""} ${me?"disabled-fill":""} markdown-body ${tn.current}`,dangerouslySetInnerHTML:{__html:It}}),!te&&Rt(It)&&zt.createElement(Ot,{html:It}),zt.createElement(Ct.Z,{close:!0,data:ge,type:ge!=null&&ge.length?Ne:"",style:ut({},le),onClose:()=>he("")}))}},61398:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Jt}});var zt=Vt(59301),gt=Vt(34604),Xt=Vt(11611),Jt=()=>{const[Tt,Bt]=(0,zt.useState)(""),[xt,Nt]=(0,zt.useState)(0);let[jt,Ct]=(0,zt.useState)(),[Lt,At]=(0,zt.useState)();const[Ot,mt]=(0,zt.useState)(!1),et=(0,zt.useRef)("");(0,zt.useEffect)(()=>gt.Z.subscribe("preview-image",Ft=>{Bt(Ft),console.log(Pt.current),document.body.style.overflow="hidden"}),[]),(0,zt.useEffect)(()=>(document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}),[]),(0,zt.useEffect)(()=>{et.current=Tt},[Tt]);function tt(Zt){Zt.keyCode==27&&et.current&&st()}function st(){document.body.style.overflow="auto",Ct(void 0),At(void 0),Nt(0),Bt("")}function rt(){Nt(xt+90)}function ut(){jt=Pt.current.width*1.1,Lt=Pt.current.height*1.1,At(Lt),Ct(jt)}function ct(){jt=Pt.current.width/1.1,Lt=Pt.current.height/1.1,At(Lt),Ct(jt)}const ft=(0,zt.useRef)(),pt=(0,zt.useRef)(),Pt=(0,zt.useRef)(),Dt=Zt=>{(Zt.nativeEvent.target===ft.current||Zt.nativeEvent.target===pt.current)&&st()};return zt.createElement(zt.Fragment,null,Tt?zt.createElement("div",null,zt.createElement("div",{className:"preview-wrp-group",ref:pt},zt.createElement(Xt.Z,{className:"image-preview",src:Tt,style:{display:"none"},preview:{visible:!0,src:Tt,movable:!1,onVisibleChange:Zt=>{Bt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},97692:function(kn,En,Vt){"use strict";Vt.d(En,{h:function(){return ft}});var zt=Vt(59301),gt=Vt(57809),Xt=Vt(78241),Jt=Vt(3113),Tt=Vt(89780),Bt=Vt.n(Tt),xt=Vt(37036),Nt=Vt(95625),jt=Object.defineProperty,Ct=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,et=(pt,Pt,Dt)=>Pt in pt?jt(pt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):pt[Pt]=Dt,tt=(pt,Pt)=>{for(var Dt in Pt||(Pt={}))Ot.call(Pt,Dt)&&et(pt,Dt,Pt[Dt]);if(At)for(var Dt of At(Pt))mt.call(Pt,Dt)&&et(pt,Dt,Pt[Dt]);return pt},st=(pt,Pt)=>Ct(pt,Lt(Pt));const rt=gt.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};En.Z=({callback:pt,onCancel:Pt})=>{const[Dt,Zt]=(0,zt.useState)("python");function Ft(te){Zt(ct[te][1])}function qt(te){pt(te)}return zt.createElement(Xt.default,st(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qt,style:{width:500}}),zt.createElement(Xt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},zt.createElement(gt.default,{getPopupContainer:te=>te.parentNode,onChange:Ft},Object.keys(ct).map(te=>zt.createElement(rt,{key:te,value:te},ct[te][0])))),zt.createElement(Xt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},zt.createElement(ft,{mode:Dt})),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Jt.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))};function ft({value:pt,onChange:Pt,mode:Dt,options:Zt={}}){const Ft=(0,zt.useRef)(),[qt,te]=(0,zt.useState)();return(0,zt.useEffect)(()=>{if(qt){let Kt=function(ce){const le=ce.getValue();Pt&&Pt(le)};return qt.on("change",Kt),()=>{qt.off("change",Kt)}}},[qt,Pt]),(0,zt.useEffect)(()=>{qt&&qt.setOption("mode",Dt)},[qt,Dt]),(0,zt.useEffect)(()=>{qt&&(pt!==qt.getValue()||pt==="")&&setTimeout(()=>{qt.setValue(pt||"")},300)},[qt,pt]),(0,zt.useEffect)(()=>{if(Ft.current&&!qt){const Kt=Bt().fromTextArea(Ft.current,tt({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Zt));te(Kt)}},[Ft.current,qt]),zt.createElement("div",{className:"my-codemirror-container"},zt.createElement("textarea",{ref:Ft}))}},12290:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Zn}});var zt=Vt(59301),gt=Vt(89780),Xt=Vt.n(gt),Jt=Vt(76374),Tt=Vt(37036),Bt=Vt(6313),xt=Vt(25717),Nt=Vt(99498),jt=Vt(25419),Ct=Vt(67549),Lt=Vt(85149),At=({value:Qe="",className:Je,showTextOnly:we,showLines:dn,style:wn={}})=>{const ze=(0,zt.useMemo)(()=>"",[Qe]);return zt.createElement(zt.Fragment,null,zt.createElement("div",{dangerouslySetInnerHTML:{__html:ze}}))},Ot=Vt(59301),mt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(Qe,Je,we)=>Je in Qe?mt(Qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:we}):Qe[Je]=we,ft=(Qe,Je)=>{for(var we in Je||(Je={}))rt.call(Je,we)&&ct(Qe,we,Je[we]);if(st)for(var we of st(Je))ut.call(Je,we)&&ct(Qe,we,Je[we]);return Qe},pt=(Qe,Je)=>et(Qe,tt(Je));let Pt=[{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 Dt({onActionCallback:Qe,title:Je,icon:we,actionName:dn,className:wn="",children:ze}){function Le(){Qe(dn)}return Ot.createElement("a",{title:Je,className:wn,onClick:Le},Ot.createElement("i",{className:`${we}`}),ze)}var Zt=({watch:Qe,showNullButton:Je,showNullProgramButton:we,onActionCallback:dn,fullScreen:wn,insertTemp:ze,hidetoolBar:Le,extraUse:fn})=>{const Cn=[...Pt,{title:`${Qe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Qe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ot.createElement("ul",{className:"markdown-toolbar-container"},!Le&&Cn.map((nn,qe)=>Ot.createElement("li",{key:qe},nn.actionName?Ot.createElement(Dt,pt(ft({},nn),{onActionCallback:dn})):Ot.createElement("span",{className:"v-line"}))),Je?Ot.createElement("li",null,Ot.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dn},Ot.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?Ot.createElement(Ot.Fragment,null,Ot.createElement("li",null,Ot.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dn},Ot.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ot.createElement("li",null,Ot.createElement(Dt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dn},Ot.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ze&&Ot.createElement("li",null,Ot.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ze}`,onActionCallback:dn},Ot.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fn&&Ot.createElement("li",null,fn),Ot.createElement("li",{className:"btn-full-screen"},Ot.createElement(Dt,{icon:`${wn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dn})))},Ft=Vt(79346),qt=Vt(78241),te=Vt(92832),Kt=Vt(3113),ce=Object.defineProperty,le=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,He=(Qe,Je,we)=>Je in Qe?ce(Qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:we}):Qe[Je]=we,fe=(Qe,Je)=>{for(var we in Je||(Je={}))Te.call(Je,we)&&He(Qe,we,Je[we]);if(ve)for(var we of ve(Je))me.call(Je,we)&&He(Qe,we,Je[we]);return Qe},$t=(Qe,Je)=>le(Qe,xe(Je));const ie={labelCol:{span:4},wrapperCol:{span:20}};var ue=({callback:Qe,onCancel:Je})=>{function we(dn){Qe(dn)}return zt.createElement(qt.default,$t(fe({},ie),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),zt.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},zt.createElement(te.default,null)),zt.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},zt.createElement(te.default,null)),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Kt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},ge=Vt(97692),he=Vt(28451),Ne=Vt(43418),ke=Vt(95237),$e=Vt(73524),Re=Vt(59301),tn=({callback:Qe,onCancel:Je})=>{const we=document.createElement("canvas"),dn=we.getContext("2d");we.width=1e3,we.height=800,dn.fillStyle="#ffffff",dn.fillRect(0,0,we.width,we.height);const wn=we.toDataURL("image/png");return Re.createElement(Ne.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Re.createElement(ke.Z,{style:{height:"100vh"}},Re.createElement($e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wn,visible:!0,title:String(Date.now())},onOk:ze=>{Qe({src:ze.url})},onClose:Je})))},Ae=Vt(12378);function Ie(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ie,go.CommandHandler),Ie.prototype.canAlignSelection=function(){var Qe=this.diagram;return!(Qe===null||Qe.isReadOnly||Qe.isModelReadOnly||Qe.selection.count<2)},Ie.prototype.alignLeft=function(){var Qe=this.diagram;Qe.startTransaction("aligning left");var Je=1/0;Qe.selection.each(function(we){we instanceof go.Link||(Je=Math.min(we.position.x,Je))}),Qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Je,we.position.y))}),Qe.commitTransaction("aligning left")},Ie.prototype.alignRight=function(){var Qe=this.diagram;Qe.startTransaction("aligning right");var Je=-1/0;Qe.selection.each(function(we){if(!(we instanceof go.Link)){var dn=we.actualBounds.x+we.actualBounds.width;Je=Math.max(dn,Je)}}),Qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Je-we.actualBounds.width,we.position.y))}),Qe.commitTransaction("aligning right")},Ie.prototype.alignTop=function(){var Qe=this.diagram;Qe.startTransaction("alignTop");var Je=1/0;Qe.selection.each(function(we){we instanceof go.Link||(Je=Math.min(we.position.y,Je))}),Qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,Je))}),Qe.commitTransaction("alignTop")},Ie.prototype.alignBottom=function(){var Qe=this.diagram;Qe.startTransaction("aligning bottom");var Je=-1/0;Qe.selection.each(function(we){if(!(we instanceof go.Link)){var dn=we.actualBounds.y+we.actualBounds.height;Je=Math.max(dn,Je)}}),Qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,Je-we.actualBounds.height))}),Qe.commitTransaction("aligning bottom")},Ie.prototype.alignCenterX=function(){var Qe=this.diagram,Je=Qe.selection.first();if(Je){Qe.startTransaction("aligning Center X");var we=Je.actualBounds.x+Je.actualBounds.width/2;Qe.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(we-dn.actualBounds.width/2,dn.actualBounds.y))}),Qe.commitTransaction("aligning Center X")}},Ie.prototype.alignCenterY=function(){var Qe=this.diagram,Je=Qe.selection.first();if(Je){Qe.startTransaction("aligning Center Y");var we=Je.actualBounds.y+Je.actualBounds.height/2;Qe.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(dn.actualBounds.x,we-dn.actualBounds.height/2))}),Qe.commitTransaction("aligning Center Y")}},Ie.prototype.alignColumn=function(Qe){var Je=this.diagram;Je.startTransaction("align Column"),Qe===void 0&&(Qe=0),Qe=parseFloat(Qe);var we=new Array;Je.selection.each(function(fn){fn instanceof go.Link||we.push(fn)});for(var dn=0;dn0){for(var fn=ze.elt(Le-1);fn!==null&&fn.isTreeExpanded&&!fn.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(fn);fn=Cn.last()}fn!==null&&Qe.select(fn)}else Qe.select(wn)}}else if(we.key==="Down")if(Je.isTreeExpanded&&!Je.isTreeLeaf){var dn=this._sortTreeChildrenByY(Je).first();dn!==null&&Qe.select(dn)}else for(;Je!==null;){var wn=Je.findTreeParentNode();if(wn===null)break;var ze=this._sortTreeChildrenByY(wn),Le=ze.indexOf(Je);if(Leze.y?1:wn.xze.x?1:0}),Je},Ie.prototype.copyToClipboard=function(Qe){go.CommandHandler.prototype.copyToClipboard.call(this,Qe),this._lastPasteOffset.set(this.pasteOffset)},Ie.prototype.pasteFromClipboard=function(){var Qe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Qe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Qe},Object.defineProperty(Ie.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Qe){if(Qe!=="move"&&Qe!=="select"&&Qe!=="scroll"&&Qe!=="tree"&&Qe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Qe);this._arrowKeyBehavior=Qe}}),Object.defineProperty(Ie.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Qe){if(!(Qe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Qe);this._pasteOffset.set(Qe)}});var Fe=Ie,se=Vt(74413),It=Vt(43604),bt=Vt(99064),Yt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},_t=Vt(24065),Mt=Vt(59301),Gt=(Qe,Je,we)=>new Promise((dn,wn)=>{var ze=Cn=>{try{fn(we.next(Cn))}catch(nn){wn(nn)}},Le=Cn=>{try{fn(we.throw(Cn))}catch(nn){wn(nn)}},fn=Cn=>Cn.done?dn(Cn.value):Promise.resolve(Cn.value).then(ze,Le);fn((we=we.apply(Qe,Je)).next())});function St({onCancel:Qe,callback:Je}){let we=(0,zt.useRef)(),dn=(0,zt.useRef)(),wn=(0,zt.useRef)(),ze=(0,zt.useRef)(!1);const Le=(0,zt.useRef)(!1),[fn,Cn]=(0,zt.useState)(0);function nn(){const Ce=Ae.bx.make,en={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"};we.current=new Ae.S0(dn.current,{padding:20,grid:Ce(Ae.s_,"Grid",Ce(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ce(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Hn=>{var Jn=Hn.diagram.commandHandler.addTopLevelParts(Hn.diagram.selection,!0);Jn||Hn.diagram.currentTool.doCancel()},commandHandler:Ce(Fe),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Hn=>{var Jn=Hn.subject;Jn.location=Jn.location.copy().snapToGridPoint(Hn.diagram.grid.gridOrigin,Hn.diagram.grid.gridCellSize),setTimeout(()=>{Hn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Hn=>{var Jn=Hn.subject;setTimeout(()=>{Hn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Hn=>{var Jn=Hn.parameter.part;Jn.invalidateConnectedLinks();var ei=Hn.subject;Hn.diagram.toolManager.linkingTool.isForwards?ei.toNode.invalidateConnectedLinks():ei.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=Ce(Ae.NB,"Auto",{locationSpot:Ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ae.$u(120,60),minSize:new Ae.$u(40,40),resizable:!0,resizeCellSize:new Ae.$u(10,10),rotatable:!0},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),new Ae.KX("desiredSize","size",Ae.$u.parse).makeTwoWay(Ae.$u.stringify),Ce(Ae.bn,{name:"SHAPE",fill:en.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("figure"),new Ae.KX("fill"),new Ae.KX("stroke","borderColor"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Ce(Ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ce(Ae.al,{margin:1,textAlign:"center",overflow:Ae.al.OverflowEllipsis,editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),we.current.nodeTemplate.toolTip=Ce("ToolTip",Ce(Ae.s_,"Vertical",{maxSize:new Ae.$u(200,NaN)},Ce(Ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ae.KX("text")),Ce(Ae.al,{font:"10pt sans-serif",textAlign:"center"},new Ae.KX("text","details"))));function xn(Hn,Jn){var ei=(ti,pi)=>{ti.handled=!0,ti.diagram.model.commit(Ei=>{var gi=pi.part.adornedPart,ii=new Ae.E9().setRectSpot(gi.actualBounds,Hn);ii.subtract(gi.location),ii.scale(2,2),ii.x+=Math.sign(ii.x)*130,ii.y+=Math.sign(ii.y)*130,ii.add(gi.location),ii.snapToGridPoint(ti.diagram.grid.gridOrigin,ti.diagram.grid.gridCellSize);var Li=Ei.copyNodeData(gi.data);Ei.setGroupKeyForNodeData(Li,Ei.getGroupKeyForNodeData(gi.data)),Ei.addNodeData(Li);var Ln={from:gi.key,to:Ei.getKeyForNodeData(Li)};Ei.addLinkData(Ln);var tr=ti.diagram.findNodeForData(Li);tr.location=ii,ti.diagram.select(tr),setTimeout(()=>{ti.diagram.commandHandler.editTextBlock()},20)})};return Ce(Ae.bn,{figure:Jn,alignment:Hn,alignmentFocus:Hn.opposite(),width:Hn.equals(Ae.z6.Top)||Hn.equals(Ae.z6.Bottom)?25:18,height:Hn.equals(Ae.z6.Top)||Hn.equals(Ae.z6.Bottom)?18:25,fill:"orange",stroke:en.white,strokeWidth:4,mouseEnter:(ti,pi)=>pi.fill="dodgerblue",mouseLeave:(ti,pi)=>pi.fill="orange",isActionable:!0,click:ei,contextClick:ei})}function Bn(Hn){return Ce(Ae.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:(Jn,ei)=>ei.fill="dodgerblue",mouseLeave:(Jn,ei)=>ei.fill="orange",click:(Jn,ei)=>{Jn.diagram.commandHandler.showContextMenu(ei.part.adornedPart)}},Hn||{})}we.current.nodeTemplate.selectionAdornmentTemplate=Ce(Ae.uz,"Spot",Ce(Ae.Vm,{padding:10}),xn(Ae.z6.Top,"TriangleUp"),xn(Ae.z6.Left,"TriangleLeft"),xn(Ae.z6.Right,"TriangleRight"),xn(Ae.z6.Bottom,"TriangleDown"),Bn({alignment:new Ae.z6(.75,0)}));function Xe(Hn,Jn){return(ei,ti)=>{ei.handled=!0,ei.diagram.model.commit(pi=>{pi.set(ti.part.adornedPart.data,Hn,Jn)})}}function ln(Hn,Jn){return Jn||(Jn="color"),Ce(Ae.bn,{width:16,height:16,stroke:"lightgray",fill:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.stroke="dodgerblue",mouseLeave:(ei,ti)=>ti.stroke="lightgray",click:Xe(Jn,Hn),contextClick:Xe(Jn,Hn)})}function _e(){return[Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",ln(en.white,"fill"),ln(en.beige,"fill"),ln(en.extralightblue,"fill"),ln(en.extralightred,"fill"))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",ln(en.lightgray,"fill"),ln(en.lightgreen,"fill"),ln(en.lightblue,"fill"),ln(en.lightred,"fill")))]}function on(){return[Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",ln(en.black),ln(en.green),ln(en.blue),ln(en.red))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",ln(en.white),ln(en.magenta),ln(en.purple),ln(en.orange)))]}function pn(Hn,Jn){return Jn||(Jn="thickness"),Ce(Ae.bn,"LineH",{width:16,height:16,strokeWidth:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Xe(Jn,Hn),contextClick:Xe(Jn,Hn)})}function sn(Hn,Jn){return Jn||(Jn="dash"),Ce(Ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Xe(Jn,Hn),contextClick:Xe(Jn,Hn)})}function Pn(){return[Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",pn(1),pn(2),pn(3),pn(4))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",sn(null),sn([2,4]),sn([4,4])))]}function yn(Hn,Jn){return Jn||(Jn="figure"),Ce(Ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.fill="dodgerblue",mouseLeave:(ei,ti)=>ti.fill="lightgray",click:Xe(Jn,Hn),contextClick:Xe(Jn,Hn)})}we.current.nodeTemplate.contextMenu=Ce("ContextMenu",Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",yn("Rectangle"),yn("RoundedRectangle"),yn("Ellipse"),yn("Diamond"))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",yn("Parallelogram2"),yn("ManualOperation"),yn("Procedure"),yn("Cylinder1"))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",yn("Terminator"),yn("CreateRequest"),yn("Document"),yn("TriangleDown"))),_e(),on(),Pn()),we.current.groupTemplate=Ce(Ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Hn,Jn)=>{var ei=Jn.addMembers(Jn.diagram.selection,!0);ei||Jn.diagram.currentTool.doCancel()},avoidable:!1},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),Ce(Ae.s_,"Auto",{name:"BODY"},Ce(Ae.bn,{parameter1:10,fill:en.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("fill"),new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Ce(Ae.Vm,{background:"transparent",margin:20})),Ce(Ae.al,{alignment:Ae.z6.Top,alignmentFocus:Ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ae.KX("text"),new Ae.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=Ce(Ae.uz,"Spot",Ce(Ae.s_,"Auto",Ce(Ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ce(Ae.Vm,{margin:1.5})),Bn({alignment:Ae.z6.TopRight,alignmentFocus:Ae.z6.BottomRight})),we.current.groupTemplate.contextMenu=Ce("ContextMenu",_e(),on(),Pn()),we.current.linkTemplate=Ce(Ae.rU,{layerName:"Foreground",routing:Ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ae.KX("fromSpot","fromSpot",Ae.z6.parse),new Ae.KX("toSpot","toSpot",Ae.z6.parse),new Ae.KX("fromShortLength","dir",Hn=>Hn>=1?10:0),new Ae.KX("toShortLength","dir",Hn=>Hn>=1?10:0),new Ae.KX("points").makeTwoWay(),Ce(Ae.bn,{strokeWidth:2},new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Ce(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,0),segmentOrientation:Ae.rU.OrientAlong,alignmentFocus:Ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Hn=>Hn===1)),Ce(Ae.bn,{segmentIndex:-1,segmentOffset:new Ae.E9(-10,6),segmentOrientation:Ae.rU.OrientPlus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Hn=>Hn>=1),new Ae.KX("width","thickness",Hn=>7+3*Hn),new Ae.KX("height","thickness",Hn=>7+3*Hn),new Ae.KX("segmentOffset","thickness",Hn=>new Ae.E9(-15,4+1.5*Hn))),Ce(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,-6),segmentOrientation:Ae.rU.OrientMinus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Hn=>Hn===2),new Ae.KX("width","thickness",Hn=>7+3*Hn),new Ae.KX("height","thickness",Hn=>7+3*Hn),new Ae.KX("segmentOffset","thickness",Hn=>new Ae.E9(-15,4+1.5*Hn))),Ce(Ae.al,{alignmentFocus:new Ae.z6(0,1,-4,0),editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=Ce(Ae.uz,Ce(Ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Mn(2)},new Ae.KX("pathPattern","thickness",Mn)),Bn({alignmentFocus:new Ae.z6(0,0,-6,-4)}));function Mn(Hn){return Ce(Ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Hn+4).toString()+" H3"})}function In(Hn){var Jn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Hn===0?Jn="M0 0 M16 16 M0 8 L16 8":Hn===2&&(Jn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ce(Ae.bn,{geometryString:Jn,margin:2,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Xe("dir",Hn),contextClick:Xe("dir",Hn)})}function $n(Hn){var Jn=(ei,ti)=>{ei.handled=!0,ei.diagram.model.commit(pi=>{var Ei=ti.part.adornedPart;pi.set(Ei.data,Hn?"toSpot":"fromSpot",Ae.z6.stringify(Ae.z6.AllSides)),(Hn?Ei.toNode:Ei.fromNode).invalidateConnectedLinks()})};return Ce(Ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Jn,contextClick:Jn})}function un(Hn,Jn){var ei=0,ti=Ae.z6.RightSide;Hn.equals(Ae.z6.Top)?(ei=270,ti=Ae.z6.TopSide):Hn.equals(Ae.z6.Left)?(ei=180,ti=Ae.z6.LeftSide):Hn.equals(Ae.z6.Bottom)&&(ei=90,ti=Ae.z6.BottomSide),Jn||(ei-=180);var pi=(Ei,gi)=>{Ei.handled=!0,Ei.diagram.model.commit(ii=>{var Li=gi.part.adornedPart;ii.set(Li.data,Jn?"toSpot":"fromSpot",Ae.z6.stringify(ti)),(Jn?Li.toNode:Li.fromNode).invalidateConnectedLinks()})};return Ce(Ae.bn,{alignment:Hn,alignmentFocus:Hn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ei,background:"transparent",mouseEnter:(Ei,gi)=>gi.background="dodgerblue",mouseLeave:(Ei,gi)=>gi.background="transparent",click:pi,contextClick:pi})}we.current.linkTemplate.contextMenu=Ce("ContextMenu",on(),Pn(),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",In(0),In(1),In(2))),Ce("ContextMenuButton",Ce(Ae.s_,"Horizontal",Ce(Ae.s_,"Spot",$n(!1),un(Ae.z6.Top,!1),un(Ae.z6.Left,!1),un(Ae.z6.Right,!1),un(Ae.z6.Bottom,!1)),Ce(Ae.s_,"Spot",{margin:new Ae.Zt(0,0,0,2)},$n(!0),un(Ae.z6.Top,!0),un(Ae.z6.Left,!0),un(Ae.z6.Right,!0),un(Ae.z6.Bottom,!0)))));const si=`{ "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 Ci=["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 hi(Hn){return console.log("shapeName:",Hn),Ci.indexOf(Hn)>=0}var cn=new Ae.YI(wn.current,{maxSelectionCount:1,linkTemplate:Ce(Ae.rU,{locationSpot:Ae.z6.Center,selectionAdornmentTemplate:Ce(Ae.uz,"Link",{locationSpot:Ae.z6.Center},Ce(Ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ce(Ae.bn,{toArrow:"Standard",stroke:null}))},{routing:Ae.rU.AvoidsNodes,curve:Ae.rU.JumpOver,corner:5,toShortLength:4},new Ae.KX("points"),Ce(Ae.bn,{isPanelMain:!0,strokeWidth:2}),Ce(Ae.bn,{toArrow:"Standard",stroke:null})),model:new Ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ae.bn.getFigureGenerators().toArray().map(Hn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Hn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(Hn){var Jn;const ei=Hn.subject.part;var ti=(Jn=document.activeElement)==null?void 0:Jn.value;typeof ti=="string"&&ti.trim()===""&&we.current.model.commit(function(pi){pi.set(ei.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),cn.nodeTemplate=Ce(Ae.NB,"Auto",{locationSpot:Ae.z6.Center},new Ae.KX("location","location",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),Ce(Ae.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 Ae.KX("stroke").makeTwoWay(),new Ae.KX("fill").makeTwoWay(),new Ae.KX("figure")),Ce(Ae.al,{margin:new Ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ae.$u(16,16),maxSize:new Ae.$u(10,NaN),textAlign:"center",editable:!0},new Ae.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=Ce(Ae.s_,"Grid",Ce(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ce(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const qe=()=>Gt(this,null,function*(){var Ce,en=we.current.makeImage();const xn=yield(0,bt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:en.src,file_data:JSON.stringify({login:(Ce=(0,_t.eY)())==null?void 0:Ce.login,data:JSON.parse(we.current.model.toJson())})}});Je({src:xn.url})});return(0,zt.useEffect)(()=>(setTimeout(()=>{nn()},500),Cn(fn+1),()=>{we.current=null}),[]),Mt.createElement("div",{ref:Le,className:ze.current?`${Yt.maxH60} body-overflow-initial`:"body-overflow-initial"},Mt.createElement(Ne.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Mt.createElement(ke.Z,null,Mt.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Mt.createElement(It.Z,{onClick:()=>{var Ce,en,xn=we.current.selection.first();if(ze.current=!ze.current,document.activeElement&&xn){let Bn=(en=(Ce=document.activeElement)==null?void 0:Ce.value)==null?void 0:en.trim();typeof Bn=="string"&&we.current.model.commit(function(Xe){Xe.set(xn.data,"text",Bn||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}Cn(fn+1)}},Mt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Qe},Mt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Yt.flowChartWrp},Mt.createElement("div",{style:{display:"flex",height:"100%"}},Mt.createElement("div",{style:{width:"300px",height:"100%"}},Mt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Mt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Yt.myPaletteDiv,ref:wn})),Mt.createElement("div",{style:{flex:1,position:"relative"}},Mt.createElement("div",{ref:dn,style:{height:"80vh"}}))),Mt.createElement("div",{className:"tr"},Mt.createElement(Kt.ZP,{size:"large",onClick:qe,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var wt=St,Rt=Vt(5112),Wt=Vt(5871);const Ut=Rt.ZP.Group,oe={margin:"0 8px"};var de=({callback:Qe,onCancel:Je})=>{function we(dn){Qe(dn)}return zt.createElement(qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},zt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},zt.createElement("span",{style:oe},"\u5355\u5143\u683C\u6570\uFF1A"),zt.createElement("span",{style:oe},"\u884C\u6570"),zt.createElement(qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},zt.createElement(Wt.Z,null)),zt.createElement("span",{style:oe},"\u5217\u6570"),zt.createElement(qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},zt.createElement(Wt.Z,null))),zt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},zt.createElement("span",{style:oe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),zt.createElement(qt.default.Item,{name:"align"},zt.createElement(Ut,null,zt.createElement(Rt.ZP,{value:"default"},zt.createElement("i",{className:"fa fa-align-justify"})),zt.createElement(Rt.ZP,{value:"left"},zt.createElement("i",{className:"fa fa-align-left"})),zt.createElement(Rt.ZP,{value:"center"},zt.createElement("i",{className:"fa fa-align-center"})),zt.createElement(Rt.ZP,{value:"right"},zt.createElement("i",{className:"fa fa-align-right"}))))),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Kt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},Ge=Vt(78673),Ze=Vt(80727),We=Vt.n(Ze),gn=(0,zt.forwardRef)(({use3d:Qe,width:Je,height:we,callback:dn,showSaveButton:wn},ze)=>{const Le=(0,zt.useRef)(),fn=(0,zt.useRef)(),[Cn,nn]=(0,zt.useState)(!1),qe=(0,zt.useRef)({id:Le,appName:"graphing",width:Je||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,zt.useEffect)(()=>{fn.current=new(We())(qe.current,!0),window.onload=function(){fn.current.inject("applet_container")}},[]);const Ce=()=>{var en=window.ggbApplet.getPNGBase64(1,!0,72);return dn&&dn(en),en};return(0,zt.useEffect)(()=>{qe.current.appName=Cn?"3D":"graphing",fn.current.inject("applet_container")},[Cn]),(0,zt.useEffect)(()=>{nn(Qe)},[Qe]),(0,zt.useImperativeHandle)(ze,()=>({getImgData:Ce})),zt.createElement(zt.Fragment,null,zt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Le}),zt.createElement(ke.Z,{align:"middle"},zt.createElement(It.Z,{flex:1},zt.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:en=>nn(en)})),zt.createElement(It.Z,null,zt.createElement(Kt.ZP,{size:"large",onClick:Ce,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),De=Vt(41588),Ke=Vt(8591);const mn="link",bn="upload-image",Nn="add-flowchart",zn="draw-image",Xn="add-flowchart",Kn="code-block",li="add-table",yi="------------",mi={default:yi,left:`:${yi}`,center:`:${yi}:`,right:`${yi}:`};var Pi=Vt(58856);function Zi(){}let Fi=0;const Mi=1e4,ji="\u2581",fi="@\u2581\u2581@",ne="@\u2581@",Hi=` **\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`,zi=["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 Ki(Qe){return/^\d+$/.test(Qe)?`${Qe}px`:Qe}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xr={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},Qn={[mn]:"\u6DFB\u52A0\u94FE\u63A5",[Kn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[bn]:"\u6DFB\u52A0\u56FE\u7247",[zn]:"\u6DFB\u52A0\u753B\u56FE",[Nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[li]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:Qe="",onChange:Je,width:we="100%",height:dn=400,miniToolbar:wn=!1,isFocus:ze=!1,watch:Le,insertTemp:fn,mode:Cn="markdown",id:nn="markdown-editor-id",showResizeBar:qe=!1,noStorage:Ce=!1,showNullButton:en=!1,showNullProgramButton:xn=!1,hidetoolBar:Bn=!1,fullScreen:Xe=!1,onBlur:ln,onCMBeforeChange:_e,onFullScreen:on,className:pn="",disablePaste:sn=!1,disabled:Pn=!1,disabledFill:yn=!1,placeholder:Mn="",values:In="",extraUse:$n})=>{const[un,si]=(0,zt.useState)(null),[Ci,hi]=(0,zt.useState)(Qe),[cn,Hn]=(0,zt.useState)(Le),[Jn,ei]=(0,zt.useState)(Xe),[ti,pi]=(0,zt.useState)(""),[Ei,gi]=(0,zt.useState)(0),[ii,Li]=(0,zt.useState)(dn),[Ln,tr]=(0,zt.useState)(!1),[An,Ai]=(0,zt.useState)(0),[Pr,$i]=(0,zt.useState)(0),Mr=(0,zt.useRef)(),yr=(0,zt.useRef)(),Si=(0,zt.useRef)(),di=(0,zt.useRef)();(0,zt.useEffect)(()=>{const xi=window.scrollY||window.pageYOffset;hi(In),un==null||un.setValue(In),window.scrollTo(0,xi)},[In]),(0,zt.useEffect)(()=>{on==null||on(Jn)},[Jn]),(0,zt.useEffect)(()=>{if(Mr.current){let xi=function(Un,Di){var fr;if(sn){Di.preventDefault();return}const Gr=Di.clipboardData;if(Gr){const Wr=Gr.types.toString(),Zr=Gr.items;if(Wr==="Files"||Gr.types.indexOf("Files")>-1){if(Di.preventDefault(),Cn=="stex")return;try{let $r=Zr[1];((fr=Zr[0])==null?void 0:fr.kind)==="file"&&($r=Zr[0]);const to=$r.getAsFile(),Xo=to.name.split(".").pop();(0,he.I)(to,mo=>{var ko,Sn,vo;mo.id?((ko=to==null?void 0:to.type)==null?void 0:ko.indexOf("image"))>-1?wi.replaceSelection(``):((Sn=to==null?void 0:to.type)==null?void 0:Sn.indexOf("video"))>-1?wi.replaceSelection(``):((vo=to==null?void 0:to.type)==null?void 0:vo.indexOf("pdf"))>-1?wi.replaceSelection(`${to.name}`):zi.includes(Xo)?wi.replaceSelection(`${to.name}`):wi.replaceSelection(`[${to.name}](/api/attachments/${mo.id}?type=${mo.content_type})`):(mo==null?void 0:mo.status)===401&&(document.location.href="/user/login")})}catch($r){Ke.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wi=Xt().fromTextArea(Mr.current,{mode:Cn,lineNumbers:!wn,lineWrapping:!0,value:Qe,autoCloseTags:!0,autoCloseBrackets:!0});return wi.on("keyup",function(Un,Di){Di.keyCode===8&&(Un.getValue()==""?wi.setOption("placeholder",Mn):wi.setOption("placeholder",null))}),wi.on("keydown",function(Un,Di){if(Di.keyCode===8){var fr=Vi(Un);fr&&Di.preventDefault()}}),ze&&wi.focus(),wi.on("paste",xi),Pn&&wi.on("beforeChange",function(Un,Di){(Di.origin==="paste"||Di.origin==="+input")&&Di.cancel()}),si(wi),()=>{wi.off("paste",xi)}}},[]);const Yi=(0,zt.useCallback)(()=>{if(yr.current)try{}catch(xi){console.log(xi,"---- to set md editor body height")}},[ii,yr,Jn]);(0,zt.useEffect)(()=>{function xi(){let wi=new Jt.Z(Un=>{for(let Di of Un)(Di.target.offsetHeight>0||Di.target.offsetWidth>0)&&(Yi(),un.setSize("100%","100%"),un.refresh())});return wi.observe(Mr.current.parentElement),wi}if(un){const wi=xi();return()=>{var Un,Di;(Un=Mr.current)!=null&&Un.parentElement&&wi.unobserve((Di=Mr.current)==null?void 0:Di.parentElement)}}},[un,Yi]),(0,zt.useEffect)(()=>{if(un){let xi=[];for(const[wi,Un]of Object.entries(xr)){let Di={[wi]:()=>{Yn(Un)}};xi.push(Di),un.addKeyMap(Di)}return()=>{for(let wi of xi)un.removeKeyMap(wi)}}},[un]),(0,zt.useEffect)(()=>{Xe!==Jn&&ei(Xe)},[Xe]),(0,Pi.Z)(()=>{if(!Ce&&Ei>0){let xi=new Date().getTime(),wi=window.sessionStorage.getItem(nn);xi>=Ei+Mi&&(!wi||wi!==Ci)&&(window.sessionStorage.setItem(nn,Ci),tr(!0))}},Mi),(0,zt.useEffect)(()=>{Hn(Le)},[un,Le]),(0,zt.useEffect)(()=>{un&&ze&&un.focus()},[un,ze]),(0,zt.useEffect)(()=>{if(cn&&un){let xi=function(Un){let Di=Un.target;if(di.current){let fr=Di.scrollTop/Di.scrollHeight;di.current.scrollTop=di.current.scrollHeight*fr}};const wi=un.getScrollerElement();return wi.addEventListener("scroll",xi),()=>{wi.removeEventListener("scroll",xi)}}},[un,cn]),(0,zt.useEffect)(()=>{if(un&&_e){let xi=function(wi,Un){_e(wi,Un)};return un.on("beforeChange",xi),()=>{un.off("beforeChange",xi)}}},[un,_e]),(0,zt.useEffect)(()=>{if(un&&ln){let xi=function(){ln(un.getValue())};return un.on("blur",xi),()=>{un.off("blur",xi)}}},[un,ln]);function Vi(xi,wi){var Un=xi.getDoc(),Di=Un.getCursor(),fr=Un.getLine(Di.line),Gr=fr.charAt(Di.ch-1),Wr=fr.lastIndexOf("@\u2581@",Di.ch),Zr=fr.lastIndexOf("@\u2581\u2581@",Di.ch),$r=Wr>Zr?Wr:Zr,to=Wr>Zr?3:4;if(fi.indexOf(Gr)===-1)return null;if(console.log("change1:",wi,xi,fr,Di,$r,Wr,Zr,Gr),$r>=0&&Di.ch-$r<5){var Xo=$r+to;return Un.replaceRange("",{line:Di.line,ch:$r},{line:Di.line,ch:Xo}),{line:Di.line,ch:Xo}}return null}(0,zt.useEffect)(()=>{if(un){let xi=function(wi,Un){const Di=wi.getValue();hi(Di),gi(new Date().getTime()),wi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&(xn?Je(Di,Ni(Di)):Je(Di))};return un.on("change",xi),()=>{un.off("change",xi)}}},[un,Je]),(0,zt.useEffect)(()=>{if(un)if(Qe==null)un.setValue(""),hi("");else{const xi=window.scrollY||window.pageYOffset;Qe!==un.getValue()&&(un.setValue(Qe),hi(Qe),un.setCursor(Pn?1:un.lineCount(),0),window.scrollTo(0,xi))}},[un,Qe]);const Yn=(0,zt.useCallback)(xi=>{const wi=un.getCursor(),Un=un.getSelection();let Di=Un.split(` `);switch(xi){case"bold":return un.replaceSelection("**"+Un+"**"),Un===""&&un.setCursor(wi.line,wi.ch+2),un.focus();case"italic":return un.replaceSelection("*"+Un+"*"),Un===""&&un.setCursor(wi.line,wi.ch+1),un.focus();case"code":return un.replaceSelection("`"+Un+"`"),Un===""&&un.setCursor(wi.line,wi.ch+1),un.focus();case"inline-latex":return pi("inline-latex"),un.focus();case"latex":return un.replaceSelection("```latex\n"+Un+"\n```"),un.setCursor(wi.line+1,Un.length+1),un.focus();case"line-break":return un.replaceSelection(`
`),un.focus();case"list-ul":return Un===""?un.replaceSelection("- "+Un):un.replaceSelection(Di.map(fr=>fr===""?"":`- ${fr}`).join(` `)),un.focus();case"list-ol":return Un===""?un.replaceSelection("1. "+Un):un.replaceSelection(Di.map((fr,Gr)=>fr===""?"":`${Gr+1}. ${fr}`).join(` `)),un.focus();case"add-null-ch":return Un===""&&un.setCursor(wi.line,wi.ch),un.replaceSelection(ji),un.focus();case"add-signal":return Un===""&&un.setCursor(wi.line,wi.ch),un.replaceSelection(ne),un.focus();case"add-multiple":return Un===""&&un.setCursor(wi.line,wi.ch),un.replaceSelection(fi),un.focus();case"inster-template-1":return Un===""&&un.setCursor(wi.line,wi.ch),un.replaceSelection(Hi),un.focus();case"eraser":return un.setValue(""),un.focus();case"trigger-watch":return Hn(!cn),un.focus();case"trigger-full-screen":return ei(!Jn),un.focus();case mn:pi(mn);return;case Kn:pi(Kn);return;case bn:pi(bn);return;case zn:pi(zn);return;case"maths-latex":pi("maths-latex");return;case Nn:pi(Nn);return;case li:pi(li);return;default:throw new Error}},[un,cn,Jn]),Se=(0,zt.useCallback)((xi,wi)=>{var Un,Di,fr,Gr,Wr,Zr;switch(pi(""),ti){case mn:const{title:ko,link:Sn}=xi;return un.replaceSelection(`[${ko}](${Sn})`),un.focus();case Kn:const{language:vo,content:Pl}=xi;return un.replaceSelection(["```"+vo,Pl,"```"].join(` `)),un.focus();case"maths-latex":for(var $r=atob(xi),to=new Uint8Array($r.length),Xo=0;Xo<$r.length;Xo++)to[Xo]=$r.charCodeAt(Xo);var mo=new Blob([to],{type:"image/png"});(0,he.I)(mo,Wi=>{Wi.id?un.replaceSelection(`![,](/api/attachments/${Wi.id}?type=${Wi.content_type})`):(Wi==null?void 0:Wi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":un.replaceSelection("`$$"+xi+"$$`");break;case bn:case zn:case Xn:const{src:Fs,alt:kr}=xi,mr=wi,Ir=(fr=(Di=(Un=mr==null?void 0:mr.name)==null?void 0:Un.split("."))==null?void 0:Di.pop)==null?void 0:fr.call(Di);return((Gr=mr==null?void 0:mr.type)==null?void 0:Gr.indexOf("image"))>-1||!(mr!=null&&mr.type)?mr!=null&&mr.align||mr!=null&&mr.width?un.replaceSelection(`

${kr||

`):un.replaceSelection(`${kr||`):((Wr=mr==null?void 0:mr.type)==null?void 0:Wr.indexOf("video"))>-1?un.replaceSelection(``):((Zr=mr==null?void 0:mr.type)==null?void 0:Zr.indexOf("pdf"))>-1?un.replaceSelection(`${mr.name}`):zi.includes(Ir)?un.replaceSelection(`${mr.name}`):un.replaceSelection(`[${mr.name}](${Fs})`),un.focus();case li:const{row:Ji,col:hr,align:jr}=xi;let yo=` `;for(let Wi=0;Wi{switch(ti){case mn:return zt.createElement(ue,{callback:Se,onCancel:ir});case Kn:return zt.createElement(ge.Z,{callback:Se,onCancel:ir});case bn:return zt.createElement(he.Z,{callback:Se,onCancel:ir});case Nn:return zt.createElement(wt,{callback:Se,onCancel:ir});case li:return zt.createElement(de,{callback:Se,onCancel:ir});case"maths-latex":return zt.createElement(gn,{showSaveButton:!0,callback:Se});case"inline-latex":return zt.createElement(De.Z,{showSaveButton:!0,callback:Se});default:return null}},[ti]);function ir(){pi("")}(0,zt.useEffect)(()=>{if(Si.current){let xi=function(Wr){fr=!0,Gr=Wr.pageY},wi=function(){fr=!1},Un=function(Wr){if(fr){let Zr=Wr.pageY-Gr;Zr<0&&(Zr=0),Zr>300&&(Zr=300);let $r=dn+Zr+"px";Li($r)}},Di=Si.current,fr=!1,Gr=0;return Di.addEventListener("mousedown",xi),document.addEventListener("mousemove",Un),document.addEventListener("mouseup",wi),()=>{Di.removeEventListener("mousedown",xi),document.removeEventListener("mousemove",Un),document.removeEventListener("mouseup",wi)}}},[un,Si]),(0,zt.useEffect)(()=>{Li(dn)},[dn]);const _i=Ki(we),dr=Ki(ii),Nr={width:_i,height:dr},Ii=(0,zt.useMemo)(()=>{if(Ei){let xi=new Date(Ei),wi=xi.getHours(),Un=xi.getMinutes(),Di=xi.getSeconds();return wi=wi<10?"0"+wi:wi,Un=Un<10?"0"+Un:Un,Di=Di<10?"0"+Di:Di,`${wi}:${Un}:${Di}`}return 0},[Ei]),Ni=xi=>{const wi=[];if(xn){let Un=-1;xi=xi.replace(/(@▁▁@|@▁@)/g,function(Di,fr,Gr){wi.push({multiLine:Di!==ne})})}return wi};function er(){window.sessionStorage.removeItem(nn),tr(!1),gi(0)}function Ri(){tr(!1),gi(0),un.setValue(window.sessionStorage.getItem(nn))}(0,zt.useEffect)(()=>{Qn[ti]&&ti!==zn&&ti!==Nn&&setTimeout(()=>{const xi=document.getElementsByClassName("markdown-popup-form")[0],wi=window.innerWidth/2-xi.offsetWidth/2,Un=window.innerHeight/2-xi.offsetHeight/2;Ai(wi),$i(Un)},0)},[ti]);const sr=xi=>{xi.preventDefault();const wi=xi.clientX-An,Un=xi.clientY-Pr;document.body.onmousemove=Di=>{let fr=Di.clientX-wi,Gr=Di.clientY-Un;const Wr=document.getElementsByClassName("markdown-popup-form")[0],Zr=window.innerWidth-Wr.offsetWidth,$r=window.innerHeight-Wr.offsetHeight;fr=Math.max(0,Math.min(fr,Zr)),Gr=Math.max(0,Math.min(Gr,$r)),wr(Di.clientX,Di.clientY,wi,Un)&&(Ai(fr),$i(Gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},wr=(xi,wi,Un,Di)=>{const fr=document.body.clientHeight,Gr=document.body.clientWidth;return xi<20&&Un>xi||xi>Gr-20&&Unwi||wi>fr-20&&Diqt in Ft?Lt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,rt=(Ft,qt)=>{for(var te in qt||(qt={}))et.call(qt,te)&&st(Ft,te,qt[te]);if(mt)for(var te of mt(qt))tt.call(qt,te)&&st(Ft,te,qt[te]);return Ft},ut=(Ft,qt)=>At(Ft,Ot(qt));const{useForm:ct}=zt.default,ft={width:280,marginRight:10},pt={labelCol:{span:5},wrapperCol:{span:19}};var Pt=({callback:Ft,onCancel:qt})=>{const[te]=ct();let Kt=(0,jt.useRef)();function ce(ve){Kt.current.width=te.getFieldValue("width"),Kt.current.align=te.getFieldValue("align"),Ft(ve,Kt.current)}function le(ve,Te){if(ve.status===-1){gt.ZP.error(ve.message);return}te.setFieldsValue({src:`/api/attachments/${ve.id}`,type:Te.type})}function xe(ve){let Te=ve.target.files[0];Kt.current=Te,Zt(Te,le)}return Ct.createElement(zt.default,ut(rt({form:te},pt),{className:"upload-image-panel",onFinish:ce,style:{width:470,overflow:"hidden"}}),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ct.createElement("div",{className:"flex-container"},Ct.createElement(zt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ct.createElement(Xt.default,{style:ft})),Ct.createElement(Dt,{onFileChange:xe}))),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ct.createElement(Xt.default,{style:{width:264}})),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ct.createElement(Jt.Z,null,Ct.createElement(zt.default.Item,{name:"width",style:{margin:0}},Ct.createElement(Tt.Z,{style:{width:264}})),Ct.createElement("span",{className:"ml8"},"%"))),Ct.createElement(zt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ct.createElement(Bt.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"}]})),Ct.createElement("aside",null,Ct.createElement(zt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ct.createElement(xt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(xt.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Dt({onFileChange:Ft}){return Ct.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ct.createElement("input",{type:"file",onChange:Ft}))}function Zt(Ft,qt){if(!Ft)throw new String("\u6CA1\u6709\u6587\u4EF6");let te=new FormData;te.append("editormd-image-file",Ft),te.append("file_param_name","editormd-image-file"),te.append("byxhr","true");var Kt=new window.XMLHttpRequest;Kt.withCredentials=!0,Kt.addEventListener("load",function(ce){qt(JSON.parse(ce.target.responseText),Ft)},!1),Kt.addEventListener("error",function(ce){console.error(ce)},!1),Kt.open("POST",`${Nt.KI}/api/attachments.json`),Kt.send(te)}},79346:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Xt}});var zt=Vt(59301),gt=Vt(4676);class Xt extends zt.Component{constructor(Tt){super(Tt);const Bt=window.document;this.node=Bt.createElement("div"),Bt.body.appendChild(this.node)}render(){const{children:Tt}=this.props;return(0,gt.createPortal)(Tt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(kn,En,Vt){"use strict";Vt.d(En,{SV:function(){return Gt},ZP:function(){return Mt}});var zt=Vt(59301),gt=Vt(76374);const Xt={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"]},Jt={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"]},Tt={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(` `)}]},Bt={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(` `)}]},xt={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 Nt=Vt(53184),jt=Vt.n(Nt),Ct=Object.defineProperty,Lt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(St,wt,Rt)=>wt in St?Ct(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):St[wt]=Rt,st=(St,wt)=>{for(var Rt in wt||(wt={}))mt.call(wt,Rt)&&tt(St,Rt,wt[Rt]);if(Ot)for(var Rt of Ot(wt))et.call(wt,Rt)&&tt(St,Rt,wt[Rt]);return St},rt=(St,wt)=>Lt(St,At(wt)),ut=(St,wt,Rt)=>new Promise((Wt,Ut)=>{var oe=Ze=>{try{Ge(Rt.next(Ze))}catch(We){Ut(We)}},de=Ze=>{try{Ge(Rt.throw(Ze))}catch(We){Ut(We)}},Ge=Ze=>Ze.done?Wt(Ze.value):Promise.resolve(Ze.value).then(oe,de);Ge((Rt=Rt.apply(St,wt)).next())});const ct={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"]}},ft=(St,wt)=>wt.map(Rt=>({label:Rt,kind:St.languages.CompletionItemKind.Keyword,insertText:Rt})),pt=St=>Object.keys(ct.tables).map(wt=>({label:wt,kind:St.languages.CompletionItemKind.Variable,insertText:wt})),Pt=(St,wt)=>{const Rt=ct.tables[St];return Rt?Rt.map(Wt=>({label:Wt,kind:wt.languages.CompletionItemKind.Field,insertText:Wt})):[]};function Dt(St,wt,Rt,Wt,Ut){let oe=wt.getWordUntilPosition(Rt),de={startLineNumber:Rt.lineNumber,endLineNumber:Rt.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},Ge=Wt.map(Ze=>({label:Ze,kind:St.languages.CompletionItemKind.Keyword,insertText:Ze,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}));return Ut.map(Ze=>{Ge.push(rt(st({},Ze),{range:de}))}),Ge}var Zt=St=>{ct.languages.map(Ut=>(St.languages.registerDocumentFormattingEditProvider(Ut,{provideDocumentFormattingEdits(oe,de,Ge){return ut(this,null,function*(){const Ze=jt()(oe.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:oe.getFullModelRange(),text:Ze}]})}}),Ut));const wt=Tt.quickKey.map(Ut=>({label:Ut.label,kind:St.languages.CompletionItemKind.Method,insertText:Ut.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Rt=Bt.quickKey.map(Ut=>({label:Ut.label,kind:St.languages.CompletionItemKind.Method,insertText:Ut.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Wt=Jt.quickKey.map(Ut=>({label:Ut.label,kind:St.languages.CompletionItemKind.Method,insertText:Ut.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet}));St.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ut,oe){var de=Ut.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ze=Ut.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...Tt.keywords.map(We=>({label:We,kind:St.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...Tt.quickKey.map(We=>({label:We.label,kind:St.languages.CompletionItemKind.Function,documentation:We.content,insertText:Ze.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ut,oe){var de=Ut.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn};return{suggestions:[...Xt.keywords.map(Ze=>({label:Ze,kind:St.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ut,oe){var de=Ut.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ze=Ut.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...Jt.keywords.map(We=>({label:We,kind:St.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...Jt.quickKey.map(We=>({label:We.label,kind:St.languages.CompletionItemKind.Function,documentation:We.content,insertText:Ze.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ut,oe){var de=Ut.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ze=Ut.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...xt.keywords.map(We=>({label:We,kind:St.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...xt.quickKey.map(We=>({label:We.label,kind:St.languages.CompletionItemKind.Function,documentation:We.content,insertText:Ze.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ut,oe){var de=Ut.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ze=Ut.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...Bt.keywords.map(We=>({label:We,kind:St.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...Bt.quickKey.map(We=>({label:We.label,kind:St.languages.CompletionItemKind.Function,documentation:We.content,insertText:Ze.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}})};const Ft="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var qt=Object.defineProperty,te=(St,wt,Rt)=>wt in St?qt(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):St[wt]=Rt,Kt=(St,wt,Rt)=>te(St,typeof wt!="symbol"?wt+"":wt,Rt);const ce=class mx{constructor(wt,Rt,Wt){this.placeholder=wt,this.editor=Rt,this.monaco=Wt,Rt.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)}};Kt(ce,"ID","editor.widget.placeholderHint");var xe=ce,ve=Vt(96236),Te=Vt(8591),me=Vt(6848),He=Vt(89392),fe=Vt(34604),$t=Vt(56102),ie=Object.defineProperty,ue=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,$e=(St,wt,Rt)=>wt in St?ie(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):St[wt]=Rt,Re=(St,wt)=>{for(var Rt in wt||(wt={}))Ne.call(wt,Rt)&&$e(St,Rt,wt[Rt]);if(he)for(var Rt of he(wt))ke.call(wt,Rt)&&$e(St,Rt,wt[Rt]);return St},tn=(St,wt)=>ue(St,ge(wt)),Ae=(St,wt)=>{var Rt={};for(var Wt in St)Ne.call(St,Wt)&&wt.indexOf(Wt)<0&&(Rt[Wt]=St[Wt]);if(St!=null&&he)for(var Wt of he(St))wt.indexOf(Wt)<0&&ke.call(St,Wt)&&(Rt[Wt]=St[Wt]);return Rt},Ie=(St,wt,Rt)=>new Promise((Wt,Ut)=>{var oe=Ze=>{try{Ge(Rt.next(Ze))}catch(We){Ut(We)}},de=Ze=>{try{Ge(Rt.throw(Ze))}catch(We){Ut(We)}},Ge=Ze=>Ze.done?Wt(Ze.value):Promise.resolve(Ze.value).then(oe,de);Ge((Rt=Rt.apply(St,wt)).next())});function Fe(St){return/^\d+$/.test(St)?`${St}px`:St}function se(){}let It=!1;const bt={"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 Yt(St=[]){let wt=St;if(Array.isArray(St)){for(let Rt=0;Rt{var wt=St,{width:Rt="100%",height:Wt="100%",value:Ut,language:oe="javascript",style:de={},options:Ge={},overrideServices:Ze={},theme:We="vs-dark",onEditBlur:hn,isCopy:gn=!1,onSave:De,autoHeight:Ke=!1,forbidCopy:mn=!1,onChange:bn=se,editorDidMount:Nn=se,onFocus:zn=se,onBreakPoint:Xn=se,breakPointValue:Kn=[],filename:li="educoder.txt",errorLine:yi,errorContent:mi="",highlightLine:Pi,openBreakPoint:Zi=!1,placeholder:Fi=""}=wt,Mi=Ae(wt,["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 ji=(0,zt.useRef)(),fi=(0,zt.useRef)({}),ne=(0,zt.useRef)(),Hi=(0,zt.useRef)(),zi=(0,zt.useRef)([]),Ki=(0,zt.useRef)(!1),Sr=(0,zt.useRef)(),Ar=(0,zt.useRef)(),xr=(0,zt.useRef)(!1),[Qn,Zn]=(0,zt.useState)(!1);function Qe(){let Xe;return ji.current&&(Xe=new gt.Z(ln=>{for(let _e of ln)(_e.target.offsetHeight>0||_e.target.offsetWidth>0)&&fi.current.instance.layout()}),Xe.observe(ji.current)),Xe}function Je(){Te.ZP.warning({content:decodeURIComponent(Ft),key:"monaco-editor-tip"})}const we=()=>{let Xe=fi.current.instance;if(Ut!=null&&Xe&&Qn){const ln=Xe.getModel();ln&&Ut!==ln.getValue()&&(It=!0,ln.setValue(Ut),Xe.layout(),It=!1)}};(0,zt.useEffect)(()=>{const Xe=fe.Z.subscribe("formatDocument",ln=>{var _e;let on=fi.current.instance;(_e=on==null?void 0:on.getAction)==null||_e.call(on,"editor.action.formatDocument").run()});return window.updateMonacoValue=ln=>{bn(ln)},Xe},[]),(0,zt.useEffect)(()=>{var Xe;let ln=fi.current.instance;Hi.current&&clearTimeout(Hi.current),Hi.current=setTimeout(()=>{we()},500),Ut&&(Ut!=null&&Ut.length)&&((Xe=ln==null?void 0:ln.updateOptions)==null||Xe.call(ln,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ut.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ut,Qn,fi.current]),(0,zt.useEffect)(()=>{if(yi&&fi.current&&fi.current.instance){let ln=fi.current.instance;ln.changeViewZones(function(_e){var on=document.createElement("div");on.style.padding="10px 20px",on.style.width="calc(100% - 20px)",on.className="my-error-line-wrp",on.innerHTML=mi,_e.addZone({afterLineNumber:yi||11,heightInLines:3,domNode:on})});var Xe={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}};ln.addOverlayWidget(Xe),ln.revealPositionInCenter({lineNumber:20,column:1})}},[yi,fi.current,Qn]);const dn=(Xe="",ln)=>{if(!Xe||Xe.trim()==="")return!0;const on=fi.current.instance.getModel().getLineTokens(ln);let pn=!1;for(let sn=0;sn<2;sn++)on.getStandardTokenType(sn)===1&&(pn=!0);return pn};(0,zt.useEffect)(()=>{var Xe;const ln=(Xe=fi.current)==null?void 0:Xe.instance;if(ln&&Qn&&mn){const _e=ln.onDidBlurEditorWidget(()=>{xr.current=!1}),on=ln.onDidFocusEditorText(()=>{xr.current=!0});return()=>{_e.dispose(),on.dispose()}}},[fi.current,Qn,mn]),(0,zt.useEffect)(()=>{var Xe;if((Xe=fi.current)!=null&&Xe.instance&&Qn&&Zi){let ln=fi.current.instance,_e=ln.getModel();if(!_e)return;(()=>{var hi;let cn=[],Hn=[];const Jn=_e.getAllDecorations();for(let ti of Jn)ti.options.className==="highlighted-line"&&(cn.push((hi=ti==null?void 0:ti.range)==null?void 0:hi.startLineNumber),Hn.push(ti==null?void 0:ti.id));if(Pi===cn[0])return;_e.deltaDecorations(Hn,[]);const ei=_e.getLineCount();Pi&&Pi<=ei&&(ln.deltaDecorations([],[{range:new _t.Range(Pi,1,Pi,_e.getLineMaxColumn(Pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ln.revealLineInCenter(Pi))})();const pn=(hi=!1)=>{var cn;let Hn=[],Jn=[];const ei=_e.getAllDecorations();for(let ti of ei)ti.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((cn=ti==null?void 0:ti.range)==null?void 0:cn.startLineNumber),Jn.push(ti==null?void 0:ti.id));if(hi)return{lines:Hn,ids:Jn};Xn(Hn)},sn=hi=>Ie(void 0,null,function*(){let cn={range:new _t.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _e.deltaDecorations([],[cn]),pn()}),Pn=hi=>Ie(void 0,null,function*(){let cn=[];const Hn=ln.getLineDecorations(hi);for(let Jn of Hn)Jn.options.linesDecorationsClassName==="breakpoints-select"&&cn.push(Jn.id);yield _e.deltaDecorations(cn,[]),pn()}),yn=hi=>{let cn=ln.getLineDecorations(hi);for(let Hn of cn)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,He.isEqual)(Kn,pn(!0).lines)){_e.deltaDecorations(pn(!0).ids,[]);const hi=Kn.map(cn=>({range:new _t.Range(cn,1,cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_e.deltaDecorations([],hi)}const Mn=ln.onDidChangeModelContent(hi=>{let cn=ln.getPosition();if(cn){let Hn=cn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{dn(_e.getLineContent(Hn),Hn)?Pn(Hn):yn(Hn)?(Pn(Hn),sn(Hn)):pn()},100)}}),In=ln.onMouseDown(hi=>{var cn,Hn,Jn;if(hi.target.detail&&((Jn=(Hn=(cn=hi.target)==null?void 0:cn.element)==null?void 0:Hn.className)!=null&&Jn.includes("line-numbers"))){let ei=hi.target.position.lineNumber;if(dn(_e.getLineContent(ei),ei))return;yn(ei)?Pn(ei):sn(ei)}}),$n=hi=>{let cn={range:new _t.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};zi.current=ln.deltaDecorations(zi.current,[cn])},un=()=>{zi.current=ln.deltaDecorations(zi.current,[])},si=ln.onMouseMove(hi=>{var cn,Hn,Jn;if(un(),hi.target.detail&&((Jn=(Hn=(cn=hi.target)==null?void 0:cn.element)==null?void 0:Hn.className)!=null&&Jn.includes("line-numbers"))){let ei=hi.target.position.lineNumber;if(dn(_e.getLineContent(ei),ei))return;$n(ei)}}),Ci=ln.onMouseLeave(()=>{un()});return()=>{Mn.dispose(),In.dispose(),si.dispose(),Ci.dispose()}}},[fi.current,Qn,Kn,Pi,Zi,oe]),(0,zt.useEffect)(()=>{var Xe;(Xe=fi.current)!=null&&Xe.instance&&Zi&&fi.current.instance.setPosition({lineNumber:0,column:0})},[Pi]);function wn(){let Xe=fi.current.instance;if(Xe){const ln=Xe.getSelection(),_e=fi.current.pastePos||{},on=new _t.Range(_e.startLineNumber||ln.endLineNumber,_e.startColumn||ln.endColumn,_e.endLineNumber||ln.endLineNumber,_e.endColumn||ln.endColumn);setTimeout(()=>{Xe.executeEdits("",[{range:on,text:""}])},300)}}function ze(Xe){(window.navigator.platform.match("Mac")?Xe.metaKey:Xe.ctrlKey)&&Xe.keyCode==83&&(Xe.preventDefault(),De())}const Le=()=>{if(Ke&&fi.current.instance){const Xe=fi.current.instance.getContentHeight();xn(Xe{if(!xr.current)return;const{keyCode:ln,ctrlKey:_e,metaKey:on,target:pn,type:sn}=Xe;return(sn==="paste"||(ln===67||ln===86)&&(on||_e))&&pn.nodeName==="TEXTAREA"&&(Je(),Xe.preventDefault()),!1};function nn(Xe,ln){var _e=window.URL||window.webkitURL||window,on=new Blob([ln]),pn=document.createElementNS("http://www.w3.org/1999/xhtml","a");pn.href=_e.createObjectURL(on),pn.download=Xe,fn(pn)}(0,zt.useEffect)(()=>{Le()},[Le]),(0,zt.useEffect)(()=>{ji.current&&!Qn&&Promise.all([Vt.e(8909),Vt.e(3267)]).then(Vt.bind(Vt,71448)).then(Xe=>{try{_t=Xe,fi.current.instance=_t.editor.create(ji.current,{value:Ut,language:Yt(oe),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ze);const ln=fi.current.instance;let pn=[...ve.BH._menuItems].find(Mn=>Mn[0]._debugName=="EditorContext")[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Pn=(Mn,In)=>{var $n,un;let si=Mn._first;do In.includes((un=($n=si.element)==null?void 0:$n.command)==null?void 0:un.id)&&Mn._remove(si);while(si=si.next)};if(Nn(ln,_t),setTimeout(()=>{Le(),fi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{nn(li||"educoder.txt",ln.getValue())}})},500),fi.current.subscription=ln.onDidChangeModelContent(Mn=>{Ki.current?clearTimeout(Sr.current):(Le(),bn(ln.getValue(),Mn)),Sr.current=setTimeout(()=>{Ki.current=!1},500)}),window.Monaco||Zt(_t,Yt(oe)),mn&&(Pn(pn,sn),ji.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Cn),window.removeEventListener("paste",Cn),window.addEventListener("keydown",Cn),window.addEventListener("paste",Cn)),window.Monaco=_t,hn&&ln.onDidBlurEditorWidget(()=>{hn(ln.getValue())}),zn&&ln.onDidFocusEditorText(()=>{zn(ln.getValue())}),mn)try{ln.onDidPaste(Mn=>{const In=ln.getSelection(),$n=fi.current.pastePos||{},un=new _t.Range($n.startLineNumber||In.endLineNumber,$n.startColumn||In.endColumn,$n.endLineNumber||In.endLineNumber,$n.endColumn||In.endColumn);ln.executeEdits("",[{range:Mn.range,text:""}])})}catch(Mn){}let yn=Qe();return Fi&&typeof Fi=="string"&&new xe(Fi,ln,_t),Zn(!0),()=>{const Mn=fi.current.instance;Mn.dispose();const In=Mn.getModel();In&&In.dispose(),fi.current.subscription&&fi.current.subscription.dispose(),yn.unobserve(ji.current)}}catch(ln){}})},[]),(0,zt.useEffect)(()=>{if(fi.current.instance&&Qn)return document.addEventListener("keydown",ze,!1),()=>{document.removeEventListener("keydown",ze)}},[De,Qn]),(0,zt.useEffect)(()=>{let Xe=fi.current.instance;if(Xe&&Qn){let ln=Yt(oe);_t.editor.setModelLanguage(Xe.getModel(),ln)}},[oe,Qn]),(0,zt.useEffect)(()=>{fi.current.instance&&Qn&&_t.editor.setTheme(We)},[We,Qn]),(0,zt.useEffect)(()=>{let Xe=fi.current.instance;ne.current=Ge,Xe&&Qn&&(Xe.updateOptions(Re({},Ge)),setTimeout(()=>{Xe.getModel().updateOptions(Re({},Ge))},200))},[JSON.stringify(Ge),Qn]),(0,zt.useEffect)(()=>{let Xe=fi.current.instance;Xe&&Qn&&Xe.layout()},[Rt,Wt,Qn]);const[qe,Ce]=(0,zt.useState)(Fe(Rt)),[en,xn]=(0,zt.useState)(Fe(Wt)),Bn=tn(Re({},de),{width:qe,height:en,position:"relative"});return zt.createElement("div",{className:"my-monaco-editor",ref:ji,style:Bn},gn&&zt.createElement($t.CopyToClipboard,{text:Ut,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},zt.createElement(me.Z,{title:"\u590D\u5236\u4EE3\u7801"},zt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},zt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Gt({width:St="100%",height:wt="100%",original:Rt,modified:Wt,language:Ut,options:oe={}}){const de=(0,zt.useRef)(),[Ge,Ze]=(0,zt.useState)(null);function We(Ke){let mn;return de.current&&(mn=new gt.Z(bn=>{for(let Nn of bn)(Nn.target.offsetHeight>0||Nn.target.offsetWidth>0)&&Ke.layout()}),mn.observe(de.current)),mn}(0,zt.useEffect)(()=>(de.current&&Promise.all([Vt.e(8909),Vt.e(9404)]).then(Vt.bind(Vt,2550)).then(Ke=>{_t=Ke;const mn=_t.editor.createDiffEditor(de.current,tn(Re({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},oe),{wordWrap:!0}));Ze(mn);let bn=We(mn);return()=>{mn.dispose();const Nn=mn.getModel();Nn&&Nn.dispose(),bn.unobserve(de.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,zt.useEffect)(()=>{Ge&&Ge.setModel({original:_t.editor.createModel(Rt,Ut),modified:_t.editor.createModel(Wt,Ut)})},[Rt,Wt,Ut,Ge]);const hn=Fe(St),gn=Fe(wt),De={width:hn,height:gn};return zt.createElement("div",{className:"my-diff-editor",ref:de,style:De})}},85057:function(kn,En,Vt){"use strict";Vt.d(En,{jL:function(){return Tt},w9:function(){return Ne},QD:function(){return bn},cQ:function(){return $t},op:function(){return We},O5:function(){return xr},_b:function(){return yi},t7:function(){return rt},Gi:function(){return Ie},YG:function(){return tn},qp:function(){return Lt},vr:function(){return Xn},qE:function(){return De},Je:function(){return ft},wb:function(){return ve},cq:function(){return _t},tp:function(){return mt}});var zt=Vt(59301),gt={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"},Xt="data:image/png;base64,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",Tt=({dataSource:Qn=[],img:Zn,imgWidth:Qe=346,title:Je,sunTitle:we,bannerExtraContent:dn})=>zt.createElement("div",{className:gt.banner},zt.createElement("div",{className:gt.content},zt.createElement("aside",null,zt.createElement("p",null,zt.createElement("b",null,Je),zt.createElement("span",null,we)),Qn.length>0&&zt.createElement("div",{className:gt.btns},Qn.map((wn,ze)=>zt.createElement("div",{key:ze,onClick:wn.click},wn.name,wn.sign?zt.createElement("img",{src:Xt,width:39}):null))),dn),Zn&&zt.createElement("img",{style:{marginTop:33,marginRight:38},src:Zn,width:Qe}))),Bt={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"},xt=Vt(92310),Nt=Vt.n(xt),jt=Vt(89392),Lt=({dataSource:Qn=[],value:Zn,onChange:Qe,onTitleChange:Je,className:we,title:dn,titleWidth:wn=41,style:ze={},fontColor:Le="#6A7283",showCount:fn})=>{const[Cn,nn]=(0,zt.useState)(0),[qe,Ce]=(0,zt.useState)(!1),en=(0,zt.useRef)(null),xn=(0,zt.useRef)(null);return(0,zt.useEffect)(()=>{var Bn;Qn.length!==0&&(((Bn=en==null?void 0:en.current)==null?void 0:Bn.clientHeight)>97?nn(1):nn(0)),Qn.length===0&&nn(0),Ce(!1)},[Qn]),zt.createElement("div",{className:Nt()(Bt.row,we),style:ze},zt.createElement("div",{onClick:(0,jt.throttle)(()=>Je==null?void 0:Je(),2e3),style:{width:wn,marginTop:qe?12:4},className:`${Bt.title} ${Je?"current":""}`},dn),zt.createElement("div",{className:qe?`${Bt.tagsWrap} ${Bt.tagsBorderWrap}`:Bt.tagsWrap},zt.createElement("div",{className:Bt.bar,ref:xn,style:Cn>0?{height:Cn===1?97:"auto",overflow:Cn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},zt.createElement("div",{className:Bt.tag,ref:en},Qn==null?void 0:Qn.map(Bn=>zt.createElement("span",{onClick:()=>Qe(Bn.id),key:Bn.id,style:{color:Le},className:Zn===Bn.id?Bt.active:""},zt.createElement("span",{title:Bn.name,className:Bt.name},Bn.name),!!fn&&zt.createElement("span",{className:Bt.num},Bn.count))))),!!Cn&&zt.createElement(zt.Fragment,null,Cn===1?zt.createElement("div",{onClick:()=>{var Bn;nn(2),((Bn=en==null?void 0:en.current)==null?void 0:Bn.clientHeight)>245?Ce(!0):Ce(!1)},className:Bt.action},"\u5C55\u5F00",zt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):zt.createElement("div",{onClick:()=>{xn.current.scrollTop=0,nn(1),Ce(!1)},className:Bt.action},"\u6536\u8D77",zt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},At={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"},mt=({dataSource:Qn=[],value:Zn,onChange:Qe,className:Je,style:we={}})=>zt.createElement("div",{style:we,className:Nt()(At.tabs,Je)},Qn.map(dn=>zt.createElement("span",{onClick:()=>Qe(dn.id),className:Zn===dn.id?At.active:"",key:dn.id},dn.name))),et={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"},tt=Vt(92832),rt=({dataSource:Qn=[],value:Zn="",onChange:Qe,onInputChange:Je=()=>{},className:we,style:dn={},placeholder:wn,allowClear:ze=!1})=>{var Le;const[fn,Cn]=(0,zt.useState)(""),[nn,qe]=(0,zt.useState)("");(0,zt.useEffect)(()=>{var xn;let Bn=Zn;(xn=JSON.stringify(Zn))!=null&&xn.includes("{")&&(Cn(Zn.id),Bn=Zn.value||"");try{qe(decodeURIComponent(Bn||""))}catch(Xe){qe(decodeURIComponent(Bn||""))}},[Zn]);const Ce=()=>{Qe(encodeURIComponent(nn),fn||null)},en=xn=>{xn!==fn&&(Cn(xn),Qe(encodeURIComponent(nn),xn))};return zt.createElement("div",{className:Nt()(et.input,we),style:dn},!!Qn.length&&zt.createElement("div",{className:et.dropdown},zt.createElement("div",{className:et.text},(Le=Qn.find(xn=>xn.id===fn))==null?void 0:Le.name,zt.createElement("i",{className:"iconfont icon-zhankai4"}),zt.createElement("b",{className:et.b1}),zt.createElement("b",{className:et.b2})),zt.createElement("div",{className:et.menu},Qn.map((xn,Bn)=>zt.createElement("div",{key:Bn,onClick:()=>en(xn.id)},xn.name)))),zt.createElement(tt.default,{onPressEnter:Ce,value:nn,onChange:xn=>{qe(xn.target.value),Je(encodeURIComponent(xn.target.value),fn||null)},bordered:!1,placeholder:wn}),zt.createElement("i",{onClick:Ce,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},ft=({value:Qn,onChange:Zn,className:Qe,total:Je,pageSize:we,style:dn={}})=>{const wn=Qn<2,ze=Qn>=Math.ceil(Je/we);return Je<=we?zt.createElement(zt.Fragment,null):zt.createElement("div",{className:Nt()(ut.quickPager,Qe),style:dn},zt.createElement("div",{onClick:()=>{wn||Zn(Qn-1,"prev")},className:wn?ut.disabled:""},"\u4E0A\u4E00\u9875"),zt.createElement("div",{onClick:()=>{ze||Zn(Qn+1,"next")},className:ze?ut.disabled:""},"\u4E0B\u4E00\u9875"))},pt={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"},Pt=Vt(71418),Dt=Vt(6848),Zt=Vt(13570),Ft=Vt(3294),qt=Vt(955),te=Vt(96908),Kt=Vt(57177),ce=Vt(81378),le=Vt(8797),ve=({className:Qn,dataSource:Zn=[],col:Qe=4,right:Je,bottom:we=23,precision:dn=0,wrapWidth:wn=1200,trackEventItems:ze,loading:Le})=>{const fn=Math.floor((wn-(Qe-1)*Je)/Qe);return zt.createElement(Pt.Z,{spinning:Le},zt.createElement("div",{className:Nt()(pt.list,Qn)},!!Zn.length&&Zn.map((Cn,nn)=>{const{name:qe,id:Ce,identifier:en,power:xn,cover_image_id:Bn,pic:Xe}=Cn;return zt.createElement("div",{className:pt.wrap,key:Ce,style:{width:fn,marginRight:(1+nn)%Qe===0?0:Je+dn,marginBottom:we}},zt.createElement("a",{target:"_blank",href:`/shixuns/${en}/challenges`,className:pt.li,onClick:ln=>{ln.preventDefault(),ze&&(0,qt.L9)([ze]),xn&&(0,qt.xg)(`/shixuns/${en}/challenges`)}},zt.createElement("div",{className:pt.img},zt.createElement("img",{className:pt.cover,src:`${Xe}`}),Cn.is_jupyter&&zt.createElement("img",{className:pt.sign,src:te}),Cn.is_jupyter_lab&&zt.createElement("img",{className:pt.sign,src:Kt}),Cn.is_unity_3d&&zt.createElement("img",{className:pt.sign,src:ce})),zt.createElement("div",{className:pt.name},zt.createElement(Dt.Z,{title:qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},zt.createElement("span",{className:pt.e},qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),zt.createElement("div",{className:pt.tags},zt.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),zt.createElement("span",null,Cn.challenges_count))),!!Cn.myshixuns_count&&zt.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),zt.createElement("span",null,Cn.myshixuns_count))),zt.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},zt.createElement("span",null,zt.createElement("span",null,Cn.level))),zt.createElement("div",{className:pt.rate},zt.createElement(Zt.Z,{allowHalf:!0,disabled:!0,defaultValue:Cn.score_info}),zt.createElement("span",null,"\xA0",Cn.score_info?`${Cn.score_info}\u5206`:"5\u5206")))),!xn&&zt.createElement("div",{className:pt.lockWrap},zt.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Zn.length&&zt.createElement(le.Z,null)))},Te={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"},me=Vt(24065),He=Vt(59301),$t=({className:Qn,dataSource:Zn=[],col:Qe=4,right:Je,bottom:we=23,precision:dn=0,wrapWidth:wn=1200,trackEventItems:ze,loading:Le,onRemove:fn=()=>{},isCurrent:Cn=!0,showAlias:nn=!1})=>{const qe=Math.floor((wn-(Qe-1)*Je)/Qe),Ce=[{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 He.createElement(Pt.Z,{spinning:Le},He.createElement("div",{className:Nt()(Te.list,Qn)},!!(Zn!=null&&Zn.length)&&(Zn==null?void 0:Zn.map((en,xn)=>{var Bn;const{name:Xe,id:ln,identifier:_e,featured:on,school_name:pn,image_url:sn,excellent:Pn,is_plan:yn}=en;return He.createElement("div",{key:ln,className:Te.wrap,style:{width:qe,marginRight:(1+xn)%Qe===0?0:Je+dn,marginBottom:we}},He.createElement("a",{className:Te.li,onClick:Mn=>{Mn.preventDefault(),Mn.stopPropagation(),ze&&(0,qt.L9)([ze]),(0,qt.xg)(`/paths/${_e}`)}},He.createElement("div",{className:Te.img},He.createElement("img",{className:Te.cover,src:`${sn}`}),Cn&&(0,me.bg)()&&(en==null?void 0:en.studying)&&He.createElement("div",{className:`${Te.movebq} user-path-items`,onClick:Mn=>{Mn.stopPropagation(),fn(en)}},He.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),He.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Bn=en==null?void 0:en.subject_tags)==null?void 0:Bn.map((Mn,In)=>{var $n,un;if(In===0){const Ci=($n=Ce.find(hi=>hi.name==Mn))==null?void 0:$n.swimg;return He.createElement("img",{className:Te.sign,src:Ci,style:{left:"-4px"}})}const si=(un=Ce.find(Ci=>Ci.name==Mn))==null?void 0:un.ptimg;return He.createElement("img",{className:Te.sign,src:si,style:{left:`${48+52*(In-1)+2*In}px`}})}),He.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(en==null?void 0:en.excellent)&&He.createElement("div",{className:Te.bq},"\u5F00\u653E\u8BFE\u7A0B"))),He.createElement("div",{className:Te.name},He.createElement(Dt.Z,{title:nn&&(en!=null&&en.excellent_alias_name)?He.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Xe}`,He.createElement("br",null),He.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${en==null?void 0:en.excellent_alias_name}`)):Xe},He.createElement("span",{className:Te.e},nn&&(en==null?void 0:en.excellent_alias_name)||Xe))),He.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${pn}`},He.createElement("div",{className:Te.unit},He.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),pn)),He.createElement("div",{className:Te.tags},He.createElement("div",null,He.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),He.createElement("span",null,en.stages_count))),He.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),He.createElement("span",null,en.members_count)))))))})),!Zn.length&&He.createElement(le.Z,null)))},ie={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"},ue="data:image/png;base64,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",ge=Vt(59301),Ne=({className:Qn,dataSource:Zn=[],col:Qe=4,right:Je,bottom:we=23,precision:dn=0,wrapWidth:wn=1200,trackEventItems:ze,loading:Le,handleVery:fn=()=>!0})=>{const Cn=Math.floor((wn-(Qe-1)*Je)/Qe);return ge.createElement(Pt.Z,{spinning:Le},ge.createElement("div",{className:Nt()(ie.list,Qn)},!!Zn.length&&Zn.map((nn,qe)=>{const{subject_identifier:Ce,id:en,identifier:xn,power:Bn}=nn,Xe=nn.is_public!=0&&nn.is_public;return ge.createElement("div",{className:ie.wrap,key:en,style:{width:Cn,marginRight:(1+qe)%Qe===0?0:Je+dn,marginBottom:we}},ge.createElement("a",{className:ie.li,onClick:ln=>{ln.preventDefault(),fn(nn==null?void 0:nn.first_category_url)&&(ze&&(0,qt.L9)([ze]),(0,qt.xg)(nn.first_category_url))}},ge.createElement("div",{className:ie.top},ge.createElement(Dt.Z,{title:nn.name},ge.createElement("div",{className:ie.name},nn.name)),ge.createElement("img",{className:ie.img,src:Ft.Z.IMG_SERVER+"/images/"+nn.avatar_url}),ge.createElement("div",{className:ie.text,title:nn.creator},nn.creator),Ce&&ge.createElement("div",{className:ie.btns},ge.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ge.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Xe&&ge.createElement("div",{className:ie.sign},"\u516C\u5F00")),ge.createElement("div",{className:ie.bottom},nn.visits>0&&ge.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-liulanyan"}),ge.createElement("span",null,nn.visits))),nn.course_members_count>0&&ge.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan"}),nn.course_members_count)),nn.tasks_count>0&&ge.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zuoye"}),nn.tasks_count)),nn.is_end?ge.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ge.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!nn.is_accessible&&ge.createElement("div",{className:ie.lockWrap},ge.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Zn.length&&ge.createElement(le.Z,null)))},ke={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"},$e=Vt(89070),tn=({dataSource:Qn=[],value:Zn,onChange:Qe,className:Je,style:we={},tabBarExtraContent:dn})=>zt.createElement("div",{className:Nt()(ke.tabs,Je),style:we},zt.createElement("div",{className:ke.tabsWrap},Qn.map((wn,ze)=>!(wn!=null&&wn.hide)&&zt.createElement("aside",{className:ke.tab,onClick:()=>{Qe(wn.id),wn.link&&$e.history.push(wn.link)},key:ze},zt.createElement("div",{className:Zn===wn.id?ke.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&zt.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&zt.createElement(Dt.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},zt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",zt.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",zt.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),zt.createElement("div",{className:ke.tabBar},dn)),Ie=({className:Qn,style:Zn={},children:Qe})=>zt.createElement("div",{className:Nt()(Qn),style:Zn},Qe),Fe={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"},se=Vt(38854),It=Vt(20834);const bt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var _t=({sortValue:Qn,dropValue:Zn,className:Qe,onSort:Je,onDrop:we,dataSource:dn=bt})=>{var wn;return zt.createElement("div",{className:Nt()(Fe.orderWrap,Qe)},zt.createElement(se.Z,{dropdownRender:()=>zt.createElement(It.default,null,dn.map((ze,Le)=>zt.createElement(It.default.Item,{key:Le,onClick:()=>we(ze.id)},ze.name)))},zt.createElement("span",{className:Fe.orderTextWrap},(wn=dn.find(ze=>Zn===ze.id))==null?void 0:wn.name)),zt.createElement("span",{className:Fe.orderIconWrap},zt.createElement("span",{className:Fe.orderAsc},zt.createElement("i",{className:Qn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Fe.cursorPointer} ${Fe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Fe.cursorPointer}`,onClick:()=>Je(Qn==="asc"?"desc":"asc")})),zt.createElement("span",{className:Fe.orderDesc},zt.createElement("i",{className:Qn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Fe.cursorPointer} ${Fe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Fe.cursorPointer}`,onClick:()=>Je(Qn==="asc"?"desc":"asc")}))))},Mt={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"},Gt=Vt(3113),St=Object.defineProperty,wt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Ut=(Qn,Zn,Qe)=>Zn in Qn?St(Qn,Zn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Qn[Zn]=Qe,oe=(Qn,Zn)=>{for(var Qe in Zn||(Zn={}))Rt.call(Zn,Qe)&&Ut(Qn,Qe,Zn[Qe]);if(wt)for(var Qe of wt(Zn))Wt.call(Zn,Qe)&&Ut(Qn,Qe,Zn[Qe]);return Qn},de=(Qn,Zn)=>{var Qe={};for(var Je in Qn)Rt.call(Qn,Je)&&Zn.indexOf(Je)<0&&(Qe[Je]=Qn[Je]);if(Qn!=null&&wt)for(var Je of wt(Qn))Zn.indexOf(Je)<0&&Wt.call(Qn,Je)&&(Qe[Je]=Qn[Je]);return Qe},Ge=(Qn,Zn,Qe)=>new Promise((Je,we)=>{var dn=Le=>{try{ze(Qe.next(Le))}catch(fn){we(fn)}},wn=Le=>{try{ze(Qe.throw(Le))}catch(fn){we(fn)}},ze=Le=>Le.done?Je(Le.value):Promise.resolve(Le.value).then(dn,wn);ze((Qe=Qe.apply(Qn,Zn)).next())}),We=Qn=>{var Zn=Qn,{className:Qe,style:Je,children:we,loading:dn=!1,openLoading:wn,onClick:ze=()=>{},size:Le="middle",shape:fn="round"}=Zn,Cn=de(Zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[nn,qe]=(0,zt.useState)(!1);return zt.createElement(Gt.ZP,oe({onClick:(0,jt.throttle)(Ce=>Ge(void 0,null,function*(){wn&&qe(!0);try{yield ze(Ce)}catch(en){console.log("error",en)}wn&&qe(!1)}),2e3,{leading:!0,trailing:!1}),className:Nt()(Mt.btn,Mt[`${Le}-${fn}`],Qe),style:Je,size:Le,shape:fn,loading:nn||dn},Cn),we)},hn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},De=({className:Qn,style:Zn,children:Qe=null,onClick:Je,title:we})=>zt.createElement("div",{className:Nt()(hn.head,Qn),style:Zn},zt.createElement("span",{className:"primary-hover",onClick:Je},zt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),zt.createElement("b",{title:we},we),zt.createElement("div",{className:hn.node},Qe)),Ke={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"},bn=({confirmShow:Qn=!0,confirmTitle:Zn,confirmClick:Qe,cancelShow:Je=!0,cancelTitle:we,cancelClick:dn,className:wn,style:ze,confirmLoading:Le=!1})=>zt.createElement("div",{className:Nt()(Ke.btns,wn),style:ze},Qn&&zt.createElement(Gt.ZP,{loading:Le,onClick:Qe,type:"primary",className:Ke.confirm},Zn),Je&&zt.createElement(Gt.ZP,{onClick:dn,className:Ke.cancel},we)),Nn={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"},Xn=({className:Qn,style:Zn={},LeftContent:Qe,children:Je,RightContent:we})=>zt.createElement("div",{className:Nt()(Nn.fixedBottom,Qn),style:Zn},zt.createElement("div",{className:Nn.wrap},zt.createElement("div",{className:Nn.left},Qe),zt.createElement("div",{className:Nn.center},Je),zt.createElement("div",{className:Nn.right},we))),Kn={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"},yi=({className:Qn,style:Zn={},dataSource:Qe=[]})=>zt.createElement("div",{className:Nt()(Kn.crumbs,Qn),style:Zn},Qe.map((Je,we)=>we$e.history.push(Je.path)},Je.name):zt.createElement("span",null,Je.name),zt.createElement("span",null,"\xA0",">","\xA0")):zt.createElement("span",{key:we,style:{color:"#5F6368"}},Je.name))),mi=Vt(31797),Pi=Object.defineProperty,Zi=Object.defineProperties,Fi=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,ne=(Qn,Zn,Qe)=>Zn in Qn?Pi(Qn,Zn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Qn[Zn]=Qe,Hi=(Qn,Zn)=>{for(var Qe in Zn||(Zn={}))ji.call(Zn,Qe)&&ne(Qn,Qe,Zn[Qe]);if(Mi)for(var Qe of Mi(Zn))fi.call(Zn,Qe)&&ne(Qn,Qe,Zn[Qe]);return Qn},zi=(Qn,Zn)=>Zi(Qn,Fi(Zn)),Ki=(Qn,Zn)=>{var Qe={};for(var Je in Qn)ji.call(Qn,Je)&&Zn.indexOf(Je)<0&&(Qe[Je]=Qn[Je]);if(Qn!=null&&Mi)for(var Je of Mi(Qn))Zn.indexOf(Je)<0&&fi.call(Qn,Je)&&(Qe[Je]=Qn[Je]);return Qe};const{Countdown:Sr}=mi.default;var xr=Qn=>{var Zn=Qn,{onChange:Qe}=Zn,Je=Ki(Zn,["onChange"]);const[we,dn]=(0,zt.useState)(null);(0,zt.useEffect)(()=>{typeof we=="number"&&we>=0&&Qe(we)},[we]);const wn=ze=>{const Le=Math.floor(ze/1e3);dn(Le)};return zt.createElement(Sr,zi(Hi({},Je),{onChange:wn}))}},58856:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return gt}});var zt=Vt(59301);function gt(Xt,Jt){const Tt=(0,zt.useRef)();(0,zt.useEffect)(()=>{Tt.current=Xt}),(0,zt.useEffect)(()=>{function Bt(){Tt.current()}if(Jt!==null){let xt=setInterval(Bt,Jt);return()=>clearInterval(xt)}},[Jt])}},23538:function(kn,En,Vt){"use strict";Vt.d(En,{$J:function(){return Xt},JZ:function(){return Tt},bN:function(){return xt},jP:function(){return Bt},rO:function(){return Jt}});var zt=Vt(99064),gt=(Nt,jt,Ct)=>new Promise((Lt,At)=>{var Ot=tt=>{try{et(Ct.next(tt))}catch(st){At(st)}},mt=tt=>{try{et(Ct.throw(tt))}catch(st){At(st)}},et=tt=>tt.done?Lt(tt.value):Promise.resolve(tt.value).then(Ot,mt);et((Ct=Ct.apply(Nt,jt)).next())});function Xt(Nt){return(0,zt.U2)(`libraries/${Nt}.json`)}function Jt(){return(0,zt.U2)("library_tags.json")}function Tt(Nt){return gt(this,null,function*(){return(yield(0,zt.IV)(`attachments/${Nt}.json`)).status===0})}function Bt(Nt){return(0,zt.v_)("libraries.json",Nt)}function xt(Nt,jt){return(0,zt.gz)(`libraries/${Nt}.json`,jt)}},15022:function(kn,En,Vt){"use strict";Vt.d(En,{Z:function(){return Zt}});var zt=Vt(59301),gt=Vt(89070),Xt=Vt(92832),Jt=Vt(78241),Tt=Vt(8591),Bt=Vt(43418),xt=Vt(93948),Nt=Vt(24905),jt=Vt(12563),Ct={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},Lt=Vt(70750),At=Vt(5171),Ot=Vt(24065),mt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,qt,te)=>qt in Ft?mt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,ut=(Ft,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&rt(Ft,te,qt[te]);if(et)for(var te of et(qt))st.call(qt,te)&&rt(Ft,te,qt[te]);return Ft},ct=(Ft,qt,te)=>new Promise((Kt,ce)=>{var le=Te=>{try{ve(te.next(Te))}catch(me){ce(me)}},xe=Te=>{try{ve(te.throw(Te))}catch(me){ce(me)}},ve=Te=>Te.done?Kt(Te.value):Promise.resolve(Te.value).then(le,xe);ve((te=te.apply(Ft,qt)).next())});const{TextArea:ft}=Xt.default,pt=1024,Pt=(Ft,qt)=>{var te;const{uploadInfo:Kt={}}=qt.payload||{};switch(qt.type){case"addVideo":return{videoList:[...Ft.videoList,{name:Kt.file.name,size:Kt.file.size,type:Kt.file.type,fileHash:Kt.fileHash,state:Kt.state,videoId:Kt.videoId,loaded:Kt.loaded||0,title:""}]};case"removeVideo":return{videoList:Ft.videoList.filter(ce=>ce.name!==qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Ft.videoList.map(ce=>ce.name===qt.payload.uploadInfo.file.name?ut(ut({},ce),{loaded:qt.payload.progressPercent,videoId:Kt.videoId,fileHash:Kt.fileHash}):ce)};case"updateTitle":return{videoList:(te=Ft.videoList)==null?void 0:te.map(ce=>ce.name===qt.payload.item.name?ut(ut({},ce),{title:qt.payload.title}):ce)};default:return{videoList:[]}}},Dt=({user:Ft,globalSetting:qt,loading:te,dispatch:Kt,visible:ce,editData:le,onCancel:xe=()=>{},onOk:ve=()=>{},queryParams:Te={}})=>{var me;const He=(0,gt.useParams)(),[fe]=Jt.default.useForm(),[$t,ie]=(0,zt.useReducer)(Pt,{videoList:[]}),[ue,ge]=(0,zt.useState)(!1),he=(0,zt.useRef)(),[Ne,ke]=(0,zt.useState)(),[$e,Re]=(0,zt.useState)(!1),[tn,Ae]=(0,zt.useState)(!1),Ie=(0,Ot.Ny)()?3:1;(0,zt.useEffect)(()=>{var Ut,oe,de;ce&&le&&(Re(le.is_link),ke(le.link),!le.is_link&&ie({type:"addVideo",payload:{uploadInfo:{file:{name:le.filename||""},videoId:le.video_id,loaded:100}}}),wt(((Ut=le==null?void 0:le.tags)==null?void 0:Ut.map(Ge=>Ge==null?void 0:Ge.name))||[]),fe.setFieldsValue({name:le.name,description:le.description,attachment_id:(oe=le==null?void 0:le.video)==null?void 0:oe.attachment_id,allow_skip:(de=le==null?void 0:le.video_item)==null?void 0:de.allow_skip}))},[le,ce]);const Fe=()=>{const Ut=document.getElementById("fileUpload");Ut.value=""},se=Ut=>{var oe;Re(!1);const de=Ut.target.files[0];if(!de){Fe();return}const Ge=de.name.toLowerCase();if(Ge&&Ge.indexOf(".avi")==-1&&Ge.indexOf(".flv")==-1&&Ge.indexOf(".f4v")==-1&&Ge.indexOf(".m4v")==-1&&Ge.indexOf(".mov")==-1&&Ge.indexOf(".mp4")==-1&&Ge.indexOf(".rmvb")==-1&&Ge.indexOf(".swf")==-1&&Ge.indexOf(".webm")==-1&&Ge.indexOf(".wmv")==-1){Tt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Fe();return}if(de.size>pt*Ie*1024*1024){Tt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Ie}G`),Fe();return}if((oe=$t.videoList)!=null&&oe.find(Ze=>Ze.name===de.name)){Tt.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Fe();return}bt(de)},It=(Ut,oe)=>{Bt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:zt.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",oe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Fe(),ie({type:"removeVideo",payload:{name:Ut}})}})},bt=Ut=>{var oe,de='{"Vod":{}}';if(ge(!0),he.current){he.current.addFile(Ut,null,null,null,de);return}(0,Lt.o)((oe=Ft.userInfo)==null?void 0:oe.login,"",{create:!he,addFileSuccess:Ge=>{ie({type:"addVideo",payload:{uploadInfo:Ge}})},onUploadProgress:(Ge,Ze,We)=>{const hn=Math.ceil(We*100);ie({type:"updateProgress",payload:{uploadInfo:Ge,progressPercent:hn}}),Fe()},onUploadFailed:Ge=>{Tt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Ge=>{ge(!1)},onUploadSucceed:Ge=>{ge(!1)},onUploadError:Ge=>{ge(!1)},gotUploader:Ge=>{Ge.addFile(Ut,null,null,null,de),he.current=Ge}})},Yt=()=>ct(void 0,null,function*(){var Ut,oe;if(yield fe.validateFields(),!$e&&!((Ut=$t.videoList)!=null&&Ut.length)||$e&&!Ne){Tt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}Ae(!0);const de=$e?{link:Ne}:{video_id:(oe=$t.videoList)==null?void 0:oe[0].videoId},Ge=yield ve(ut(ut(ut({},de),Te),{name:fe.getFieldValue("name"),attachment_id:fe.getFieldValue("attachment_id"),description:fe.getFieldValue("description"),tags:fe.getFieldValue("tag"),allow_skip:fe.getFieldValue("allow_skip")}));Ae(!1),Ge.id&&_t()}),_t=()=>{fe.resetFields(),ie({type:"removeAll"}),ke(null),wt([]),Re(null)},Mt=()=>{xe(),_t()},Gt=()=>{var Ut,oe,de,Ge,Ze,We,hn,gn,De,Ke,mn,bn;return zt.createElement(zt.Fragment,null,!$e&&!!((Ut=$t.videoList)!=null&&Ut.length)&&zt.createElement("div",{className:Ct.fileProgress},((de=(oe=$t.videoList)==null?void 0:oe[0])==null?void 0:de.loaded)==100?zt.createElement("div",{className:`${Ct.videoName} font14`},(Ze=(Ge=$t.videoList)==null?void 0:Ge[0])==null?void 0:Ze.name):zt.createElement(xt.Z,{style:{width:"80%"},percent:(hn=(We=$t.videoList)==null?void 0:We[0])==null?void 0:hn.loaded,status:((De=(gn=$t.videoList)==null?void 0:gn[0])==null?void 0:De.loaded)==100?"normal":"active"}),zt.createElement("div",{className:Ct.fileCancel,onClick:()=>{var Nn,zn,Xn,Kn;return It((zn=(Nn=$t.videoList)==null?void 0:Nn[0])==null?void 0:zn.name,((Kn=(Xn=$t.videoList)==null?void 0:Xn[0])==null?void 0:Kn.loaded)==100)}},((mn=(Ke=$t.videoList)==null?void 0:Ke[0])==null?void 0:mn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((bn=$t.videoList)!=null&&bn.length)&&zt.createElement("div",{className:Ct.uploadWrap},zt.createElement("label",{htmlFor:"fileUpload",className:Ct.upload},zt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),zt.createElement("label",{className:`${Ct.upload} ${Ct.uploadLink}`,onClick:()=>Re(!0)},zt.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),$e&&zt.createElement(Xt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Ne,onChange:Nn=>ke(Nn.target.value)}))},[St,wt]=(0,zt.useState)([]),Rt=Ut=>{if(Ut.key=="Enter"){const oe=fe.getFieldValue("tag");if(fe.setFieldsValue({tag:""}),!oe){Tt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(St.filter(de=>de===oe).length>0){Tt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}St.push(oe),wt([...St])}},Wt=(Ut,oe)=>{Ut.preventDefault(),wt([...St.filter(de=>de!=oe)])};return zt.createElement(Bt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:le?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:Ct.modal,open:ce,confirmLoading:tn,onOk:Yt,onCancel:Mt},zt.createElement(Jt.default,{form:fe},zt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:se,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),zt.createElement(Jt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},zt.createElement(Xt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),zt.createElement(Jt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:Ct.contentItem},Gt()),zt.createElement(Jt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},zt.createElement(At.Z,{getFileProgress:Ut=>{if(Ut.file.status==="uploading"){Ae(!0);return}Ut.file.status==="done"&&Ae(!1)}})),zt.createElement(Jt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},zt.createElement(ft,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),zt.createElement(Jt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},zt.createElement(Xt.default,{onKeyUp:Rt})),zt.createElement(Jt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},zt.createElement(Nt.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),zt.createElement("div",{className:Ct["tagsList-content"]},St.map((Ut,oe)=>zt.createElement(jt.default,{key:oe+Ut,closable:!0,onClose:de=>{Wt(de,Ut)}},Ut))),zt.createElement("div",{className:"c-grey-999"},zt.createElement("div",null,"\u6CE8\u610F\uFF1A"),zt.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",zt.createElement(gt.Link,{to:`/users/${(me=Ft.userInfo)==null?void 0:me.login}/videos/protocol`,target:"_blank",className:Ct.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),zt.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ie,"G\uFF1B"),zt.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),zt.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Zt=(0,gt.connect)(({user:Ft,loading:qt,globalSetting:te})=>({user:Ft,globalSetting:te,loading:qt}))(Dt)},70750:function(kn,En,Vt){"use strict";Vt.d(En,{o:function(){return jt}});var zt=Vt(99064),gt=Vt(93125),Xt=Vt.n(gt);let Jt="",Tt,Bt="";function xt(Ct){Nt(Ct)}function Nt(Ct){Tt=new(Xt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(Lt){console.log("addFileSuccess: "+Lt.file.name),Ct.addFileSuccess&&Ct.addFileSuccess(Lt),Tt.startUpload()},onUploadstarted:function(Lt){const At=Lt.file.name;if(Lt.videoId){var mt=`/api/users/${Jt}/video_auths.json`;(0,zt.ZP)(mt,{method:"put",body:{video_id:Lt.videoId,title:At,file_name:At,virtual_classroom_id:Bt}}).then(et=>{if(et.status==-1){Ct.onUploadError&&Ct.onUploadError(Lt);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;Tt.setUploadAuthAndAddress(Lt,st,rt)}).catch(et=>{Tt.deleteFile(Tt._curIndex),Tt.nextUpload(),console.log(et)})}else{var Ot=`/api/users/${Jt}/video_auths.json`;const et="";(0,zt.ZP)(Ot,{method:"Post",body:{title:et+At,file_name:et+At,virtual_classroom_id:Bt}}).then(tt=>{if(tt){const ct=tt.data;var st=ct.UploadAuth,rt=ct.UploadAddress,ut=ct.VideoId;Tt.setUploadAuthAndAddress(Lt,st,rt,ut)}}).catch(tt=>{Tt.deleteFile(Tt._curIndex),Tt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(Lt){Ct.onUploadSucceed&&Ct.onUploadSucceed(Lt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(Lt,At,Ot){Ct.onUploadFailed&&Ct.onUploadFailed(Lt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(Lt,At,Ot){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(Lt,At,Ot){Ct.onUploadProgress&&Ct.onUploadProgress(Lt,At,Ot);var mt=Math.ceil(Ot*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(Lt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var At=`/api/users/${Jt}/video_auths.json`;(0,zt.ZP)(At,{method:"put",body:{video_id:Lt.videoId}}).then(Ot=>{var et=Ot.data.UploadAuth;Tt.resumeUploadWithAuth(et)}).catch(Ot=>{console.log(Ot)})},onUploadEnd:function(Lt){Ct.onUploadEnd&&Ct.onUploadEnd(Lt),console.log("onUploadEnd: uploaded all the files")}}),Ct.gotUploader&&Ct.gotUploader(Tt)}function jt(Ct,Lt,At){Ct&&(Jt=Ct),Lt&&(Bt=Lt),xt(At)}},24768:function(kn,En,Vt){"use strict";Vt.d(En,{AL:function(){return ft},Iy:function(){return Lt},Qv:function(){return mt},ez:function(){return ct},jb:function(){return At}});var zt=Vt(32834),gt=Vt.n(zt),Xt=Vt(11690),Jt=Vt.n(Xt);let Tt=1;function Bt(Ft,qt){const te=Ft.match(/^(\s+)(?:```)/);if(te===null)return qt;const Kt=te[1];return qt.split(` `).map(ce=>{const le=ce.match(/^\s+/);if(le===null)return ce;const[xe]=le;return xe.length>=Kt.length?ce.slice(Kt.length):ce}).join(` `)}let xt=[],Nt=["
    "];const jt=new(gt()).Renderer,Ct=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Lt(){xt.length=0,Nt=["
      "]}const At={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ot(Ft,qt,te,Kt){if(qt>=Ft.length||Ft[qt].level<=te)return qt;var ce=Ft[qt];Kt.push("
    • "+ce.text+""),qt++;var le=[];return qt=Ot(Ft,qt,ce.level,le),le.length>0&&(Kt.push("
        "),le.forEach(function(xe){Kt.push(xe)}),Kt.push("
      ")),Kt.push("
    • "),qt=Ot(Ft,qt,te,Kt),qt}function mt(){return Ot(xt,0,0,Nt),Nt.push("
    "),Nt.join("")}const et={heading(Ft){const qt=Ct.exec(Ft);if(Tt+=1,qt)return{type:"heading",raw:qt[0],depth:qt[1].length,text:qt[2]}},fences(Ft){const qt=this.rules.block.fences.exec(Ft);if(qt){const te=qt[0];let Kt=Bt(te,qt[3]||"");const ce=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(ce)>=0){const le=rt(),xe=Kt;Kt=le,ut[le]={type:"block",expression:xe}}return{type:"code",raw:te,lang:ce,text:Kt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let st=0;const rt=()=>`__special_katext_id_${st++}__`;let ut={};function ct(){return ut}function ft(){st=0,ut={}}function pt(Ft){return Ft=Ft.replace(tt,(qt,te)=>{const Kt=rt();return ut[Kt]={type:"inline",expression:te},Kt}),Ft}const Pt=jt.listitem;jt.listitem=function(Ft){return Pt(pt(Ft))};const Dt=jt.paragraph;jt.paragraph=function(Ft){return Dt(pt(Ft))};const Zt=jt.tablecell;jt.tablecell=function(Ft,qt){return Zt(pt(Ft),qt)},jt.code=function(Ft,qt,te){const Kt=(qt||"").match(/\S*/)[0];return Kt?["latex","katex","math"].indexOf(Kt)>=0?`

    ${Ft}

    `:`
    ${te?Ft:(0,Xt.escape)(Ft,!0)}
    `:'
    '+(te?Ft:(0,Xt.escape)(Ft,!0))+"
    "},jt.heading=function(Ft,qt,te){let Kt=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xt.push({anchor:Kt,level:qt,text:Ft}),"'+Ft+""},gt().setOptions({silent:!0,gfm:!0,pedantic:!1}),gt().use({tokenizer:et,renderer:jt}),En.ZP=gt()},46474:function(kn,En,Vt){"use strict";Vt.d(En,{rX:function(){return pt},pW:function(){return Pt},gy:function(){return Dt},xY:function(){return ft},O5:function(){return ct},hs:function(){return tt},tJ:function(){return mt},o1:function(){return et},Rd:function(){return ut}});var zt=Vt(89070),gt=Vt(43418),Xt=Vt(28103),Jt=Vt(8591),Tt=Vt(24065),Bt=Vt(955),xt=Vt(87169),Nt=Vt(25510),jt="data:image/png;base64,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",Ct=Vt.p+"static/newqrcode.a8740efb.png",Lt=Vt(32637),At=Vt(59301),Ot=(Zt,Ft,qt)=>new Promise((te,Kt)=>{var ce=ve=>{try{xe(qt.next(ve))}catch(Te){Kt(Te)}},le=ve=>{try{xe(qt.throw(ve))}catch(Te){Kt(Te)}},xe=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(ce,le);xe((qt=qt.apply(Zt,Ft)).next())});const mt=(Zt,Ft=!1,qt=!1,te="",Kt=!1)=>!!(et(Zt)&&st(Zt,Ft,qt,te,Kt)),et=Zt=>(0,Tt.bg)()?!0:(Zt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Zt=>{var Ft,qt,te;const{user:Kt}=(0,zt.getDvaApp)()._store.getState();(0,Tt.bg)()&&!((qt=(Ft=Kt==null?void 0:Kt.userInfo)==null?void 0:Ft.course)!=null&&qt.course_public)&&!((te=Kt==null?void 0:Kt.userInfo)!=null&&te.profile_completed)&&Zt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},st=(Zt,Ft=!1,qt=!0,te="",Kt=!1)=>{var ce;const{user:le}=(0,zt.getDvaApp)()._store.getState();return(ce=le.userInfo)!=null&&ce.profile_completed?!0:(qt?Zt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:te,isCurrentPage:Kt}}):gt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Bt.xg)("/account/profile/edit"),rt()}}),!1)},rt=()=>{gt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ut=()=>{gt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:At.createElement("div",{style:{textAlign:"center"}},At.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),At.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Lt}),At.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ct=()=>{var Zt;const{user:Ft}=(0,zt.getDvaApp)()._store.getState();return(Zt=Ft.userInfo)!=null&&Zt.professional_certification?!0:(gt.default.confirm({title:"\u63D0\u793A",centered:!0,content:At.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Bt.xg)("/account/certification")}}),!1)},ft=()=>(0,Tt.V9)()?!0:(gt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:At.createElement("div",{className:"tc",style:{marginLeft:-38}},At.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),At.createElement("img",{src:Ct,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),pt=(Zt,Ft)=>Zt?!0:(gt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:At.createElement("div",null,At.createElement("p",null,Ft||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),At.createElement("div",{style:{marginLeft:"110px"}},At.createElement("img",{src:jt,width:200}),At.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Bt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Pt=Zt=>{gt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:At.createElement("div",null,At.createElement("div",null,At.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),At.createElement(Xt.Z,null),At.createElement("p",{style:{color:"#666666",fontSize:12}}," ",At.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",At.createElement("a",null,Zt),"\u5929\u3002"),At.createElement("p",{style:{color:"#666666",fontSize:12}}," ",At.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),At.createElement("div",{style:{textAlign:"center",marginTop:30}},At.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Nt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Dt=(Zt,Ft="")=>{const{shixunsDetail:{detail:qt}}=(0,zt.getDvaApp)()._store.getState();if((qt==null?void 0:qt.public)===2||(qt==null?void 0:qt.public)===1||(qt==null?void 0:qt.shixun_status)===3){let te="";return(qt==null?void 0:qt.public)===2&&(te="\u5DF2\u516C\u5F00"),(qt==null?void 0:qt.public)===1&&(te="\u5F85\u5BA1\u6838"),(qt==null?void 0:qt.shixun_status)===3&&(te="\u5DF2\u5173\u95ED"),gt.default.info({centered:!0,icon:At.createElement(xt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:At.createElement("div",{className:"tc",style:{marginLeft:-38}},At.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},At.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",te,"\uFF0C",Ft,"\u3002"),At.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),At.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Nt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(qt==null?void 0:qt.shixun_status)===2?(gt.default.confirm({centered:!0,icon:At.createElement(xt.Z,null),title:"\u63D0\u793A",content:At.createElement("div",null,At.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ft,"\u3002"),At.createElement("br",null),At.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{gt.default.confirm({width:440,centered:!0,icon:At.createElement(xt.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Ot(void 0,null,function*(){(yield Zt({type:"shixunsDetail/cancelRelease",payload:{id:qt==null?void 0:qt.identifier}})).status!==401&&(Jt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Zt({type:"shixunsDetail/getShixunsDetail",payload:{id:qt==null?void 0:qt.identifier}}),Zt({type:"practiceSetting/getCommonData",payload:{id:qt==null?void 0:qt.identifier}}))})})}}),!0):!1}},93125:function(kn,En,Vt){(function(zt){if(1)window.OSS=zt(),kn.exports=zt();else var gt})(function(){var zt;return function(){function gt(Xt,Jt,Tt){function Bt(jt,Ct){if(!Jt[jt]){if(!Xt[jt]){var Lt=void 0;if(!Ct&&Lt)return require(jt,!0);if(xt)return xt(jt,!0);var At=new Error("Cannot find module '"+jt+"'");throw At.code="MODULE_NOT_FOUND",At}var Ot=Jt[jt]={exports:{}};Xt[jt][0].call(Ot.exports,function(mt){return Bt(Xt[jt][1][mt]||mt)},Ot,Ot.exports,gt,Xt,Jt,Tt)}return Jt[jt].exports}for(var xt=void 0,Nt=0;Nt0?ie["Content-Type"]=$t.mime:ie["Content-Type"]=ft.getType($t.mime||ut.extname($t.object||""))||"application/octet-stream"),$t.content&&(ie["Content-Md5"]=rt.createHash("md5").update(new Bt($t.content,"utf8")).digest("base64"),ie["Content-Length"]||(ie["Content-Length"]=$t.content.length));var ue=this._getResource($t);ie.authorization=this.authorization($t.method,ue,$t.subres,ie);var ge=this._getReqUrl($t);st("request %s %s, with headers %j, !!stream: %s",$t.method,ge,ie,!!$t.stream);var he=$t.timeout||this.options.timeout;return{url:ge,params:{agent:this.agent,method:$t.method,content:$t.content,stream:$t.stream,headers:ie,timeout:he,writeStream:$t.writeStream,customResponse:$t.customResponse,ctx:$t.ctx||this.ctx}}},fe.request=mt.default.mark(function $t(ie){var ue,ge,he,Ne;return mt.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ue=this.createRequest(ie),ge=void 0,he=void 0,ke.prev=3,ke.next=6,this.urllib.request(ue.url,ue.params);case 6:ge=ke.sent,st("response %s %s, got %s, headers: %j",ie.method,ue.url,ge.status,ge.headers),ke.next=13;break;case 10:ke.prev=10,ke.t0=ke.catch(3),he=ke.t0;case 13:if(Ne=void 0,!ge||!ie.successStatuses||ie.successStatuses.indexOf(ge.status)!==-1){ke.next=26;break}return ke.next=17,this.requestError(ge);case 17:if(Ne=ke.sent,Ne.code!=="RequestTimeTooSkewed"){ke.next=23;break}return this.options.amendTimeSkewed=+new Date(Ne.serverTime)-new Date,ke.next=22,this.request(ie);case 22:return ke.abrupt("return",ke.sent);case 23:Ne.params=ie,ke.next=30;break;case 26:if(!he){ke.next=30;break}return ke.next=29,this.requestError(he);case 29:Ne=ke.sent;case 30:if(!Ne){ke.next=32;break}throw Ne;case 32:if(!ie.xmlResponse){ke.next=36;break}return ke.next=35,this.parseXML(ge.data);case 35:ge.data=ke.sent;case 36:return ke.abrupt("return",ge);case 37:case"end":return ke.stop()}},$t,this,[[3,10]])}),fe._getResource=function($t){var ie="/";return $t.bucket&&(ie+=$t.bucket+"/"),$t.object&&(ie+=$t.object),ie},fe._isIP=function($t){return me._isIP($t)},fe._escape=function($t){return Kt.encodeURIComponent($t).replace(/%2F/g,"/")},fe._getReqUrl=function($t){var ie={};ct(this.options.endpoint).to(ie);var ue=this._isIP(ie.hostname),ge=this.options.cname;!$t.bucket||ge||ue||(ie.host=$t.bucket+"."+ie.host);var he="/";$t.bucket&&ue&&(he+=$t.bucket+"/"),$t.object&&(he+=this._escape($t.object).replace(/\+/g,"%2B")),ie.pathname=he;var Ne={};if($t.query&&Zt(Ne,$t.query),$t.subres){var ke={};qt.string($t.subres)?ke[$t.subres]="":qt.array($t.subres)?$t.subres.forEach(function($e){ke[$e]=""}):ke=$t.subres,Zt(Ne,ke)}return ie.query=Ne,Ft.format(ie)},fe._getUserAgent=function(){var $t=Tt&&Tt.browser?"js":"nodejs",ie="aliyun-sdk-"+$t+"/"+le.version,ue=te.description;return!ue&&Tt&&(ue="Node.js "+Tt.version.slice(1)+" on "+Tt.platform+" "+Tt.arch),this._checkUserAgent(ie+" "+ue)},fe._checkUserAgent=function($t){return $t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},fe.checkBrowserAndVersion=function($t,ie){return ve.name===$t&&ve.version.split(".")[0]===ie},fe.parseXML=function($t){return function(ie){Bt.isBuffer($t)&&($t=$t.toString()),pt.parseString($t,{explicitRoot:!1,explicitArray:!1},ie)}},fe.requestError=mt.default.mark(function $t(ie){var ue,ge,he,Ne;return mt.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(ue=null,ie.data&&ie.data.length){ke.next=5;break}ie.status===-1||ie.status===-2?(ue=new Error(ie.message),ue.name=ie.name,ue.status=ie.status,ue.code=ie.name):(ie.status===404?(ue=new Error("Object not exists"),ue.name="NoSuchKeyError",ue.status=404,ue.code="NoSuchKey"):ie.status===412?(ue=new Error("Pre condition failed"),ue.name="PreconditionFailedError",ue.status=412,ue.code="PreconditionFailed"):(ue=new Error("Unknow error, status: "+ie.status),ue.name="UnknowError",ue.status=ie.status),ue.requestId=ie.headers["x-oss-request-id"],ue.host=""),ke.next=30;break;case 5:return ge=String(ie.data),st("request response error data: %s",ge),he=void 0,ke.prev=8,ke.next=11,this.parseXML(ge)||{};case 11:he=ke.sent,ke.next=21;break;case 14:return ke.prev=14,ke.t0=ke.catch(8),st(ge),ke.t0.message+=` raw xml: `+ge,ke.t0.status=ie.status,ke.t0.requestId=ie.headers["x-oss-request-id"],ke.abrupt("return",ke.t0);case 21:Ne=he.Message||"unknow request error, status: "+ie.status,he.Condition&&(Ne+=" (condition: "+he.Condition+")"),ue=new Error(Ne),ue.name=he.Code?he.Code+"Error":"UnknowError",ue.status=ie.status,ue.code=he.Code,ue.requestId=he.RequestId,ue.hostId=he.HostId,ue.serverTime=he.ServerTime;case 30:return st("generate error %j",ue),ke.abrupt("return",ue);case 32:case"end":return ke.stop()}},$t,this,[[8,14]])})}).call(this,gt("_process"),gt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(gt,Xt,Jt){(function(Tt){"use strict";function Bt(ct){return ct&&ct.__esModule?ct:{default:ct}}function xt(ct,ft){if(!(this instanceof xt))return new xt(ct,ft);ut.call(this,ft),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Nt=gt("babel-runtime/core-js/array/from"),jt=Bt(Nt),Ct=gt("babel-runtime/regenerator"),Lt=Bt(Ct),At=gt("is-type-of"),Ot=gt("util"),mt=gt("path"),et=gt("mime"),tt=gt("copy-to"),st=Jt;st.multipartUpload=Lt.default.mark(function ct(ft,pt,Pt){var Dt,Zt,Ft,qt,te,Kt,ce,le,xe;return Lt.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(this.resetCancelFlag(),Pt=Pt||{},!Pt.checkpoint||!Pt.checkpoint.uploadId){ve.next=6;break}return ve.next=5,this._resumeMultipart(Pt.checkpoint,Pt);case 5:return ve.abrupt("return",ve.sent);case 6:return Dt=102400,Pt.mime||(At.file(pt)?Pt.mime=et.getType(mt.extname(pt.name)):At.blob(pt)?Pt.mime=pt.type:Pt.mime=et.getType(mt.extname(pt))),Pt.headers=Pt.headers||{},this._convertMetaToHeaders(Pt.meta,Pt.headers),ve.next=12,this._getFileSize(pt);case 12:if(!((Zt=ve.sent)0&&tt(qt).to(Kt),ce=this._divideParts(Dt,Zt),le=ce.length,xe=!1,ve=Lt.default.mark(function $e(Re,tn){var Ae,Ie,Fe;return Lt.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(Re.isCancel()){se.next=21;break}return se.prev=1,Ae=ce[tn-1],Ie={stream:Re._createStream(Pt,Ae.start,Ae.end),size:Ae.end-Ae.start},se.next=6,Re._uploadPart(te,Ft,tn,Ie);case 6:if(Fe=se.sent,Re.isCancel()||xe){se.next=13;break}if(ft.doneParts.push({number:tn,etag:Fe.res.headers.etag}),Kt.push({number:tn,etag:Fe.res.headers.etag}),!pt||!pt.progress){se.next=13;break}return se.next=13,pt.progress(qt.length/le,ft,Fe.res);case 13:se.next=21;break;case 15:if(se.prev=15,se.t0=se.catch(1),Re.isCancel()){se.next=21;break}throw Re.cancel(),se.t0.partNum=tn,se.t0;case 21:case"end":return se.stop()}},$e,this,[[1,15]])}),Te=(0,jt.default)(new Array(le),function($e,Re){return Re+1}),me=Kt.map(function($e){return $e.number}),He=Te.filter(function($e){return me.indexOf($e)<0}),fe=5,$t=pt.parallel||fe,!this.checkBrowserAndVersion("Internet Explorer","10")&&$t!==1){ke.next=26;break}ie=0;case 16:if(!(ie0)){ke.next=37;break}throw this.resetCancelFlag(),Ne=he[0],Ne.message="Failed to upload some parts with error: "+Ne.toString()+" part_num: "+Ne.partNum,Ne;case 37:if(!this.isCancel()){ke.next=40;break}throw ue=null,this._makeCancelEvent();case 40:return ke.next=42,this.completeMultipartUpload(te,Ft,Kt,pt);case 42:return ke.abrupt("return",ke.sent);case 43:case"end":return ke.stop()}},ct,this)}),At.file=function(ct){return typeof File!="undefined"&&ct instanceof File},At.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},st._getFileSize=Lt.default.mark(function ct(ft){var pt;return Lt.default.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(!At.buffer(ft)){Pt.next=4;break}return Pt.abrupt("return",ft.length);case 4:if(!At.blob(ft)&&!At.file(ft)){Pt.next=6;break}return Pt.abrupt("return",ft.size);case 6:if(!At.string(ft)){Pt.next=11;break}return Pt.next=9,this._statFile(ft);case 9:return pt=Pt.sent,Pt.abrupt("return",pt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Pt.stop()}},ct,this)});var rt=gt("stream"),ut=rt.Readable;Ot.inherits(xt,ut),xt.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var ft=!0;ft&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Pt,this.start=Pt,ft=this.push(this.fileBuffer.slice(pt,Pt))}},xt.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var ft=this;this.reader.onload=function(pt){ft.fileBuffer=new Tt(new Uint8Array(pt.target.result)),ft.file=null,ft.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},st._createStream=function(ct,ft,pt){if(At.blob(ct)||At.file(ct))return new xt(ct.slice(ft,pt));throw new Error("_createStream requires File/String.")},st._getPartSize=function(ct,ft){return ft?Math.max(Math.ceil(ct/1e4),ft):1048576},st._divideParts=function(ct,ft){for(var pt=Math.ceil(ct/ft),Pt=[],Dt=0;Dt `,Pt.quiet?Dt+=` true `:Dt+=` false `,Zt=0;Zt"+Lt.escape(this._objectName(pt[Zt]))+` `;return Dt+="",Ct("delete multi objects: %s",Dt),Pt.subres="delete",Ft=this._objectRequestParams("POST","",Pt),Ft.mime="xml",Ft.content=Dt,Ft.xmlResponse=!0,Ft.successStatuses=[200],ce.next=14,this.request(Ft);case 14:return qt=ce.sent,te=qt.data,Kt=te&&te.Deleted||null,Kt&&(Array.isArray(Kt)||(Kt=[Kt]),Kt=Kt.map(function(le){return le.Key})),ce.abrupt("return",{res:qt.res,deleted:Kt});case 19:case"end":return ce.stop()}},ft,this)}),ct.copy=jt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft,qt;return jt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Dt=Dt||{},Dt.headers=Dt.headers||{},(0,xt.default)(Dt.headers).forEach(function(Kt){Dt.headers["x-oss-copy-source-"+Kt.toLowerCase()]=Dt.headers[Kt]}),Dt.meta&&(Dt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Dt.meta,Dt.headers),Pt=Pt[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Pt):"/"+encodeURIComponent(Pt.slice(1)),Dt.headers["x-oss-copy-source"]=Pt,Zt=this._objectRequestParams("PUT",pt,Dt),Zt.xmlResponse=!0,Zt.successStatuses=[200,304],te.next=12,this.request(Zt);case 12:return Ft=te.sent,qt=Ft.data,qt&&(qt={etag:qt.ETag,lastModified:qt.LastModified}),te.abrupt("return",{data:qt,res:Ft.res});case 16:case"end":return te.stop()}},ft,this)}),ct.putMeta=jt.default.mark(function ft(pt,Pt,Dt){return jt.default.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,this.copy(pt,pt,{meta:Pt||{},timeout:Dt&&Dt.timeout,ctx:Dt&&Dt.ctx});case 2:return Zt.abrupt("return",Zt.sent);case 3:case"end":return Zt.stop()}},ft,this)}),ct.list=jt.default.mark(function ft(pt,Pt){var Dt,Zt,Ft,qt,te;return jt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Dt=this._objectRequestParams("GET","",Pt),Dt.query=pt,Dt.xmlResponse=!0,Dt.successStatuses=[200],Kt.next=6,this.request(Dt);case 6:return Zt=Kt.sent,Ft=Zt.data.Contents,qt=this,Ft&&(Array.isArray(Ft)||(Ft=[Ft]),Ft=Ft.map(function(ce){return{name:ce.Key,url:qt._objectUrl(ce.Key),lastModified:ce.LastModified,etag:ce.ETag,type:ce.Type,size:Number(ce.Size),storageClass:ce.StorageClass,owner:{id:ce.Owner.ID,displayName:ce.Owner.DisplayName}}})),te=Zt.data.CommonPrefixes||null,te&&(Array.isArray(te)||(te=[te]),te=te.map(function(ce){return ce.Prefix})),Kt.abrupt("return",{res:Zt.res,objects:Ft,prefixes:te,nextMarker:Zt.data.NextMarker||null,isTruncated:Zt.data.IsTruncated==="true"});case 13:case"end":return Kt.stop()}},ft,this)}),ct.putACL=jt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft;return jt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Dt=Dt||{},Dt.subres="acl",Dt.headers=Dt.headers||{},Dt.headers["x-oss-object-acl"]=Pt,pt=this._objectName(pt),Zt=this._objectRequestParams("PUT",pt,Dt),Zt.successStatuses=[200],qt.next=9,this.request(Zt);case 9:return Ft=qt.sent,qt.abrupt("return",{res:Ft.res});case 11:case"end":return qt.stop()}},ft,this)}),ct.getACL=jt.default.mark(function ft(pt,Pt){var Dt,Zt;return jt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Pt=Pt||{},Pt.subres="acl",pt=this._objectName(pt),Dt=this._objectRequestParams("GET",pt,Pt),Dt.successStatuses=[200],Dt.xmlResponse=!0,Ft.next=8,this.request(Dt);case 8:return Zt=Ft.sent,Ft.abrupt("return",{acl:Zt.data.AccessControlList.Grant,owner:{id:Zt.data.Owner.ID,displayName:Zt.data.Owner.DisplayName},res:Zt.res});case 10:case"end":return Ft.stop()}},ft,this)}),ct.restore=jt.default.mark(function ft(pt,Pt){var Dt,Zt;return jt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Pt=Pt||{},Pt.subres="restore",Dt=this._objectRequestParams("POST",pt,Pt),Dt.successStatuses=[202],Ft.next=6,this.request(Dt);case 6:return Zt=Ft.sent,Ft.abrupt("return",{res:Zt.res});case 8:case"end":return Ft.stop()}},ft,this)}),ct.signatureUrl=function(ft,pt){pt=pt||{},ft=this._objectName(ft),pt.method=pt.method||"GET";var Pt=Lt.timestamp()+(pt.expires||1800),Dt={bucket:this.options.bucket,object:ft},Zt=this._getResource(Dt);this.options.stsToken&&(pt["security-token"]=this.options.stsToken);var Ft=ut._signatureForURL(this.options.accessKeySecret,pt,Zt,Pt),qt=mt.parse(this._getReqUrl(Dt));return qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Pt,Signature:Ft.Signature},et(Ft.subResource).to(qt.query),qt.format()},ct.getObjectUrl=function(ft,pt){return pt?pt[pt.length-1]!=="/"&&(pt+="/"):pt=this.options.endpoint.format(),pt+this._escape(this._objectName(ft))},ct._objectUrl=function(ft){return this._getReqUrl({bucket:this.options.bucket,object:ft})},ct.generateObjectUrl=function(ft,pt){if(pt)pt[pt.length-1]!=="/"&&(pt+="/");else{pt=this.options.endpoint.format();var Pt=mt.parse(pt),Dt=this.options.bucket;Pt.hostname=Dt+"."+Pt.hostname,Pt.host=Dt+"."+Pt.host,pt=Pt.format()}return pt+this._escape(this._objectName(ft))},ct._objectRequestParams=function(ft,pt,Pt){if(!this.options.bucket)throw new Error("Please create a bucket first");Pt=Pt||{},pt=this._objectName(pt);var Dt={object:pt,bucket:this.options.bucket,method:ft,subres:Pt&&Pt.subres,timeout:Pt&&Pt.timeout,ctx:Pt&&Pt.ctx};return Pt.headers&&(Dt.headers={},et(Pt.headers).to(Dt.headers)),Dt},ct._objectName=function(ft){return ft.replace(/^\/+/,"")},ct._statFile=function(ft){return function(pt){At.stat(ft,pt)}},ct._convertMetaToHeaders=function(ft,pt){ft&&(0,xt.default)(ft).forEach(function(Pt){pt["x-oss-meta-"+Pt]=ft[Pt]})},ct._deleteFileSafe=function(ft){return function(pt){At.exists(ft,function(Pt){Pt?At.unlink(ft,function(Dt){Dt&&Ct("unlink %j error: %s",ft,Dt),pt()}):pt()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(gt,Xt,Jt){"use strict";Jt.version="5.3.1"},{}],6:[function(gt,Xt,Jt){"use strict";function Tt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Bt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function xt(tt){if(!tt)return!1;var st=tt.constructor;return!!st&&(st.name==="GeneratorFunction"||st.displayName==="GeneratorFunction"||Bt(st.prototype)||Bt(tt.prototype))}function Nt(tt,st){var rt=new tt(st),ut=(0,Ot.default)(rt),ct=(0,Ot.default)((0,Lt.default)(rt));ut.concat(ct).forEach(function(ft){xt(rt[ft])?this[ft]=mt.wrap(rt[ft]).bind(rt):this[ft]=rt[ft]},this)}function jt(tt){if(!(this instanceof jt))return new jt(tt);Nt.call(this,et,tt)}var Ct=gt("babel-runtime/core-js/object/get-prototype-of"),Lt=Tt(Ct),At=gt("babel-runtime/core-js/object/keys"),Ot=Tt(At),mt=gt("co"),et=gt("./client");Xt.exports=jt,jt.STS=function tt(st){if(!(this instanceof tt))return new tt(st);Nt.call(this,et.STS,st)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(gt,Xt,Jt){(function(Tt){"use strict";function Bt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}var xt=gt("babel-runtime/core-js/object/keys"),Nt=Bt(xt),jt=gt("babel-runtime/core-js/json/stringify"),Ct=Bt(jt);Jt.encodeCallback=function(Lt,At){if(Lt.headers=Lt.headers||{},!Object.prototype.hasOwnProperty.call(Lt.headers,"x-oss-callback")&&At.callback){var Ot={callbackUrl:encodeURI(At.callback.url),callbackBody:At.callback.body};At.callback.host&&(Ot.callbackHost=At.callback.host),At.callback.contentType&&(Ot.callbackBodyType=At.callback.contentType);var mt=new Tt((0,Ct.default)(Ot)).toString("base64");if(Lt.headers["x-oss-callback"]=mt,At.callback.customValue){var et={};(0,Nt.default)(At.callback.customValue).forEach(function(tt){et["x:"+tt]=At.callback.customValue[tt]}),Lt.headers["x-oss-callback-var"]=new Tt((0,Ct.default)(et)).toString("base64")}}}}).call(this,gt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(gt,Xt,Jt){"use strict";var Tt=gt("babel-runtime/regenerator"),Bt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Tt),xt=gt("copy-to"),Nt=gt("./callback"),jt=Jt;jt.listUploads=Bt.default.mark(function Ct(Lt,At){var Ot,mt,et,tt;return Bt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return At=At||{},Ot={},xt(At).to(Ot),Ot.subres="uploads",mt=this._objectRequestParams("GET","",Ot),mt.query=Lt,mt.xmlResponse=!0,mt.successStatuses=[200],st.next=10,this.request(mt);case 10:return et=st.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(rt){return{name:rt.Key,uploadId:rt.UploadId,initiated:rt.Initiated}}),st.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return st.stop()}},Ct,this)}),jt.listParts=Bt.default.mark(function Ct(Lt,At,Ot,mt){var et,tt,st;return Bt.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return mt=mt||{},et={},xt(mt).to(et),et.subres={uploadId:At},tt=this._objectRequestParams("GET",Lt,et),tt.query=Ot,tt.xmlResponse=!0,tt.successStatuses=[200],rt.next=10,this.request(tt);case 10:return st=rt.sent,rt.abrupt("return",{res:st.res,uploadId:st.data.UploadId,bucket:st.data.Bucket,name:st.data.Key,partNumberMarker:st.data.PartNumberMarker,nextPartNumberMarker:st.data.NextPartNumberMarker,maxParts:st.data.MaxParts,isTruncated:st.data.IsTruncated,parts:st.data.Part||[]});case 12:case"end":return rt.stop()}},Ct,this)}),jt.abortMultipartUpload=Bt.default.mark(function Ct(Lt,At,Ot){var mt,et,tt;return Bt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return this.cancel(),Ot=Ot||{},mt={},xt(Ot).to(mt),mt.subres={uploadId:At},et=this._objectRequestParams("DELETE",Lt,mt),et.successStatuses=[204],st.next=9,this.request(et);case 9:return tt=st.sent,st.abrupt("return",{res:tt.res});case 11:case"end":return st.stop()}},Ct,this)}),jt.initMultipartUpload=Bt.default.mark(function Ct(Lt,At){var Ot,mt,et;return Bt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return At=At||{},Ot={},xt(At).to(Ot),Ot.headers=Ot.headers||{},this._convertMetaToHeaders(At.meta,Ot.headers),Ot.subres="uploads",mt=this._objectRequestParams("POST",Lt,Ot),mt.mime=At.mime,mt.xmlResponse=!0,mt.successStatuses=[200],tt.next=12,this.request(mt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},Ct,this)}),jt.uploadPart=Bt.default.mark(function Ct(Lt,At,Ot,mt,et,tt,st){var rt;return Bt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return rt={stream:this._createStream(mt,et,tt),size:tt-et},ut.next=3,this._uploadPart(Lt,At,Ot,rt,st);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},Ct,this)}),jt.completeMultipartUpload=Bt.default.mark(function Ct(Lt,At,Ot,mt){var et,tt,st,rt,ut,ct,ft,pt;return Bt.default.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:for(et=Ot.concat().sort(function(Dt,Zt){return Dt.number-Zt.number}).filter(function(Dt,Zt,Ft){return!Zt||Dt.number!==Ft[Zt-1].number}),tt=` `,st=0;st `,tt+=""+rt.number+` `,tt+=""+rt.etag+` `,tt+=` `;return tt+="",mt=mt||{},ut={},xt(mt).to(ut),ut.subres={uploadId:At},ct=this._objectRequestParams("POST",Lt,ut),Nt.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Pt.next=16,this.request(ct);case 16:return ft=Pt.sent,pt={res:ft.res,bucket:ct.bucket,name:Lt,etag:ft.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(pt.data=JSON.parse(ft.data.toString())),Pt.abrupt("return",pt);case 20:case"end":return Pt.stop()}},Ct,this)}),jt._uploadPart=Bt.default.mark(function Ct(Lt,At,Ot,mt,et){var tt,st,rt;return Bt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},xt(et).to(tt),tt.headers={"Content-Length":mt.size},tt.subres={partNumber:Ot,uploadId:At},st=this._objectRequestParams("PUT",Lt,tt),st.mime=tt.mime,st.stream=mt.stream,st.successStatuses=[200],ut.next=11,this.request(st);case 11:return rt=ut.sent,mt.stream=null,st.stream=null,ut.abrupt("return",{name:Lt,etag:rt.res.headers.etag,res:rt.res});case 15:case"end":return ut.stop()}},Ct,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(gt,Xt,Jt){(function(Tt){"use strict";function Bt(Ot){return Ot&&Ot.__esModule?Ot:{default:Ot}}var xt=gt("babel-runtime/core-js/json/stringify"),Nt=Bt(xt),jt=gt("babel-runtime/core-js/object/keys"),Ct=Bt(jt),Lt=gt("./../../shims/crypto/crypto.js"),At=gt("is-type-of");Jt.buildCanonicalizedResource=function(Ot,mt){var et=""+Ot,tt="?";if(At.string(mt)&&mt.trim()!=="")et+=tt+mt;else if(At.array(mt))mt.sort(),et+=tt+mt.join("&");else if(mt){var st=function(ut,ct){return ut[0]>ct[0]?1:ut[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=rt.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function Bt(rt){var ut=Tt(rt),ct=ut[0],ft=ut[1];return 3*(ct+ft)/4-ft}function xt(rt,ut,ct){return 3*(ut+ct)/4-ct}function Nt(rt){for(var ut,ct=Tt(rt),ft=ct[0],pt=ct[1],Pt=new mt(xt(rt,ft,pt)),Dt=0,Zt=pt>0?ft-4:ft,Ft=0;Ft>16&255,Pt[Dt++]=ut>>8&255,Pt[Dt++]=255&ut;return pt===2&&(ut=Ot[rt.charCodeAt(Ft)]<<2|Ot[rt.charCodeAt(Ft+1)]>>4,Pt[Dt++]=255&ut),pt===1&&(ut=Ot[rt.charCodeAt(Ft)]<<10|Ot[rt.charCodeAt(Ft+1)]<<4|Ot[rt.charCodeAt(Ft+2)]>>2,Pt[Dt++]=ut>>8&255,Pt[Dt++]=255&ut),Pt}function jt(rt){return At[rt>>18&63]+At[rt>>12&63]+At[rt>>6&63]+At[63&rt]}function Ct(rt,ut,ct){for(var ft,pt=[],Pt=ut;PtDt?Dt:Pt+16383));return ft===1?(ut=rt[ct-1],pt.push(At[ut>>2]+At[ut<<4&63]+"==")):ft===2&&(ut=(rt[ct-2]<<8)+rt[ct-1],pt.push(At[ut>>10]+At[ut>>4&63]+At[ut<<2&63]+"=")),pt.join("")}Jt.byteLength=Bt,Jt.toByteArray=Nt,Jt.fromByteArray=Lt;for(var At=[],Ot=[],mt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt1&&ie[1]||""}function et($t){var ie=Ot.match($t);return ie&&ie.length>1&&ie[2]||""}var tt,st=mt(/(ipod|iphone|ipad)/i).toLowerCase(),rt=/like android/i.test(Ot),ut=!rt&&/android/i.test(Ot),ct=/nexus\s*[0-6]\s*/i.test(Ot),ft=!ct&&/nexus\s*[0-9]+/i.test(Ot),pt=/CrOS/.test(Ot),Pt=/silk/i.test(Ot),Dt=/sailfish/i.test(Ot),Zt=/tizen/i.test(Ot),Ft=/(web|hpw)os/i.test(Ot),qt=/windows phone/i.test(Ot),te=(/SamsungBrowser/i.test(Ot),!qt&&/windows/i.test(Ot)),Kt=!st&&!Pt&&/macintosh/i.test(Ot),ce=!ut&&!Dt&&!Zt&&!Ft&&/linux/i.test(Ot),le=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),xe=mt(/version\/(\d+(\.\d+)?)/i),ve=/tablet/i.test(Ot)&&!/tablet pc/i.test(Ot),Te=!ve&&/[^-]mobi/i.test(Ot),me=/xbox/i.test(Ot);/opera/i.test(Ot)?tt={name:"Opera",opera:Lt,version:xe||mt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(Ot)?tt={name:"Opera",opera:Lt,version:mt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||xe}:/SamsungBrowser/i.test(Ot)?tt={name:"Samsung Internet for Android",samsungBrowser:Lt,version:xe||mt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(Ot)?tt={name:"Opera Coast",coast:Lt,version:xe||mt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(Ot)?tt={name:"Yandex Browser",yandexbrowser:Lt,version:xe||mt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(Ot)?tt={name:"UC Browser",ucbrowser:Lt,version:mt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(Ot)?tt={name:"Maxthon",maxthon:Lt,version:mt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(Ot)?tt={name:"Epiphany",epiphany:Lt,version:mt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(Ot)?tt={name:"Puffin",puffin:Lt,version:mt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(Ot)?tt={name:"Sleipnir",sleipnir:Lt,version:mt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(Ot)?tt={name:"K-Meleon",kMeleon:Lt,version:mt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:Lt},le?(tt.msedge=Lt,tt.version=le):(tt.msie=Lt,tt.version=mt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(Ot)?tt={name:"Internet Explorer",msie:Lt,version:mt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:pt?tt={name:"Chrome",osname:"Chrome OS",chromeos:Lt,chromeBook:Lt,chrome:Lt,version:mt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(Ot)?tt={name:"Microsoft Edge",msedge:Lt,version:le}:/vivaldi/i.test(Ot)?tt={name:"Vivaldi",vivaldi:Lt,version:mt(/vivaldi\/(\d+(\.\d+)?)/i)||xe}:Dt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:Lt,version:mt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(Ot)?tt={name:"SeaMonkey",seamonkey:Lt,version:mt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(Ot)?(tt={name:"Firefox",firefox:Lt,version:mt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(Ot)&&(tt.firefoxos=Lt,tt.osname="Firefox OS")):Pt?tt={name:"Amazon Silk",silk:Lt,version:mt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(Ot)?tt={name:"PhantomJS",phantom:Lt,version:mt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(Ot)?tt={name:"SlimerJS",slimer:Lt,version:mt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(Ot)||/rim\stablet/i.test(Ot)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Lt,version:xe||mt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ft?(tt={name:"WebOS",osname:"WebOS",webos:Lt,version:xe||mt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(Ot)&&(tt.touchpad=Lt)):/bada/i.test(Ot)?tt={name:"Bada",osname:"Bada",bada:Lt,version:mt(/dolfin\/(\d+(\.\d+)?)/i)}:Zt?tt={name:"Tizen",osname:"Tizen",tizen:Lt,version:mt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||xe}:/qupzilla/i.test(Ot)?tt={name:"QupZilla",qupzilla:Lt,version:mt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||xe}:/chromium/i.test(Ot)?tt={name:"Chromium",chromium:Lt,version:mt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||xe}:/chrome|crios|crmo/i.test(Ot)?tt={name:"Chrome",chrome:Lt,version:mt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:xe}:/safari|applewebkit/i.test(Ot)?(tt={name:"Safari",safari:Lt},xe&&(tt.version=xe)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},xe&&(tt.version=xe)):tt=/googlebot/i.test(Ot)?{name:"Googlebot",googlebot:Lt,version:mt(/googlebot\/(\d+(\.\d+))/i)||xe}:{name:mt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(Ot)?(/(apple)?webkit\/537\.36/i.test(Ot)?(tt.name=tt.name||"Blink",tt.blink=Lt):(tt.name=tt.name||"Webkit",tt.webkit=Lt),!tt.version&&xe&&(tt.version=xe)):!tt.opera&&/gecko\//i.test(Ot)&&(tt.name=tt.name||"Gecko",tt.gecko=Lt,tt.version=tt.version||mt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&&st?(tt[st]=Lt,tt.ios=Lt,tt.osname="iOS"):Kt?(tt.mac=Lt,tt.osname="macOS"):me?(tt.xbox=Lt,tt.osname="Xbox"):te?(tt.windows=Lt,tt.osname="Windows"):ce&&(tt.linux=Lt,tt.osname="Linux"):(tt.android=Lt,tt.osname="Android");var He="";tt.windows?He=function($t){switch($t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(mt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?He=mt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(He=mt(/Mac OS X (\d+([_\.\s]\d+)*)/i),He=He.replace(/[_\s]/g,".")):st?(He=mt(/os (\d+([_\s]\d+)*) like mac os x/i),He=He.replace(/[_\s]/g,".")):ut?He=mt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?He=mt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?He=mt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?He=mt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(He=mt(/tizen[\/\s](\d+(\.\d+)*)/i)),He&&(tt.osversion=He);var fe=!tt.windows&&He.split(".")[0];return ve||ft||st=="ipad"||ut&&(fe==3||fe>=4&&!Te)||tt.silk?tt.tablet=Lt:(Te||st=="iphone"||st=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=Lt),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=Lt:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=Lt:tt.x=Lt,tt}function Bt(Ot){return Ot.split(".").length}function xt(Ot,mt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(Ot,mt);for(et=0;et=0;){if(et[0][mt]>et[1][mt])return 1;if(et[0][mt]!==et[1][mt])return-1;if(mt===0)return 0}}function jt(Ot,mt,et){var tt=At;typeof mt=="string"&&(et=mt,mt=void 0),mt===void 0&&(mt=!1),et&&(tt=Tt(et));var st=""+tt.version;for(var rt in Ot)if(Ot.hasOwnProperty(rt)&&tt[rt]){if(typeof Ot[rt]!="string")throw new Error("Browser version in the minVersion map should be a string: "+rt+": "+String(Ot));return Nt([st,Ot[rt]])<0}return mt}function Ct(Ot,mt,et){return!jt(Ot,mt,et)}var Lt=!0,At=Tt(typeof navigator!="undefined"&&navigator.userAgent||"");return At.test=function(Ot){for(var mt=0;mt=this.charLength-this.charReceived?this.charLength-this.charReceived:At.length;if(At.copy(this.charBuffer,this.charReceived,0,mt),this.charReceived+=mt,this.charReceived=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,At.length===0)return Ot;break}this.charLength+=this.surrogateSize,Ot=""}this.detectIncompleteChar(At);var et=At.length;this.charLength&&(At.copy(this.charBuffer,0,At.length-this.charReceived,et),et-=this.charReceived),Ot+=At.toString(this.encoding,0,et);var et=Ot.length-1,tt=Ot.charCodeAt(et);if(tt>=55296&&tt<=56319){var st=this.surrogateSize;return this.charLength+=st,this.charReceived+=st,this.charBuffer.copy(this.charBuffer,st,0,st),At.copy(this.charBuffer,0,0,st),Ot.substring(0,et)}return Ot},Lt.prototype.detectIncompleteChar=function(At){for(var Ot=At.length>=3?3:At.length;Ot>0;Ot--){var mt=At[At.length-Ot];if(Ot==1&&mt>>5==6){this.charLength=2;break}if(Ot<=2&&mt>>4==14){this.charLength=3;break}if(Ot<=3&&mt>>3==30){this.charLength=4;break}}this.charReceived=Ot},Lt.prototype.end=function(At){var Ot="";if(At&&At.length&&(Ot=this.write(At)),this.charReceived){var mt=this.charReceived,et=this.charBuffer,tt=this.encoding;Ot+=et.slice(0,mt).toString(tt)}return Ot}},{buffer:38}],38:[function(gt,Xt,Jt){(function(Tt){"use strict";function Bt(){return Nt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function xt(St,wt){if(Bt()=Bt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bt().toString(16)+" bytes");return 0|St}function rt(St){return+St!=St&&(St=0),Nt.alloc(+St)}function ut(St,wt){if(Nt.isBuffer(St))return St.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(St)||St instanceof ArrayBuffer))return St.byteLength;typeof St!="string"&&(St=""+St);var Rt=St.length;if(Rt===0)return 0;for(var Wt=!1;;)switch(wt){case"ascii":case"latin1":case"binary":return Rt;case"utf8":case"utf-8":case void 0:return tn(St).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Rt;case"hex":return Rt>>>1;case"base64":return Fe(St).length;default:if(Wt)return tn(St).length;wt=(""+wt).toLowerCase(),Wt=!0}}function ct(St,wt,Rt){var Wt=!1;if((wt===void 0||wt<0)&&(wt=0),wt>this.length||((Rt===void 0||Rt>this.length)&&(Rt=this.length),Rt<=0)||(Rt>>>=0,wt>>>=0,Rt<=wt))return"";for(St||(St="utf8");;)switch(St){case"hex":return me(this,wt,Rt);case"utf8":case"utf-8":return le(this,wt,Rt);case"ascii":return ve(this,wt,Rt);case"latin1":case"binary":return Te(this,wt,Rt);case"base64":return ce(this,wt,Rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,wt,Rt);default:if(Wt)throw new TypeError("Unknown encoding: "+St);St=(St+"").toLowerCase(),Wt=!0}}function ft(St,wt,Rt){var Wt=St[wt];St[wt]=St[Rt],St[Rt]=Wt}function pt(St,wt,Rt,Wt,Ut){if(St.length===0)return-1;if(typeof Rt=="string"?(Wt=Rt,Rt=0):Rt>2147483647?Rt=2147483647:Rt<-2147483648&&(Rt=-2147483648),Rt=+Rt,isNaN(Rt)&&(Rt=Ut?0:St.length-1),Rt<0&&(Rt=St.length+Rt),Rt>=St.length){if(Ut)return-1;Rt=St.length-1}else if(Rt<0){if(!Ut)return-1;Rt=0}if(typeof wt=="string"&&(wt=Nt.from(wt,Wt)),Nt.isBuffer(wt))return wt.length===0?-1:Pt(St,wt,Rt,Wt,Ut);if(typeof wt=="number")return wt&=255,Nt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ut?Uint8Array.prototype.indexOf.call(St,wt,Rt):Uint8Array.prototype.lastIndexOf.call(St,wt,Rt):Pt(St,[wt],Rt,Wt,Ut);throw new TypeError("val must be string, number or Buffer")}function Pt(St,wt,Rt,Wt,Ut){function oe(Ke,mn){return de===1?Ke[mn]:Ke.readUInt16BE(mn*de)}var de=1,Ge=St.length,Ze=wt.length;if(Wt!==void 0&&((Wt=String(Wt).toLowerCase())==="ucs2"||Wt==="ucs-2"||Wt==="utf16le"||Wt==="utf-16le")){if(St.length<2||wt.length<2)return-1;de=2,Ge/=2,Ze/=2,Rt/=2}var We;if(Ut){var hn=-1;for(We=Rt;WeGe&&(Rt=Ge-Ze),We=Rt;We>=0;We--){for(var gn=!0,De=0;DeUt&&(Wt=Ut):Wt=Ut;var oe=wt.length;if(oe%2!=0)throw new TypeError("Invalid hex string");Wt>oe/2&&(Wt=oe/2);for(var de=0;de239?4:oe>223?3:oe>191?2:1;if(Ut+Ge<=Rt){var Ze,We,hn,gn;switch(Ge){case 1:oe<128&&(de=oe);break;case 2:Ze=St[Ut+1],(192&Ze)==128&&(gn=(31&oe)<<6|63&Ze)>127&&(de=gn);break;case 3:Ze=St[Ut+1],We=St[Ut+2],(192&Ze)==128&&(192&We)==128&&(gn=(15&oe)<<12|(63&Ze)<<6|63&We)>2047&&(gn<55296||gn>57343)&&(de=gn);break;case 4:Ze=St[Ut+1],We=St[Ut+2],hn=St[Ut+3],(192&Ze)==128&&(192&We)==128&&(192&hn)==128&&(gn=(15&oe)<<18|(63&Ze)<<12|(63&We)<<6|63&hn)>65535&&gn<1114112&&(de=gn)}}de===null?(de=65533,Ge=1):de>65535&&(de-=65536,Wt.push(de>>>10&1023|55296),de=56320|1023&de),Wt.push(de),Ut+=Ge}return xe(Wt)}function xe(St){var wt=St.length;if(wt<=Mt)return String.fromCharCode.apply(String,St);for(var Rt="",Wt=0;WtWt)&&(Rt=Wt);for(var Ut="",oe=wt;oeRt)throw new RangeError("Trying to access beyond buffer length")}function $t(St,wt,Rt,Wt,Ut,oe){if(!Nt.isBuffer(St))throw new TypeError('"buffer" argument must be a Buffer instance');if(wt>Ut||wtSt.length)throw new RangeError("Index out of range")}function ie(St,wt,Rt,Wt){wt<0&&(wt=65535+wt+1);for(var Ut=0,oe=Math.min(St.length-Rt,2);Ut>>8*(Wt?Ut:1-Ut)}function ue(St,wt,Rt,Wt){wt<0&&(wt=4294967295+wt+1);for(var Ut=0,oe=Math.min(St.length-Rt,4);Ut>>8*(Wt?Ut:3-Ut)&255}function ge(St,wt,Rt,Wt,Ut,oe){if(Rt+Wt>St.length)throw new RangeError("Index out of range");if(Rt<0)throw new RangeError("Index out of range")}function he(St,wt,Rt,Wt,Ut){return Ut||ge(St,wt,Rt,4,34028234663852886e22,-34028234663852886e22),Yt.write(St,wt,Rt,Wt,23,4),Rt+4}function Ne(St,wt,Rt,Wt,Ut){return Ut||ge(St,wt,Rt,8,17976931348623157e292,-17976931348623157e292),Yt.write(St,wt,Rt,Wt,52,8),Rt+8}function ke(St){if(St=$e(St).replace(Gt,""),St.length<2)return"";for(;St.length%4!=0;)St+="=";return St}function $e(St){return St.trim?St.trim():St.replace(/^\s+|\s+$/g,"")}function Re(St){return St<16?"0"+St.toString(16):St.toString(16)}function tn(St,wt){wt=wt||1/0;for(var Rt,Wt=St.length,Ut=null,oe=[],de=0;de55295&&Rt<57344){if(!Ut){if(Rt>56319){(wt-=3)>-1&&oe.push(239,191,189);continue}if(de+1===Wt){(wt-=3)>-1&&oe.push(239,191,189);continue}Ut=Rt;continue}if(Rt<56320){(wt-=3)>-1&&oe.push(239,191,189),Ut=Rt;continue}Rt=65536+(Ut-55296<<10|Rt-56320)}else Ut&&(wt-=3)>-1&&oe.push(239,191,189);if(Ut=null,Rt<128){if((wt-=1)<0)break;oe.push(Rt)}else if(Rt<2048){if((wt-=2)<0)break;oe.push(Rt>>6|192,63&Rt|128)}else if(Rt<65536){if((wt-=3)<0)break;oe.push(Rt>>12|224,Rt>>6&63|128,63&Rt|128)}else{if(!(Rt<1114112))throw new Error("Invalid code point");if((wt-=4)<0)break;oe.push(Rt>>18|240,Rt>>12&63|128,Rt>>6&63|128,63&Rt|128)}}return oe}function Ae(St){for(var wt=[],Rt=0;Rt>8,Ut=Rt%256,oe.push(Ut),oe.push(Wt);return oe}function Fe(St){return bt.toByteArray(ke(St))}function se(St,wt,Rt,Wt){for(var Ut=0;Ut=wt.length||Ut>=St.length);++Ut)wt[Ut+Rt]=St[Ut];return Ut}function It(St){return St!==St}var bt=gt("base64-js"),Yt=gt("ieee754"),_t=gt("isarray");Jt.Buffer=Nt,Jt.SlowBuffer=rt,Jt.INSPECT_MAX_BYTES=50,Nt.TYPED_ARRAY_SUPPORT=Tt.TYPED_ARRAY_SUPPORT!==void 0?Tt.TYPED_ARRAY_SUPPORT:function(){try{var St=new Uint8Array(1);return St.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},St.foo()===42&&typeof St.subarray=="function"&&St.subarray(1,1).byteLength===0}catch(wt){return!1}}(),Jt.kMaxLength=Bt(),Nt.poolSize=8192,Nt._augment=function(St){return St.__proto__=Nt.prototype,St},Nt.from=function(St,wt,Rt){return jt(null,St,wt,Rt)},Nt.TYPED_ARRAY_SUPPORT&&(Nt.prototype.__proto__=Uint8Array.prototype,Nt.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Nt[Symbol.species]===Nt&&Object.defineProperty(Nt,Symbol.species,{value:null,configurable:!0})),Nt.alloc=function(St,wt,Rt){return Lt(null,St,wt,Rt)},Nt.allocUnsafe=function(St){return At(null,St)},Nt.allocUnsafeSlow=function(St){return At(null,St)},Nt.isBuffer=function(St){return!(St==null||!St._isBuffer)},Nt.compare=function(St,wt){if(!Nt.isBuffer(St)||!Nt.isBuffer(wt))throw new TypeError("Arguments must be Buffers");if(St===wt)return 0;for(var Rt=St.length,Wt=wt.length,Ut=0,oe=Math.min(Rt,Wt);Ut0&&(St=this.toString("hex",0,wt).match(/.{2}/g).join(" "),this.length>wt&&(St+=" ... ")),""},Nt.prototype.compare=function(St,wt,Rt,Wt,Ut){if(!Nt.isBuffer(St))throw new TypeError("Argument must be a Buffer");if(wt===void 0&&(wt=0),Rt===void 0&&(Rt=St?St.length:0),Wt===void 0&&(Wt=0),Ut===void 0&&(Ut=this.length),wt<0||Rt>St.length||Wt<0||Ut>this.length)throw new RangeError("out of range index");if(Wt>=Ut&&wt>=Rt)return 0;if(Wt>=Ut)return-1;if(wt>=Rt)return 1;if(wt>>>=0,Rt>>>=0,Wt>>>=0,Ut>>>=0,this===St)return 0;for(var oe=Ut-Wt,de=Rt-wt,Ge=Math.min(oe,de),Ze=this.slice(Wt,Ut),We=St.slice(wt,Rt),hn=0;hnUt)&&(Rt=Ut),St.length>0&&(Rt<0||wt<0)||wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");for(var oe=!1;;)switch(Wt){case"hex":return Dt(this,St,wt,Rt);case"utf8":case"utf-8":return Zt(this,St,wt,Rt);case"ascii":return Ft(this,St,wt,Rt);case"latin1":case"binary":return qt(this,St,wt,Rt);case"base64":return te(this,St,wt,Rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,St,wt,Rt);default:if(oe)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),oe=!0}},Nt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Mt=4096;Nt.prototype.slice=function(St,wt){var Rt=this.length;St=~~St,wt=wt===void 0?Rt:~~wt,St<0?(St+=Rt)<0&&(St=0):St>Rt&&(St=Rt),wt<0?(wt+=Rt)<0&&(wt=0):wt>Rt&&(wt=Rt),wt0&&(Ut*=256);)Wt+=this[St+--wt]*Ut;return Wt},Nt.prototype.readUInt8=function(St,wt){return wt||fe(St,1,this.length),this[St]},Nt.prototype.readUInt16LE=function(St,wt){return wt||fe(St,2,this.length),this[St]|this[St+1]<<8},Nt.prototype.readUInt16BE=function(St,wt){return wt||fe(St,2,this.length),this[St]<<8|this[St+1]},Nt.prototype.readUInt32LE=function(St,wt){return wt||fe(St,4,this.length),(this[St]|this[St+1]<<8|this[St+2]<<16)+16777216*this[St+3]},Nt.prototype.readUInt32BE=function(St,wt){return wt||fe(St,4,this.length),16777216*this[St]+(this[St+1]<<16|this[St+2]<<8|this[St+3])},Nt.prototype.readIntLE=function(St,wt,Rt){St|=0,wt|=0,Rt||fe(St,wt,this.length);for(var Wt=this[St],Ut=1,oe=0;++oe=Ut&&(Wt-=Math.pow(2,8*wt)),Wt},Nt.prototype.readIntBE=function(St,wt,Rt){St|=0,wt|=0,Rt||fe(St,wt,this.length);for(var Wt=wt,Ut=1,oe=this[St+--Wt];Wt>0&&(Ut*=256);)oe+=this[St+--Wt]*Ut;return Ut*=128,oe>=Ut&&(oe-=Math.pow(2,8*wt)),oe},Nt.prototype.readInt8=function(St,wt){return wt||fe(St,1,this.length),128&this[St]?-1*(255-this[St]+1):this[St]},Nt.prototype.readInt16LE=function(St,wt){wt||fe(St,2,this.length);var Rt=this[St]|this[St+1]<<8;return 32768&Rt?4294901760|Rt:Rt},Nt.prototype.readInt16BE=function(St,wt){wt||fe(St,2,this.length);var Rt=this[St+1]|this[St]<<8;return 32768&Rt?4294901760|Rt:Rt},Nt.prototype.readInt32LE=function(St,wt){return wt||fe(St,4,this.length),this[St]|this[St+1]<<8|this[St+2]<<16|this[St+3]<<24},Nt.prototype.readInt32BE=function(St,wt){return wt||fe(St,4,this.length),this[St]<<24|this[St+1]<<16|this[St+2]<<8|this[St+3]},Nt.prototype.readFloatLE=function(St,wt){return wt||fe(St,4,this.length),Yt.read(this,St,!0,23,4)},Nt.prototype.readFloatBE=function(St,wt){return wt||fe(St,4,this.length),Yt.read(this,St,!1,23,4)},Nt.prototype.readDoubleLE=function(St,wt){return wt||fe(St,8,this.length),Yt.read(this,St,!0,52,8)},Nt.prototype.readDoubleBE=function(St,wt){return wt||fe(St,8,this.length),Yt.read(this,St,!1,52,8)},Nt.prototype.writeUIntLE=function(St,wt,Rt,Wt){St=+St,wt|=0,Rt|=0,!Wt&&$t(this,St,wt,Rt,Math.pow(2,8*Rt)-1,0);var Ut=1,oe=0;for(this[wt]=255&St;++oe=0&&(oe*=256);)this[wt+Ut]=St/oe&255;return wt+Rt},Nt.prototype.writeUInt8=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,1,255,0),Nt.TYPED_ARRAY_SUPPORT||(St=Math.floor(St)),this[wt]=255&St,wt+1},Nt.prototype.writeUInt16LE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8):ie(this,St,wt,!0),wt+2},Nt.prototype.writeUInt16BE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>8,this[wt+1]=255&St):ie(this,St,wt,!1),wt+2},Nt.prototype.writeUInt32LE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[wt+3]=St>>>24,this[wt+2]=St>>>16,this[wt+1]=St>>>8,this[wt]=255&St):ue(this,St,wt,!0),wt+4},Nt.prototype.writeUInt32BE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>24,this[wt+1]=St>>>16,this[wt+2]=St>>>8,this[wt+3]=255&St):ue(this,St,wt,!1),wt+4},Nt.prototype.writeIntLE=function(St,wt,Rt,Wt){if(St=+St,wt|=0,!Wt){var Ut=Math.pow(2,8*Rt-1);$t(this,St,wt,Rt,Ut-1,-Ut)}var oe=0,de=1,Ge=0;for(this[wt]=255&St;++oe>0)-Ge&255;return wt+Rt},Nt.prototype.writeIntBE=function(St,wt,Rt,Wt){if(St=+St,wt|=0,!Wt){var Ut=Math.pow(2,8*Rt-1);$t(this,St,wt,Rt,Ut-1,-Ut)}var oe=Rt-1,de=1,Ge=0;for(this[wt+oe]=255&St;--oe>=0&&(de*=256);)St<0&&Ge===0&&this[wt+oe+1]!==0&&(Ge=1),this[wt+oe]=(St/de>>0)-Ge&255;return wt+Rt},Nt.prototype.writeInt8=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,1,127,-128),Nt.TYPED_ARRAY_SUPPORT||(St=Math.floor(St)),St<0&&(St=255+St+1),this[wt]=255&St,wt+1},Nt.prototype.writeInt16LE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8):ie(this,St,wt,!0),wt+2},Nt.prototype.writeInt16BE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>8,this[wt+1]=255&St):ie(this,St,wt,!1),wt+2},Nt.prototype.writeInt32LE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,4,2147483647,-2147483648),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8,this[wt+2]=St>>>16,this[wt+3]=St>>>24):ue(this,St,wt,!0),wt+4},Nt.prototype.writeInt32BE=function(St,wt,Rt){return St=+St,wt|=0,Rt||$t(this,St,wt,4,2147483647,-2147483648),St<0&&(St=4294967295+St+1),Nt.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>24,this[wt+1]=St>>>16,this[wt+2]=St>>>8,this[wt+3]=255&St):ue(this,St,wt,!1),wt+4},Nt.prototype.writeFloatLE=function(St,wt,Rt){return he(this,St,wt,!0,Rt)},Nt.prototype.writeFloatBE=function(St,wt,Rt){return he(this,St,wt,!1,Rt)},Nt.prototype.writeDoubleLE=function(St,wt,Rt){return Ne(this,St,wt,!0,Rt)},Nt.prototype.writeDoubleBE=function(St,wt,Rt){return Ne(this,St,wt,!1,Rt)},Nt.prototype.copy=function(St,wt,Rt,Wt){if(Rt||(Rt=0),Wt||Wt===0||(Wt=this.length),wt>=St.length&&(wt=St.length),wt||(wt=0),Wt>0&&Wt=this.length)throw new RangeError("sourceStart out of bounds");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),St.length-wt=0;--Ut)St[Ut+wt]=this[Ut+Rt];else if(oe<1e3||!Nt.TYPED_ARRAY_SUPPORT)for(Ut=0;Ut>>=0,Rt=Rt===void 0?this.length:Rt>>>0,St||(St=0);var oe;if(typeof St=="number")for(oe=wt;oe>>1;jt(xt[At])2&&(ct=mt.call(arguments,1)),st(ct)})})}function Nt(et){return Promise.all(et.map(Bt,this))}function jt(et){for(var tt=new et.constructor,st=Object.keys(et),rt=[],ut=0;utet;)if((At=Ot[et++])!=At)return!0}else for(;mt>et;et++)if((Nt||et in Ot)&&Ot[et]===Ct)return Nt||et||0;return!Nt&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(gt,Xt,Jt){var Tt=gt("./_cof"),Bt=gt("./_wks")("toStringTag"),xt=Tt(function(){return arguments}())=="Arguments",Nt=function(jt,Ct){try{return jt[Ct]}catch(Lt){}};Xt.exports=function(jt){var Ct,Lt,At;return jt===void 0?"Undefined":jt===null?"Null":typeof(Lt=Nt(Ct=Object(jt),Bt))=="string"?Lt:xt?Tt(Ct):(At=Tt(Ct))=="Object"&&typeof Ct.callee=="function"?"Arguments":At}},{"./_cof":64,"./_wks":131}],64:[function(gt,Xt,Jt){var Tt={}.toString;Xt.exports=function(Bt){return Tt.call(Bt).slice(8,-1)}},{}],65:[function(gt,Xt,Jt){var Tt=Xt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Tt)},{}],66:[function(gt,Xt,Jt){"use strict";var Tt=gt("./_object-dp"),Bt=gt("./_property-desc");Xt.exports=function(xt,Nt,jt){Nt in xt?Tt.f(xt,Nt,Bt(0,jt)):xt[Nt]=jt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(gt,Xt,Jt){var Tt=gt("./_a-function");Xt.exports=function(Bt,xt,Nt){if(Tt(Bt),xt===void 0)return Bt;switch(Nt){case 1:return function(jt){return Bt.call(xt,jt)};case 2:return function(jt,Ct){return Bt.call(xt,jt,Ct)};case 3:return function(jt,Ct,Lt){return Bt.call(xt,jt,Ct,Lt)}}return function(){return Bt.apply(xt,arguments)}}},{"./_a-function":58}],68:[function(gt,Xt,Jt){Xt.exports=function(Tt){if(Tt==null)throw TypeError("Can't call method on "+Tt);return Tt}},{}],69:[function(gt,Xt,Jt){Xt.exports=!gt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(gt,Xt,Jt){var Tt=gt("./_is-object"),Bt=gt("./_global").document,xt=Tt(Bt)&&Tt(Bt.createElement);Xt.exports=function(Nt){return xt?Bt.createElement(Nt):{}}},{"./_global":76,"./_is-object":85}],71:[function(gt,Xt,Jt){Xt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(gt,Xt,Jt){var Tt=gt("./_object-keys"),Bt=gt("./_object-gops"),xt=gt("./_object-pie");Xt.exports=function(Nt){var jt=Tt(Nt),Ct=Bt.f;if(Ct)for(var Lt,At=Ct(Nt),Ot=xt.f,mt=0;At.length>mt;)Ot.call(Nt,Lt=At[mt++])&&jt.push(Lt);return jt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(gt,Xt,Jt){var Tt=gt("./_global"),Bt=gt("./_core"),xt=gt("./_ctx"),Nt=gt("./_hide"),jt=gt("./_has"),Ct=function(Lt,At,Ot){var mt,et,tt,st=Lt&Ct.F,rt=Lt&Ct.G,ut=Lt&Ct.S,ct=Lt&Ct.P,ft=Lt&Ct.B,pt=Lt&Ct.W,Pt=rt?Bt:Bt[At]||(Bt[At]={}),Dt=Pt.prototype,Zt=rt?Tt:ut?Tt[At]:(Tt[At]||{}).prototype;rt&&(Ot=At);for(mt in Ot)(et=!st&&Zt&&Zt[mt]!==void 0)&&jt(Pt,mt)||(tt=et?Zt[mt]:Ot[mt],Pt[mt]=rt&&typeof Zt[mt]!="function"?Ot[mt]:ft&&et?xt(tt,Tt):pt&&Zt[mt]==tt?function(Ft){var qt=function(te,Kt,ce){if(this instanceof Ft){switch(arguments.length){case 0:return new Ft;case 1:return new Ft(te);case 2:return new Ft(te,Kt)}return new Ft(te,Kt,ce)}return Ft.apply(this,arguments)};return qt.prototype=Ft.prototype,qt}(tt):ct&&typeof tt=="function"?xt(Function.call,tt):tt,ct&&((Pt.virtual||(Pt.virtual={}))[mt]=tt,Lt&Ct.R&&Dt&&!Dt[mt]&&Nt(Dt,mt,tt)))};Ct.F=1,Ct.G=2,Ct.S=4,Ct.P=8,Ct.B=16,Ct.W=32,Ct.U=64,Ct.R=128,Xt.exports=Ct},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(gt,Xt,Jt){Xt.exports=function(Tt){try{return!!Tt()}catch(Bt){return!0}}},{}],75:[function(gt,Xt,Ot){var Tt=gt("./_ctx"),Bt=gt("./_iter-call"),xt=gt("./_is-array-iter"),Nt=gt("./_an-object"),jt=gt("./_to-length"),Ct=gt("./core.get-iterator-method"),Lt={},At={},Ot=Xt.exports=function(mt,et,tt,st,rt){var ut,ct,ft,pt,Pt=rt?function(){return mt}:Ct(mt),Dt=Tt(tt,st,et?2:1),Zt=0;if(typeof Pt!="function")throw TypeError(mt+" is not iterable!");if(xt(Pt)){for(ut=jt(mt.length);ut>Zt;Zt++)if((pt=et?Dt(Nt(ct=mt[Zt])[0],ct[1]):Dt(mt[Zt]))===Lt||pt===At)return pt}else for(ft=Pt.call(mt);!(ct=ft.next()).done;)if((pt=Bt(ft,Dt,ct.value,et))===Lt||pt===At)return pt};Ot.BREAK=Lt,Ot.RETURN=At},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(gt,Xt,Jt){var Tt=Xt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Tt)},{}],77:[function(gt,Xt,Jt){var Tt={}.hasOwnProperty;Xt.exports=function(Bt,xt){return Tt.call(Bt,xt)}},{}],78:[function(gt,Xt,Jt){var Tt=gt("./_object-dp"),Bt=gt("./_property-desc");Xt.exports=gt("./_descriptors")?function(xt,Nt,jt){return Tt.f(xt,Nt,Bt(1,jt))}:function(xt,Nt,jt){return xt[Nt]=jt,xt}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(gt,Xt,Jt){var Tt=gt("./_global").document;Xt.exports=Tt&&Tt.documentElement},{"./_global":76}],80:[function(gt,Xt,Jt){Xt.exports=!gt("./_descriptors")&&!gt("./_fails")(function(){return Object.defineProperty(gt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(gt,Xt,Jt){Xt.exports=function(Tt,Bt,xt){var Nt=xt===void 0;switch(Bt.length){case 0:return Nt?Tt():Tt.call(xt);case 1:return Nt?Tt(Bt[0]):Tt.call(xt,Bt[0]);case 2:return Nt?Tt(Bt[0],Bt[1]):Tt.call(xt,Bt[0],Bt[1]);case 3:return Nt?Tt(Bt[0],Bt[1],Bt[2]):Tt.call(xt,Bt[0],Bt[1],Bt[2]);case 4:return Nt?Tt(Bt[0],Bt[1],Bt[2],Bt[3]):Tt.call(xt,Bt[0],Bt[1],Bt[2],Bt[3])}return Tt.apply(xt,Bt)}},{}],82:[function(gt,Xt,Jt){var Tt=gt("./_cof");Xt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Bt){return Tt(Bt)=="String"?Bt.split(""):Object(Bt)}},{"./_cof":64}],83:[function(gt,Xt,Jt){var Tt=gt("./_iterators"),Bt=gt("./_wks")("iterator"),xt=Array.prototype;Xt.exports=function(Nt){return Nt!==void 0&&(Tt.Array===Nt||xt[Bt]===Nt)}},{"./_iterators":91,"./_wks":131}],84:[function(gt,Xt,Jt){var Tt=gt("./_cof");Xt.exports=Array.isArray||function(Bt){return Tt(Bt)=="Array"}},{"./_cof":64}],85:[function(gt,Xt,Jt){Xt.exports=function(Tt){return typeof Tt=="object"?Tt!==null:typeof Tt=="function"}},{}],86:[function(gt,Xt,Jt){var Tt=gt("./_an-object");Xt.exports=function(Bt,xt,Nt,jt){try{return jt?xt(Tt(Nt)[0],Nt[1]):xt(Nt)}catch(Lt){var Ct=Bt.return;throw Ct!==void 0&&Tt(Ct.call(Bt)),Lt}}},{"./_an-object":61}],87:[function(gt,Xt,Jt){"use strict";var Tt=gt("./_object-create"),Bt=gt("./_property-desc"),xt=gt("./_set-to-string-tag"),Nt={};gt("./_hide")(Nt,gt("./_wks")("iterator"),function(){return this}),Xt.exports=function(jt,Ct,Lt){jt.prototype=Tt(Nt,{next:Bt(1,Lt)}),xt(jt,Ct+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(gt,Xt,Jt){"use strict";var Tt=gt("./_library"),Bt=gt("./_export"),xt=gt("./_redefine"),Nt=gt("./_hide"),jt=gt("./_iterators"),Ct=gt("./_iter-create"),Lt=gt("./_set-to-string-tag"),At=gt("./_object-gpo"),Ot=gt("./_wks")("iterator"),mt=!([].keys&&"next"in[].keys()),et=function(){return this};Xt.exports=function(tt,st,rt,ut,ct,ft,pt){Ct(rt,st,ut);var Pt,Dt,Zt,Ft=function(me){if(!mt&&me in ce)return ce[me];switch(me){case"keys":case"values":return function(){return new rt(this,me)}}return function(){return new rt(this,me)}},qt=st+" Iterator",te=ct=="values",Kt=!1,ce=tt.prototype,le=ce[Ot]||ce["@@iterator"]||ct&&ce[ct],xe=le||Ft(ct),ve=ct?te?Ft("entries"):xe:void 0,Te=st=="Array"&&ce.entries||le;if(Te&&(Zt=At(Te.call(new tt)))!==Object.prototype&&Zt.next&&(Lt(Zt,qt,!0),Tt||typeof Zt[Ot]=="function"||Nt(Zt,Ot,et)),te&&le&&le.name!=="values"&&(Kt=!0,xe=function(){return le.call(this)}),Tt&&!pt||!mt&&!Kt&&ce[Ot]||Nt(ce,Ot,xe),jt[st]=xe,jt[qt]=et,ct)if(Pt={values:te?xe:Ft("values"),keys:ft?xe:Ft("keys"),entries:ve},pt)for(Dt in Pt)Dt in ce||xt(ce,Dt,Pt[Dt]);else Bt(Bt.P+Bt.F*(mt||Kt),st,Pt);return Pt}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(gt,Xt,Jt){var Tt=gt("./_wks")("iterator"),Bt=!1;try{var xt=[7][Tt]();xt.return=function(){Bt=!0},Array.from(xt,function(){throw 2})}catch(Nt){}Xt.exports=function(Nt,jt){if(!jt&&!Bt)return!1;var Ct=!1;try{var Lt=[7],At=Lt[Tt]();At.next=function(){return{done:Ct=!0}},Lt[Tt]=function(){return At},Nt(Lt)}catch(Ot){}return Ct}},{"./_wks":131}],90:[function(gt,Xt,Jt){Xt.exports=function(Tt,Bt){return{value:Bt,done:!!Tt}}},{}],91:[function(gt,Xt,Jt){Xt.exports={}},{}],92:[function(gt,Xt,Jt){Xt.exports=!0},{}],93:[function(gt,Xt,Jt){var Tt=gt("./_uid")("meta"),Bt=gt("./_is-object"),xt=gt("./_has"),Nt=gt("./_object-dp").f,jt=0,Ct=Object.isExtensible||function(){return!0},Lt=!gt("./_fails")(function(){return Ct(Object.preventExtensions({}))}),At=function(st){Nt(st,Tt,{value:{i:"O"+ ++jt,w:{}}})},Ot=function(st,rt){if(!Bt(st))return typeof st=="symbol"?st:(typeof st=="string"?"S":"P")+st;if(!xt(st,Tt)){if(!Ct(st))return"F";if(!rt)return"E";At(st)}return st[Tt].i},mt=function(st,rt){if(!xt(st,Tt)){if(!Ct(st))return!0;if(!rt)return!1;At(st)}return st[Tt].w},et=function(st){return Lt&&tt.NEED&&Ct(st)&&!xt(st,Tt)&&At(st),st},tt=Xt.exports={KEY:Tt,NEED:!1,fastKey:Ot,getWeak:mt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(gt,Xt,Jt){var Tt=gt("./_global"),Bt=gt("./_task").set,xt=Tt.MutationObserver||Tt.WebKitMutationObserver,Nt=Tt.process,jt=Tt.Promise,Ct=gt("./_cof")(Nt)=="process";Xt.exports=function(){var Lt,At,Ot,mt=function(){var rt,ut;for(Ct&&(rt=Nt.domain)&&rt.exit();Lt;){ut=Lt.fn,Lt=Lt.next;try{ut()}catch(ct){throw Lt?Ot():At=void 0,ct}}At=void 0,rt&&rt.enter()};if(Ct)Ot=function(){Nt.nextTick(mt)};else if(!xt||Tt.navigator&&Tt.navigator.standalone)if(jt&&jt.resolve){var et=jt.resolve(void 0);Ot=function(){et.then(mt)}}else Ot=function(){Bt.call(Tt,mt)};else{var tt=!0,st=document.createTextNode("");new xt(mt).observe(st,{characterData:!0}),Ot=function(){st.data=tt=!tt}}return function(rt){var ut={fn:rt,next:void 0};At&&(At.next=ut),Lt||(Lt=ut,Ot()),At=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(gt,Xt,Jt){"use strict";function Tt(xt){var Nt,jt;this.promise=new xt(function(Ct,Lt){if(Nt!==void 0||jt!==void 0)throw TypeError("Bad Promise constructor");Nt=Ct,jt=Lt}),this.resolve=Bt(Nt),this.reject=Bt(jt)}var Bt=gt("./_a-function");Xt.exports.f=function(xt){return new Tt(xt)}},{"./_a-function":58}],96:[function(gt,Xt,Jt){"use strict";var Tt=gt("./_object-keys"),Bt=gt("./_object-gops"),xt=gt("./_object-pie"),Nt=gt("./_to-object"),jt=gt("./_iobject"),Ct=Object.assign;Xt.exports=!Ct||gt("./_fails")(function(){var Lt={},At={},Ot=Symbol(),mt="abcdefghijklmnopqrst";return Lt[Ot]=7,mt.split("").forEach(function(et){At[et]=et}),Ct({},Lt)[Ot]!=7||Object.keys(Ct({},At)).join("")!=mt})?function(Lt,At){for(var Ot=Nt(Lt),mt=arguments.length,et=1,tt=Bt.f,st=xt.f;mt>et;)for(var rt,ut=jt(arguments[et++]),ct=tt?Tt(ut).concat(tt(ut)):Tt(ut),ft=ct.length,pt=0;ft>pt;)st.call(ut,rt=ct[pt++])&&(Ot[rt]=ut[rt]);return Ot}:Ct},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(gt,Xt,Jt){var Tt=gt("./_an-object"),Bt=gt("./_object-dps"),xt=gt("./_enum-bug-keys"),Nt=gt("./_shared-key")("IE_PROTO"),jt=function(){},Ct=function(){var Lt,At=gt("./_dom-create")("iframe"),Ot=xt.length;for(At.style.display="none",gt("./_html").appendChild(At),At.src="javascript:",Lt=At.contentWindow.document,Lt.open(),Lt.write("