@next-bricks/diagram 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/1045.ef1c8822.js +2 -0
  3. package/dist/chunks/1045.ef1c8822.js.map +1 -0
  4. package/dist/chunks/1122.127ae02e.js +2 -0
  5. package/dist/chunks/{1832.80a95bcd.js.map → 1122.127ae02e.js.map} +1 -1
  6. package/dist/chunks/114.ff6154a0.js +2 -0
  7. package/dist/chunks/114.ff6154a0.js.map +1 -0
  8. package/dist/chunks/1370.1b4ac3ac.js +2 -0
  9. package/dist/chunks/1370.1b4ac3ac.js.map +1 -0
  10. package/dist/chunks/1889.c14b28e6.js +2 -0
  11. package/dist/chunks/{8060.a4decb5e.js → 1889.c14b28e6.js.map} +1 -2
  12. package/dist/chunks/{8644.2e72c575.js → 1940.788d05b3.js} +2 -2
  13. package/dist/chunks/{8644.2e72c575.js.map → 1940.788d05b3.js.map} +1 -1
  14. package/dist/chunks/1972.f9255729.js +2 -0
  15. package/dist/chunks/1972.f9255729.js.map +1 -0
  16. package/dist/chunks/{856.8fe14637.js → 2052.fa66eafb.js} +2 -2
  17. package/dist/chunks/2052.fa66eafb.js.map +1 -0
  18. package/dist/chunks/{6064.62257333.js → 2277.9a1ded28.js} +2 -2
  19. package/dist/chunks/{3680.88310087.js.map → 2277.9a1ded28.js.map} +1 -1
  20. package/dist/chunks/{2356.69ab211e.js → 3144.712fb13e.js} +3 -3
  21. package/dist/chunks/{2356.69ab211e.js.map → 3144.712fb13e.js.map} +1 -1
  22. package/dist/chunks/3171.9f016ea3.js +2 -0
  23. package/dist/chunks/{8440.ce0da377.js.map → 3171.9f016ea3.js.map} +1 -1
  24. package/dist/chunks/3426.1773574d.js +2 -0
  25. package/dist/chunks/3426.1773574d.js.map +1 -0
  26. package/dist/chunks/3510.70429aeb.js +3 -0
  27. package/dist/chunks/3510.70429aeb.js.map +1 -0
  28. package/dist/chunks/3933.0342d0ab.js +2 -0
  29. package/dist/chunks/{5356.ec95af1d.js.map → 3933.0342d0ab.js.map} +1 -1
  30. package/dist/chunks/{5668.ff11ba54.js → 4041.58c8ed1f.js} +3 -3
  31. package/dist/chunks/{5668.ff11ba54.js.map → 4041.58c8ed1f.js.map} +1 -1
  32. package/dist/chunks/4103.217303a1.js +2 -0
  33. package/dist/chunks/4103.217303a1.js.map +1 -0
  34. package/dist/chunks/4235.0393c824.js +3 -0
  35. package/dist/chunks/4235.0393c824.js.map +1 -0
  36. package/dist/chunks/4456.c3ff0981.js +2 -0
  37. package/dist/chunks/{8020.7d347956.js.map → 4456.c3ff0981.js.map} +1 -1
  38. package/dist/chunks/{3680.88310087.js → 4658.e875061a.js} +2 -2
  39. package/dist/chunks/{6064.62257333.js.map → 4658.e875061a.js.map} +1 -1
  40. package/dist/chunks/{8648.55f9fafb.js → 4741.b91ef9f1.js} +2 -2
  41. package/dist/chunks/{8648.55f9fafb.js.map → 4741.b91ef9f1.js.map} +1 -1
  42. package/dist/chunks/{7928.6eb9a99a.js → 5250.f7dfb399.js} +3 -3
  43. package/dist/chunks/{7928.6eb9a99a.js.map → 5250.f7dfb399.js.map} +1 -1
  44. package/dist/chunks/{1776.6541feaf.js → 5384.f1a69526.js} +2 -2
  45. package/dist/chunks/{1776.6541feaf.js.map → 5384.f1a69526.js.map} +1 -1
  46. package/dist/chunks/5399.21649329.js +2 -0
  47. package/dist/chunks/{1372.ddfaca58.js.map → 5399.21649329.js.map} +1 -1
  48. package/dist/chunks/5552.8099590c.js +2 -0
  49. package/dist/chunks/5552.8099590c.js.map +1 -0
  50. package/dist/chunks/6314.a17e6cef.js +2 -0
  51. package/dist/chunks/{2976.375fa83c.js.map → 6314.a17e6cef.js.map} +1 -1
  52. package/dist/chunks/6519.9c35628c.js +2 -0
  53. package/dist/chunks/{4524.801d1c14.js.map → 6519.9c35628c.js.map} +1 -1
  54. package/dist/chunks/6773.6ac391fe.js +2 -0
  55. package/dist/chunks/6773.6ac391fe.js.map +1 -0
  56. package/dist/chunks/726.efcf01a2.js +2 -0
  57. package/dist/chunks/726.efcf01a2.js.map +1 -0
  58. package/dist/chunks/7452.9d465fb5.js +2 -0
  59. package/dist/chunks/{6408.1aa0e97e.js.map → 7452.9d465fb5.js.map} +1 -1
  60. package/dist/chunks/7638.a3881a71.js +2 -0
  61. package/dist/chunks/7638.a3881a71.js.map +1 -0
  62. package/dist/chunks/7721.5bd46b7f.js +3 -0
  63. package/dist/chunks/{6736.1db5763e.js.map → 7721.5bd46b7f.js.map} +1 -1
  64. package/dist/chunks/7733.7a82300e.js +2 -0
  65. package/dist/chunks/7733.7a82300e.js.map +1 -0
  66. package/dist/chunks/7780.bbd9990e.js +2 -0
  67. package/dist/chunks/{3752.da97f490.js.map → 7780.bbd9990e.js.map} +1 -1
  68. package/dist/chunks/843.7444579f.js +2 -0
  69. package/dist/chunks/843.7444579f.js.map +1 -0
  70. package/dist/chunks/8989.06023b69.js +2 -0
  71. package/dist/chunks/8989.06023b69.js.map +1 -0
  72. package/dist/chunks/9407.06352f8b.js +2 -0
  73. package/dist/chunks/9407.06352f8b.js.map +1 -0
  74. package/dist/chunks/9515.405274b1.js +2 -0
  75. package/dist/chunks/9515.405274b1.js.map +1 -0
  76. package/dist/chunks/{1024.b2fb4d97.js → 9559.2729fe3b.js} +2 -2
  77. package/dist/chunks/{1024.b2fb4d97.js.map → 9559.2729fe3b.js.map} +1 -1
  78. package/dist/chunks/9572.360c862c.js +2 -0
  79. package/dist/chunks/9572.360c862c.js.map +1 -0
  80. package/dist/chunks/9591.3e70b783.js +2 -0
  81. package/dist/chunks/9591.3e70b783.js.map +1 -0
  82. package/dist/chunks/9844.db90776a.js +2 -0
  83. package/dist/chunks/9844.db90776a.js.map +1 -0
  84. package/dist/chunks/editable-label.8e6f528c.js +3 -0
  85. package/dist/chunks/editable-label.8e6f528c.js.map +1 -0
  86. package/dist/chunks/eo-diagram.d8f9efe4.js +2 -0
  87. package/dist/chunks/eo-diagram.d8f9efe4.js.map +1 -0
  88. package/dist/chunks/eo-draw-canvas.de17725b.js +2 -0
  89. package/dist/chunks/eo-draw-canvas.de17725b.js.map +1 -0
  90. package/dist/chunks/experimental-node.d03c0c20.js +2 -0
  91. package/dist/chunks/experimental-node.d03c0c20.js.map +1 -0
  92. package/dist/chunks/main.0a5467d9.js +2 -0
  93. package/dist/chunks/main.0a5467d9.js.map +1 -0
  94. package/dist/examples.json +3 -3
  95. package/dist/index.aac44023.js +2 -0
  96. package/dist/index.aac44023.js.map +1 -0
  97. package/dist/manifest.json +36 -36
  98. package/dist-types/draw-canvas/processors/getUnrelatedCells.d.ts +2 -2
  99. package/package.json +4 -4
  100. package/dist/chunks/1372.ddfaca58.js +0 -2
  101. package/dist/chunks/1564.dad51f47.js +0 -2
  102. package/dist/chunks/1564.dad51f47.js.map +0 -1
  103. package/dist/chunks/1772.b9709e8a.js +0 -2
  104. package/dist/chunks/1772.b9709e8a.js.map +0 -1
  105. package/dist/chunks/1832.80a95bcd.js +0 -2
  106. package/dist/chunks/242.4bd90af0.js +0 -2
  107. package/dist/chunks/242.4bd90af0.js.map +0 -1
  108. package/dist/chunks/2976.375fa83c.js +0 -2
  109. package/dist/chunks/3322.63bf67fe.js +0 -2
  110. package/dist/chunks/3322.63bf67fe.js.map +0 -1
  111. package/dist/chunks/3752.da97f490.js +0 -2
  112. package/dist/chunks/3811.8484a1b6.js +0 -2
  113. package/dist/chunks/3811.8484a1b6.js.map +0 -1
  114. package/dist/chunks/3968.f63a8d5a.js +0 -2
  115. package/dist/chunks/3968.f63a8d5a.js.map +0 -1
  116. package/dist/chunks/4524.801d1c14.js +0 -2
  117. package/dist/chunks/4847.5cfb4368.js +0 -2
  118. package/dist/chunks/4847.5cfb4368.js.map +0 -1
  119. package/dist/chunks/5244.1437dfdf.js +0 -2
  120. package/dist/chunks/5244.1437dfdf.js.map +0 -1
  121. package/dist/chunks/5356.ec95af1d.js +0 -2
  122. package/dist/chunks/5676.2f9e7be9.js +0 -2
  123. package/dist/chunks/5676.2f9e7be9.js.map +0 -1
  124. package/dist/chunks/6192.e969705a.js +0 -2
  125. package/dist/chunks/6192.e969705a.js.map +0 -1
  126. package/dist/chunks/6228.1f4beffe.js +0 -2
  127. package/dist/chunks/6228.1f4beffe.js.map +0 -1
  128. package/dist/chunks/6352.a1d077df.js +0 -2
  129. package/dist/chunks/6352.a1d077df.js.map +0 -1
  130. package/dist/chunks/6408.1aa0e97e.js +0 -2
  131. package/dist/chunks/6736.1db5763e.js +0 -3
  132. package/dist/chunks/6796.bb543bb4.js +0 -3
  133. package/dist/chunks/6796.bb543bb4.js.map +0 -1
  134. package/dist/chunks/7228.fa4c35d3.js +0 -2
  135. package/dist/chunks/7228.fa4c35d3.js.map +0 -1
  136. package/dist/chunks/7476.2dcc0be8.js +0 -2
  137. package/dist/chunks/7476.2dcc0be8.js.map +0 -1
  138. package/dist/chunks/7861.a4c43abf.js +0 -2
  139. package/dist/chunks/7861.a4c43abf.js.map +0 -1
  140. package/dist/chunks/8020.7d347956.js +0 -2
  141. package/dist/chunks/8060.a4decb5e.js.map +0 -1
  142. package/dist/chunks/820.83e05b04.js +0 -2
  143. package/dist/chunks/820.83e05b04.js.map +0 -1
  144. package/dist/chunks/8440.ce0da377.js +0 -2
  145. package/dist/chunks/856.8fe14637.js.map +0 -1
  146. package/dist/chunks/8732.9c55a3ea.js +0 -2
  147. package/dist/chunks/8732.9c55a3ea.js.map +0 -1
  148. package/dist/chunks/8944.952fed91.js +0 -2
  149. package/dist/chunks/8944.952fed91.js.map +0 -1
  150. package/dist/chunks/9260.c896737b.js +0 -3
  151. package/dist/chunks/9260.c896737b.js.map +0 -1
  152. package/dist/chunks/9560.cf6513f3.js +0 -2
  153. package/dist/chunks/9560.cf6513f3.js.map +0 -1
  154. package/dist/chunks/editable-label.128ef04e.js +0 -3
  155. package/dist/chunks/editable-label.128ef04e.js.map +0 -1
  156. package/dist/chunks/eo-diagram.2b8615e9.js +0 -2
  157. package/dist/chunks/eo-diagram.2b8615e9.js.map +0 -1
  158. package/dist/chunks/eo-draw-canvas.16ff8836.js +0 -2
  159. package/dist/chunks/eo-draw-canvas.16ff8836.js.map +0 -1
  160. package/dist/chunks/experimental-node.de4a18b6.js +0 -2
  161. package/dist/chunks/experimental-node.de4a18b6.js.map +0 -1
  162. package/dist/chunks/main.e1091d3e.js +0 -2
  163. package/dist/chunks/main.e1091d3e.js.map +0 -1
  164. package/dist/index.c81a3004.js +0 -2
  165. package/dist/index.c81a3004.js.map +0 -1
  166. /package/dist/chunks/{2356.69ab211e.js.LICENSE.txt → 3144.712fb13e.js.LICENSE.txt} +0 -0
  167. /package/dist/chunks/{6796.bb543bb4.js.LICENSE.txt → 3510.70429aeb.js.LICENSE.txt} +0 -0
  168. /package/dist/chunks/{5668.ff11ba54.js.LICENSE.txt → 4041.58c8ed1f.js.LICENSE.txt} +0 -0
  169. /package/dist/chunks/{9260.c896737b.js.LICENSE.txt → 4235.0393c824.js.LICENSE.txt} +0 -0
  170. /package/dist/chunks/{7928.6eb9a99a.js.LICENSE.txt → 5250.f7dfb399.js.LICENSE.txt} +0 -0
  171. /package/dist/chunks/{6736.1db5763e.js.LICENSE.txt → 7721.5bd46b7f.js.LICENSE.txt} +0 -0
  172. /package/dist/chunks/{editable-label.128ef04e.js.LICENSE.txt → editable-label.8e6f528c.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_next_bricks_diagram=self.webpackChunk_next_bricks_diagram||[]).push([[3171,5552],{5552:(e,n,r)=>{r.r(n),r.d(n,{i18n:()=>l,i18nText:()=>f,initializeI18n:()=>o});var i=r(2350),a=r(7058),t=r(6837),s=!1,u=new Set;function o(e,n){if(s||(s=!0,a.i18n.use(t.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&n&&!u.has(e))for(var[r,i]of(u.add(e),Object.entries(n)))a.i18n.addResourceBundle(r,e,i)}var c=r(8438);function f(e){var n;if(e){var r=null!==(n=a.i18n.language)&&void 0!==n?n:"zh-CN";if((0,c.hasOwnProperty)(e,r))return e[r];var i=r.split("-")[0];if(i!==r)return(0,c.hasOwnProperty)(e,i)?e[i]:void 0;var t="".concat(i,"-");for(var s of Object.keys(e))if(s.startsWith(t))return e[s]}}var l=i.default}}]);
2
+ //# sourceMappingURL=3171.9f016ea3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/8440.ce0da377.js","mappings":"gOAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAIjD,IAAK,IAAKgB,EAAMF,KADhBjB,EAAsBoB,IAAIjB,GACIkB,OAAOC,QAAQlB,IAC3C,EAAAC,KAAKkB,kBAAkBJ,EAAMhB,EAAIc,EAErC,C,cCjCO,SAASO,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAArB,KAAKsB,gBAAyC,IAAnBD,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOb,OAAOc,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI7B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","addResourceBundle","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/3171.9f016ea3.js","mappings":"kOAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAIjD,IAAK,IAAKgB,EAAMF,KADhBjB,EAAsBoB,IAAIjB,GACIkB,OAAOC,QAAQlB,IAC3C,EAAAC,KAAKkB,kBAAkBJ,EAAMhB,EAAIc,EAErC,C,cCjCO,SAASO,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAArB,KAAKsB,gBAAyC,IAAnBD,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOb,OAAOc,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI7B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","addResourceBundle","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_next_bricks_diagram=self.webpackChunk_next_bricks_diagram||[]).push([[3426],{4586:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(1369);function i(t,e,r){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},9740:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(4586);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},4223:(t,e,r)=>{function n(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,{A:()=>n})},1369:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(7545);function i(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:String(e)}},7545:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>n})},1045:(t,e,r)=>{r.r(e),r.d(e,{NextElement:()=>O,createDecorators:()=>c,supportsAdoptingStyleSheets:()=>S});var n=r(4223),i=r(9740),o=Symbol("attributeHasBeenSet"),s=Symbol("markAttributeHasBeenSet"),a=Symbol("stopAttributeChangedCallback"),u=["type"],l={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},render:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function c(){var t=new Map,e=new Set,r=new Set,c=new Set;return{defineElement:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(s,a)=>{var{kind:u,name:l,addInitializer:h}=a;h((function(){var a,u,l,h,p,b=Object.getPrototypeOf(this);if(d(this,"observedAttributes",f(null!==(a=b.observedAttributes)&&void 0!==a?a:[],t.keys())),d(this,"__attributeReflections",new Map([...null!==(u=b.__attributeReflections)&&void 0!==u?u:[],...t])),d(this,"styleTexts",o.styleTexts),d(this,"shadowOptions",!1!==o.shadowOptions?(0,i.A)({mode:"open"},o.shadowOptions):null),d(this,"__tagName",n),d(this,"_dev_only_definedProperties",f(null!==(l=b._dev_only_definedProperties)&&void 0!==l?l:[],e)),d(this,"_dev_only_definedMethods",f(null!==(h=b._dev_only_definedMethods)&&void 0!==h?h:[],r)),d(this,"_dev_only_definedEvents",f(null!==(p=b._dev_only_definedEvents)&&void 0!==p?p:[],c)),customElements.define(n,this),Array.isArray(o.alias))for(var v of o.alias){var y=class extends s{};d(y,"__tagName",v),customElements.define(v,y)}}))}},property:function(r){return function(n,u){var{get:c,set:d}=n,{kind:f,name:h,static:p,private:b}=u;e.add(h);var v=Object.assign({},l,r),y=function(t,e){var r=e.attribute;return!1===r?void 0:"string"==typeof r?r:t.replace(/[A-Z]/g,(t=>"-".concat(t.toLowerCase())))}(h,v);return void 0!==y&&t.set(y,(0,i.A)((0,i.A)({},v),{},{property:h})),{get(){return void 0!==y&&this[o](y)?v.converter.fromAttribute(this.getAttribute(y),v.type):c.call(this)},set(t){var e=c.call(this);if(d.call(this,t),v.hasChanged(t,e)){if(void 0!==y){var r=v.converter.toAttribute(t,v.type);this[a](!0),null==r?this.removeAttribute(y):this.setAttribute(y,r),this[s](y),this[a](!1)}v.render&&this._requestRender()}},init(t){if(void 0!==y&&v.hasChanged(t,void 0)){var e=v.converter.toAttribute(t,v.type);null!=e&&requestAnimationFrame((()=>{this[o](y)||(this[a](!0),this.setAttribute(y,e),this[a](!1))}))}return t}}}},method:function(t){return function(e,n){var{kind:i,name:o,static:s,private:a,addInitializer:u}=n;null!=t&&t.bound&&u((function(){this[o]=this[o].bind(this)})),r.add(o)}},event:function(t){return function(e,r){var{get:o}=e,{kind:s,name:a,static:l,private:d}=r,{type:f}=t,h=(0,n.A)(t,u);return c.add(f),{get(){return o.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(f,(0,i.A)((0,i.A)({},h),{},{detail:t})))})}}}}}}function d(t,e,r){Object.defineProperty(t,e,{get:()=>r,configurable:!0})}function f(t,e){var r=new Set(t);for(var n of e)r.add(n);return[...r]}new Set(["prefix"]);var h=r(918),p=r(4586);function b(t,e){return t.get(y(t,e))}function v(t,e,r){return t.set(y(t,e),r),r}function y(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var m,_=new WeakMap,A=new WeakMap,g=new WeakMap,w=new WeakMap;class O extends HTMLElement{constructor(){super(...arguments),(0,h.A)(this,_,!1),(0,h.A)(this,A,!1),(0,h.A)(this,g,!1),(0,h.A)(this,w,new Set)}_markConnectedCallbackCalled(){v(A,this,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[o](t){return b(w,this).has(t)}[s](t){b(w,this).add(t)}[a](t){v(g,this,t)}attributeChangedCallback(t,e,r){if(b(w,this).add(t),!b(g,this)&&e!==r){var n=this.constructor.__attributeReflections.get(t),i=n.converter.fromAttribute(r,n.type);this[n.property]=i}}_requestRender(){this.isConnected&&b(A,this)&&!b(_,this)&&(v(_,this,!0),Promise.resolve().then((()=>{v(_,this,!1),this._render()})))}}function S(){return void 0===m&&(m=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),m}(0,p.A)(O,"styleTexts",void 0),(0,p.A)(O,"shadowOptions",void 0),(0,p.A)(O,"__attributeReflections",void 0),(0,p.A)(O,"__tagName",void 0)}}]);
2
+ //# sourceMappingURL=3426.1773574d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/3426.1773574d.js","mappings":"2JACe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXAD,GAAM,OAAcA,MACTD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAENF,CACT,C,gDCbA,SAASQ,EAAQC,EAAGC,GAClB,IAAIC,EAAIR,OAAOS,KAAKH,GACpB,GAAIN,OAAOU,sBAAuB,CAChC,IAAIC,EAAIX,OAAOU,sBAAsBJ,GACrCC,IAAMI,EAAIA,EAAEC,QAAO,SAAUL,GAC3B,OAAOP,OAAOa,yBAAyBP,EAAGC,GAAGL,UAC/C,KAAKM,EAAEM,KAAKC,MAAMP,EAAGG,EACvB,CACA,OAAOH,CACT,CACe,SAASQ,EAAeV,GACrC,IAAK,IAAIC,EAAI,EAAGA,EAAIU,UAAUC,OAAQX,IAAK,CACzC,IAAIC,EAAI,MAAQS,UAAUV,GAAKU,UAAUV,GAAK,CAAC,EAC/CA,EAAI,EAAIF,EAAQL,OAAOQ,IAAI,GAAIW,SAAQ,SAAUZ,IAC/C,OAAeD,EAAGC,EAAGC,EAAED,GACzB,IAAKP,OAAOoB,0BAA4BpB,OAAOqB,iBAAiBf,EAAGN,OAAOoB,0BAA0BZ,IAAMH,EAAQL,OAAOQ,IAAIW,SAAQ,SAAUZ,GAC7IP,OAAOC,eAAeK,EAAGC,EAAGP,OAAOa,yBAAyBL,EAAGD,GACjE,GACF,CACA,OAAOD,CACT,C,iBCpBe,SAASgB,EAAyBC,EAAQC,GACvD,GAAc,MAAVD,EAAgB,MAAO,CAAC,EAC5B,IACIzB,EAAK2B,EADLC,ECHS,SAAuCH,EAAQC,GAC5D,GAAc,MAAVD,EAAgB,MAAO,CAAC,EAC5B,IAEIzB,EAAK2B,EAFLC,EAAS,CAAC,EACVC,EAAa3B,OAAOS,KAAKc,GAE7B,IAAKE,EAAI,EAAGA,EAAIE,EAAWT,OAAQO,IACjC3B,EAAM6B,EAAWF,GACbD,EAASI,QAAQ9B,IAAQ,IAC7B4B,EAAO5B,GAAOyB,EAAOzB,IAEvB,OAAO4B,CACT,CDRe,CAA6BH,EAAQC,GAElD,GAAIxB,OAAOU,sBAAuB,CAChC,IAAImB,EAAmB7B,OAAOU,sBAAsBa,GACpD,IAAKE,EAAI,EAAGA,EAAII,EAAiBX,OAAQO,IACvC3B,EAAM+B,EAAiBJ,GACnBD,EAASI,QAAQ9B,IAAQ,GACxBE,OAAO8B,UAAUC,qBAAqBC,KAAKT,EAAQzB,KACxD4B,EAAO5B,GAAOyB,EAAOzB,GAEzB,CACA,OAAO4B,CACT,C,gEEbe,SAASO,EAAczB,GACpC,IAAIiB,ECFS,SAAqBjB,EAAGD,GACrC,GAAI,WAAY,OAAQC,KAAOA,EAAG,OAAOA,EACzC,IAAIF,EAAIE,EAAE0B,OAAOC,aACjB,QAAI,IAAW7B,EAAG,CAChB,IAAImB,EAAInB,EAAE0B,KAAKxB,EAAGD,UAClB,GAAI,WAAY,OAAQkB,GAAI,OAAOA,EACnC,MAAM,IAAIW,UAAU,+CACtB,CACA,OAAyBC,OAAiB7B,EAC5C,CDPU2B,CAAY3B,GACpB,MAAO,WAAY,OAAQiB,GAAKA,EAAIY,OAAOZ,EAC7C,C,iBELe,SAASa,EAAQ3B,GAG9B,OAAO2B,EAAU,mBAAqBJ,QAAU,iBAAmBA,OAAOK,SAAW,SAAU5B,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBuB,QAAUvB,EAAE6B,cAAgBN,QAAUvB,IAAMuB,OAAOJ,UAAY,gBAAkBnB,CACpH,EAAG2B,EAAQ3B,EACb,C,oJCRW8B,EAA8BP,OAAO,uBACrCQ,EAAkCR,OAAO,2BACzCS,EAAuCT,OAAO,gCCArDU,EAAY,CAAC,QA6BbC,EAA6B,CAC/BC,WAAW,EACXC,KAAMV,OACNW,UA9BqB,CACrBC,YAAW,CAAClD,EAAOgD,IACTA,IACDG,QACInD,EAAQ,GAAK,KAEjBA,EAET,aAAAoD,CAAcpD,EAAOgD,GACnB,OAAQA,GACN,KAAKG,QACH,OAAiB,OAAVnD,GAA4B,UAAVA,EAC3B,KAAKqD,OACH,OAAiB,OAAVrD,EAAiB,KAAOqD,OAAOrD,GAE1C,OAAOA,CACT,GAgBAsD,QAAQ,EACRC,WAVa,CAACvD,EAAOwD,IAEdA,IAAQxD,IAAUwD,GAAQA,GAAOxD,GAAUA,IAa7C,SAASyD,IACd,IAAIC,EAAuB,IAAIC,IAC3BC,EAAoB,IAAIC,IACxBC,EAAiB,IAAID,IACrBE,EAAgB,IAAIF,IA6NxB,MAAO,CACLG,cA7NF,SAAuBC,GACrB,IAAIC,EAAUhD,UAAUC,OAAS,QAAsBgD,IAAjBjD,UAAU,GAAmBA,UAAU,GAAK,CAAC,EACnF,MAAO,CAAClB,EAAOoE,KACb,IAAI,KACFC,EACAJ,KAAMK,EAAS,eACfC,GACEH,EAKJG,GAAe,WACb,IAAIC,EAAuBC,EAAuBC,EAAuBC,EAAwBC,EAC7FC,EAAa5E,OAAO6E,eAAeC,MAiBvC,GAfAC,EAAuBD,KAAM,qBADNE,EAA2E,QAA3DT,EAAwBK,EAAWK,0BAA0D,IAA1BV,EAAmCA,EAAwB,GAAId,EAAqBhD,SAG9LsE,EAAuBD,KAAM,yBADI,IAAIpB,IAAI,IAAqE,QAA/Dc,EAAwBI,EAAWM,8BAA8D,IAA1BV,EAAmCA,EAAwB,MAAQf,KAEzLsB,EAAuBD,KAAM,aAAcb,EAAQkB,YACnDJ,EAAuBD,KAAM,iBAA2C,IAA1Bb,EAAQmB,eAA0B,OAAc,CAC5FC,KAAM,QACLpB,EAAQmB,eAAiB,MAC5BL,EAAuBD,KAAM,YAAad,GAE1Ce,EAAuBD,KAAM,8BADNE,EAAoF,QAApEP,EAAwBG,EAAWU,mCAAmE,IAA1Bb,EAAmCA,EAAwB,GAAId,IAGlLoB,EAAuBD,KAAM,2BADTE,EAAkF,QAAlEN,EAAyBE,EAAWW,gCAAiE,IAA3Bb,EAAoCA,EAAyB,GAAIb,IAG/KkB,EAAuBD,KAAM,0BADVE,EAAiF,QAAjEL,EAAyBC,EAAWY,+BAAgE,IAA3Bb,EAAoCA,EAAyB,GAAIb,IAE7K2B,eAAeC,OAAO1B,EAAMc,MACxBa,MAAMC,QAAQ3B,EAAQ4B,OACxB,IAAK,IAAIA,KAAS5B,EAAQ4B,MAAO,CAE/B,IAAIC,EAGD,cAAc/F,IACjBgF,EAAuBe,EAAO,YAAaD,GAC3CJ,eAAeC,OAAOG,EAAOC,EAC/B,CAEJ,GAAE,CAEN,EAkLEC,SAjLF,SAAkB9B,GAChB,OAAO,SAAU+B,EAAOC,GACtB,IAAI,IACFC,EAAG,IACHC,GACEH,GACA,KACF5B,EAAI,KACJJ,EACAoC,OAAQC,EACRC,QAASC,GACPN,EAoBJtC,EAAkB6C,IAAIxC,GACtB,IAAIyC,EAAWzG,OAAO0G,OAAO,CAAC,EAAG7D,EAA4BoB,GACzD0C,EAoKV,SAAkC3C,EAAMC,GACtC,IAAInB,EAAYmB,EAAQnB,UACxB,OAAqB,IAAdA,OAAsBoB,EAAiC,iBAAdpB,EAAyBA,EAAYkB,EAAK4C,QAAQ,UAAUC,GAAQ,IAAIC,OAAOD,EAAKE,gBACtI,CAvKqBC,CAAyBhD,EAAMyC,GAM9C,YALiBvC,IAAbyC,GACFlD,EAAqB0C,IAAIQ,GAAU,QAAc,OAAc,CAAC,EAAGF,GAAW,CAAC,EAAG,CAChFV,SAAU/B,KAGP,CACL,GAAAkC,GAIE,YAAiBhC,IAAbyC,GAA0B7B,KAAKrC,GAA6BkE,GACvDF,EAASzD,UAAUG,cAAc2B,KAAKmC,aAAaN,GAAWF,EAAS1D,MAEzEmD,EAAIlE,KAAK8C,KAClB,EACA,GAAAqB,CAAIpG,GACF,IAAImH,EAAWhB,EAAIlE,KAAK8C,MAExB,GADAqB,EAAInE,KAAK8C,KAAM/E,GACX0G,EAASnD,WAAWvD,EAAOmH,GAAW,CACxC,QAAiBhD,IAAbyC,EAAwB,CAC1B,IAAIQ,EAAYV,EAASzD,UAAUC,YAAYlD,EAAO0G,EAAS1D,MAC/D+B,KAAKnC,IAAsC,GAC1B,MAAbwE,EACFrC,KAAKsC,gBAAgBT,GAErB7B,KAAKuC,aAAaV,EAAUQ,GAE9BrC,KAAKpC,GAAiCiE,GACtC7B,KAAKnC,IAAsC,EAC7C,CACI8D,EAASpD,QACXyB,KAAKwC,gBAET,CACF,EACA,IAAAC,CAAKC,GACH,QAAiBtD,IAAbyC,GAA0BF,EAASnD,WAAWkE,OAActD,GAAY,CAC1E,IAAIiD,EAAYV,EAASzD,UAAUC,YAAYuE,EAAcf,EAAS1D,MACrD,MAAboE,GAIFM,uBAAsB,KACf3C,KAAKrC,GAA6BkE,KACrC7B,KAAKnC,IAAsC,GAC3CmC,KAAKuC,aAAaV,EAAUQ,GAC5BrC,KAAKnC,IAAsC,GAC7C,GAGN,CACA,OAAO6E,CACT,EAEJ,CACF,EAyFEE,OAxFF,SAAgBzD,GACd,OAAO,SAAUlE,EAAO4H,GACtB,IAAI,KACFvD,EAAI,KACJJ,EACAoC,OAAQC,EACRC,QAASC,EAAS,eAClBjC,GACEqD,EAoBA1D,SAA0CA,EAAQ2D,OACpDtD,GAAe,WACbQ,KAAKd,GAAQc,KAAKd,GAAM6D,KAAK/C,KAC/B,IAEFjB,EAAe2C,IAAIxC,EACrB,CACF,EAsDE8D,MArDF,SAAe7D,GACb,OAAO,SAAU8D,EAAOC,GACtB,IAAI,IACF9B,GACE6B,GACA,KACF3D,EAAI,KACJJ,EACAoC,OAAQC,EACRC,QAASC,GACPyB,GAaA,KACAjF,GACEkB,EACJgE,GAAY,OAAyBhE,EAASrB,GAEhD,OADAkB,EAAc0C,IAAIzD,GACX,CACL,GAAAmD,GACE,OAAOA,EAAIlE,KAAK8C,KAClB,EACA,GAAAqB,GACE,MAAM,IAAI+B,MAAM,gCAClB,EACA,IAAAX,CAAKC,GAKH,OAAOxH,OAAOmI,OAAO,CACnBC,KAAMC,GAAUvD,KAAKwD,cAAc,IAAIC,YAAYxF,GAAM,QAAc,OAAc,CAAC,EAAGkF,GAAY,CAAC,EAAG,CACvGI,cAGN,EAEJ,CACF,EAOF,CACA,SAAStD,EAAuBrD,EAAQ8G,EAAUC,GAChDzI,OAAOC,eAAeyB,EAAQ8G,EAAU,CACtCtC,IAAG,IACMuC,EAETtI,cAAc,GAElB,CACA,SAAS6E,EAAe0D,EAAOC,GAC7B,IAAIC,EAAU,IAAIhF,IAAI8E,GACtB,IAAK,IAAIG,KAAQF,EACfC,EAAQpC,IAAIqC,GAEd,MAAO,IAAID,EACb,CAvPyB,IAAIhF,IAAI,CAAC,W,uBCvClC,SAASkF,EAAsBC,EAAGC,GAAK,OAAOD,EAAE7C,IAAI+C,EAAkBF,EAAGC,GAAK,CAC9E,SAASE,EAAsBH,EAAGC,EAAGzI,GAAK,OAAOwI,EAAE5C,IAAI8C,EAAkBF,EAAGC,GAAIzI,GAAIA,CAAG,CACvF,SAAS0I,EAAkB3I,EAAGE,EAAG2I,GAAK,GAAI,mBAAqB7I,EAAIA,IAAME,EAAIF,EAAE8I,IAAI5I,GAAI,OAAOS,UAAUC,OAAS,EAAIV,EAAI2I,EAAG,MAAM,IAAI/G,UAAU,gDAAkD,CAElM,ICNIiH,EDMAC,EAAmC,IAAIC,QACvCC,EAAwC,IAAID,QAC5CE,EAAgD,IAAIF,QACpDG,EAAkC,IAAIH,QACnC,MAAMI,UAAoBC,YAC/B,WAAApH,GACEqH,SAAS5I,YACT,OAA2B6D,KAAMwE,GAAqB,IACtD,OAA2BxE,KAAM0E,GAA0B,IAC3D,OAA2B1E,KAAM2E,GAAkC,IACnE,OAA2B3E,KAAM4E,EAAoB,IAAI9F,IAC3D,CAUA,4BAAAkG,GACEZ,EAAsBM,EAA0B1E,MAAM,EACxD,CACA,iBAAAiF,GACEjF,KAAKgF,+BACLhF,KAAKkF,SACP,CACA,CAACvH,GAA6BuB,GAC5B,OAAO8E,EAAsBY,EAAoB5E,MAAMsE,IAAIpF,EAC7D,CACA,CAACtB,GAAiCsB,GAChC8E,EAAsBY,EAAoB5E,MAAM0B,IAAIxC,EACtD,CAGA,CAACrB,GAAsC5C,GACrCmJ,EAAsBO,EAAkC3E,KAAM/E,EAChE,CAGA,wBAAAkK,CAAyBjG,EAAMT,EAAKxD,GAElC,GADA+I,EAAsBY,EAAoB5E,MAAM0B,IAAIxC,IAC/C8E,EAAsBW,EAAkC3E,OAASvB,IAAQxD,EAAO,CACnF,IAAImK,EAAUpF,KAAKtC,YAAY0C,uBAAuBgB,IAAIlC,GAEtDyE,EAAYyB,EAAQlH,UAAUG,cAAcpD,EAAOmK,EAAQnH,MAC/D+B,KAAKoF,EAAQnE,UAAY0C,CAC3B,CACF,CAMA,cAAAnB,GAGMxC,KAAKqF,aAAerB,EAAsBU,EAA0B1E,QAAUgE,EAAsBQ,EAAqBxE,QAC3HoE,EAAsBI,EAAqBxE,MAAM,GACjDsF,QAAQC,UAAUC,MAAK,KACrBpB,EAAsBI,EAAqBxE,MAAM,GACjDA,KAAKkF,SAAS,IAGpB,ECtEK,SAASO,IAMd,YALiBrG,IAAbmF,IACFA,KAAcmB,OAAOC,YAErB,uBAAwBC,SAAS5I,WAAa,YAAa6I,cAAc7I,YAEpEuH,CACT,EDiEA,OAAgBM,EAAa,kBAAc,IAC3C,OAAgBA,EAAa,qBAAiB,IAC9C,OAAgBA,EAAa,8BAA0B,IACvD,OAAgBA,EAAa,iBAAa,E","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/@next-core/element/dist/esm/internal/symbols.js","webpack:///../../node_modules/@next-core/element/dist/esm/createDecorators.js","webpack:///../../node_modules/@next-core/element/dist/esm/NextElement.js","webpack:///../../node_modules/@next-core/element/dist/esm/supportsAdoptingStyleSheets.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export var symbolOfAttributeHasBeenSet = Symbol(\"attributeHasBeenSet\");\nexport var symbolOfMarkAttributeHasBeenSet = Symbol(\"markAttributeHasBeenSet\");\nexport var symbolOfStopAttributeChangedCallback = Symbol(\"stopAttributeChangedCallback\");\n//# sourceMappingURL=symbols.js.map","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nvar _excluded = [\"type\"];\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar defaultConverter = {\n toAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value ? \"\" : null;\n }\n return value;\n },\n fromAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value !== null && value !== \"false\";\n case Number:\n return value === null ? null : Number(value);\n }\n return value;\n }\n};\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nvar notEqual = (value, old) => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\nvar defaultPropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n // reflect: true,\n render: true,\n hasChanged: notEqual\n};\n\n// Note: `prefix` is a native prop on Element, but it's only used in XML documents.\nvar allowedNativeProps = new Set([\"prefix\"]);\nexport function createDecorators() {\n var attributeReflections = new Map();\n var definedProperties = new Set();\n var definedMethods = new Set();\n var definedEvents = new Set();\n function defineElement(name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (value, _ref) => {\n var {\n kind,\n name: className,\n addInitializer\n } = _ref;\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && kind !== \"class\") {\n throw new Error(\"Invalid usage of `@defineElement()` on a \".concat(kind, \": \\\"\").concat(className, \"\\\"\"));\n }\n addInitializer(function () {\n var _superClass$observedA, _superClass$__attribu, _superClass$_dev_only, _superClass$_dev_only2, _superClass$_dev_only3;\n var superClass = Object.getPrototypeOf(this);\n var mergedAttributes = mergeIterables((_superClass$observedA = superClass.observedAttributes) !== null && _superClass$observedA !== void 0 ? _superClass$observedA : [], attributeReflections.keys());\n defineReadonlyProperty(this, \"observedAttributes\", mergedAttributes);\n var mergedAttributeReflections = new Map([...((_superClass$__attribu = superClass.__attributeReflections) !== null && _superClass$__attribu !== void 0 ? _superClass$__attribu : []), ...attributeReflections]);\n defineReadonlyProperty(this, \"__attributeReflections\", mergedAttributeReflections);\n defineReadonlyProperty(this, \"styleTexts\", options.styleTexts);\n defineReadonlyProperty(this, \"shadowOptions\", options.shadowOptions !== false ? _objectSpread({\n mode: \"open\"\n }, options.shadowOptions) : null);\n defineReadonlyProperty(this, \"__tagName\", name);\n var mergedProperties = mergeIterables((_superClass$_dev_only = superClass._dev_only_definedProperties) !== null && _superClass$_dev_only !== void 0 ? _superClass$_dev_only : [], definedProperties);\n defineReadonlyProperty(this, \"_dev_only_definedProperties\", mergedProperties);\n var mergedMethods = mergeIterables((_superClass$_dev_only2 = superClass._dev_only_definedMethods) !== null && _superClass$_dev_only2 !== void 0 ? _superClass$_dev_only2 : [], definedMethods);\n defineReadonlyProperty(this, \"_dev_only_definedMethods\", mergedMethods);\n var mergedEvents = mergeIterables((_superClass$_dev_only3 = superClass._dev_only_definedEvents) !== null && _superClass$_dev_only3 !== void 0 ? _superClass$_dev_only3 : [], definedEvents);\n defineReadonlyProperty(this, \"_dev_only_definedEvents\", mergedEvents);\n customElements.define(name, this);\n if (Array.isArray(options.alias)) {\n for (var alias of options.alias) {\n // Use a parenthesized expression to make the class has no name.\n var Alias = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n 0, class extends value {});\n defineReadonlyProperty(Alias, \"__tagName\", alias);\n customElements.define(alias, Alias);\n }\n }\n });\n };\n }\n function property(options) {\n return function (_ref2, _ref3) {\n var {\n get,\n set\n } = _ref2;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref3;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@property()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@property()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick property.\");\n throw new Error(message);\n }\n }\n definedProperties.add(name);\n var _options = Object.assign({}, defaultPropertyDeclaration, options);\n var attrName = attributeNameForProperty(name, _options);\n if (attrName !== undefined) {\n attributeReflections.set(attrName, _objectSpread(_objectSpread({}, _options), {}, {\n property: name\n }));\n }\n return {\n get() {\n // If the attribute has been set (not by initialization), returns the\n // value converted by the attribute. Otherwise returns the prop value.\n // This works as a type conversion when reading a prop value.\n if (attrName !== undefined && this[symbolOfAttributeHasBeenSet](attrName)) {\n return _options.converter.fromAttribute(this.getAttribute(attrName), _options.type);\n }\n return get.call(this);\n },\n set(value) {\n var oldValue = get.call(this);\n set.call(this, value);\n if (_options.hasChanged(value, oldValue)) {\n if (attrName !== undefined) {\n var attrValue = _options.converter.toAttribute(value, _options.type);\n this[symbolOfStopAttributeChangedCallback](true);\n if (attrValue == null) {\n this.removeAttribute(attrName);\n } else {\n this.setAttribute(attrName, attrValue);\n }\n this[symbolOfMarkAttributeHasBeenSet](attrName);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n if (_options.render) {\n this._requestRender();\n }\n }\n },\n init(initialValue) {\n if (attrName !== undefined && _options.hasChanged(initialValue, undefined)) {\n var attrValue = _options.converter.toAttribute(initialValue, _options.type);\n if (attrValue != null) {\n // No attributes should be created during constructing custom elements.\n // This is true even if the work is done inside a constructor-initiated microtask.\n // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance\n requestAnimationFrame(() => {\n if (!this[symbolOfAttributeHasBeenSet](attrName)) {\n this[symbolOfStopAttributeChangedCallback](true);\n this.setAttribute(attrName, attrValue);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n });\n }\n }\n return initialValue;\n }\n };\n };\n }\n function method(options) {\n return function (value, _ref4) {\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate,\n addInitializer\n } = _ref4;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"method\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@method()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@method()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick method.\");\n throw new Error(message);\n }\n }\n if (options !== null && options !== void 0 && options.bound) {\n addInitializer(function () {\n this[name] = this[name].bind(this);\n });\n }\n definedMethods.add(name);\n };\n }\n function event(options) {\n return function (_ref5, _ref6) {\n var {\n get\n } = _ref5;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref6;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@event()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (!isPrivate) {\n throw new Error(\"Invalid usage of `@event()` on a non-private \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@event()` on a static \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n }\n var {\n type\n } = options,\n eventInit = _objectWithoutProperties(options, _excluded);\n definedEvents.add(type);\n return {\n get() {\n return get.call(this);\n },\n set() {\n throw new Error(\"Decorated events are readonly\");\n },\n init(initialValue) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && initialValue !== undefined) {\n throw new Error(\"Do not set an initial value for a decorated event: \\\"\".concat(String(name), \"\\\"\"));\n }\n return Object.freeze({\n emit: detail => this.dispatchEvent(new CustomEvent(type, _objectSpread(_objectSpread({}, eventInit), {}, {\n detail\n })))\n });\n }\n };\n };\n }\n return {\n defineElement,\n property,\n method,\n event\n };\n}\nfunction defineReadonlyProperty(target, propName, propValue) {\n Object.defineProperty(target, propName, {\n get() {\n return propValue;\n },\n configurable: true\n });\n}\nfunction mergeIterables(list1, list2) {\n var newList = new Set(list1);\n for (var item of list2) {\n newList.add(item);\n }\n return [...newList];\n}\nfunction attributeNameForProperty(name, options) {\n var attribute = options.attribute;\n return attribute === false ? undefined : typeof attribute === \"string\" ? attribute : name.replace(/[A-Z]/g, char => \"-\".concat(char.toLowerCase()));\n}\n//# sourceMappingURL=createDecorators.js.map","import _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar _hasRequestedRender = /*#__PURE__*/new WeakMap();\nvar _connectedCallbackCalled = /*#__PURE__*/new WeakMap();\nvar _attributeChangedCallbackStopped = /*#__PURE__*/new WeakMap();\nvar _attributesBeenSet = /*#__PURE__*/new WeakMap();\nexport class NextElement extends HTMLElement {\n constructor() {\n super(...arguments);\n _classPrivateFieldInitSpec(this, _hasRequestedRender, false);\n _classPrivateFieldInitSpec(this, _connectedCallbackCalled, false);\n _classPrivateFieldInitSpec(this, _attributeChangedCallbackStopped, false);\n _classPrivateFieldInitSpec(this, _attributesBeenSet, new Set());\n }\n /**\n * When render a custom element as parsed DOM, it is already connected in the\n * first place. The attributes are set while isConnected is true, which will\n * trigger a render request, and then before the next micro-task, the\n * `connectedCallback` will be called, which will trigger an immediate render.\n * Thus we would see two calls of render. So we manually set a mark of whether\n * the `connectedCallback` is actually get called, to prevent a trigger of\n * render request during attributes initialization before `connectedCallback`.\n */\n _markConnectedCallbackCalled() {\n _classPrivateFieldSet(_connectedCallbackCalled, this, true);\n }\n connectedCallback() {\n this._markConnectedCallbackCalled();\n this._render();\n }\n [symbolOfAttributeHasBeenSet](name) {\n return _classPrivateFieldGet(_attributesBeenSet, this).has(name);\n }\n [symbolOfMarkAttributeHasBeenSet](name) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n }\n\n /** Whether to process attributeChangedCallback. */\n [symbolOfStopAttributeChangedCallback](value) {\n _classPrivateFieldSet(_attributeChangedCallbackStopped, this, value);\n }\n\n /** @internal */\n attributeChangedCallback(name, old, value) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n if (!_classPrivateFieldGet(_attributeChangedCallbackStopped, this) && old !== value) {\n var attrRef = this.constructor.__attributeReflections.get(name);\n assertAttributeIsReflected(attrRef, name);\n var propValue = attrRef.converter.fromAttribute(value, attrRef.type);\n this[attrRef.property] = propValue;\n }\n }\n\n /**\n * Request a render in the next micro-task. This ensures multiple properties\n * or attributes will trigger a render once in a batch.\n */\n _requestRender() {\n // If the element is not connected,\n // let `connectedCallback()` do the job of calling _render.\n if (this.isConnected && _classPrivateFieldGet(_connectedCallbackCalled, this) && !_classPrivateFieldGet(_hasRequestedRender, this)) {\n _classPrivateFieldSet(_hasRequestedRender, this, true);\n Promise.resolve().then(() => {\n _classPrivateFieldSet(_hasRequestedRender, this, false);\n this._render();\n });\n }\n }\n}\n_defineProperty(NextElement, \"styleTexts\", void 0);\n_defineProperty(NextElement, \"shadowOptions\", void 0);\n_defineProperty(NextElement, \"__attributeReflections\", void 0);\n_defineProperty(NextElement, \"__tagName\", void 0);\nfunction assertAttributeIsReflected(attrRef, name) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && !attrRef) {\n throw new Error(\"Attribute [\".concat(name, \"] is not reflected\"));\n }\n}\n//# sourceMappingURL=NextElement.js.map","var supports;\nexport function supportsAdoptingStyleSheets() {\n if (supports === undefined) {\n supports = !!(window.ShadowRoot &&\n // (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype);\n }\n return supports;\n}\n//# sourceMappingURL=supportsAdoptingStyleSheets.js.map"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","source","excluded","i","target","sourceKeys","indexOf","sourceSymbolKeys","prototype","propertyIsEnumerable","call","toPropertyKey","Symbol","toPrimitive","TypeError","String","_typeof","iterator","constructor","symbolOfAttributeHasBeenSet","symbolOfMarkAttributeHasBeenSet","symbolOfStopAttributeChangedCallback","_excluded","defaultPropertyDeclaration","attribute","type","converter","toAttribute","Boolean","fromAttribute","Number","render","hasChanged","old","createDecorators","attributeReflections","Map","definedProperties","Set","definedMethods","definedEvents","defineElement","name","options","undefined","_ref","kind","className","addInitializer","_superClass$observedA","_superClass$__attribu","_superClass$_dev_only","_superClass$_dev_only2","_superClass$_dev_only3","superClass","getPrototypeOf","this","defineReadonlyProperty","mergeIterables","observedAttributes","__attributeReflections","styleTexts","shadowOptions","mode","_dev_only_definedProperties","_dev_only_definedMethods","_dev_only_definedEvents","customElements","define","Array","isArray","alias","Alias","property","_ref2","_ref3","get","set","static","isStatic","private","isPrivate","add","_options","assign","attrName","replace","char","concat","toLowerCase","attributeNameForProperty","getAttribute","oldValue","attrValue","removeAttribute","setAttribute","_requestRender","init","initialValue","requestAnimationFrame","method","_ref4","bound","bind","event","_ref5","_ref6","eventInit","Error","freeze","emit","detail","dispatchEvent","CustomEvent","propName","propValue","list1","list2","newList","item","_classPrivateFieldGet","s","a","_assertClassBrand","_classPrivateFieldSet","n","has","supports","_hasRequestedRender","WeakMap","_connectedCallbackCalled","_attributeChangedCallbackStopped","_attributesBeenSet","NextElement","HTMLElement","super","_markConnectedCallbackCalled","connectedCallback","_render","attributeChangedCallback","attrRef","isConnected","Promise","resolve","then","supportsAdoptingStyleSheets","window","ShadowRoot","Document","CSSStyleSheet"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 3510.70429aeb.js.LICENSE.txt */
2
+ (self.webpackChunk_next_bricks_diagram=self.webpackChunk_next_bricks_diagram||[]).push([[3510],{7586:(e,t,n)=>{e.exports={graphlib:n(4678),layout:n(8870),debug:n(1665),util:{time:n(6856).time,notime:n(6856).notime},version:n(898)}},8642:(e,t,n)=>{"use strict";let r=n(6635),i=n(6856).uniqueId;e.exports={run:function(e){("greedy"===e.graph().acyclicer?r(e,function(e){return t=>e.edge(t).weight}(e)):function(e){let t=[],n={},r={};return e.nodes().forEach((function i(o){r.hasOwnProperty(o)||(r[o]=!0,n[o]=!0,e.outEdges(o).forEach((e=>{n.hasOwnProperty(e.w)?t.push(e):i(e.w)})),delete n[o])})),t}(e)).forEach((t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,i("rev"))}))},undo:function(e){e.edges().forEach((t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},6883:(e,t,n)=>{let r=n(6856);function i(e,t,n,i,o,s){let a={width:0,height:0,rank:s,borderType:t},h=o[t][s-1],u=r.addDummyNode(e,"border",a,n);o[t][s]=u,e.setParent(u,i),h&&e.setEdge(h,u,{weight:1})}e.exports=function(e){e.children().forEach((function t(n){let r=e.children(n),o=e.node(n);if(r.length&&r.forEach(t),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(let t=o.minRank,r=o.maxRank+1;t<r;++t)i(e,"borderLeft","_bl",n,o,t),i(e,"borderRight","_br",n,o,t)}}))}},5574:e=>{"use strict";function t(e){e.nodes().forEach((t=>n(e.node(t)))),e.edges().forEach((t=>n(e.edge(t))))}function n(e){let t=e.width;e.width=e.height,e.height=t}function r(e){e.y=-e.y}function i(e){let t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){let n=e.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||t(e)},undo:function(e){let n=e.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(e){e.nodes().forEach((t=>r(e.node(t)))),e.edges().forEach((t=>{let n=e.edge(t);n.points.forEach(r),n.hasOwnProperty("y")&&r(n)}))}(e),"lr"!==n&&"rl"!==n||(function(e){e.nodes().forEach((t=>i(e.node(t)))),e.edges().forEach((t=>{let n=e.edge(t);n.points.forEach(i),n.hasOwnProperty("x")&&i(n)}))}(e),t(e))}}},4364:e=>{function t(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function n(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return t(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&t(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],t=this._sentinel,r=t._prev;for(;r!==t;)e.push(JSON.stringify(r,n)),r=r._prev;return"["+e.join(", ")+"]"}}},1665:(e,t,n)=>{let r=n(6856),i=n(4678).Graph;e.exports={debugOrdering:function(e){let t=r.buildLayerMatrix(e),n=new i({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach((t=>{n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),e.edges().forEach((e=>n.setEdge(e.v,e.w,{},e.name))),t.forEach(((e,t)=>{let r="layer"+t;n.setNode(r,{rank:"same"}),e.reduce(((e,t)=>(n.setEdge(e,t,{style:"invis"}),t)))})),n}}},6635:(e,t,n)=>{let r=n(4678).Graph,i=n(4364);e.exports=function(e,t){if(e.nodeCount()<=1)return[];let n=function(e,t){let n=new r,o=0,s=0;e.nodes().forEach((e=>{n.setNode(e,{v:e,in:0,out:0})})),e.edges().forEach((e=>{let r=n.edge(e.v,e.w)||0,i=t(e),a=r+i;n.setEdge(e.v,e.w,a),s=Math.max(s,n.node(e.v).out+=i),o=Math.max(o,n.node(e.w).in+=i)}));let h=function(e){const t=[];for(let n=0;n<e;n++)t.push(n);return t}(s+o+3).map((()=>new i)),u=o+1;return n.nodes().forEach((e=>{a(h,u,n.node(e))})),{graph:n,buckets:h,zeroIdx:u}}(e,t||o);return function(e,t,n){let r,i=[],o=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount())for(let o=t.length-2;o>0;--o)if(r=t[o].dequeue(),r){i=i.concat(s(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx).flatMap((t=>e.outEdges(t.v,t.w)))};let o=()=>1;function s(e,t,n,r,i){let o=i?[]:void 0;return e.inEdges(r.v).forEach((r=>{let s=e.edge(r),h=e.node(r.v);i&&o.push({v:r.v,w:r.w}),h.out-=s,a(t,n,h)})),e.outEdges(r.v).forEach((r=>{let i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,a(t,n,s)})),e.removeNode(r.v),o}function a(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},8870:(e,t,n)=>{"use strict";let r=n(8642),i=n(1293),o=n(3045),s=n(6856).normalizeRanks,a=n(2488),h=n(6856).removeEmptyRanks,u=n(9885),c=n(6883),d=n(5574),l=n(5577),f=n(8924),p=n(6856),g=n(4678).Graph;e.exports=function(e,t){let n=t&&t.debugTiming?p.time:p.notime;n("layout",(()=>{let t=n(" buildLayoutGraph",(()=>function(e){let t=new g({multigraph:!0,compound:!0}),n=k(e.graph());return t.setGraph(Object.assign({},y,N(n,v),p.pick(n,_))),e.nodes().forEach((n=>{const r=N(k(e.node(n)),x);Object.keys(w).forEach((e=>{void 0===r[e]&&(r[e]=w[e])})),t.setNode(n,r),t.setParent(n,e.parent(n))})),e.edges().forEach((n=>{let r=k(e.edge(n));t.setEdge(n,Object.assign({},E,N(r,m),p.pick(r,b)))})),t}(e)));n(" runLayout",(()=>function(e,t){t(" makeSpaceForEdgeLabels",(()=>function(e){let t=e.graph();t.ranksep/=2,e.edges().forEach((n=>{let r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e))),t(" removeSelfEdges",(()=>function(e){e.edges().forEach((t=>{if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e))),t(" acyclic",(()=>r.run(e))),t(" nestingGraph.run",(()=>u.run(e))),t(" rank",(()=>o(p.asNonCompoundGraph(e)))),t(" injectEdgeLabelProxies",(()=>function(e){e.edges().forEach((t=>{let n=e.edge(t);if(n.width&&n.height){let n=e.node(t.v),r={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};p.addDummyNode(e,"edge-proxy",r,"_ep")}}))}(e))),t(" removeEmptyRanks",(()=>h(e))),t(" nestingGraph.cleanup",(()=>u.cleanup(e))),t(" normalizeRanks",(()=>s(e))),t(" assignRankMinMax",(()=>function(e){let t=0;e.nodes().forEach((n=>{let r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Math.max(t,r.maxRank))})),e.graph().maxRank=t}(e))),t(" removeEdgeLabelProxies",(()=>function(e){e.nodes().forEach((t=>{let n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e))),t(" normalize.run",(()=>i.run(e))),t(" parentDummyChains",(()=>a(e))),t(" addBorderSegments",(()=>c(e))),t(" order",(()=>l(e))),t(" insertSelfEdges",(()=>function(e){p.buildLayerMatrix(e).forEach((t=>{var n=0;t.forEach(((t,r)=>{var i=e.node(t);i.order=r+n,(i.selfEdges||[]).forEach((t=>{p.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}(e))),t(" adjustCoordinateSystem",(()=>d.adjust(e))),t(" position",(()=>f(e))),t(" positionSelfEdges",(()=>function(e){e.nodes().forEach((t=>{var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e))),t(" removeBorderNodes",(()=>function(e){e.nodes().forEach((t=>{if(e.children(t).length){let n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),o=e.node(n.borderLeft[n.borderLeft.length-1]),s=e.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}})),e.nodes().forEach((t=>{"border"===e.node(t).dummy&&e.removeNode(t)}))}(e))),t(" normalize.undo",(()=>i.undo(e))),t(" fixupEdgeLabelCoords",(()=>function(e){e.edges().forEach((t=>{let n=e.edge(t);if(n.hasOwnProperty("x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e))),t(" undoCoordinateSystem",(()=>d.undo(e))),t(" translateGraph",(()=>function(e){let t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=e.graph(),s=o.marginx||0,a=o.marginy||0;function h(e){let o=e.x,s=e.y,a=e.width,h=e.height;t=Math.min(t,o-a/2),n=Math.max(n,o+a/2),r=Math.min(r,s-h/2),i=Math.max(i,s+h/2)}e.nodes().forEach((t=>h(e.node(t)))),e.edges().forEach((t=>{let n=e.edge(t);n.hasOwnProperty("x")&&h(n)})),t-=s,r-=a,e.nodes().forEach((n=>{let i=e.node(n);i.x-=t,i.y-=r})),e.edges().forEach((n=>{let i=e.edge(n);i.points.forEach((e=>{e.x-=t,e.y-=r})),i.hasOwnProperty("x")&&(i.x-=t),i.hasOwnProperty("y")&&(i.y-=r)})),o.width=n-t+s,o.height=i-r+a}(e))),t(" assignNodeIntersects",(()=>function(e){e.edges().forEach((t=>{let n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(p.intersectRect(o,n)),i.points.push(p.intersectRect(s,r))}))}(e))),t(" reversePoints",(()=>function(e){e.edges().forEach((t=>{let n=e.edge(t);n.reversed&&n.points.reverse()}))}(e))),t(" acyclic.undo",(()=>r.undo(e)))}(t,n))),n(" updateInputGraph",(()=>function(e,t){e.nodes().forEach((n=>{let r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,r.rank=i.rank,t.children(n).length&&(r.width=i.width,r.height=i.height))})),e.edges().forEach((n=>{let r=e.edge(n),i=t.edge(n);r.points=i.points,i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)))}))};let v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},m=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},b=["labelpos"];function N(e,t){return p.mapValues(p.pick(e,t),Number)}function k(e){var t={};return e&&Object.entries(e).forEach((([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n})),t}},9885:(e,t,n)=>{let r=n(6856);function i(e,t,n,o,s,a,h){let u=e.children(h);if(!u.length)return void(h!==t&&e.setEdge(t,h,{weight:0,minlen:n}));let c=r.addBorderNode(e,"_bt"),d=r.addBorderNode(e,"_bb"),l=e.node(h);e.setParent(c,h),l.borderTop=c,e.setParent(d,h),l.borderBottom=d,u.forEach((r=>{i(e,t,n,o,s,a,r);let u=e.node(r),l=u.borderTop?u.borderTop:r,f=u.borderBottom?u.borderBottom:r,p=u.borderTop?o:2*o,g=l!==f?1:s-a[h]+1;e.setEdge(c,l,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(h)||e.setEdge(t,c,{weight:0,minlen:s+a[h]})}e.exports={run:function(e){let t=r.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};function n(r,i){var o=e.children(r);o&&o.length&&o.forEach((e=>n(e,i+1))),t[r]=i}return e.children().forEach((e=>n(e,1))),t}(e),o=Math.max(...Object.values(n))-1,s=2*o+1;e.graph().nestingRoot=t,e.edges().forEach((t=>e.edge(t).minlen*=s));let a=function(e){return e.edges().reduce(((t,n)=>t+e.edge(n).weight),0)}(e)+1;e.children().forEach((r=>i(e,t,s,a,o,n,r))),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach((t=>{e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},1293:(e,t,n)=>{"use strict";let r=n(6856);e.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach((t=>function(e,t){let n,i,o,s=t.v,a=e.node(s).rank,h=t.w,u=e.node(h).rank,c=t.name,d=e.edge(t),l=d.labelRank;if(u!==a+1){for(e.removeEdge(t),o=0,++a;a<u;++o,++a)d.points=[],i={width:0,height:0,edgeLabel:d,edgeObj:t,rank:a},n=r.addDummyNode(e,"edge",i,"_d"),a===l&&(i.width=d.width,i.height=d.height,i.dummy="edge-label",i.labelpos=d.labelpos),e.setEdge(s,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,h,{weight:d.weight},c)}}(e,t)))},undo:function(e){e.graph().dummyChains.forEach((t=>{let n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}}},7508:e=>{e.exports=function(e,t,n){let r,i={};n.forEach((n=>{let o,s,a=e.parent(n);for(;a;){if(o=e.parent(a),o?(s=i[o],i[o]=a):(s=r,r=a),s&&s!==a)return void t.setEdge(s,a);a=o}}))}},4592:e=>{e.exports=function(e,t=[]){return t.map((t=>{let n=e.inEdges(t);if(n.length){let r=n.reduce(((t,n)=>{let r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}}))}},4600:(e,t,n)=>{let r=n(4678).Graph,i=n(6856);e.exports=function(e,t,n){let o=function(e){for(var t;e.hasNode(t=i.uniqueId("_root")););return t}(e),s=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((t=>e.node(t)));return e.nodes().forEach((r=>{let i=e.node(r),a=e.parent(r);(i.rank===t||i.minRank<=t&&t<=i.maxRank)&&(s.setNode(r),s.setParent(r,a||o),e[n](r).forEach((t=>{let n=t.v===r?t.w:t.v,i=s.edge(n,r),o=void 0!==i?i.weight:0;s.setEdge(n,r,{weight:e.edge(t).weight+o})})),i.hasOwnProperty("minRank")&&s.setNode(r,{borderLeft:i.borderLeft[t],borderRight:i.borderRight[t]}))})),s}},835:(e,t,n)=>{"use strict";let r=n(6856).zipObject;function i(e,t,n){let i=r(n,n.map(((e,t)=>t))),o=t.flatMap((t=>e.outEdges(t).map((t=>({pos:i[t.w],weight:e.edge(t).weight}))).sort(((e,t)=>e.pos-t.pos)))),s=1;for(;s<n.length;)s<<=1;let a=2*s-1;s-=1;let h=new Array(a).fill(0),u=0;return o.forEach((e=>{let t=e.pos+s;h[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=h[t+1]),t=t-1>>1,h[t]+=e.weight;u+=e.weight*n})),u}e.exports=function(e,t){let n=0;for(let r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}},5577:(e,t,n)=>{"use strict";let r=n(6498),i=n(835),o=n(2804),s=n(4600),a=n(7508),h=n(4678).Graph,u=n(6856);function c(e,t,n){return t.map((function(t){return s(e,t,n)}))}function d(e,t){let n=new h;e.forEach((function(e){let r=e.graph().root,i=o(e,r,n,t);i.vs.forEach(((t,n)=>e.node(t).order=n)),a(e,n,i.vs)}))}function l(e,t){Object.values(t).forEach((t=>t.forEach(((t,n)=>e.node(t).order=n))))}e.exports=function(e){let t=u.maxRank(e),n=c(e,u.range(1,t+1),"inEdges"),o=c(e,u.range(t-1,-1,-1),"outEdges"),s=r(e);l(e,s);let a,h=Number.POSITIVE_INFINITY;for(let t=0,r=0;r<4;++t,++r){d(t%2?n:o,t%4>=2),s=u.buildLayerMatrix(e);let c=i(e,s);c<h&&(r=0,a=Object.assign({},s),h=c)}l(e,a)}},6498:(e,t,n)=>{"use strict";let r=n(6856);e.exports=function(e){let t={},n=e.nodes().filter((t=>!e.children(t).length)),i=Math.max(...n.map((t=>e.node(t).rank))),o=r.range(i+1).map((()=>[]));return n.sort(((t,n)=>e.node(t).rank-e.node(n).rank)).forEach((function n(r){if(t[r])return;t[r]=!0;let i=e.node(r);o[i.rank].push(r),e.successors(r).forEach(n)})),o}},2635:(e,t,n)=>{"use strict";let r=n(6856);e.exports=function(e,t){let n={};return e.forEach(((e,t)=>{let r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(r.barycenter=e.barycenter,r.weight=e.weight)})),t.edges().forEach((e=>{let t=n[e.v],r=n[e.w];void 0!==t&&void 0!==r&&(r.indegree++,t.out.push(n[e.w]))})),function(e){let t=[];function n(e){return t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return n=>{n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){let r=e.pop();t.push(r),r.in.reverse().forEach(n(r)),r.out.forEach(i(r))}return t.filter((e=>!e.merged)).map((e=>r.pick(e,["vs","i","barycenter","weight"])))}(Object.values(n).filter((e=>!e.indegree)))}},2804:(e,t,n)=>{let r=n(4592),i=n(2635),o=n(5437);e.exports=function e(t,n,s,a){let h=t.children(n),u=t.node(n),c=u?u.borderLeft:void 0,d=u?u.borderRight:void 0,l={};c&&(h=h.filter((e=>e!==c&&e!==d)));let f=r(t,h);f.forEach((n=>{if(t.children(n.v).length){let o=e(t,n.v,s,a);l[n.v]=o,o.hasOwnProperty("barycenter")&&(i=o,void 0!==(r=n).barycenter?(r.barycenter=(r.barycenter*r.weight+i.barycenter*i.weight)/(r.weight+i.weight),r.weight+=i.weight):(r.barycenter=i.barycenter,r.weight=i.weight))}var r,i}));let p=i(f,s);!function(e,t){e.forEach((e=>{e.vs=e.vs.flatMap((e=>t[e]?t[e].vs:e))}))}(p,l);let g=o(p,a);if(c&&(g.vs=[c,g.vs,d].flat(!0),t.predecessors(c).length)){let e=t.node(t.predecessors(c)[0]),n=t.node(t.predecessors(d)[0]);g.hasOwnProperty("barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+e.order+n.order)/(g.weight+2),g.weight+=2}return g}},5437:(e,t,n)=>{let r=n(6856);function i(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}e.exports=function(e,t){let n=r.partition(e,(e=>e.hasOwnProperty("barycenter"))),o=n.lhs,s=n.rhs.sort(((e,t)=>t.i-e.i)),a=[],h=0,u=0,c=0;var d;o.sort((d=!!t,(e,t)=>e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:d?t.i-e.i:e.i-t.i)),c=i(a,s,c),o.forEach((e=>{c+=e.vs.length,a.push(e.vs),h+=e.barycenter*e.weight,u+=e.weight,c=i(a,s,c)}));let l={vs:a.flat(!0)};return u&&(l.barycenter=h/u,l.weight=u),l}},2488:e=>{e.exports=function(e){let t=function(e){let t={},n=0;return e.children().forEach((function r(i){let o=n;e.children(i).forEach(r),t[i]={low:o,lim:n++}})),t}(e);e.graph().dummyChains.forEach((n=>{let r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){let i,o,s=[],a=[],h=Math.min(t[n].low,t[r].low),u=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),s.push(i)}while(i&&(t[i].low>h||u>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,t,i.v,i.w),s=o.path,a=o.lca,h=0,u=s[h],c=!0;for(;n!==i.w;){if(r=e.node(n),c){for(;(u=s[h])!==a&&e.node(u).maxRank<r.rank;)h++;u===a&&(c=!1)}if(!c){for(;h<s.length-1&&e.node(u=s[h+1]).minRank<=r.rank;)h++;u=s[h]}e.setParent(n,u),n=e.successors(n)[0]}}))}},8121:(e,t,n)=>{"use strict";let r=n(4678).Graph,i=n(6856);function o(e,t){let n={};return t.reduce((function(t,r){let i=0,o=0,s=t.length,h=r[r.length-1];return r.forEach(((t,u)=>{let c=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find((t=>e.node(t).dummy))}(e,t),d=c?e.node(c).order:s;(c||t===h)&&(r.slice(o,u+1).forEach((t=>{e.predecessors(t).forEach((r=>{let o=e.node(r),s=o.order;!(s<i||d<s)||o.dummy&&e.node(t).dummy||a(n,r,t)}))})),o=u+1,i=d)})),r})),n}function s(e,t){let n={};function r(t,r,o,s,h){let u;i.range(r,o).forEach((r=>{u=t[r],e.node(u).dummy&&e.predecessors(u).forEach((t=>{let r=e.node(t);r.dummy&&(r.order<s||r.order>h)&&a(n,t,u)}))}))}return t.reduce((function(t,n){let i,o=-1,s=0;return n.forEach(((a,h)=>{if("border"===e.node(a).dummy){let t=e.predecessors(a);t.length&&(i=e.node(t[0]).order,r(n,s,h,o,i),s=h,o=i)}r(n,s,n.length,i,t.length)})),n})),n}function a(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function h(e,t,n){if(t>n){let e=t;t=n,n=e}return!!e[t]&&e[t].hasOwnProperty(n)}function u(e,t,n,r){let i={},o={},s={};return t.forEach((e=>{e.forEach(((e,t)=>{i[e]=e,o[e]=e,s[e]=t}))})),t.forEach((e=>{let t=-1;e.forEach((e=>{let a=r(e);if(a.length){a=a.sort(((e,t)=>s[e]-s[t]));let r=(a.length-1)/2;for(let u=Math.floor(r),c=Math.ceil(r);u<=c;++u){let r=a[u];o[e]===e&&t<s[r]&&!h(n,e,r)&&(o[r]=e,o[e]=i[e]=i[r],t=s[r])}}}))})),{root:i,align:o}}function c(e,t,n,i,o){let s={},a=function(e,t,n,i){let o=new r,s=e.graph(),a=function(e,t,n){return(r,i,o)=>{let s,a=r.node(i),h=r.node(o),u=0;if(u+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=-a.width/2;break;case"r":s=a.width/2}if(s&&(u+=n?s:-s),s=0,u+=(a.dummy?t:e)/2,u+=(h.dummy?t:e)/2,u+=h.width/2,h.hasOwnProperty("labelpos"))switch(h.labelpos.toLowerCase()){case"l":s=h.width/2;break;case"r":s=-h.width/2}return s&&(u+=n?s:-s),s=0,u}}(s.nodesep,s.edgesep,i);return t.forEach((t=>{let r;t.forEach((t=>{let i=n[t];if(o.setNode(i),r){var s=n[r],h=o.edge(s,i);o.setEdge(s,i,Math.max(a(e,t,r),h||0))}r=t}))})),o}(e,t,n,o),h=o?"borderLeft":"borderRight";function u(e,t){let n=a.nodes(),r=n.pop(),i={};for(;r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return u((function(e){s[e]=a.inEdges(e).reduce(((e,t)=>Math.max(e,s[t.v]+a.edge(t))),0)}),a.predecessors.bind(a)),u((function(t){let n=a.outEdges(t).reduce(((e,t)=>Math.min(e,s[t.w]-a.edge(t))),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==h&&(s[t]=Math.max(s[t],n))}),a.successors.bind(a)),Object.keys(i).forEach((e=>s[e]=s[n[e]])),s}function d(e,t){return Object.values(t).reduce(((t,n)=>{let r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;Object.entries(n).forEach((([t,n])=>{let o=function(e,t){return e.node(t).width}(e,t)/2;r=Math.max(n+o,r),i=Math.min(n-o,i)}));const o=r-i;return o<t[0]&&(t=[o,n]),t}),[Number.POSITIVE_INFINITY,null])[1]}function l(e,t){let n=Object.values(t),r=Math.min(...n),o=Math.max(...n);["u","d"].forEach((n=>{["l","r"].forEach((s=>{let a=n+s,h=e[a];if(h===t)return;let u=Object.values(h),c=r-Math.min(...u);"l"!==s&&(c=o-Math.max(...u)),c&&(e[a]=i.mapValues(h,(e=>e+c)))}))}))}function f(e,t){return i.mapValues(e.ul,((n,r)=>{if(t)return e[t.toLowerCase()][r];{let t=Object.values(e).map((e=>e[r])).sort(((e,t)=>e-t));return(t[1]+t[2])/2}}))}e.exports={positionX:function(e){let t,n=i.buildLayerMatrix(e),r=Object.assign(o(e,n),s(e,n)),a={};["u","d"].forEach((o=>{t="u"===o?n:Object.values(n).reverse(),["l","r"].forEach((n=>{"r"===n&&(t=t.map((e=>Object.values(e).reverse())));let s=("u"===o?e.predecessors:e.successors).bind(e),h=u(0,t,r,s),d=c(e,t,h.root,h.align,"r"===n);"r"===n&&(d=i.mapValues(d,(e=>-e))),a[o+n]=d}))}));let h=d(e,a);return l(a,h),f(a,e.graph().align)},findType1Conflicts:o,findType2Conflicts:s,addConflict:a,hasConflict:h,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:l,findSmallestWidthAlignment:d,balance:f}},8924:(e,t,n)=>{"use strict";let r=n(6856),i=n(8121).positionX;e.exports=function(e){(function(e){let t=r.buildLayerMatrix(e),n=e.graph().ranksep,i=0;t.forEach((t=>{const r=t.reduce(((t,n)=>{const r=e.node(n).height;return t>r?t:r}),0);t.forEach((t=>e.node(t).y=i+r/2)),i+=r+n}))})(e=r.asNonCompoundGraph(e)),Object.entries(i(e)).forEach((([t,n])=>e.node(t).x=n))}},7885:(e,t,n)=>{"use strict";var r=n(4678).Graph,i=n(4389).slack;function o(e,t){return e.nodes().forEach((function n(r){t.nodeEdges(r).forEach((o=>{var s=o.v,a=r===s?o.w:s;e.hasNode(a)||i(t,o)||(e.setNode(a,{}),e.setEdge(r,a,{}),n(a))}))})),e.nodeCount()}function s(e,t){return t.edges().reduce(((n,r)=>{let o=Number.POSITIVE_INFINITY;return e.hasNode(r.v)!==e.hasNode(r.w)&&(o=i(t,r)),o<n[0]?[o,r]:n}),[Number.POSITIVE_INFINITY,null])[1]}function a(e,t,n){e.nodes().forEach((e=>t.node(e).rank+=n))}e.exports=function(e){var t,n,h=new r({directed:!1}),u=e.nodes()[0],c=e.nodeCount();for(h.setNode(u,{});o(h,e)<c;)t=s(h,e),n=h.hasNode(t.v)?i(e,t):-i(e,t),a(h,e,n);return h}},3045:(e,t,n)=>{"use strict";var r=n(4389).longestPath,i=n(7885),o=n(7520);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:!function(e){o(e)}(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":s(e)}};var s=r},7520:(e,t,n)=>{"use strict";var r=n(7885),i=n(4389).slack,o=n(4389).longestPath,s=n(4678).alg.preorder,a=n(4678).alg.postorder,h=n(6856).simplify;function u(e){e=h(e),o(e);var t,n=r(e);for(l(n),c(n,e);t=p(n);)v(n,e,t,g(n,e,t))}function c(e,t){var n=a(e,e.nodes());(n=n.slice(0,n.length-1)).forEach((n=>function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=d(e,t,n)}(e,t,n)))}function d(e,t,n){var r=e.node(n).parent,i=!0,o=t.edge(n,r),s=0;return o||(i=!1,o=t.edge(r,n)),s=o.weight,t.nodeEdges(n).forEach((o=>{var a,h,u=o.v===n,c=u?o.w:o.v;if(c!==r){var d=u===i,l=t.edge(o).weight;if(s+=d?l:-l,a=n,h=c,e.hasEdge(a,h)){var f=e.edge(n,c).cutvalue;s+=d?-f:f}}})),s}function l(e,t){arguments.length<2&&(t=e.nodes()[0]),f(e,{},1,t)}function f(e,t,n,r,i){var o=n,s=e.node(r);return t[r]=!0,e.neighbors(r).forEach((i=>{t.hasOwnProperty(i)||(n=f(e,t,n,i,r))})),s.low=o,s.lim=n++,i?s.parent=i:delete s.parent,n}function p(e){return e.edges().find((t=>e.edge(t).cutvalue<0))}function g(e,t,n){var r=n.v,o=n.w;t.hasEdge(r,o)||(r=n.w,o=n.v);var s=e.node(r),a=e.node(o),h=s,u=!1;s.lim>a.lim&&(h=a,u=!0);var c=t.edges().filter((t=>u===y(0,e.node(t.v),h)&&u!==y(0,e.node(t.w),h)));return c.reduce(((e,n)=>i(t,n)<i(t,e)?n:e))}function v(e,t,n,r){var i=n.v,o=n.w;e.removeEdge(i,o),e.setEdge(r.v,r.w,{}),l(e),c(e,t),function(e,t){var n=e.nodes().find((e=>!t.node(e).parent)),r=s(e,n);(r=r.slice(1)).forEach((n=>{var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function y(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=u,u.initLowLimValues=l,u.initCutValues=c,u.calcCutValue=d,u.leaveEdge=p,u.enterEdge=g,u.exchangeEdges=v},4389:e=>{"use strict";e.exports={longestPath:function(e){var t={};e.sources().forEach((function n(r){var i=e.node(r);if(t.hasOwnProperty(r))return i.rank;t[r]=!0;var o=Math.min(...e.outEdges(r).map((t=>null==t?Number.POSITIVE_INFINITY:n(t.w)-e.edge(t).minlen)));return o===Number.POSITIVE_INFINITY&&(o=0),i.rank=o}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},6856:(e,t,n)=>{"use strict";let r=n(4678).Graph;function i(e,t,n,r){let i;do{i=a(r)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function o(e){return Math.max(...e.nodes().map((t=>{let n=e.node(t).rank;return void 0===n?Number.MIN_VALUE:n})))}e.exports={addBorderNode:function(e,t,n,r){let o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(e,"border",o,t)},addDummyNode:i,asNonCompoundGraph:function(e){let t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach((n=>{e.children(n).length||t.setNode(n,e.node(n))})),e.edges().forEach((n=>{t.setEdge(n,e.edge(n))})),t},buildLayerMatrix:function(e){let t=h(o(e)+1).map((()=>[]));return e.nodes().forEach((n=>{let r=e.node(n),i=r.rank;void 0!==i&&(t[i][r.order]=n)})),t},intersectRect:function(e,t){let n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,h=e.width/2,u=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*h>Math.abs(s)*u?(a<0&&(u=-u),n=u*s/a,r=u):(s<0&&(h=-h),n=h,r=h*a/s),{x:i+n,y:o+r}},mapValues:function(e,t){let n=t;return"string"==typeof t&&(n=e=>e[t]),Object.entries(e).reduce(((e,[t,r])=>(e[t]=n(r,t),e)),{})},maxRank:o,normalizeRanks:function(e){let t=Math.min(...e.nodes().map((t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n})));e.nodes().forEach((n=>{let r=e.node(n);r.hasOwnProperty("rank")&&(r.rank-=t)}))},notime:function(e,t){return t()},partition:function(e,t){let n={lhs:[],rhs:[]};return e.forEach((e=>{t(e)?n.lhs.push(e):n.rhs.push(e)})),n},pick:function(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n},predecessorWeights:function(e){let t=e.nodes().map((t=>{let n={};return e.inEdges(t).forEach((t=>{n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return u(e.nodes(),t)},range:h,removeEmptyRanks:function(e){let t=Math.min(...e.nodes().map((t=>e.node(t).rank))),n=[];e.nodes().forEach((r=>{let i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));let r=0,i=e.graph().nodeRankFactor;Array.from(n).forEach(((t,n)=>{void 0===t&&n%i!=0?--r:void 0!==t&&r&&t.forEach((t=>e.node(t).rank+=r))}))},simplify:function(e){let t=(new r).setGraph(e.graph());return e.nodes().forEach((n=>t.setNode(n,e.node(n)))),e.edges().forEach((n=>{let r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},successorWeights:function(e){let t=e.nodes().map((t=>{let n={};return e.outEdges(t).forEach((t=>{n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return u(e.nodes(),t)},time:function(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}},uniqueId:a,zipObject:u};let s=0;function a(e){var t=++s;return toString(e)+t}function h(e,t,n=1){null==t&&(t=e,e=0);let r=e=>e<t;n<0&&(r=e=>t<e);const i=[];for(let t=e;r(t);t+=n)i.push(t);return i}function u(e,t){return e.reduce(((e,n,r)=>(e[n]=t[r],e)),{})}},898:e=>{e.exports="1.0.4"},4678:(e,t,n)=>{var r=n(2314);e.exports={Graph:r.Graph,json:n(2258),alg:n(6311),version:r.version}},2335:e=>{e.exports=function(e){var t,n={},r=[];function i(r){n.hasOwnProperty(r)||(n[r]=!0,t.push(r),e.successors(r).forEach(i),e.predecessors(r).forEach(i))}return e.nodes().forEach((function(e){t=[],i(e),t.length&&r.push(t)})),r}},6248:e=>{function t(e,t,n,i){for(var o=[[e,!1]];o.length>0;){var s=o.pop();s[1]?i.push(s[0]):n.hasOwnProperty(s[0])||(n[s[0]]=!0,o.push([s[0],!0]),r(t(s[0]),(e=>o.push([e,!1]))))}}function n(e,t,n,i){for(var o=[e];o.length>0;){var s=o.pop();n.hasOwnProperty(s)||(n[s]=!0,i.push(s),r(t(s),(e=>o.push(e))))}}function r(e,t){for(var n=e.length;n--;)t(e[n],n,e);return e}e.exports=function(e,r,i){Array.isArray(r)||(r=[r]);var o=e.isDirected()?t=>e.successors(t):t=>e.neighbors(t),s="post"===i?t:n,a=[],h={};return r.forEach((t=>{if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);s(t,o,h,a)})),a}},3651:(e,t,n)=>{var r=n(4237);e.exports=function(e,t,n){return e.nodes().reduce((function(i,o){return i[o]=r(e,o,t,n),i}),{})}},4237:(e,t,n)=>{var r=n(1997);e.exports=function(e,t,n,o){return function(e,t,n,i){var o,s,a={},h=new r,u=function(e){var t=e.v!==o?e.v:e.w,r=a[t],i=n(e),u=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);u<r.distance&&(r.distance=u,r.predecessor=o,h.decrease(t,u))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},h.add(e,n)}));h.size()>0&&(o=h.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(u);return a}(e,String(t),n||i,o||function(t){return e.outEdges(t)})};var i=()=>1},402:(e,t,n)=>{var r=n(3911);e.exports=function(e){return r(e).filter((function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},3242:e=>{e.exports=function(e,n,r){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],s=o[n],a=r.distance+i.distance;a<s.distance&&(s.distance=a,s.predecessor=i.predecessor)}))}))})),r}(e,n||t,r||function(t){return e.outEdges(t)})};var t=()=>1},6311:(e,t,n)=>{e.exports={components:n(2335),dijkstra:n(4237),dijkstraAll:n(3651),findCycles:n(402),floydWarshall:n(3242),isAcyclic:n(1158),postorder:n(9289),preorder:n(1924),prim:n(9763),tarjan:n(3911),topsort:n(1964)}},1158:(e,t,n)=>{var r=n(1964);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},9289:(e,t,n)=>{var r=n(6248);e.exports=function(e,t){return r(e,t,"post")}},1924:(e,t,n)=>{var r=n(6248);e.exports=function(e,t){return r(e,t,"pre")}},9763:(e,t,n)=>{var r=n(8114),i=n(1997);e.exports=function(e,t){var n,o=new r,s={},a=new i;function h(e){var r=e.v===n?e.w:e.v,i=a.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,a.decrease(r,o))}}if(0===e.nodeCount())return o;e.nodes().forEach((function(e){a.add(e,Number.POSITIVE_INFINITY),o.setNode(e)})),a.decrease(e.nodes()[0],0);for(var u=!1;a.size()>0;){if(n=a.removeMin(),s.hasOwnProperty(n))o.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(h)}return o}},3911:e=>{e.exports=function(e){var t=0,n=[],r={},i=[];function o(s){var a=r[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.hasOwnProperty(e)?r[e].onStack&&(a.lowlink=Math.min(a.lowlink,r[e].index)):(o(e),a.lowlink=Math.min(a.lowlink,r[e].lowlink))})),a.lowlink===a.index){var h,u=[];do{h=n.pop(),r[h].onStack=!1,u.push(h)}while(s!==h);i.push(u)}}return e.nodes().forEach((function(e){r.hasOwnProperty(e)||o(e)})),i}},1964:e=>{function t(e){var t={},r={},i=[];if(e.sinks().forEach((function o(s){if(r.hasOwnProperty(s))throw new n;t.hasOwnProperty(s)||(r[s]=!0,t[s]=!0,e.predecessors(s).forEach(o),delete r[s],i.push(s))})),Object.keys(t).length!==e.nodeCount())throw new n;return i}class n extends Error{constructor(){super(...arguments)}}e.exports=t,t.CycleException=n},1997:e=>{e.exports=class{#e=[];#t={};size(){return this.#e.length}keys(){return this.#e.map((function(e){return e.key}))}has(e){return this.#t.hasOwnProperty(e)}priority(e){var t=this.#t[e];if(void 0!==t)return this.#e[t].priority}min(){if(0===this.size())throw new Error("Queue underflow");return this.#e[0].key}add(e,t){var n=this.#t;if(e=String(e),!n.hasOwnProperty(e)){var r=this.#e,i=r.length;return n[e]=i,r.push({key:e,priority:t}),this.#n(i),!0}return!1}removeMin(){this.#r(0,this.#e.length-1);var e=this.#e.pop();return delete this.#t[e.key],this.#i(0),e.key}decrease(e,t){var n=this.#t[e];if(t>this.#e[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this.#e[n].priority+" New: "+t);this.#e[n].priority=t,this.#n(n)}#i(e){var t=this.#e,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this.#r(e,i),this.#i(i)))}#n(e){for(var t,n=this.#e,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this.#r(e,t),e=t}#r(e,t){var n=this.#e,r=this.#t,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}}},8114:e=>{"use strict";var t="\0",n="\0",r="";function i(e,t){e[t]?e[t]++:e[t]=1}function o(e,t){--e[t]||delete e[t]}function s(e,n,i,o){var s=""+n,a=""+i;if(!e&&s>a){var h=s;s=a,a=h}return s+r+a+r+(void 0===o?t:o)}function a(e,t){return s(e,t.v,t.w,t.name)}e.exports=class{#o=!0;#s=!1;#a=!1;#h;#u=()=>{};#c=()=>{};#d={};#l={};#f={};#p={};#g={};#v={};#y={};#_=0;#x=0;#w;#m;constructor(e){e&&(this.#o=!e.hasOwnProperty("directed")||e.directed,this.#s=!!e.hasOwnProperty("multigraph")&&e.multigraph,this.#a=!!e.hasOwnProperty("compound")&&e.compound),this.#a&&(this.#w={},this.#m={},this.#m[n]={})}isDirected(){return this.#o}isMultigraph(){return this.#s}isCompound(){return this.#a}setGraph(e){return this.#h=e,this}graph(){return this.#h}setDefaultNodeLabel(e){return this.#u=e,"function"!=typeof e&&(this.#u=()=>e),this}nodeCount(){return this.#_}nodes(){return Object.keys(this.#d)}sources(){var e=this;return this.nodes().filter((t=>0===Object.keys(e.#l[t]).length))}sinks(){var e=this;return this.nodes().filter((t=>0===Object.keys(e.#p[t]).length))}setNodes(e,t){var n=arguments,r=this;return e.forEach((function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this}setNode(e,t){return this.#d.hasOwnProperty(e)?(arguments.length>1&&(this.#d[e]=t),this):(this.#d[e]=arguments.length>1?t:this.#u(e),this.#a&&(this.#w[e]=n,this.#m[e]={},this.#m[n][e]=!0),this.#l[e]={},this.#f[e]={},this.#p[e]={},this.#g[e]={},++this.#_,this)}node(e){return this.#d[e]}hasNode(e){return this.#d.hasOwnProperty(e)}removeNode(e){var t=this;if(this.#d.hasOwnProperty(e)){var n=e=>t.removeEdge(t.#v[e]);delete this.#d[e],this.#a&&(this.#E(e),delete this.#w[e],this.children(e).forEach((function(e){t.setParent(e)})),delete this.#m[e]),Object.keys(this.#l[e]).forEach(n),delete this.#l[e],delete this.#f[e],Object.keys(this.#p[e]).forEach(n),delete this.#p[e],delete this.#g[e],--this.#_}return this}setParent(e,t){if(!this.#a)throw new Error("Cannot set parent in a non-compound graph");if(void 0===t)t=n;else{for(var r=t+="";void 0!==r;r=this.parent(r))if(r===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this.#E(e),this.#w[e]=t,this.#m[t][e]=!0,this}#E(e){delete this.#m[this.#w[e]][e]}parent(e){if(this.#a){var t=this.#w[e];if(t!==n)return t}}children(e=n){if(this.#a){var t=this.#m[e];if(t)return Object.keys(t)}else{if(e===n)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this.#f[e];if(t)return Object.keys(t)}successors(e){var t=this.#g[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){const r=new Set(t);for(var n of this.successors(e))r.add(n);return Array.from(r.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this.#o,multigraph:this.#s,compound:this.#a});t.setGraph(this.graph());var n=this;Object.entries(this.#d).forEach((function([n,r]){e(n)&&t.setNode(n,r)})),Object.values(this.#v).forEach((function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};function i(e){var o=n.parent(e);return void 0===o||t.hasNode(o)?(r[e]=o,o):o in r?r[o]:i(o)}return this.#a&&t.nodes().forEach((e=>t.setParent(e,i(e)))),t}setDefaultEdgeLabel(e){return this.#c=e,"function"!=typeof e&&(this.#c=()=>e),this}edgeCount(){return this.#x}edges(){return Object.values(this.#v)}setPath(e,t){var n=this,r=arguments;return e.reduce((function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i})),this}setEdge(){var e,t,n,r,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(r=arguments[1],o=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),e=""+e,t=""+t,void 0!==n&&(n=""+n);var h=s(this.#o,e,t,n);if(this.#y.hasOwnProperty(h))return o&&(this.#y[h]=r),this;if(void 0!==n&&!this.#s)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this.#y[h]=o?r:this.#c(e,t,n);var u=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}(this.#o,e,t,n);return e=u.v,t=u.w,Object.freeze(u),this.#v[h]=u,i(this.#f[t],e),i(this.#g[e],t),this.#l[t][h]=u,this.#p[e][h]=u,this.#x++,this}edge(e,t,n){var r=1===arguments.length?a(this.#o,arguments[0]):s(this.#o,e,t,n);return this.#y[r]}edgeAsObj(){const e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,n){var r=1===arguments.length?a(this.#o,arguments[0]):s(this.#o,e,t,n);return this.#y.hasOwnProperty(r)}removeEdge(e,t,n){var r=1===arguments.length?a(this.#o,arguments[0]):s(this.#o,e,t,n),i=this.#v[r];return i&&(e=i.v,t=i.w,delete this.#y[r],delete this.#v[r],o(this.#f[t],e),o(this.#g[e],t),delete this.#l[t][r],delete this.#p[e][r],this.#x--),this}inEdges(e,t){var n=this.#l[e];if(n){var r=Object.values(n);return t?r.filter((e=>e.v===t)):r}}outEdges(e,t){var n=this.#p[e];if(n){var r=Object.values(n);return t?r.filter((e=>e.w===t)):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}}},2314:(e,t,n)=>{e.exports={Graph:n(8114),version:n(1166)}},2258:(e,t,n)=>{var r=n(8114);function i(e){return e.nodes().map((function(t){var n=e.node(t),r=e.parent(t),i={v:t};return void 0!==n&&(i.value=n),void 0!==r&&(i.parent=r),i}))}function o(e){return e.edges().map((function(t){var n=e.edge(t),r={v:t.v,w:t.w};return void 0!==t.name&&(r.name=t.name),void 0!==n&&(r.value=n),r}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:i(e),edges:o(e)};return void 0!==e.graph()&&(t.value=structuredClone(e.graph())),t},read:function(e){var t=new r(e.options).setGraph(e.value);return e.nodes.forEach((function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),e.edges.forEach((function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},1166:e=>{e.exports="2.1.13"},4223:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:()=>r})},780:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(6330),i=n(3496),o=function(){var e=(0,r.A)((function*(e,t,n){return(yield i.http.post("api/gateway/cmdb.instance.CreateInstance/v2/object/".concat(e,"/instance"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}()},8406:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(6330),i=n(3496),o=function(){var e=(0,r.A)((function*(e,t,n){return(yield i.http.post("api/gateway/cmdb.instance.PostSearchV3/v3/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}()},6841:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(6330),i=n(3496),o=function(){var e=(0,r.A)((function*(e,t,n,r){return(yield i.http.put("api/gateway/cmdb.instance.UpdateInstanceV2/v2/object/".concat(e,"/instance/").concat(t),n,r)).data}));return function(t,n,r,i){return e.apply(this,arguments)}}()},7931:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(3968),i=n(1621),o=n(3993);function s(e){return e.x+e.vx}function a(e){return e.y+e.vy}function h(e){var t,n,h,u=1,c=1;function d(){for(var e,i,d,f,p,g,v,y=t.length,_=0;_<c;++_)for(i=(0,r.A)(t,s,a).visitAfter(l),e=0;e<y;++e)d=t[e],g=n[d.index],v=g*g,f=d.x+d.vx,p=d.y+d.vy,i.visit(x);function x(e,t,n,r,i){var s=e.data,a=e.r,c=g+a;if(!s)return t>f+c||r<f-c||n>p+c||i<p-c;if(s.index>d.index){var l=f-s.x-s.vx,y=p-s.y-s.vy,_=l*l+y*y;_<c*c&&(0===l&&(_+=(l=(0,o.A)(h))*l),0===y&&(_+=(y=(0,o.A)(h))*y),_=(c-(_=Math.sqrt(_)))/_*u,d.vx+=(l*=_)*(c=(a*=a)/(v+a)),d.vy+=(y*=_)*c,s.vx-=l*(c=1-c),s.vy-=y*c)}}}function l(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function f(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=(0,i.A)(null==e?1:+e)),d.initialize=function(e,n){t=e,h=n,f()},d.iterations=function(e){return arguments.length?(c=+e,d):c},d.strength=function(e){return arguments.length?(u=+e,d):u},d.radius=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.A)(+t),f(),d):e},d}},1621:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},3993:(e,t,n)=>{"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{A:()=>r})},6149:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1621),i=n(3993);function o(e){return e.index}function s(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function a(e){var t,n,a,h,u,c,d=o,l=function(e){return 1/Math.min(h[e.source.index],h[e.target.index])},f=(0,r.A)(30),p=1;function g(r){for(var o=0,s=e.length;o<p;++o)for(var a,h,d,l,f,g,v,y=0;y<s;++y)h=(a=e[y]).source,l=(d=a.target).x+d.vx-h.x-h.vx||(0,i.A)(c),f=d.y+d.vy-h.y-h.vy||(0,i.A)(c),l*=g=((g=Math.sqrt(l*l+f*f))-n[y])/g*r*t[y],f*=g,d.vx-=l*(v=u[y]),d.vy-=f*v,h.vx+=l*(v=1-v),h.vy+=f*v}function v(){if(a){var r,i,o=a.length,c=e.length,l=new Map(a.map(((e,t)=>[d(e,t,a),e])));for(r=0,h=new Array(o);r<c;++r)(i=e[r]).index=r,"object"!=typeof i.source&&(i.source=s(l,i.source)),"object"!=typeof i.target&&(i.target=s(l,i.target)),h[i.source.index]=(h[i.source.index]||0)+1,h[i.target.index]=(h[i.target.index]||0)+1;for(r=0,u=new Array(c);r<c;++r)i=e[r],u[r]=h[i.source.index]/(h[i.source.index]+h[i.target.index]);t=new Array(c),y(),n=new Array(c),_()}}function y(){if(a)for(var n=0,r=e.length;n<r;++n)t[n]=+l(e[n],n,e)}function _(){if(a)for(var t=0,r=e.length;t<r;++t)n[t]=+f(e[t],t,e)}return null==e&&(e=[]),g.initialize=function(e,t){a=e,c=t,v()},g.links=function(t){return arguments.length?(e=t,v(),g):e},g.id=function(e){return arguments.length?(d=e,g):d},g.iterations=function(e){return arguments.length?(p=+e,g):p},g.strength=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.A)(+e),y(),g):l},g.distance=function(e){return arguments.length?(f="function"==typeof e?e:(0,r.A)(+e),_(),g):f},g}},3854:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3968),i=n(1621),o=n(3993),s=n(4842);function a(){var e,t,n,a,h,u=(0,i.A)(-30),c=1,d=1/0,l=.81;function f(n){var i,o=e.length,h=(0,r.A)(e,s.x,s.y).visitAfter(g);for(a=n,i=0;i<o;++i)t=e[i],h.visit(v)}function p(){if(e){var t,n,r=e.length;for(h=new Array(r),t=0;t<r;++t)n=e[t],h[n.index]=+u(n,t,e)}}function g(e){var t,n,r,i,o,s=0,a=0;if(e.length){for(r=i=o=0;o<4;++o)(t=e[o])&&(n=Math.abs(t.value))&&(s+=t.value,a+=n,r+=n*t.x,i+=n*t.y);e.x=r/a,e.y=i/a}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=h[t.data.index]}while(t=t.next)}e.value=s}function v(e,r,i,s){if(!e.value)return!0;var u=e.x-t.x,f=e.y-t.y,p=s-r,g=u*u+f*f;if(p*p/l<g)return g<d&&(0===u&&(g+=(u=(0,o.A)(n))*u),0===f&&(g+=(f=(0,o.A)(n))*f),g<c&&(g=Math.sqrt(c*g)),t.vx+=u*e.value*a/g,t.vy+=f*e.value*a/g),!0;if(!(e.length||g>=d)){(e.data!==t||e.next)&&(0===u&&(g+=(u=(0,o.A)(n))*u),0===f&&(g+=(f=(0,o.A)(n))*f),g<c&&(g=Math.sqrt(c*g)));do{e.data!==t&&(p=h[e.data.index]*a/g,t.vx+=u*p,t.vy+=f*p)}while(e=e.next)}}return f.initialize=function(t,r){e=t,n=r,p()},f.strength=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.A)(+e),p(),f):u},f.distanceMin=function(e){return arguments.length?(c=e*e,f):Math.sqrt(c)},f.distanceMax=function(e){return arguments.length?(d=e*e,f):Math.sqrt(d)},f.theta=function(e){return arguments.length?(l=e*e,f):Math.sqrt(l)},f}},4842:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,x:()=>h,y:()=>u});var r=n(6514),i=n(4234);const o=1664525,s=1013904223,a=4294967296;function h(e){return e.x}function u(e){return e.y}var c=10,d=Math.PI*(3-Math.sqrt(5));function l(e){var t,n=1,h=.001,u=1-Math.pow(h,1/300),l=0,f=.6,p=new Map,g=(0,i.O1)(_),v=(0,r.A)("tick","end"),y=function(){let e=1;return()=>(e=(o*e+s)%a)/a}();function _(){x(),v.call("tick",t),n<h&&(g.stop(),v.call("end",t))}function x(r){var i,o,s=e.length;void 0===r&&(r=1);for(var a=0;a<r;++a)for(n+=(l-n)*u,p.forEach((function(e){e(n)})),i=0;i<s;++i)null==(o=e[i]).fx?o.x+=o.vx*=f:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=f:(o.y=o.fy,o.vy=0);return t}function w(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=c*Math.sqrt(.5+n),o=n*d;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function m(t){return t.initialize&&t.initialize(e,y),t}return null==e&&(e=[]),w(),t={tick:x,restart:function(){return g.restart(_),t},stop:function(){return g.stop(),t},nodes:function(n){return arguments.length?(e=n,w(),p.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(h=+e,t):h},alphaDecay:function(e){return arguments.length?(u=+e,t):+u},alphaTarget:function(e){return arguments.length?(l=+e,t):l},velocityDecay:function(e){return arguments.length?(f=1-e,t):1-f},randomSource:function(e){return arguments.length?(y=e,p.forEach(m),t):y},force:function(e,n){return arguments.length>1?(null==n?p.delete(e):p.set(e,m(n)),t):p.get(e)},find:function(t,n,r){var i,o,s,a,h,u=0,c=e.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)(s=(i=t-(a=e[u]).x)*i+(o=n-a.y)*o)<r&&(h=a,r=s);return h},on:function(e,n){return arguments.length>1?(v.on(e,n),t):v.on(e)}}}},1945:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1621);function i(e){var t,n,i,o=(0,r.A)(.1);function s(e){for(var r,o=0,s=t.length;o<s;++o)(r=t[o]).vx+=(i[o]-r.x)*n[o]*e}function a(){if(t){var r,s=t.length;for(n=new Array(s),i=new Array(s),r=0;r<s;++r)n[r]=isNaN(i[r]=+e(t[r],r,t))?0:+o(t[r],r,t)}}return"function"!=typeof e&&(e=(0,r.A)(null==e?0:+e)),s.initialize=function(e){t=e,a()},s.strength=function(e){return arguments.length?(o="function"==typeof e?e:(0,r.A)(+e),a(),s):o},s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),a(),s):e},s}},9418:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1621);function i(e){var t,n,i,o=(0,r.A)(.1);function s(e){for(var r,o=0,s=t.length;o<s;++o)(r=t[o]).vy+=(i[o]-r.y)*n[o]*e}function a(){if(t){var r,s=t.length;for(n=new Array(s),i=new Array(s),r=0;r<s;++r)n[r]=isNaN(i[r]=+e(t[r],r,t))?0:+o(t[r],r,t)}}return"function"!=typeof e&&(e=(0,r.A)(null==e?0:+e)),s.initialize=function(e){t=e,a()},s.strength=function(e){return arguments.length?(o="function"==typeof e?e:(0,r.A)(+e),a(),s):o},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),a(),s):e},s}},3968:(e,t,n)=>{"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,s,a,h,u,c,d,l,f=e._root,p={data:r},g=e._x0,v=e._y0,y=e._x1,_=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((u=t>=(o=(g+y)/2))?g=o:y=o,(c=n>=(s=(v+_)/2))?v=s:_=s,i=f,!(f=f[d=c<<1|u]))return i[d]=p,e;if(a=+e._x.call(null,f.data),h=+e._y.call(null,f.data),t===a&&n===h)return p.next=f,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(u=t>=(o=(g+y)/2))?g=o:y=o,(c=n>=(s=(v+_)/2))?v=s:_=s}while((d=c<<1|u)==(l=(h>=s)<<1|a>=o));return i[l]=f,i[d]=p,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function o(e){return e[0]}function s(e){return e[1]}function a(e,t,n){var r=new h(null==t?o:t,null==n?s:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function h(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function u(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{A:()=>a});var c=a.prototype=h.prototype;c.copy=function(){var e,t,n=new h(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=u(t));return n},c.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},c.addAll=function(e){var t,n,i,o,s=e.length,a=new Array(s),h=new Array(s),u=1/0,c=1/0,d=-1/0,l=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(a[n]=i,h[n]=o,i<u&&(u=i),i>d&&(d=i),o<c&&(c=o),o>l&&(l=o));if(u>d||c>l)return this;for(this.cover(u,c).cover(d,l),n=0;n<s;++n)r(this,a[n],h[n],e[n]);return this},c.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s,a,h=i-n||1,u=this._root;n>e||e>=i||r>t||t>=o;)switch(a=(t<r)<<1|e<n,(s=new Array(4))[a]=u,u=s,h*=2,a){case 0:i=n+h,o=r+h;break;case 1:n=i-h,o=r+h;break;case 2:i=n+h,r=o-h;break;case 3:n=i-h,r=o-h}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},c.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},c.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},c.find=function(e,t,n){var r,o,s,a,h,u,c,d=this._x0,l=this._y0,f=this._x1,p=this._y1,g=[],v=this._root;for(v&&g.push(new i(v,d,l,f,p)),null==n?n=1/0:(d=e-n,l=t-n,f=e+n,p=t+n,n*=n);u=g.pop();)if(!(!(v=u.node)||(o=u.x0)>f||(s=u.y0)>p||(a=u.x1)<d||(h=u.y1)<l))if(v.length){var y=(o+a)/2,_=(s+h)/2;g.push(new i(v[3],y,_,a,h),new i(v[2],o,_,y,h),new i(v[1],y,s,a,_),new i(v[0],o,s,y,_)),(c=(t>=_)<<1|e>=y)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var x=e-+this._x.call(null,v.data),w=t-+this._y.call(null,v.data),m=x*x+w*w;if(m<n){var E=Math.sqrt(n=m);d=e-E,l=t-E,f=e+E,p=t+E,r=v.data}}return r},c.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,r,i,o,s,a,h,u,c,d,l,f=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!f)return this;if(f.length)for(;;){if((u=o>=(a=(p+v)/2))?p=a:v=a,(c=s>=(h=(g+y)/2))?g=h:y=h,t=f,!(f=f[d=c<<1|u]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,l=d)}for(;f.data!==e;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[l]=f:this._root=f),this):(this._root=i,this)},c.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},c.root=function(){return this._root},c.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},c.visit=function(e){var t,n,r,o,s,a,h=[],u=this._root;for(u&&h.push(new i(u,this._x0,this._y0,this._x1,this._y1));t=h.pop();)if(!e(u=t.node,r=t.x0,o=t.y0,s=t.x1,a=t.y1)&&u.length){var c=(r+s)/2,d=(o+a)/2;(n=u[3])&&h.push(new i(n,c,d,s,a)),(n=u[2])&&h.push(new i(n,r,d,c,a)),(n=u[1])&&h.push(new i(n,c,o,s,d)),(n=u[0])&&h.push(new i(n,r,o,c,d))}return this},c.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var s,a=t.x0,h=t.y0,u=t.x1,c=t.y1,d=(a+u)/2,l=(h+c)/2;(s=o[0])&&n.push(new i(s,a,h,d,l)),(s=o[1])&&n.push(new i(s,d,h,u,l)),(s=o[2])&&n.push(new i(s,a,l,d,c)),(s=o[3])&&n.push(new i(s,d,l,u,c))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},c.x=function(e){return arguments.length?(this._x=e,this):this._x},c.y=function(e){return arguments.length?(this._y=e,this):this._y}},4993:(e,t,n)=>{"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i(e){this._context=e}function o(e){return new i(e)}n.d(t,{Ay:()=>o}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},4643:(e,t,n)=>{"use strict";n.d(t,{dJ:()=>i,kl:()=>o});class r{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function i(e){return new r(e,!0)}function o(e){return new r(e,!1)}},482:(e,t,n)=>{"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{A:()=>i}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},3488:(e,t,n)=>{"use strict";function r(e){return e<0?-1:1}function i(e,t,n){var i=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(i||o<0&&-0),a=(n-e._y1)/(o||i<0&&-0),h=(s*o+a*i)/(i+o);return(r(s)+r(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(h))||0}function o(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function s(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function a(e){this._context=e}function h(e){this._context=new u(e)}function u(e){this._context=e}function c(e){return new a(e)}function d(e){return new h(e)}n.d(t,{G:()=>c,N:()=>d}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:s(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,s(this,o(this,n=i(this,e,t)),n);break;default:s(this,this._t0,n=i(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(h.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},u.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},6066:(e,t,n)=>{"use strict";function r(e){this._context=e}function i(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function o(e){return new r(e)}n.d(t,{A:()=>o}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=i(e),o=i(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],o[0][s],r[1][s],o[1][s],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},3269:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>f}),Array.prototype.slice;var i=n(482);const o=Math.PI,s=2*o,a=1e-6,h=s-a;function u(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class c{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?u:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return u;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let s=this._x1,h=this._y1,u=n-e,c=r-t,d=s-e,l=h-t,f=d*d+l*l;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>a)if(Math.abs(l*u-c*d)>a&&i){let p=n-s,g=r-h,v=u*u+c*c,y=p*p+g*g,_=Math.sqrt(v),x=Math.sqrt(f),w=i*Math.tan((o-Math.acos((v+f-y)/(2*_*x)))/2),m=w/x,E=w/_;Math.abs(m-1)>a&&this._append`L${e+m*d},${t+m*l}`,this._append`A${i},${i},0,0,${+(l*p>d*g)},${this._x1=e+E*u},${this._y1=t+E*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,u){if(e=+e,t=+t,u=!!u,(n=+n)<0)throw new Error(`negative radius: ${n}`);let c=n*Math.cos(r),d=n*Math.sin(r),l=e+c,f=t+d,p=1^u,g=u?r-i:i-r;null===this._x1?this._append`M${l},${f}`:(Math.abs(this._x1-l)>a||Math.abs(this._y1-f)>a)&&this._append`L${l},${f}`,n&&(g<0&&(g=g%s+s),g>h?this._append`A${n},${n},0,1,${p},${e-c},${t-d}A${n},${n},0,1,${p},${this._x1=l},${this._y1=f}`:g>a&&this._append`A${n},${n},0,${+(g>=o)},${p},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function d(e){return e[0]}function l(e){return e[1]}function f(e,t){var n=r(!0),o=null,s=i.A,a=null,h=function(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new c(t)}(u);function u(r){var i,u,c,d=(r=function(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(r)).length,l=!1;for(null==o&&(a=s(c=h())),i=0;i<=d;++i)!(i<d&&n(u=r[i],i,r))===l&&((l=!l)?a.lineStart():a.lineEnd()),l&&a.point(+e(u,i,r),+t(u,i,r));if(c)return a=null,c+""||null}return e="function"==typeof e?e:void 0===e?d:r(e),t="function"==typeof t?t:void 0===t?l:r(t),u.x=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),u):t},u.defined=function(e){return arguments.length?(n="function"==typeof e?e:r(!!e),u):n},u.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),u):s},u.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),u):o},u}c.prototype}}]);
3
+ //# sourceMappingURL=3510.70429aeb.js.map