@performant-software/geospatial 2.2.3-beta.103 → 2.2.3-beta.104

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 (188) hide show
  1. package/dist/index.cjs12.js +1 -1
  2. package/dist/index.cjs17.js +1 -1
  3. package/dist/index.cjs178.js +1 -1
  4. package/dist/index.cjs178.js.map +1 -1
  5. package/dist/index.cjs179.js +1 -1
  6. package/dist/index.cjs179.js.map +1 -1
  7. package/dist/index.cjs18.js +1 -1
  8. package/dist/index.cjs180.js +1 -4
  9. package/dist/index.cjs180.js.map +1 -1
  10. package/dist/index.cjs181.js +1 -1
  11. package/dist/index.cjs181.js.map +1 -1
  12. package/dist/index.cjs182.js +1 -1
  13. package/dist/index.cjs182.js.map +1 -1
  14. package/dist/index.cjs183.js +1 -1
  15. package/dist/index.cjs183.js.map +1 -1
  16. package/dist/index.cjs184.js +1 -1
  17. package/dist/index.cjs184.js.map +1 -1
  18. package/dist/index.cjs185.js +1 -1
  19. package/dist/index.cjs185.js.map +1 -1
  20. package/dist/index.cjs186.js +1 -1
  21. package/dist/index.cjs186.js.map +1 -1
  22. package/dist/index.cjs187.js +1 -1
  23. package/dist/index.cjs187.js.map +1 -1
  24. package/dist/index.cjs188.js +4 -1
  25. package/dist/index.cjs188.js.map +1 -1
  26. package/dist/index.cjs189.js +1 -1
  27. package/dist/index.cjs189.js.map +1 -1
  28. package/dist/index.cjs19.js +1 -1
  29. package/dist/index.cjs190.js +1 -1
  30. package/dist/index.cjs190.js.map +1 -1
  31. package/dist/index.cjs191.js +1 -1
  32. package/dist/index.cjs191.js.map +1 -1
  33. package/dist/index.cjs192.js +1 -1
  34. package/dist/index.cjs192.js.map +1 -1
  35. package/dist/index.cjs193.js +1 -1
  36. package/dist/index.cjs193.js.map +1 -1
  37. package/dist/index.cjs194.js +1 -1
  38. package/dist/index.cjs194.js.map +1 -1
  39. package/dist/index.cjs195.js +1 -1
  40. package/dist/index.cjs195.js.map +1 -1
  41. package/dist/index.cjs196.js +1 -1
  42. package/dist/index.cjs196.js.map +1 -1
  43. package/dist/index.cjs197.js +1 -1
  44. package/dist/index.cjs197.js.map +1 -1
  45. package/dist/index.cjs198.js +1 -1
  46. package/dist/index.cjs198.js.map +1 -1
  47. package/dist/index.cjs199.js +1 -1
  48. package/dist/index.cjs199.js.map +1 -1
  49. package/dist/index.cjs200.js +1 -1
  50. package/dist/index.cjs200.js.map +1 -1
  51. package/dist/index.cjs203.js +1 -1
  52. package/dist/index.cjs204.js +1 -1
  53. package/dist/index.cjs205.js +1 -1
  54. package/dist/index.cjs223.js +1 -1
  55. package/dist/index.cjs228.js +1 -1
  56. package/dist/index.cjs23.js +1 -1
  57. package/dist/index.cjs230.js +1 -1
  58. package/dist/index.cjs230.js.map +1 -1
  59. package/dist/index.cjs231.js +1 -1
  60. package/dist/index.cjs231.js.map +1 -1
  61. package/dist/index.cjs232.js +1 -1
  62. package/dist/index.cjs232.js.map +1 -1
  63. package/dist/index.cjs234.js +1 -1
  64. package/dist/index.cjs237.js +1 -1
  65. package/dist/index.cjs240.js +1 -1
  66. package/dist/index.cjs243.js +1 -1
  67. package/dist/index.cjs245.js +1 -1
  68. package/dist/index.cjs248.js +1 -1
  69. package/dist/index.cjs249.js +1 -1
  70. package/dist/index.cjs252.js +1 -1
  71. package/dist/index.cjs252.js.map +1 -1
  72. package/dist/index.cjs253.js +1 -1
  73. package/dist/index.cjs253.js.map +1 -1
  74. package/dist/index.cjs254.js +1 -1
  75. package/dist/index.cjs51.js +1 -1
  76. package/dist/index.cjs53.js +1 -1
  77. package/dist/index.cjs59.js +1 -1
  78. package/dist/index.cjs59.js.map +1 -1
  79. package/dist/index.cjs60.js +1 -1
  80. package/dist/index.cjs60.js.map +1 -1
  81. package/dist/index.cjs61.js +1 -1
  82. package/dist/index.cjs61.js.map +1 -1
  83. package/dist/index.cjs64.js +1 -1
  84. package/dist/index.cjs65.js +1 -1
  85. package/dist/index.cjs66.js +1 -1
  86. package/dist/index.cjs67.js +1 -1
  87. package/dist/index.cjs68.js +1 -1
  88. package/dist/index.cjs69.js +1 -1
  89. package/dist/index.cjs70.js +1 -1
  90. package/dist/index.cjs71.js +1 -1
  91. package/dist/index.cjs72.js +1 -1
  92. package/dist/index.cjs73.js +1 -1
  93. package/dist/index.cjs74.js +1 -1
  94. package/dist/index.es12.js +1 -1
  95. package/dist/index.es17.js +1 -1
  96. package/dist/index.es178.js +320 -7
  97. package/dist/index.es178.js.map +1 -1
  98. package/dist/index.es179.js +71 -144
  99. package/dist/index.es179.js.map +1 -1
  100. package/dist/index.es18.js +2 -2
  101. package/dist/index.es180.js +3 -12197
  102. package/dist/index.es180.js.map +1 -1
  103. package/dist/index.es181.js +18 -3
  104. package/dist/index.es181.js.map +1 -1
  105. package/dist/index.es182.js +13 -3
  106. package/dist/index.es182.js.map +1 -1
  107. package/dist/index.es183.js +28 -33
  108. package/dist/index.es183.js.map +1 -1
  109. package/dist/index.es184.js +7 -3
  110. package/dist/index.es184.js.map +1 -1
  111. package/dist/index.es185.js +2 -23
  112. package/dist/index.es185.js.map +1 -1
  113. package/dist/index.es186.js +10 -2
  114. package/dist/index.es186.js.map +1 -1
  115. package/dist/index.es187.js +150 -3
  116. package/dist/index.es187.js.map +1 -1
  117. package/dist/index.es188.js +12199 -2
  118. package/dist/index.es188.js.map +1 -1
  119. package/dist/index.es189.js +3 -34
  120. package/dist/index.es189.js.map +1 -1
  121. package/dist/index.es19.js +2 -2
  122. package/dist/index.es190.js +2 -14
  123. package/dist/index.es190.js.map +1 -1
  124. package/dist/index.es191.js +35 -13
  125. package/dist/index.es191.js.map +1 -1
  126. package/dist/index.es192.js +3 -11
  127. package/dist/index.es192.js.map +1 -1
  128. package/dist/index.es193.js +21 -319
  129. package/dist/index.es193.js.map +1 -1
  130. package/dist/index.es194.js +2 -77
  131. package/dist/index.es194.js.map +1 -1
  132. package/dist/index.es195.js +3 -5
  133. package/dist/index.es195.js.map +1 -1
  134. package/dist/index.es196.js +2 -18
  135. package/dist/index.es196.js.map +1 -1
  136. package/dist/index.es197.js +31 -10
  137. package/dist/index.es197.js.map +1 -1
  138. package/dist/index.es198.js +13 -31
  139. package/dist/index.es198.js.map +1 -1
  140. package/dist/index.es199.js +13 -4
  141. package/dist/index.es199.js.map +1 -1
  142. package/dist/index.es200.js +9 -2
  143. package/dist/index.es200.js.map +1 -1
  144. package/dist/index.es203.js +1 -1
  145. package/dist/index.es204.js +1 -1
  146. package/dist/index.es205.js +1 -1
  147. package/dist/index.es223.js +1 -1
  148. package/dist/index.es228.js +1 -1
  149. package/dist/index.es23.js +1 -1
  150. package/dist/index.es230.js +8 -3
  151. package/dist/index.es230.js.map +1 -1
  152. package/dist/index.es231.js +3 -6
  153. package/dist/index.es231.js.map +1 -1
  154. package/dist/index.es232.js +4 -6
  155. package/dist/index.es232.js.map +1 -1
  156. package/dist/index.es234.js +1 -1
  157. package/dist/index.es237.js +1 -1
  158. package/dist/index.es240.js +1 -1
  159. package/dist/index.es243.js +2 -2
  160. package/dist/index.es245.js +1 -1
  161. package/dist/index.es248.js +1 -1
  162. package/dist/index.es249.js +1 -1
  163. package/dist/index.es252.js +4 -15
  164. package/dist/index.es252.js.map +1 -1
  165. package/dist/index.es253.js +15 -4
  166. package/dist/index.es253.js.map +1 -1
  167. package/dist/index.es254.js +2 -2
  168. package/dist/index.es51.js +1 -1
  169. package/dist/index.es53.js +12 -12
  170. package/dist/index.es58.js +2 -2
  171. package/dist/index.es59.js +107 -2
  172. package/dist/index.es59.js.map +1 -1
  173. package/dist/index.es60.js +10 -107
  174. package/dist/index.es60.js.map +1 -1
  175. package/dist/index.es61.js +2 -10
  176. package/dist/index.es61.js.map +1 -1
  177. package/dist/index.es64.js +1 -1
  178. package/dist/index.es65.js +4 -4
  179. package/dist/index.es66.js +2 -2
  180. package/dist/index.es67.js +2 -2
  181. package/dist/index.es68.js +1 -1
  182. package/dist/index.es69.js +1 -1
  183. package/dist/index.es70.js +1 -1
  184. package/dist/index.es71.js +1 -1
  185. package/dist/index.es72.js +1 -1
  186. package/dist/index.es73.js +2 -2
  187. package/dist/index.es74.js +2 -2
  188. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs236.js");function n(t,e){return s.abs(t[0]-e[0])<s.epsilon&&s.abs(t[1]-e[1])<s.epsilon}module.exports=n;
1
+ "use strict";const r=require("./index.cjs251.js");var t=1/0,e=t,i=-t,u=i,f={point:s,lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var n=[[t,e],[i,u]];return i=u=-(e=t=1/0),n}};function s(n,o){n<t&&(t=n),n>i&&(i=n),o<e&&(e=o),o>u&&(u=o)}module.exports=f;
2
2
  //# sourceMappingURL=index.cjs253.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs253.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":"kDAEA,SAAAA,EAAwBC,EAAGC,EAAG,CAC5B,OAAOC,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,SAAWD,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,SAC1D","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs253.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":"kDAEA,IAAIA,EAAK,IACLC,EAAKD,EACLE,EAAK,CAACF,EACNG,EAAKD,EAELE,EAAe,CACjB,MAAOC,EACP,UAAWC,EACX,QAASA,EACT,aAAcA,EACd,WAAYA,EACZ,OAAQ,UAAW,CACb,IAAAC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAC3B,OAAAD,EAAAC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,GACbC,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,EACnB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs238.js"),z=require("./index.cjs240.js"),g=require("./index.cjs236.js"),A=require("./index.cjs185.js");require("./index.cjs184.js");const D=require("./index.cjs241.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
1
+ "use strict";const w=require("./index.cjs238.js"),z=require("./index.cjs240.js"),g=require("./index.cjs236.js"),A=require("./index.cjs193.js");require("./index.cjs192.js");const D=require("./index.cjs241.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
2
2
  //# sourceMappingURL=index.cjs254.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs179.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
1
+ "use strict";const e=require("./index.cjs187.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
2
2
  //# sourceMappingURL=index.cjs51.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const x=require("./index.cjs178.js"),v=require("./index.cjs180.js"),p=require("./index.cjs179.js");require("./index.cjs181.js");require("./index.cjs182.js");require("./index.cjs183.js");require("./index.cjs184.js");require("./index.cjs185.js");require("./index.cjs186.js");require("./index.cjs187.js");require("./index.cjs188.js");require("./index.cjs189.js");require("./index.cjs190.js");const G=require("./index.cjs191.js");require("./index.cjs192.js");const a=require("./index.cjs50.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
1
+ "use strict";const x=require("./index.cjs186.js"),v=require("./index.cjs188.js"),p=require("./index.cjs187.js");require("./index.cjs189.js");require("./index.cjs190.js");require("./index.cjs191.js");require("./index.cjs192.js");require("./index.cjs193.js");require("./index.cjs194.js");require("./index.cjs195.js");require("./index.cjs196.js");require("./index.cjs197.js");require("./index.cjs198.js");const G=require("./index.cjs199.js");require("./index.cjs200.js");const a=require("./index.cjs50.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
2
2
  //# sourceMappingURL=index.cjs53.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs60.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
2
2
  //# sourceMappingURL=index.cjs59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs59.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs59.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs61.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
2
2
  //# sourceMappingURL=index.cjs60.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs60.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,GAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAI,CAAG,OAAOF,CAAS,CAC5e,SAASC,EAA8BH,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAE,EAAE,IAAIE,EAAS,CAAE,EAAMI,EAAa,OAAO,KAAKN,CAAM,EAAOI,EAAKG,EAAG,IAAKA,EAAI,EAAGA,EAAID,EAAW,OAAQC,IAAOH,EAAME,EAAWC,CAAC,EAAO,EAAAN,EAAS,QAAQG,CAAG,GAAK,KAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,GAAK,OAAOF,CAAS,CACnT,SAASM,GAAW,CAAE,OAAAA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAM,EAAG,SAAUN,EAAQ,CAAE,QAASK,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAAE,IAAIP,EAAS,UAAUO,CAAC,EAAG,QAASH,KAAOJ,EAAc,OAAO,UAAU,eAAe,KAAKA,EAAQI,CAAG,IAAKF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,GAAS,OAAOF,CAAS,EAASM,EAAS,MAAM,KAAM,SAAS,CAAI,CACnV,SAASC,EAAQ,EAAGC,EAAG,CAAE,IAAIC,EAAI,OAAO,KAAK,CAAC,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAI,OAAO,sBAAsB,CAAC,EAAGF,IAAME,EAAIA,EAAE,OAAO,SAAUF,EAAG,CAAE,OAAO,OAAO,yBAAyB,EAAGA,CAAC,EAAE,UAAW,CAAE,GAAIC,EAAE,KAAK,MAAMA,EAAGC,CAAC,CAAE,CAAG,OAAOD,CAAI,CAC/P,SAASE,EAAc,EAAG,CAAE,QAASH,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAAE,IAAIC,EAAY,UAAUD,CAAC,GAAnB,KAAuB,UAAUA,CAAC,EAAI,CAAE,EAAEA,EAAI,EAAID,EAAQ,OAAOE,CAAC,EAAG,EAAE,EAAE,QAAQ,SAAUD,EAAG,CAAEI,EAAgB,EAAGJ,EAAGC,EAAED,CAAC,CAAC,CAAI,CAAA,EAAI,OAAO,0BAA4B,OAAO,iBAAiB,EAAG,OAAO,0BAA0BC,CAAC,CAAC,EAAIF,EAAQ,OAAOE,CAAC,CAAC,EAAE,QAAQ,SAAUD,EAAG,CAAE,OAAO,eAAe,EAAGA,EAAG,OAAO,yBAAyBC,EAAGD,CAAC,CAAC,CAAE,CAAE,CAAI,CAAC,OAAO,CAAI,CACvb,SAASI,EAAgBC,EAAKX,EAAKY,EAAO,CAAE,OAAAZ,EAAMa,EAAeb,CAAG,EAAOA,KAAOW,EAAO,OAAO,eAAeA,EAAKX,EAAK,CAAE,MAAOY,EAAO,WAAY,GAAM,aAAc,GAAM,SAAU,EAAM,CAAA,EAAYD,EAAIX,CAAG,EAAIY,EAAgBD,CAAM,CAC5O,SAASE,EAAeC,EAAK,CAAE,IAAId,EAAMe,EAAaD,EAAK,QAAQ,EAAG,OAAO,OAAOd,GAAQ,SAAWA,EAAM,OAAOA,CAAG,CAAI,CAC3H,SAASe,EAAaC,EAAOC,EAAM,CAAE,GAAI,OAAOD,GAAU,UAAYA,IAAU,KAAM,OAAOA,EAAO,IAAIE,EAAOF,EAAM,OAAO,WAAW,EAAG,GAAIE,IAAS,OAAW,CAAE,IAAIC,EAAMD,EAAK,KAAKF,EAAOC,GAAQ,SAAS,EAAG,GAAI,OAAOE,GAAQ,SAAU,OAAOA,EAAK,MAAM,IAAI,UAAU,8CAA8C,CAAI,CAAC,OAAQF,IAAS,SAAW,OAAS,QAAQD,CAAK,CAAI,CAGzX,SAASI,EAAaC,EAAM,CAC1B,OAAOA,GAAQA,EAAK,IAAI,CAACC,EAAMnB,IAAmBoB,EAAM,cAAcD,EAAK,IAAKb,EAAc,CAC5F,IAAKN,CACT,EAAKmB,EAAK,IAAI,EAAGF,EAAaE,EAAK,KAAK,CAAC,CAAC,CAC1C,CACO,SAASE,EAAQC,EAAM,CAE5B,OAAOC,GAAsBH,EAAM,cAAcI,EAAUvB,EAAS,CAClE,KAAMK,EAAc,GAAIgB,EAAK,IAAI,CAClC,EAAEC,CAAK,EAAGN,EAAaK,EAAK,KAAK,CAAC,CACrC,CACO,SAASE,EAASD,EAAO,CAC9B,IAAIE,EAAOC,GAAQ,CACjB,GAAI,CACA,KAAAC,EACA,KAAAC,EACA,MAAAC,CACR,EAAUN,EACJO,EAAWtC,EAAyB+B,EAAOhC,CAAS,EAClDwC,EAAeH,GAAQF,EAAK,MAAQ,MACpCM,EACJ,OAAIN,EAAK,YAAWM,EAAYN,EAAK,WACjCH,EAAM,YAAWS,GAAaA,EAAYA,EAAY,IAAM,IAAMT,EAAM,WACxDH,EAAM,cAAc,MAAOnB,EAAS,CACtD,OAAQ,eACR,KAAM,eACN,YAAa,GACd,EAAEyB,EAAK,KAAMC,EAAMG,EAAU,CAC5B,UAAWE,EACX,MAAO1B,EAAcA,EAAc,CACjC,MAAOiB,EAAM,OAASG,EAAK,KAC5B,EAAEA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACvF,EACE,OAAOU,EAAW,cAAK,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs60.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
2
2
  //# sourceMappingURL=index.cjs61.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs61.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs61.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs200.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs185.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
2
2
  //# sourceMappingURL=index.cjs64.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs75.js"),m=require("./index.cjs193.js"),y=require("./index.cjs194.js"),E=require("./index.cjs195.js"),x=require("./index.cjs196.js");function w(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(u,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return u.default=e,Object.freeze(u)}const c=w(a),M=c.createContext(null);function L(e,u,i){const t=a.useContext(g.MountedMapsContext),[s,b]=a.useState(null),f=a.useRef(),{current:l}=a.useRef({mapLib:null,map:null});a.useEffect(()=>{const h=e.mapLib;let d=!0,r;return Promise.resolve(h||i).then(o=>{if(!d)return;if(!o)throw new Error("Invalid mapLib");const n="Map"in o?o:o.default;if(!n.Map)throw new Error("Invalid mapLib");if(x(n,e),!n.supported||n.supported(e))e.reuseMaps&&(r=m.reuse(e,f.current)),r||(r=new m(n.Map,e,f.current)),l.map=y(r),l.mapLib=n,b(r),t==null||t.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(o=>{const{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:o}):console.error(o)}),()=>{d=!1,r&&(t==null||t.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}},[]),E(()=>{s&&s.setProps(e)}),a.useImperativeHandle(u,()=>l.map,[s]);const p=a.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),v={height:"100%"};return c.createElement("div",{id:e.id,ref:f,style:p},s&&c.createElement(M.Provider,{value:l},c.createElement("div",{"mapboxgl-children":"",style:v},e.children)))}exports.MapContext=M;exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs75.js"),m=require("./index.cjs178.js"),y=require("./index.cjs179.js"),E=require("./index.cjs180.js"),x=require("./index.cjs181.js");function w(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(u,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return u.default=e,Object.freeze(u)}const c=w(a),M=c.createContext(null);function L(e,u,i){const t=a.useContext(g.MountedMapsContext),[s,b]=a.useState(null),f=a.useRef(),{current:l}=a.useRef({mapLib:null,map:null});a.useEffect(()=>{const h=e.mapLib;let d=!0,r;return Promise.resolve(h||i).then(o=>{if(!d)return;if(!o)throw new Error("Invalid mapLib");const n="Map"in o?o:o.default;if(!n.Map)throw new Error("Invalid mapLib");if(x(n,e),!n.supported||n.supported(e))e.reuseMaps&&(r=m.reuse(e,f.current)),r||(r=new m(n.Map,e,f.current)),l.map=y(r),l.mapLib=n,b(r),t==null||t.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(o=>{const{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:o}):console.error(o)}),()=>{d=!1,r&&(t==null||t.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}},[]),E(()=>{s&&s.setProps(e)}),a.useImperativeHandle(u,()=>l.map,[s]);const p=a.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),v={height:"100%"};return c.createElement("div",{id:e.id,ref:f,style:p},s&&c.createElement(M.Provider,{value:l},c.createElement("div",{"mapboxgl-children":"",style:v},e.children)))}exports.MapContext=M;exports.default=L;
2
2
  //# sourceMappingURL=index.cjs65.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("react"),y=require("react-dom"),k=require("./index.cjs197.js"),D=require("./index.cjs65.js"),P=require("./index.cjs198.js");function q(n){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(g,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return g.default=n,Object.freeze(g)}const O=q(o);function A(n,g){const{map:c,mapLib:s}=o.useContext(D.MapContext),u=o.useRef({props:n});u.current.props=n;const t=o.useMemo(()=>{let _=!1;O.Children.forEach(n.children,r=>{r&&(_=!0)});const h={...n,element:_?document.createElement("div"):null},i=new s.Marker(h);return i.setLngLat([n.longitude,n.latitude]),i.getElement().addEventListener("click",r=>{var a,e;(e=(a=u.current.props).onClick)===null||e===void 0||e.call(a,{type:"click",target:i,originalEvent:r})}),i.on("dragstart",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragStart)===null||e===void 0||e.call(a,l)}),i.on("drag",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDrag)===null||e===void 0||e.call(a,l)}),i.on("dragend",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragEnd)===null||e===void 0||e.call(a,l)}),i},[]);o.useEffect(()=>(t.addTo(c.getMap()),()=>{t.remove()}),[]);const{longitude:f,latitude:m,offset:d,style:p,draggable:v=!1,popup:L=null,rotation:b=0,rotationAlignment:E="auto",pitchAlignment:R="auto"}=n;return o.useEffect(()=>{k.applyReactStyle(t.getElement(),p)},[p]),o.useImperativeHandle(g,()=>t,[]),(t.getLngLat().lng!==f||t.getLngLat().lat!==m)&&t.setLngLat([f,m]),d&&!P.arePointsEqual(t.getOffset(),d)&&t.setOffset(d),t.isDraggable()!==v&&t.setDraggable(v),t.getRotation()!==b&&t.setRotation(b),t.getRotationAlignment()!==E&&t.setRotationAlignment(E),t.getPitchAlignment()!==R&&t.setPitchAlignment(R),t.getPopup()!==L&&t.setPopup(L),y.createPortal(n.children,t.getElement())}o.memo(o.forwardRef(A));
1
+ "use strict";const o=require("react"),y=require("react-dom"),k=require("./index.cjs182.js"),D=require("./index.cjs65.js"),P=require("./index.cjs183.js");function q(n){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(g,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return g.default=n,Object.freeze(g)}const O=q(o);function A(n,g){const{map:c,mapLib:s}=o.useContext(D.MapContext),u=o.useRef({props:n});u.current.props=n;const t=o.useMemo(()=>{let _=!1;O.Children.forEach(n.children,r=>{r&&(_=!0)});const h={...n,element:_?document.createElement("div"):null},i=new s.Marker(h);return i.setLngLat([n.longitude,n.latitude]),i.getElement().addEventListener("click",r=>{var a,e;(e=(a=u.current.props).onClick)===null||e===void 0||e.call(a,{type:"click",target:i,originalEvent:r})}),i.on("dragstart",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragStart)===null||e===void 0||e.call(a,l)}),i.on("drag",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDrag)===null||e===void 0||e.call(a,l)}),i.on("dragend",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragEnd)===null||e===void 0||e.call(a,l)}),i},[]);o.useEffect(()=>(t.addTo(c.getMap()),()=>{t.remove()}),[]);const{longitude:f,latitude:m,offset:d,style:p,draggable:v=!1,popup:L=null,rotation:b=0,rotationAlignment:E="auto",pitchAlignment:R="auto"}=n;return o.useEffect(()=>{k.applyReactStyle(t.getElement(),p)},[p]),o.useImperativeHandle(g,()=>t,[]),(t.getLngLat().lng!==f||t.getLngLat().lat!==m)&&t.setLngLat([f,m]),d&&!P.arePointsEqual(t.getOffset(),d)&&t.setOffset(d),t.isDraggable()!==v&&t.setDraggable(v),t.getRotation()!==b&&t.setRotation(b),t.getRotationAlignment()!==E&&t.setRotationAlignment(E),t.getPitchAlignment()!==R&&t.setPitchAlignment(R),t.getPopup()!==L&&t.setPopup(L),y.createPortal(n.children,t.getElement())}o.memo(o.forwardRef(A));
2
2
  //# sourceMappingURL=index.cjs66.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const g=require("react-dom"),a=require("react"),h=require("./index.cjs197.js"),L=require("./index.cjs65.js"),v=require("./index.cjs198.js");function f(e){return new Set(e?e.trim().split(/\s+/):[])}function C(e,r){const{map:m,mapLib:d}=a.useContext(L.MapContext),u=a.useMemo(()=>document.createElement("div"),[]),c=a.useRef({props:e});c.current.props=e;const t=a.useMemo(()=>{const s={...e},o=new d.Popup(s);return o.setLngLat([e.longitude,e.latitude]),o.once("open",n=>{var i,l;(l=(i=c.current.props).onOpen)===null||l===void 0||l.call(i,n)}),o},[]);if(a.useEffect(()=>{const s=o=>{var n,i;(i=(n=c.current.props).onClose)===null||i===void 0||i.call(n,o)};return t.on("close",s),t.setDOMContent(u).addTo(m.getMap()),()=>{t.off("close",s),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{h.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(r,()=>t,[]),t.isOpen()&&((t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!v.deepEqual(t.options.offset,e.offset)&&t.setOffset(e.offset),(t.options.anchor!==e.anchor||t.options.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth)),t.options.className!==e.className)){const s=f(t.options.className),o=f(e.className);for(const n of s)o.has(n)||t.removeClassName(n);for(const n of o)s.has(n)||t.addClassName(n);t.options.className=e.className}return g.createPortal(e.children,u)}a.memo(a.forwardRef(C));
1
+ "use strict";const g=require("react-dom"),a=require("react"),h=require("./index.cjs182.js"),L=require("./index.cjs65.js"),v=require("./index.cjs183.js");function f(e){return new Set(e?e.trim().split(/\s+/):[])}function C(e,r){const{map:m,mapLib:d}=a.useContext(L.MapContext),u=a.useMemo(()=>document.createElement("div"),[]),c=a.useRef({props:e});c.current.props=e;const t=a.useMemo(()=>{const s={...e},o=new d.Popup(s);return o.setLngLat([e.longitude,e.latitude]),o.once("open",n=>{var i,l;(l=(i=c.current.props).onOpen)===null||l===void 0||l.call(i,n)}),o},[]);if(a.useEffect(()=>{const s=o=>{var n,i;(i=(n=c.current.props).onClose)===null||i===void 0||i.call(n,o)};return t.on("close",s),t.setDOMContent(u).addTo(m.getMap()),()=>{t.off("close",s),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{h.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(r,()=>t,[]),t.isOpen()&&((t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!v.deepEqual(t.options.offset,e.offset)&&t.setOffset(e.offset),(t.options.anchor!==e.anchor||t.options.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth)),t.options.className!==e.className)){const s=f(t.options.className),o=f(e.className);for(const n of s)o.has(n)||t.removeClassName(n);for(const n of o)s.has(n)||t.addClassName(n);t.options.className=e.className}return g.createPortal(e.children,u)}a.memo(a.forwardRef(C));
2
2
  //# sourceMappingURL=index.cjs67.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react"),i=require("./index.cjs197.js"),r=require("./index.cjs14.js");function c(t){const n=r(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(c);
1
+ "use strict";const e=require("react"),i=require("./index.cjs182.js"),r=require("./index.cjs14.js");function c(t){const n=r(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(c);
2
2
  //# sourceMappingURL=index.cjs68.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("react"),c=require("./index.cjs197.js"),l=require("./index.cjs14.js");function r(e){const n=l(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return t.useEffect(()=>{c.applyReactStyle(n._controlContainer,e.style)},[e.style]),null}t.memo(r);
1
+ "use strict";const t=require("react"),c=require("./index.cjs182.js"),l=require("./index.cjs14.js");function r(e){const n=l(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return t.useEffect(()=>{c.applyReactStyle(n._controlContainer,e.style)},[e.style]),null}t.memo(r);
2
2
  //# sourceMappingURL=index.cjs69.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("react"),d=require("./index.cjs197.js"),v=require("./index.cjs14.js");function _(n,u){const a=c.useRef({props:n}),l=v(({mapLib:s})=>{const r=new s.GeolocateControl(n),i=r._setupUI;return r._setupUI=t=>{r._container.hasChildNodes()||i(t)},r.on("geolocate",t=>{var e,o;(o=(e=a.current.props).onGeolocate)===null||o===void 0||o.call(e,t)}),r.on("error",t=>{var e,o;(o=(e=a.current.props).onError)===null||o===void 0||o.call(e,t)}),r.on("outofmaxbounds",t=>{var e,o;(o=(e=a.current.props).onOutOfMaxBounds)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationstart",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationStart)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationend",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationEnd)===null||o===void 0||o.call(e,t)}),r},{position:n.position});return a.current.props=n,c.useImperativeHandle(u,()=>l,[]),c.useEffect(()=>{d.applyReactStyle(l._container,n.style)},[n.style]),null}c.memo(c.forwardRef(_));
1
+ "use strict";const c=require("react"),d=require("./index.cjs182.js"),v=require("./index.cjs14.js");function _(n,u){const a=c.useRef({props:n}),l=v(({mapLib:s})=>{const r=new s.GeolocateControl(n),i=r._setupUI;return r._setupUI=t=>{r._container.hasChildNodes()||i(t)},r.on("geolocate",t=>{var e,o;(o=(e=a.current.props).onGeolocate)===null||o===void 0||o.call(e,t)}),r.on("error",t=>{var e,o;(o=(e=a.current.props).onError)===null||o===void 0||o.call(e,t)}),r.on("outofmaxbounds",t=>{var e,o;(o=(e=a.current.props).onOutOfMaxBounds)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationstart",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationStart)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationend",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationEnd)===null||o===void 0||o.call(e,t)}),r},{position:n.position});return a.current.props=n,c.useImperativeHandle(u,()=>l,[]),c.useEffect(()=>{d.applyReactStyle(l._container,n.style)},[n.style]),null}c.memo(c.forwardRef(_));
2
2
  //# sourceMappingURL=index.cjs70.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react"),i=require("./index.cjs197.js"),c=require("./index.cjs14.js");function l(t){const n=c(({mapLib:o})=>new o.NavigationControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(l);
1
+ "use strict";const e=require("react"),i=require("./index.cjs182.js"),c=require("./index.cjs14.js");function l(t){const n=c(({mapLib:o})=>new o.NavigationControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(l);
2
2
  //# sourceMappingURL=index.cjs71.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("react"),a=require("./index.cjs197.js"),l=require("./index.cjs14.js");function r(t){const e=l(({mapLib:u})=>new u.ScaleControl(t),{position:t.position}),i=n.useRef(t),c=i.current;i.current=t;const{style:o}=t;return t.maxWidth!==void 0&&t.maxWidth!==c.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==c.unit&&e.setUnit(t.unit),n.useEffect(()=>{a.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
1
+ "use strict";const n=require("react"),a=require("./index.cjs182.js"),l=require("./index.cjs14.js");function r(t){const e=l(({mapLib:u})=>new u.ScaleControl(t),{position:t.position}),i=n.useRef(t),c=i.current;i.current=t;const{style:o}=t;return t.maxWidth!==void 0&&t.maxWidth!==c.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==c.unit&&e.setUnit(t.unit),n.useEffect(()=>{a.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
2
2
  //# sourceMappingURL=index.cjs72.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react"),m=require("./index.cjs65.js"),L=require("./index.cjs199.js"),s=require("./index.cjs198.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
1
+ "use strict";const u=require("react"),m=require("./index.cjs65.js"),L=require("./index.cjs184.js"),s=require("./index.cjs183.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
2
2
  //# sourceMappingURL=index.cjs73.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react"),f=require("./index.cjs65.js"),d=require("./index.cjs199.js"),y=require("./index.cjs198.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
1
+ "use strict";const l=require("react"),f=require("./index.cjs65.js"),d=require("./index.cjs184.js"),y=require("./index.cjs183.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
2
2
  //# sourceMappingURL=index.cjs74.js.map
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal as Je, getDefaultExportFromCjs as oo } from "./index.es57.js";
2
- import { __module as Zn } from "./index.es58.js";
2
+ import { __module as Zn } from "./index.es61.js";
3
3
  (function(Wn, ao) {
4
4
  (function(ze, de) {
5
5
  Wn.exports = de();
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal as sd, getDefaultExportFromCjs as ad } from "./index.es57.js";
2
- import { __module as nu } from "./index.es59.js";
2
+ import { __module as nu } from "./index.es58.js";
3
3
  (function(lu, od) {
4
4
  (function(en, tn) {
5
5
  lu.exports = tn();
@@ -1,11 +1,324 @@
1
- import i from "./index.es51.js";
2
- import { point as m } from "./index.es50.js";
3
- function x(t, r) {
4
- r === void 0 && (r = {});
5
- var e = i(t), a = (e[0] + e[2]) / 2, f = (e[1] + e[3]) / 2;
6
- return m([a, f], r.properties, r);
1
+ import { syncProjection as f, cloneTransform as T, applyViewStateToTransform as p, transformToViewState as _ } from "./index.es228.js";
2
+ import { normalizeStyle as v } from "./index.es229.js";
3
+ import { deepEqual as h } from "./index.es183.js";
4
+ const g = { version: 8, sources: {}, layers: [] }, y = {
5
+ mousedown: "onMouseDown",
6
+ mouseup: "onMouseUp",
7
+ mouseover: "onMouseOver",
8
+ mousemove: "onMouseMove",
9
+ click: "onClick",
10
+ dblclick: "onDblClick",
11
+ mouseenter: "onMouseEnter",
12
+ mouseleave: "onMouseLeave",
13
+ mouseout: "onMouseOut",
14
+ contextmenu: "onContextMenu",
15
+ touchstart: "onTouchStart",
16
+ touchend: "onTouchEnd",
17
+ touchmove: "onTouchMove",
18
+ touchcancel: "onTouchCancel"
19
+ }, u = {
20
+ movestart: "onMoveStart",
21
+ move: "onMove",
22
+ moveend: "onMoveEnd",
23
+ dragstart: "onDragStart",
24
+ drag: "onDrag",
25
+ dragend: "onDragEnd",
26
+ zoomstart: "onZoomStart",
27
+ zoom: "onZoom",
28
+ zoomend: "onZoomEnd",
29
+ rotatestart: "onRotateStart",
30
+ rotate: "onRotate",
31
+ rotateend: "onRotateEnd",
32
+ pitchstart: "onPitchStart",
33
+ pitch: "onPitch",
34
+ pitchend: "onPitchEnd"
35
+ }, S = {
36
+ wheel: "onWheel",
37
+ boxzoomstart: "onBoxZoomStart",
38
+ boxzoomend: "onBoxZoomEnd",
39
+ boxzoomcancel: "onBoxZoomCancel",
40
+ resize: "onResize",
41
+ load: "onLoad",
42
+ render: "onRender",
43
+ idle: "onIdle",
44
+ remove: "onRemove",
45
+ data: "onData",
46
+ styledata: "onStyleData",
47
+ sourcedata: "onSourceData",
48
+ error: "onError"
49
+ }, E = [
50
+ "minZoom",
51
+ "maxZoom",
52
+ "minPitch",
53
+ "maxPitch",
54
+ "maxBounds",
55
+ "projection",
56
+ "renderWorldCopies"
57
+ ], C = [
58
+ "scrollZoom",
59
+ "boxZoom",
60
+ "dragRotate",
61
+ "dragPan",
62
+ "keyboard",
63
+ "doubleClickZoom",
64
+ "touchZoomRotate",
65
+ "touchPitch"
66
+ ];
67
+ class m {
68
+ constructor(e, o, n) {
69
+ this._map = null, this._internalUpdate = !1, this._inRender = !1, this._hoveredFeatures = null, this._deferredEvents = {
70
+ move: !1,
71
+ zoom: !1,
72
+ pitch: !1,
73
+ rotate: !1
74
+ }, this._onEvent = (t) => {
75
+ const r = this.props[S[t.type]];
76
+ r ? r(t) : t.type === "error" && console.error(t.error);
77
+ }, this._onPointerEvent = (t) => {
78
+ (t.type === "mousemove" || t.type === "mouseout") && this._updateHover(t);
79
+ const r = this.props[y[t.type]];
80
+ r && (this.props.interactiveLayerIds && t.type !== "mouseover" && t.type !== "mouseout" && (t.features = this._hoveredFeatures || this._queryRenderedFeatures(t.point)), r(t), delete t.features);
81
+ }, this._onCameraEvent = (t) => {
82
+ if (!this._internalUpdate) {
83
+ const r = this.props[u[t.type]];
84
+ r && r(t);
85
+ }
86
+ t.type in this._deferredEvents && (this._deferredEvents[t.type] = !1);
87
+ }, this._MapClass = e, this.props = o, this._initialize(n);
88
+ }
89
+ get map() {
90
+ return this._map;
91
+ }
92
+ get transform() {
93
+ return this._renderTransform;
94
+ }
95
+ setProps(e) {
96
+ const o = this.props;
97
+ this.props = e;
98
+ const n = this._updateSettings(e, o);
99
+ n && this._createShadowTransform(this._map);
100
+ const t = this._updateSize(e), r = this._updateViewState(e, !0);
101
+ this._updateStyle(e, o), this._updateStyleComponents(e, o), this._updateHandlers(e, o), (n || t || r && !this._map.isMoving()) && this.redraw();
102
+ }
103
+ static reuse(e, o) {
104
+ const n = m.savedMaps.pop();
105
+ if (!n)
106
+ return null;
107
+ const t = n.map, r = t.getContainer();
108
+ for (o.className = r.className; r.childNodes.length > 0; )
109
+ o.appendChild(r.childNodes[0]);
110
+ t._container = o;
111
+ const s = t._resizeObserver;
112
+ s && (s.disconnect(), s.observe(o)), n.setProps({ ...e, styleDiffing: !1 }), t.resize();
113
+ const { initialViewState: i } = e;
114
+ return i && (i.bounds ? t.fitBounds(i.bounds, { ...i.fitBoundsOptions, duration: 0 }) : n._updateViewState(i, !1)), t.isStyleLoaded() ? t.fire("load") : t.once("styledata", () => t.fire("load")), t._update(), n;
115
+ }
116
+ /* eslint-disable complexity,max-statements */
117
+ _initialize(e) {
118
+ const { props: o } = this, { mapStyle: n = g } = o, t = {
119
+ ...o,
120
+ ...o.initialViewState,
121
+ accessToken: o.mapboxAccessToken || M() || null,
122
+ container: e,
123
+ style: v(n)
124
+ }, r = t.initialViewState || t.viewState || t;
125
+ if (Object.assign(t, {
126
+ center: [r.longitude || 0, r.latitude || 0],
127
+ zoom: r.zoom || 0,
128
+ pitch: r.pitch || 0,
129
+ bearing: r.bearing || 0
130
+ }), o.gl) {
131
+ const a = HTMLCanvasElement.prototype.getContext;
132
+ HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = a, o.gl);
133
+ }
134
+ const s = new this._MapClass(t);
135
+ r.padding && s.setPadding(r.padding), o.cursor && (s.getCanvas().style.cursor = o.cursor), this._createShadowTransform(s);
136
+ const i = s._render;
137
+ s._render = (a) => {
138
+ this._inRender = !0, i.call(s, a), this._inRender = !1;
139
+ };
140
+ const c = s._renderTaskQueue.run;
141
+ s._renderTaskQueue.run = (a) => {
142
+ c.call(s._renderTaskQueue, a), this._onBeforeRepaint();
143
+ }, s.on("render", () => this._onAfterRepaint());
144
+ const l = s.fire;
145
+ s.fire = this._fireEvent.bind(this, l), s.on("resize", () => {
146
+ this._renderTransform.resize(s.transform.width, s.transform.height);
147
+ }), s.on("styledata", () => {
148
+ this._updateStyleComponents(this.props, {}), f(s.transform, this._renderTransform);
149
+ }), s.on("sourcedata", () => this._updateStyleComponents(this.props, {}));
150
+ for (const a in y)
151
+ s.on(a, this._onPointerEvent);
152
+ for (const a in u)
153
+ s.on(a, this._onCameraEvent);
154
+ for (const a in S)
155
+ s.on(a, this._onEvent);
156
+ this._map = s;
157
+ }
158
+ /* eslint-enable complexity,max-statements */
159
+ recycle() {
160
+ const o = this.map.getContainer().querySelector("[mapboxgl-children]");
161
+ o == null || o.remove(), m.savedMaps.push(this);
162
+ }
163
+ destroy() {
164
+ this._map.remove();
165
+ }
166
+ // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
167
+ // render cycle, which is managed by Mapbox's animation loop.
168
+ // This removes the synchronization issue caused by requestAnimationFrame.
169
+ redraw() {
170
+ const e = this._map;
171
+ !this._inRender && e.style && (e._frame && (e._frame.cancel(), e._frame = null), e._render());
172
+ }
173
+ _createShadowTransform(e) {
174
+ const o = T(e.transform);
175
+ e.painter.transform = o, this._renderTransform = o;
176
+ }
177
+ /* Trigger map resize if size is controlled
178
+ @param {object} nextProps
179
+ @returns {bool} true if size has changed
180
+ */
181
+ _updateSize(e) {
182
+ const { viewState: o } = e;
183
+ if (o) {
184
+ const n = this._map;
185
+ if (o.width !== n.transform.width || o.height !== n.transform.height)
186
+ return n.resize(), !0;
187
+ }
188
+ return !1;
189
+ }
190
+ // Adapted from map.jumpTo
191
+ /* Update camera to match props
192
+ @param {object} nextProps
193
+ @param {bool} triggerEvents - should fire camera events
194
+ @returns {bool} true if anything is changed
195
+ */
196
+ _updateViewState(e, o) {
197
+ if (this._internalUpdate)
198
+ return !1;
199
+ const n = this._map, t = this._renderTransform, { zoom: r, pitch: s, bearing: i } = t, c = n.isMoving();
200
+ c && (t.cameraElevationReference = "sea");
201
+ const l = p(t, {
202
+ ..._(n.transform),
203
+ ...e
204
+ });
205
+ if (c && (t.cameraElevationReference = "ground"), l && o) {
206
+ const a = this._deferredEvents;
207
+ a.move = !0, a.zoom || (a.zoom = r !== t.zoom), a.rotate || (a.rotate = i !== t.bearing), a.pitch || (a.pitch = s !== t.pitch);
208
+ }
209
+ return c || p(n.transform, e), l;
210
+ }
211
+ /* Update camera constraints and projection settings to match props
212
+ @param {object} nextProps
213
+ @param {object} currProps
214
+ @returns {bool} true if anything is changed
215
+ */
216
+ _updateSettings(e, o) {
217
+ const n = this._map;
218
+ let t = !1;
219
+ for (const r of E)
220
+ if (r in e && !h(e[r], o[r])) {
221
+ t = !0;
222
+ const s = n[`set${r[0].toUpperCase()}${r.slice(1)}`];
223
+ s == null || s.call(n, e[r]);
224
+ }
225
+ return t;
226
+ }
227
+ /* Update map style to match props
228
+ @param {object} nextProps
229
+ @param {object} currProps
230
+ @returns {bool} true if style is changed
231
+ */
232
+ _updateStyle(e, o) {
233
+ if (e.cursor !== o.cursor && (this._map.getCanvas().style.cursor = e.cursor || ""), e.mapStyle !== o.mapStyle) {
234
+ const { mapStyle: n = g, styleDiffing: t = !0 } = e, r = {
235
+ diff: t
236
+ };
237
+ return "localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(v(n), r), !0;
238
+ }
239
+ return !1;
240
+ }
241
+ /* Update fog, light and terrain to match props
242
+ @param {object} nextProps
243
+ @param {object} currProps
244
+ @returns {bool} true if anything is changed
245
+ */
246
+ _updateStyleComponents(e, o) {
247
+ const n = this._map;
248
+ let t = !1;
249
+ return n.isStyleLoaded() && ("light" in e && n.setLight && !h(e.light, o.light) && (t = !0, n.setLight(e.light)), "fog" in e && n.setFog && !h(e.fog, o.fog) && (t = !0, n.setFog(e.fog)), "terrain" in e && n.setTerrain && !h(e.terrain, o.terrain) && (!e.terrain || n.getSource(e.terrain.source)) && (t = !0, n.setTerrain(e.terrain))), t;
250
+ }
251
+ /* Update interaction handlers to match props
252
+ @param {object} nextProps
253
+ @param {object} currProps
254
+ @returns {bool} true if anything is changed
255
+ */
256
+ _updateHandlers(e, o) {
257
+ var n, t;
258
+ const r = this._map;
259
+ let s = !1;
260
+ for (const i of C) {
261
+ const c = (n = e[i]) !== null && n !== void 0 ? n : !0, l = (t = o[i]) !== null && t !== void 0 ? t : !0;
262
+ h(c, l) || (s = !0, c ? r[i].enable(c) : r[i].disable());
263
+ }
264
+ return s;
265
+ }
266
+ _queryRenderedFeatures(e) {
267
+ const o = this._map, n = o.transform, { interactiveLayerIds: t = [] } = this.props;
268
+ try {
269
+ return o.transform = this._renderTransform, o.queryRenderedFeatures(e, {
270
+ layers: t.filter(o.getLayer.bind(o))
271
+ });
272
+ } catch {
273
+ return [];
274
+ } finally {
275
+ o.transform = n;
276
+ }
277
+ }
278
+ _updateHover(e) {
279
+ var o;
280
+ const { props: n } = this;
281
+ if (n.interactiveLayerIds && (n.onMouseMove || n.onMouseEnter || n.onMouseLeave)) {
282
+ const r = e.type, s = ((o = this._hoveredFeatures) === null || o === void 0 ? void 0 : o.length) > 0, i = this._queryRenderedFeatures(e.point), c = i.length > 0;
283
+ !c && s && (e.type = "mouseleave", this._onPointerEvent(e)), this._hoveredFeatures = i, c && !s && (e.type = "mouseenter", this._onPointerEvent(e)), e.type = r;
284
+ } else
285
+ this._hoveredFeatures = null;
286
+ }
287
+ _fireEvent(e, o, n) {
288
+ const t = this._map, r = t.transform, s = typeof o == "string" ? o : o.type;
289
+ return s === "move" && this._updateViewState(this.props, !1), s in u && (typeof o == "object" && (o.viewState = _(r)), this._map.isMoving()) ? (t.transform = this._renderTransform, e.call(t, o, n), t.transform = r, t) : (e.call(t, o, n), t);
290
+ }
291
+ // All camera manipulations are complete, ready to repaint
292
+ _onBeforeRepaint() {
293
+ const e = this._map;
294
+ this._internalUpdate = !0;
295
+ for (const n in this._deferredEvents)
296
+ this._deferredEvents[n] && e.fire(n);
297
+ this._internalUpdate = !1;
298
+ const o = this._map.transform;
299
+ e.transform = this._renderTransform, this._onAfterRepaint = () => {
300
+ f(this._renderTransform, o), e.transform = o;
301
+ };
302
+ }
303
+ }
304
+ m.savedMaps = [];
305
+ function M() {
306
+ let d = null;
307
+ if (typeof location < "u") {
308
+ const e = /access_token=([^&\/]*)/.exec(location.search);
309
+ d = e && e[1];
310
+ }
311
+ try {
312
+ d = d || process.env.MapboxAccessToken;
313
+ } catch {
314
+ }
315
+ try {
316
+ d = d || process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;
317
+ } catch {
318
+ }
319
+ return d;
7
320
  }
8
321
  export {
9
- x as default
322
+ m as default
10
323
  };
11
324
  //# sourceMappingURL=index.es178.js.map