@performant-software/geospatial 3.1.25-beta.1 → 3.1.25
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.
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -7
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs266.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs268.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs269.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +8 -0
- package/dist/index.cjs276.js.map +1 -0
- package/dist/index.cjs277.js +2 -0
- package/dist/index.cjs277.js.map +1 -0
- package/dist/index.cjs278.js +2 -0
- package/dist/index.cjs278.js.map +1 -0
- package/dist/index.cjs279.js +2 -0
- package/dist/index.cjs279.js.map +1 -0
- package/dist/index.cjs280.js +2 -0
- package/dist/index.cjs280.js.map +1 -0
- package/dist/index.cjs281.js +2 -0
- package/dist/index.cjs281.js.map +1 -0
- package/dist/index.cjs282.js +2 -0
- package/dist/index.cjs282.js.map +1 -0
- package/dist/index.cjs283.js +2 -0
- package/dist/index.cjs283.js.map +1 -0
- package/dist/index.cjs284.js +2 -0
- package/dist/index.cjs284.js.map +1 -0
- package/dist/index.cjs285.js +2 -0
- package/dist/index.cjs285.js.map +1 -0
- package/dist/index.cjs286.js +2 -0
- package/dist/index.cjs286.js.map +1 -0
- package/dist/index.cjs287.js +2 -0
- package/dist/index.cjs287.js.map +1 -0
- package/dist/index.cjs288.js +2 -0
- package/dist/index.cjs288.js.map +1 -0
- package/dist/index.cjs289.js +2 -0
- package/dist/index.cjs289.js.map +1 -0
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs290.js +2 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/index.cjs291.js +2 -0
- package/dist/index.cjs291.js.map +1 -0
- package/dist/index.cjs292.js +2 -0
- package/dist/index.cjs292.js.map +1 -0
- package/dist/index.cjs293.js +2 -0
- package/dist/index.cjs293.js.map +1 -0
- package/dist/index.cjs294.js +2 -0
- package/dist/index.cjs294.js.map +1 -0
- package/dist/index.cjs295.js +2 -0
- package/dist/index.cjs295.js.map +1 -0
- package/dist/index.cjs296.js +2 -0
- package/dist/index.cjs296.js.map +1 -0
- package/dist/index.cjs297.js +2 -0
- package/dist/index.cjs297.js.map +1 -0
- package/dist/index.cjs298.js +2 -0
- package/dist/index.cjs298.js.map +1 -0
- package/dist/index.cjs299.js +2 -0
- package/dist/index.cjs299.js.map +1 -0
- package/dist/index.cjs300.js +47 -0
- package/dist/index.cjs300.js.map +1 -0
- package/dist/index.cjs301.js +212 -0
- package/dist/index.cjs301.js.map +1 -0
- package/dist/index.cjs302.js +62 -0
- package/dist/index.cjs302.js.map +1 -0
- package/dist/index.cjs303.js +60 -0
- package/dist/index.cjs303.js.map +1 -0
- package/dist/index.cjs304.js +46 -0
- package/dist/index.cjs304.js.map +1 -0
- package/dist/index.cjs305.js +52 -0
- package/dist/index.cjs305.js.map +1 -0
- package/dist/index.cjs306.js +308 -0
- package/dist/index.cjs306.js.map +1 -0
- package/dist/index.cjs307.js +293 -0
- package/dist/index.cjs307.js.map +1 -0
- package/dist/index.cjs308.js +6 -0
- package/dist/index.cjs308.js.map +1 -0
- package/dist/index.cjs309.js +2 -0
- package/dist/index.cjs309.js.map +1 -0
- package/dist/index.cjs310.js +2 -0
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +2 -0
- package/dist/index.cjs311.js.map +1 -0
- package/dist/index.cjs312.js +2 -0
- package/dist/index.cjs312.js.map +1 -0
- package/dist/index.cjs313.js +2 -0
- package/dist/index.cjs313.js.map +1 -0
- package/dist/index.cjs314.js +2 -0
- package/dist/index.cjs314.js.map +1 -0
- package/dist/index.cjs315.js +2 -0
- package/dist/index.cjs315.js.map +1 -0
- package/dist/index.cjs316.js +5 -0
- package/dist/index.cjs316.js.map +1 -0
- package/dist/index.cjs317.js +6 -0
- package/dist/index.cjs317.js.map +1 -0
- package/dist/index.cjs318.js +2 -0
- package/dist/index.cjs318.js.map +1 -0
- package/dist/index.cjs319.js +2 -0
- package/dist/index.cjs319.js.map +1 -0
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs320.js +2 -0
- package/dist/index.cjs320.js.map +1 -0
- package/dist/index.cjs321.js +2 -0
- package/dist/index.cjs321.js.map +1 -0
- package/dist/index.cjs322.js +2 -0
- package/dist/index.cjs322.js.map +1 -0
- package/dist/index.cjs323.js +2 -0
- package/dist/index.cjs323.js.map +1 -0
- package/dist/index.cjs324.js +2 -0
- package/dist/index.cjs324.js.map +1 -0
- package/dist/index.cjs325.js +2 -0
- package/dist/index.cjs325.js.map +1 -0
- package/dist/index.cjs326.js +2 -0
- package/dist/index.cjs326.js.map +1 -0
- package/dist/index.cjs327.js +2 -0
- package/dist/index.cjs327.js.map +1 -0
- package/dist/index.cjs328.js +2 -0
- package/dist/index.cjs328.js.map +1 -0
- package/dist/index.cjs329.js +2 -0
- package/dist/index.cjs329.js.map +1 -0
- package/dist/index.cjs330.js +2 -0
- package/dist/index.cjs330.js.map +1 -0
- package/dist/index.cjs331.js +2 -0
- package/dist/index.cjs331.js.map +1 -0
- package/dist/index.cjs332.js +2 -0
- package/dist/index.cjs332.js.map +1 -0
- package/dist/index.cjs333.js +2 -0
- package/dist/index.cjs333.js.map +1 -0
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs335.js +2 -0
- package/dist/index.cjs335.js.map +1 -0
- package/dist/index.cjs336.js +2 -0
- package/dist/index.cjs336.js.map +1 -0
- package/dist/index.cjs337.js +2 -0
- package/dist/index.cjs337.js.map +1 -0
- package/dist/index.cjs338.js +2 -0
- package/dist/index.cjs338.js.map +1 -0
- package/dist/index.cjs339.js +2 -0
- package/dist/index.cjs339.js.map +1 -0
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs340.js +2 -0
- package/dist/index.cjs340.js.map +1 -0
- package/dist/index.cjs341.js +2 -0
- package/dist/index.cjs341.js.map +1 -0
- package/dist/index.cjs342.js +2 -0
- package/dist/index.cjs342.js.map +1 -0
- package/dist/index.cjs343.js +2 -0
- package/dist/index.cjs343.js.map +1 -0
- package/dist/index.cjs344.js +5 -0
- package/dist/index.cjs344.js.map +1 -0
- package/dist/index.cjs345.js +2 -0
- package/dist/index.cjs345.js.map +1 -0
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs347.js +2 -0
- package/dist/index.cjs347.js.map +1 -0
- package/dist/index.cjs348.js +2 -0
- package/dist/index.cjs348.js.map +1 -0
- package/dist/index.cjs349.js +2 -0
- package/dist/index.cjs349.js.map +1 -0
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs350.js +2 -0
- package/dist/index.cjs350.js.map +1 -0
- package/dist/index.cjs351.js +2 -0
- package/dist/index.cjs351.js.map +1 -0
- package/dist/index.cjs352.js +2 -0
- package/dist/index.cjs352.js.map +1 -0
- package/dist/index.cjs353.js +2 -0
- package/dist/index.cjs353.js.map +1 -0
- package/dist/index.cjs354.js +2 -0
- package/dist/index.cjs354.js.map +1 -0
- package/dist/index.cjs355.js +2 -0
- package/dist/index.cjs355.js.map +1 -0
- package/dist/index.cjs356.js +2 -0
- package/dist/index.cjs356.js.map +1 -0
- package/dist/index.cjs357.js +2 -0
- package/dist/index.cjs357.js.map +1 -0
- package/dist/index.cjs358.js +2 -0
- package/dist/index.cjs358.js.map +1 -0
- package/dist/index.cjs359.js +2 -0
- package/dist/index.cjs359.js.map +1 -0
- package/dist/index.cjs360.js +2 -0
- package/dist/index.cjs360.js.map +1 -0
- package/dist/index.cjs361.js +2 -0
- package/dist/index.cjs361.js.map +1 -0
- package/dist/index.cjs362.js +2 -0
- package/dist/index.cjs362.js.map +1 -0
- package/dist/index.cjs363.js +2 -0
- package/dist/index.cjs363.js.map +1 -0
- package/dist/index.cjs364.js +2 -0
- package/dist/index.cjs364.js.map +1 -0
- package/dist/index.cjs365.js +2 -0
- package/dist/index.cjs365.js.map +1 -0
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs367.js +2 -0
- package/dist/index.cjs367.js.map +1 -0
- package/dist/index.cjs368.js +2 -0
- package/dist/index.cjs368.js.map +1 -0
- package/dist/index.cjs369.js +2 -0
- package/dist/index.cjs369.js.map +1 -0
- package/dist/index.cjs370.js +2 -0
- package/dist/index.cjs370.js.map +1 -0
- package/dist/index.cjs371.js +2 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/index.cjs373.js +2 -0
- package/dist/index.cjs373.js.map +1 -0
- package/dist/index.cjs374.js +2 -0
- package/dist/index.cjs374.js.map +1 -0
- package/dist/index.cjs375.js +2 -0
- package/dist/index.cjs375.js.map +1 -0
- package/dist/index.cjs376.js +2 -0
- package/dist/index.cjs376.js.map +1 -0
- package/dist/index.cjs377.js +2 -0
- package/dist/index.cjs377.js.map +1 -0
- package/dist/index.cjs378.js +2 -0
- package/dist/index.cjs378.js.map +1 -0
- package/dist/index.cjs379.js +2 -0
- package/dist/index.cjs379.js.map +1 -0
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs380.js +2 -0
- package/dist/index.cjs380.js.map +1 -0
- package/dist/index.cjs381.js +2 -0
- package/dist/index.cjs381.js.map +1 -0
- package/dist/index.cjs382.js +2 -0
- package/dist/index.cjs382.js.map +1 -0
- package/dist/index.cjs383.js +2 -0
- package/dist/index.cjs383.js.map +1 -0
- package/dist/index.cjs384.js +2 -0
- package/dist/index.cjs384.js.map +1 -0
- package/dist/index.cjs385.js +2 -0
- package/dist/index.cjs385.js.map +1 -0
- package/dist/index.cjs386.js +2 -0
- package/dist/index.cjs386.js.map +1 -0
- package/dist/index.cjs387.js +2 -0
- package/dist/index.cjs387.js.map +1 -0
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs390.js +2 -0
- package/dist/index.cjs390.js.map +1 -0
- package/dist/index.cjs391.js +2 -0
- package/dist/index.cjs391.js.map +1 -0
- package/dist/index.cjs392.js +2 -0
- package/dist/index.cjs392.js.map +1 -0
- package/dist/index.cjs393.js +2 -0
- package/dist/index.cjs393.js.map +1 -0
- package/dist/index.cjs394.js +2 -0
- package/dist/index.cjs394.js.map +1 -0
- package/dist/index.cjs395.js +2 -0
- package/dist/index.cjs395.js.map +1 -0
- package/dist/index.cjs396.js +2 -0
- package/dist/index.cjs396.js.map +1 -0
- package/dist/index.cjs397.js +2 -0
- package/dist/index.cjs397.js.map +1 -0
- package/dist/index.cjs398.js +2 -0
- package/dist/index.cjs398.js.map +1 -0
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs400.js +2 -0
- package/dist/index.cjs400.js.map +1 -0
- package/dist/index.cjs401.js +2 -0
- package/dist/index.cjs401.js.map +1 -0
- package/dist/index.cjs402.js +2 -0
- package/dist/index.cjs402.js.map +1 -0
- package/dist/index.cjs403.js +2 -0
- package/dist/index.cjs403.js.map +1 -0
- package/dist/index.cjs404.js +2 -0
- package/dist/index.cjs404.js.map +1 -0
- package/dist/index.cjs405.js +2 -0
- package/dist/index.cjs405.js.map +1 -0
- package/dist/index.cjs406.js +2 -0
- package/dist/index.cjs406.js.map +1 -0
- package/dist/index.cjs407.js +2 -0
- package/dist/index.cjs407.js.map +1 -0
- package/dist/index.cjs408.js +2 -0
- package/dist/index.cjs408.js.map +1 -0
- package/dist/index.cjs409.js +2 -0
- package/dist/index.cjs409.js.map +1 -0
- package/dist/index.cjs410.js +2 -0
- package/dist/index.cjs410.js.map +1 -0
- package/dist/index.cjs411.js +2 -0
- package/dist/index.cjs411.js.map +1 -0
- package/dist/index.cjs412.js +2 -0
- package/dist/index.cjs412.js.map +1 -0
- package/dist/index.cjs413.js +2 -0
- package/dist/index.cjs413.js.map +1 -0
- package/dist/index.cjs414.js +2 -0
- package/dist/index.cjs414.js.map +1 -0
- package/dist/index.cjs415.js +2 -0
- package/dist/index.cjs415.js.map +1 -0
- package/dist/index.cjs416.js +2 -0
- package/dist/index.cjs416.js.map +1 -0
- package/dist/index.cjs417.js +2 -0
- package/dist/index.cjs417.js.map +1 -0
- package/dist/index.cjs418.js +2 -0
- package/dist/index.cjs418.js.map +1 -0
- package/dist/index.cjs419.js +2 -0
- package/dist/index.cjs419.js.map +1 -0
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs420.js +2 -0
- package/dist/index.cjs420.js.map +1 -0
- package/dist/index.cjs421.js +2 -0
- package/dist/index.cjs421.js.map +1 -0
- package/dist/index.cjs422.js +2 -0
- package/dist/index.cjs422.js.map +1 -0
- package/dist/index.cjs423.js +2 -0
- package/dist/index.cjs423.js.map +1 -0
- package/dist/index.cjs424.js +2 -0
- package/dist/index.cjs424.js.map +1 -0
- package/dist/index.cjs425.js +2 -0
- package/dist/index.cjs425.js.map +1 -0
- package/dist/index.cjs426.js +2 -0
- package/dist/index.cjs426.js.map +1 -0
- package/dist/index.cjs427.js +2 -0
- package/dist/index.cjs427.js.map +1 -0
- package/dist/index.cjs428.js +2 -0
- package/dist/index.cjs428.js.map +1 -0
- package/dist/index.cjs429.js +2 -0
- package/dist/index.cjs429.js.map +1 -0
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs430.js +2 -0
- package/dist/index.cjs430.js.map +1 -0
- package/dist/index.cjs431.js +2 -0
- package/dist/index.cjs431.js.map +1 -0
- package/dist/index.cjs432.js +2 -0
- package/dist/index.cjs432.js.map +1 -0
- package/dist/index.cjs433.js +2 -0
- package/dist/index.cjs433.js.map +1 -0
- package/dist/index.cjs434.js +2 -0
- package/dist/index.cjs434.js.map +1 -0
- package/dist/index.cjs435.js +2 -0
- package/dist/index.cjs435.js.map +1 -0
- package/dist/index.cjs436.js +2 -0
- package/dist/index.cjs436.js.map +1 -0
- package/dist/index.cjs437.js +2 -0
- package/dist/index.cjs437.js.map +1 -0
- package/dist/index.cjs438.js +2 -0
- package/dist/index.cjs438.js.map +1 -0
- package/dist/index.cjs439.js +2 -0
- package/dist/index.cjs439.js.map +1 -0
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +2 -0
- package/dist/index.cjs440.js.map +1 -0
- package/dist/index.cjs441.js +2 -0
- package/dist/index.cjs441.js.map +1 -0
- package/dist/index.cjs442.js +2 -0
- package/dist/index.cjs442.js.map +1 -0
- package/dist/index.cjs443.js +2 -0
- package/dist/index.cjs443.js.map +1 -0
- package/dist/index.cjs444.js +2 -0
- package/dist/index.cjs444.js.map +1 -0
- package/dist/index.cjs445.js +2 -0
- package/dist/index.cjs445.js.map +1 -0
- package/dist/index.cjs446.js +2 -0
- package/dist/index.cjs446.js.map +1 -0
- package/dist/index.cjs447.js +2 -0
- package/dist/index.cjs447.js.map +1 -0
- package/dist/index.cjs448.js +2 -0
- package/dist/index.cjs448.js.map +1 -0
- package/dist/index.cjs449.js +2 -0
- package/dist/index.cjs449.js.map +1 -0
- package/dist/index.cjs450.js +2 -0
- package/dist/index.cjs450.js.map +1 -0
- package/dist/index.cjs451.js +2 -0
- package/dist/index.cjs451.js.map +1 -0
- package/dist/index.cjs452.js +2 -0
- package/dist/index.cjs452.js.map +1 -0
- package/dist/index.cjs453.js +2 -0
- package/dist/index.cjs453.js.map +1 -0
- package/dist/index.cjs454.js +2 -0
- package/dist/index.cjs454.js.map +1 -0
- package/dist/index.cjs455.js +2 -0
- package/dist/index.cjs455.js.map +1 -0
- package/dist/index.cjs456.js +2 -0
- package/dist/index.cjs456.js.map +1 -0
- package/dist/index.cjs457.js +2 -0
- package/dist/index.cjs457.js.map +1 -0
- package/dist/index.cjs458.js +2 -0
- package/dist/index.cjs458.js.map +1 -0
- package/dist/index.cjs459.js +2 -0
- package/dist/index.cjs459.js.map +1 -0
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs460.js +2 -0
- package/dist/index.cjs460.js.map +1 -0
- package/dist/index.cjs461.js +2 -0
- package/dist/index.cjs461.js.map +1 -0
- package/dist/index.cjs462.js +2 -0
- package/dist/index.cjs462.js.map +1 -0
- package/dist/index.cjs463.js +2 -0
- package/dist/index.cjs463.js.map +1 -0
- package/dist/index.cjs464.js +2 -0
- package/dist/index.cjs464.js.map +1 -0
- package/dist/index.cjs465.js +2 -0
- package/dist/index.cjs465.js.map +1 -0
- package/dist/index.cjs466.js +2 -0
- package/dist/index.cjs466.js.map +1 -0
- package/dist/index.cjs467.js +2 -0
- package/dist/index.cjs467.js.map +1 -0
- package/dist/index.cjs468.js +2 -0
- package/dist/index.cjs468.js.map +1 -0
- package/dist/index.cjs469.js +2 -0
- package/dist/index.cjs469.js.map +1 -0
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs470.js +2 -0
- package/dist/index.cjs470.js.map +1 -0
- package/dist/index.cjs471.js +2 -0
- package/dist/index.cjs471.js.map +1 -0
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +2 -0
- package/dist/index.cjs473.js.map +1 -0
- package/dist/index.cjs474.js +2 -0
- package/dist/index.cjs474.js.map +1 -0
- package/dist/index.cjs475.js +2 -0
- package/dist/index.cjs475.js.map +1 -0
- package/dist/index.cjs476.js +2 -0
- package/dist/index.cjs476.js.map +1 -0
- package/dist/index.cjs477.js +2 -0
- package/dist/index.cjs477.js.map +1 -0
- package/dist/index.cjs478.js +2 -0
- package/dist/index.cjs478.js.map +1 -0
- package/dist/index.cjs479.js +2 -0
- package/dist/index.cjs479.js.map +1 -0
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs480.js +2 -0
- package/dist/index.cjs480.js.map +1 -0
- package/dist/index.cjs481.js +2 -0
- package/dist/index.cjs481.js.map +1 -0
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/index.cjs483.js +2 -0
- package/dist/index.cjs483.js.map +1 -0
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/index.cjs486.js +2 -0
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs487.js +2 -0
- package/dist/index.cjs487.js.map +1 -0
- package/dist/index.cjs488.js +2 -0
- package/dist/index.cjs488.js.map +1 -0
- package/dist/index.cjs489.js +2 -0
- package/dist/index.cjs489.js.map +1 -0
- package/dist/index.cjs490.js +2 -0
- package/dist/index.cjs490.js.map +1 -0
- package/dist/index.cjs491.js +2 -0
- package/dist/index.cjs491.js.map +1 -0
- package/dist/index.cjs492.js +2 -0
- package/dist/index.cjs492.js.map +1 -0
- package/dist/index.cjs493.js +2 -0
- package/dist/index.cjs493.js.map +1 -0
- package/dist/index.cjs494.js +2 -0
- package/dist/index.cjs494.js.map +1 -0
- package/dist/index.cjs495.js +2 -0
- package/dist/index.cjs495.js.map +1 -0
- package/dist/index.cjs496.js +2 -0
- package/dist/index.cjs496.js.map +1 -0
- package/dist/index.cjs497.js +2 -0
- package/dist/index.cjs497.js.map +1 -0
- package/dist/index.cjs498.js +2 -0
- package/dist/index.cjs498.js.map +1 -0
- package/dist/index.cjs499.js +2 -0
- package/dist/index.cjs499.js.map +1 -0
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs500.js +2 -0
- package/dist/index.cjs500.js.map +1 -0
- package/dist/index.cjs501.js +2 -0
- package/dist/index.cjs501.js.map +1 -0
- package/dist/index.cjs502.js +2 -0
- package/dist/index.cjs502.js.map +1 -0
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs504.js +2 -0
- package/dist/index.cjs504.js.map +1 -0
- package/dist/index.cjs505.js +2 -0
- package/dist/index.cjs505.js.map +1 -0
- package/dist/index.cjs506.js +2 -0
- package/dist/index.cjs506.js.map +1 -0
- package/dist/index.cjs507.js +2 -0
- package/dist/index.cjs507.js.map +1 -0
- package/dist/index.cjs508.js +2 -0
- package/dist/index.cjs508.js.map +1 -0
- package/dist/index.cjs509.js +2 -0
- package/dist/index.cjs509.js.map +1 -0
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs510.js +2 -0
- package/dist/index.cjs510.js.map +1 -0
- package/dist/index.cjs511.js +2 -0
- package/dist/index.cjs511.js.map +1 -0
- package/dist/index.cjs512.js +2 -0
- package/dist/index.cjs512.js.map +1 -0
- package/dist/index.cjs513.js +2 -0
- package/dist/index.cjs513.js.map +1 -0
- package/dist/index.cjs514.js +2 -0
- package/dist/index.cjs514.js.map +1 -0
- package/dist/index.cjs515.js +2 -0
- package/dist/index.cjs515.js.map +1 -0
- package/dist/index.cjs516.js +2 -0
- package/dist/index.cjs516.js.map +1 -0
- package/dist/index.cjs517.js +2 -0
- package/dist/index.cjs517.js.map +1 -0
- package/dist/index.cjs518.js +2 -0
- package/dist/index.cjs518.js.map +1 -0
- package/dist/index.cjs519.js +2 -0
- package/dist/index.cjs519.js.map +1 -0
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs520.js +2 -0
- package/dist/index.cjs520.js.map +1 -0
- package/dist/index.cjs521.js +2 -0
- package/dist/index.cjs521.js.map +1 -0
- package/dist/index.cjs522.js +2 -0
- package/dist/index.cjs522.js.map +1 -0
- package/dist/index.cjs523.js +2 -0
- package/dist/index.cjs523.js.map +1 -0
- package/dist/index.cjs524.js +2 -0
- package/dist/index.cjs524.js.map +1 -0
- package/dist/index.cjs525.js +2 -0
- package/dist/index.cjs525.js.map +1 -0
- package/dist/index.cjs526.js +2 -0
- package/dist/index.cjs526.js.map +1 -0
- package/dist/index.cjs527.js +2 -0
- package/dist/index.cjs527.js.map +1 -0
- package/dist/index.cjs528.js +2 -0
- package/dist/index.cjs528.js.map +1 -0
- package/dist/index.cjs529.js +2 -0
- package/dist/index.cjs529.js.map +1 -0
- package/dist/index.cjs530.js +2 -0
- package/dist/index.cjs530.js.map +1 -0
- package/dist/index.cjs531.js +2 -0
- package/dist/index.cjs531.js.map +1 -0
- package/dist/index.cjs532.js +2 -0
- package/dist/index.cjs532.js.map +1 -0
- package/dist/index.cjs533.js +2 -0
- package/dist/index.cjs533.js.map +1 -0
- package/dist/index.cjs534.js +2 -0
- package/dist/index.cjs534.js.map +1 -0
- package/dist/index.cjs535.js +2 -0
- package/dist/index.cjs535.js.map +1 -0
- package/dist/index.cjs536.js +2 -0
- package/dist/index.cjs536.js.map +1 -0
- package/dist/index.cjs537.js +2 -0
- package/dist/index.cjs537.js.map +1 -0
- package/dist/index.cjs538.js +2 -0
- package/dist/index.cjs538.js.map +1 -0
- package/dist/index.cjs539.js +2 -0
- package/dist/index.cjs539.js.map +1 -0
- package/dist/index.cjs540.js +2 -0
- package/dist/index.cjs540.js.map +1 -0
- package/dist/index.cjs541.js +2 -0
- package/dist/index.cjs541.js.map +1 -0
- package/dist/index.cjs542.js +2 -0
- package/dist/index.cjs542.js.map +1 -0
- package/dist/index.cjs543.js +2 -0
- package/dist/index.cjs543.js.map +1 -0
- package/dist/index.cjs544.js +9 -0
- package/dist/index.cjs544.js.map +1 -0
- package/dist/index.cjs545.js +2 -0
- package/dist/index.cjs545.js.map +1 -0
- package/dist/index.cjs546.js +2 -0
- package/dist/index.cjs546.js.map +1 -0
- package/dist/index.cjs547.js +2 -0
- package/dist/index.cjs547.js.map +1 -0
- package/dist/index.cjs548.js +2 -0
- package/dist/index.cjs548.js.map +1 -0
- package/dist/index.cjs549.js +2 -0
- package/dist/index.cjs549.js.map +1 -0
- package/dist/index.cjs550.js +2 -0
- package/dist/index.cjs550.js.map +1 -0
- package/dist/index.cjs551.js +2 -0
- package/dist/index.cjs551.js.map +1 -0
- package/dist/index.cjs552.js +2 -0
- package/dist/index.cjs552.js.map +1 -0
- package/dist/index.cjs553.js +2 -0
- package/dist/index.cjs553.js.map +1 -0
- package/dist/index.cjs554.js +2 -0
- package/dist/index.cjs554.js.map +1 -0
- package/dist/index.cjs555.js +2 -0
- package/dist/index.cjs555.js.map +1 -0
- package/dist/index.cjs556.js +2 -0
- package/dist/index.cjs556.js.map +1 -0
- package/dist/index.cjs557.js +2 -0
- package/dist/index.cjs557.js.map +1 -0
- package/dist/index.cjs558.js +2 -0
- package/dist/index.cjs558.js.map +1 -0
- package/dist/index.cjs559.js +2 -0
- package/dist/index.cjs559.js.map +1 -0
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs560.js +2 -0
- package/dist/index.cjs560.js.map +1 -0
- package/dist/index.cjs561.js +2 -0
- package/dist/index.cjs561.js.map +1 -0
- package/dist/index.cjs562.js +2 -0
- package/dist/index.cjs562.js.map +1 -0
- package/dist/index.cjs563.js +2 -0
- package/dist/index.cjs563.js.map +1 -0
- package/dist/index.cjs564.js +2 -0
- package/dist/index.cjs564.js.map +1 -0
- package/dist/index.cjs565.js +2 -0
- package/dist/index.cjs565.js.map +1 -0
- package/dist/index.cjs566.js +2 -0
- package/dist/index.cjs566.js.map +1 -0
- package/dist/index.cjs567.js +2 -0
- package/dist/index.cjs567.js.map +1 -0
- package/dist/index.cjs568.js +2 -0
- package/dist/index.cjs568.js.map +1 -0
- package/dist/index.cjs569.js +2 -0
- package/dist/index.cjs569.js.map +1 -0
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs570.js +2 -0
- package/dist/index.cjs570.js.map +1 -0
- package/dist/index.cjs571.js +2 -0
- package/dist/index.cjs571.js.map +1 -0
- package/dist/index.cjs572.js +2 -0
- package/dist/index.cjs572.js.map +1 -0
- package/dist/index.cjs573.js +2 -0
- package/dist/index.cjs573.js.map +1 -0
- package/dist/index.cjs574.js +2 -0
- package/dist/index.cjs574.js.map +1 -0
- package/dist/index.cjs575.js +2 -0
- package/dist/index.cjs575.js.map +1 -0
- package/dist/index.cjs576.js +2 -0
- package/dist/index.cjs576.js.map +1 -0
- package/dist/index.cjs577.js +2 -0
- package/dist/index.cjs577.js.map +1 -0
- package/dist/index.cjs578.js +2 -0
- package/dist/index.cjs578.js.map +1 -0
- package/dist/index.cjs579.js +2 -0
- package/dist/index.cjs579.js.map +1 -0
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs580.js +2 -0
- package/dist/index.cjs580.js.map +1 -0
- package/dist/index.cjs581.js +2 -0
- package/dist/index.cjs581.js.map +1 -0
- package/dist/index.cjs582.js +2 -0
- package/dist/index.cjs582.js.map +1 -0
- package/dist/index.cjs583.js +2 -0
- package/dist/index.cjs583.js.map +1 -0
- package/dist/index.cjs584.js +2 -0
- package/dist/index.cjs584.js.map +1 -0
- package/dist/index.cjs585.js +2 -0
- package/dist/index.cjs585.js.map +1 -0
- package/dist/index.cjs586.js +2 -0
- package/dist/index.cjs586.js.map +1 -0
- package/dist/index.cjs587.js +2 -0
- package/dist/index.cjs587.js.map +1 -0
- package/dist/index.cjs588.js +2 -0
- package/dist/index.cjs588.js.map +1 -0
- package/dist/index.cjs589.js +2 -0
- package/dist/index.cjs589.js.map +1 -0
- package/dist/index.cjs590.js +2 -0
- package/dist/index.cjs590.js.map +1 -0
- package/dist/index.cjs591.js +2 -0
- package/dist/index.cjs591.js.map +1 -0
- package/dist/index.cjs592.js +2 -0
- package/dist/index.cjs592.js.map +1 -0
- package/dist/index.cjs593.js +2 -0
- package/dist/index.cjs593.js.map +1 -0
- package/dist/index.cjs594.js +2 -0
- package/dist/index.cjs594.js.map +1 -0
- package/dist/index.cjs595.js +2 -0
- package/dist/index.cjs595.js.map +1 -0
- package/dist/index.cjs596.js +2 -0
- package/dist/index.cjs596.js.map +1 -0
- package/dist/index.cjs597.js +2 -0
- package/dist/index.cjs597.js.map +1 -0
- package/dist/index.cjs598.js +2 -0
- package/dist/index.cjs598.js.map +1 -0
- package/dist/index.cjs599.js +2 -0
- package/dist/index.cjs599.js.map +1 -0
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs600.js +2 -0
- package/dist/index.cjs600.js.map +1 -0
- package/dist/index.cjs601.js +2 -0
- package/dist/index.cjs601.js.map +1 -0
- package/dist/index.cjs602.js +2 -0
- package/dist/index.cjs602.js.map +1 -0
- package/dist/index.cjs603.js +2 -0
- package/dist/index.cjs603.js.map +1 -0
- package/dist/index.cjs604.js +2 -0
- package/dist/index.cjs604.js.map +1 -0
- package/dist/index.cjs605.js +2 -0
- package/dist/index.cjs605.js.map +1 -0
- package/dist/index.cjs606.js +2 -0
- package/dist/index.cjs606.js.map +1 -0
- package/dist/index.cjs607.js +2 -0
- package/dist/index.cjs607.js.map +1 -0
- package/dist/index.cjs608.js +2 -0
- package/dist/index.cjs608.js.map +1 -0
- package/dist/index.cjs609.js +2 -0
- package/dist/index.cjs609.js.map +1 -0
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs610.js +2 -0
- package/dist/index.cjs610.js.map +1 -0
- package/dist/index.cjs611.js +2 -0
- package/dist/index.cjs611.js.map +1 -0
- package/dist/index.cjs612.js +2 -0
- package/dist/index.cjs612.js.map +1 -0
- package/dist/index.cjs613.js +4 -0
- package/dist/index.cjs613.js.map +1 -0
- package/dist/index.cjs614.js +2 -0
- package/dist/index.cjs614.js.map +1 -0
- package/dist/index.cjs615.js +2 -0
- package/dist/index.cjs615.js.map +1 -0
- package/dist/index.cjs616.js +2 -0
- package/dist/index.cjs616.js.map +1 -0
- package/dist/index.cjs617.js +2 -0
- package/dist/index.cjs617.js.map +1 -0
- package/dist/index.cjs618.js +2 -0
- package/dist/index.cjs618.js.map +1 -0
- package/dist/index.cjs619.js +61 -0
- package/dist/index.cjs619.js.map +1 -0
- package/dist/index.cjs620.js +2 -0
- package/dist/index.cjs620.js.map +1 -0
- package/dist/index.cjs621.js +2 -0
- package/dist/index.cjs621.js.map +1 -0
- package/dist/index.cjs622.js +2 -0
- package/dist/index.cjs622.js.map +1 -0
- package/dist/index.cjs623.js +2 -0
- package/dist/index.cjs623.js.map +1 -0
- package/dist/index.cjs624.js +2 -0
- package/dist/index.cjs624.js.map +1 -0
- package/dist/index.cjs625.js +2 -0
- package/dist/index.cjs625.js.map +1 -0
- package/dist/index.cjs626.js +2 -0
- package/dist/index.cjs626.js.map +1 -0
- package/dist/index.cjs627.js +2 -0
- package/dist/index.cjs627.js.map +1 -0
- package/dist/index.cjs628.js +2 -0
- package/dist/index.cjs628.js.map +1 -0
- package/dist/index.cjs629.js +4 -0
- package/dist/index.cjs629.js.map +1 -0
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs630.js +2 -0
- package/dist/index.cjs630.js.map +1 -0
- package/dist/index.cjs631.js +2 -0
- package/dist/index.cjs631.js.map +1 -0
- package/dist/index.cjs632.js +2 -0
- package/dist/index.cjs632.js.map +1 -0
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -440
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +743 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js +9 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js +11 -3
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js +1 -17
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs86.js +1 -743
- package/dist/index.cjs86.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs89.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es114.js +3 -3
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +1 -1
- package/dist/index.es12.js +6 -7
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +8 -8
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es134.js +2 -2
- package/dist/index.es137.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +1 -1
- package/dist/index.es16.js +4 -4
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +1 -1
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es171.js +2 -2
- package/dist/index.es172.js +2 -2
- package/dist/index.es174.js +2 -2
- package/dist/index.es175.js +1 -1
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es18.js +3 -3
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es188.js +2 -2
- package/dist/index.es189.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +1 -1
- package/dist/index.es194.js +36 -147
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +476 -17
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +164 -6
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +72 -5
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +52 -3
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +382 -3
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +18 -37
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +126 -3
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +354 -22
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +220 -2
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +25 -3
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +61 -2
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +103 -28
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +29 -13
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +29 -14
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +96 -8
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +35 -243
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +18 -43
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +53 -3
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +7 -11
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +525 -9
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +24 -29
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +29 -12
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +242 -4
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +41 -6
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +3 -5
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es220.js +11 -4
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +11 -3
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +31 -3
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +13 -8
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +4 -18
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +6 -19
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +4 -12
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +3 -14
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +3 -6
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +3 -8
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es230.js +8 -6
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +17 -20
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +19 -8
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +13 -9
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +15 -4
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +5 -10
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +7 -7
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +6 -20
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +20 -9
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +8 -16
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +9 -4
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +3 -17
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +10 -11
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +6 -2
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +20 -4
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +10 -7506
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +18 -2
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +4 -21
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +16 -21
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +10 -6
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +3 -5
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +5 -3
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +199 -21
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +8 -16
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +6 -30
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +5 -22
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +3 -77
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +3 -23
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +34 -39
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +3 -52
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es260.js +22 -7
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +2 -23
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +3 -68
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +2 -45
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +30 -63
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +13 -9
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +12 -2
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +8 -12
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +57 -55
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +58 -45
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es270.js +3 -16
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +7 -2
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +5 -4
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +18 -67
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +22 -3
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +268 -21
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +7510 -0
- package/dist/index.es276.js.map +1 -0
- package/dist/index.es277.js +5 -0
- package/dist/index.es277.js.map +1 -0
- package/dist/index.es278.js +26 -0
- package/dist/index.es278.js.map +1 -0
- package/dist/index.es279.js +24 -0
- package/dist/index.es279.js.map +1 -0
- package/dist/index.es280.js +80 -0
- package/dist/index.es280.js.map +1 -0
- package/dist/index.es281.js +20 -0
- package/dist/index.es281.js.map +1 -0
- package/dist/index.es282.js +30 -0
- package/dist/index.es282.js.map +1 -0
- package/dist/index.es283.js +218 -0
- package/dist/index.es283.js.map +1 -0
- package/dist/index.es284.js +204 -0
- package/dist/index.es284.js.map +1 -0
- package/dist/index.es285.js +9 -0
- package/dist/index.es285.js.map +1 -0
- package/dist/index.es286.js +246 -0
- package/dist/index.es286.js.map +1 -0
- package/dist/index.es287.js +89 -0
- package/dist/index.es287.js.map +1 -0
- package/dist/index.es288.js +565 -0
- package/dist/index.es288.js.map +1 -0
- package/dist/index.es289.js +62 -0
- package/dist/index.es289.js.map +1 -0
- package/dist/index.es29.js +2 -2
- package/dist/index.es290.js +418 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/index.es291.js +17 -0
- package/dist/index.es291.js.map +1 -0
- package/dist/index.es292.js +107 -0
- package/dist/index.es292.js.map +1 -0
- package/dist/index.es293.js +19 -0
- package/dist/index.es293.js.map +1 -0
- package/dist/index.es294.js +33 -0
- package/dist/index.es294.js.map +1 -0
- package/dist/index.es295.js +157 -0
- package/dist/index.es295.js.map +1 -0
- package/dist/index.es296.js +21 -0
- package/dist/index.es296.js.map +1 -0
- package/dist/index.es297.js +17 -0
- package/dist/index.es297.js.map +1 -0
- package/dist/index.es298.js +354 -0
- package/dist/index.es298.js.map +1 -0
- package/dist/index.es299.js +67 -0
- package/dist/index.es299.js.map +1 -0
- package/dist/index.es300.js +50 -0
- package/dist/index.es300.js.map +1 -0
- package/dist/index.es301.js +215 -0
- package/dist/index.es301.js.map +1 -0
- package/dist/index.es302.js +65 -0
- package/dist/index.es302.js.map +1 -0
- package/dist/index.es303.js +63 -0
- package/dist/index.es303.js.map +1 -0
- package/dist/index.es304.js +49 -0
- package/dist/index.es304.js.map +1 -0
- package/dist/index.es305.js +55 -0
- package/dist/index.es305.js.map +1 -0
- package/dist/index.es306.js +329 -0
- package/dist/index.es306.js.map +1 -0
- package/dist/index.es307.js +314 -0
- package/dist/index.es307.js.map +1 -0
- package/dist/index.es308.js +259 -0
- package/dist/index.es308.js.map +1 -0
- package/dist/index.es309.js +60 -0
- package/dist/index.es309.js.map +1 -0
- package/dist/index.es310.js +204 -0
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +30 -0
- package/dist/index.es311.js.map +1 -0
- package/dist/index.es312.js +132 -0
- package/dist/index.es312.js.map +1 -0
- package/dist/index.es313.js +20 -0
- package/dist/index.es313.js.map +1 -0
- package/dist/index.es314.js +8 -0
- package/dist/index.es314.js.map +1 -0
- package/dist/index.es315.js +69 -0
- package/dist/index.es315.js.map +1 -0
- package/dist/index.es316.js +164 -0
- package/dist/index.es316.js.map +1 -0
- package/dist/index.es317.js +142 -0
- package/dist/index.es317.js.map +1 -0
- package/dist/index.es318.js +28 -0
- package/dist/index.es318.js.map +1 -0
- package/dist/index.es319.js +20 -0
- package/dist/index.es319.js.map +1 -0
- package/dist/index.es32.js +2 -2
- package/dist/index.es320.js +34 -0
- package/dist/index.es320.js.map +1 -0
- package/dist/index.es321.js +25 -0
- package/dist/index.es321.js.map +1 -0
- package/dist/index.es322.js +78 -0
- package/dist/index.es322.js.map +1 -0
- package/dist/index.es323.js +24 -0
- package/dist/index.es323.js.map +1 -0
- package/dist/index.es324.js +44 -0
- package/dist/index.es324.js.map +1 -0
- package/dist/index.es325.js +53 -0
- package/dist/index.es325.js.map +1 -0
- package/dist/index.es326.js +11 -0
- package/dist/index.es326.js.map +1 -0
- package/dist/index.es327.js +24 -0
- package/dist/index.es327.js.map +1 -0
- package/dist/index.es328.js +69 -0
- package/dist/index.es328.js.map +1 -0
- package/dist/index.es329.js +46 -0
- package/dist/index.es329.js.map +1 -0
- package/dist/index.es330.js +67 -0
- package/dist/index.es330.js.map +1 -0
- package/dist/index.es331.js +12 -0
- package/dist/index.es331.js.map +1 -0
- package/dist/index.es332.js +7 -0
- package/dist/index.es332.js.map +1 -0
- package/dist/index.es333.js +16 -0
- package/dist/index.es333.js.map +1 -0
- package/dist/index.es334.js +63 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es335.js +53 -0
- package/dist/index.es335.js.map +1 -0
- package/dist/index.es336.js +251 -0
- package/dist/index.es336.js.map +1 -0
- package/dist/index.es337.js +65 -0
- package/dist/index.es337.js.map +1 -0
- package/dist/index.es338.js +47 -0
- package/dist/index.es338.js.map +1 -0
- package/dist/index.es339.js +25 -0
- package/dist/index.es339.js.map +1 -0
- package/dist/index.es34.js +2 -2
- package/dist/index.es340.js +11 -0
- package/dist/index.es340.js.map +1 -0
- package/dist/index.es341.js +40 -0
- package/dist/index.es341.js.map +1 -0
- package/dist/index.es342.js +132 -0
- package/dist/index.es342.js.map +1 -0
- package/dist/index.es343.js +48 -0
- package/dist/index.es343.js.map +1 -0
- package/dist/index.es344.js +223 -0
- package/dist/index.es344.js.map +1 -0
- package/dist/index.es345.js +40 -0
- package/dist/index.es345.js.map +1 -0
- package/dist/index.es346.js +30 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es347.js +7 -0
- package/dist/index.es347.js.map +1 -0
- package/dist/index.es348.js +286 -0
- package/dist/index.es348.js.map +1 -0
- package/dist/index.es349.js +63 -0
- package/dist/index.es349.js.map +1 -0
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +54 -0
- package/dist/index.es350.js.map +1 -0
- package/dist/index.es351.js +6 -0
- package/dist/index.es351.js.map +1 -0
- package/dist/index.es352.js +73 -0
- package/dist/index.es352.js.map +1 -0
- package/dist/index.es353.js +8 -0
- package/dist/index.es353.js.map +1 -0
- package/dist/index.es354.js +19 -0
- package/dist/index.es354.js.map +1 -0
- package/dist/index.es355.js +31 -0
- package/dist/index.es355.js.map +1 -0
- package/dist/index.es356.js +61 -0
- package/dist/index.es356.js.map +1 -0
- package/dist/index.es357.js +62 -0
- package/dist/index.es357.js.map +1 -0
- package/dist/index.es358.js +87 -0
- package/dist/index.es358.js.map +1 -0
- package/dist/index.es359.js +26 -0
- package/dist/index.es359.js.map +1 -0
- package/dist/index.es360.js +48 -0
- package/dist/index.es360.js.map +1 -0
- package/dist/index.es361.js +13 -0
- package/dist/index.es361.js.map +1 -0
- package/dist/index.es362.js +35 -0
- package/dist/index.es362.js.map +1 -0
- package/dist/index.es363.js +31 -0
- package/dist/index.es363.js.map +1 -0
- package/dist/index.es364.js +1360 -0
- package/dist/index.es364.js.map +1 -0
- package/dist/index.es365.js +9 -0
- package/dist/index.es365.js.map +1 -0
- package/dist/index.es366.js +12 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es367.js +10 -0
- package/dist/index.es367.js.map +1 -0
- package/dist/index.es368.js +120 -0
- package/dist/index.es368.js.map +1 -0
- package/dist/index.es369.js +105 -0
- package/dist/index.es369.js.map +1 -0
- package/dist/index.es370.js +23 -0
- package/dist/index.es370.js.map +1 -0
- package/dist/index.es371.js +95 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/index.es372.js +68 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/index.es373.js +16 -0
- package/dist/index.es373.js.map +1 -0
- package/dist/index.es374.js +61 -0
- package/dist/index.es374.js.map +1 -0
- package/dist/index.es375.js +55 -0
- package/dist/index.es375.js.map +1 -0
- package/dist/index.es376.js +23 -0
- package/dist/index.es376.js.map +1 -0
- package/dist/index.es377.js +34 -0
- package/dist/index.es377.js.map +1 -0
- package/dist/index.es378.js +47 -0
- package/dist/index.es378.js.map +1 -0
- package/dist/index.es379.js +35 -0
- package/dist/index.es379.js.map +1 -0
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +59 -0
- package/dist/index.es380.js.map +1 -0
- package/dist/index.es381.js +62 -0
- package/dist/index.es381.js.map +1 -0
- package/dist/index.es382.js +32 -0
- package/dist/index.es382.js.map +1 -0
- package/dist/index.es383.js +53 -0
- package/dist/index.es383.js.map +1 -0
- package/dist/index.es384.js +128 -0
- package/dist/index.es384.js.map +1 -0
- package/dist/index.es385.js +44 -0
- package/dist/index.es385.js.map +1 -0
- package/dist/index.es386.js +29 -0
- package/dist/index.es386.js.map +1 -0
- package/dist/index.es387.js +37 -0
- package/dist/index.es387.js.map +1 -0
- package/dist/index.es388.js +28 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +69 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/index.es39.js +1 -1
- package/dist/index.es390.js +49 -0
- package/dist/index.es390.js.map +1 -0
- package/dist/index.es391.js +27 -0
- package/dist/index.es391.js.map +1 -0
- package/dist/index.es392.js +48 -0
- package/dist/index.es392.js.map +1 -0
- package/dist/index.es393.js +19 -0
- package/dist/index.es393.js.map +1 -0
- package/dist/index.es394.js +38 -0
- package/dist/index.es394.js.map +1 -0
- package/dist/index.es395.js +49 -0
- package/dist/index.es395.js.map +1 -0
- package/dist/index.es396.js +35 -0
- package/dist/index.es396.js.map +1 -0
- package/dist/index.es397.js +37 -0
- package/dist/index.es397.js.map +1 -0
- package/dist/index.es398.js +29 -0
- package/dist/index.es398.js.map +1 -0
- package/dist/index.es399.js +68 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es40.js +2 -2
- package/dist/index.es400.js +105 -0
- package/dist/index.es400.js.map +1 -0
- package/dist/index.es401.js +27 -0
- package/dist/index.es401.js.map +1 -0
- package/dist/index.es402.js +111 -0
- package/dist/index.es402.js.map +1 -0
- package/dist/index.es403.js +50 -0
- package/dist/index.es403.js.map +1 -0
- package/dist/index.es404.js +36 -0
- package/dist/index.es404.js.map +1 -0
- package/dist/index.es405.js +56 -0
- package/dist/index.es405.js.map +1 -0
- package/dist/index.es406.js +174 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +26 -0
- package/dist/index.es407.js.map +1 -0
- package/dist/index.es408.js +19 -0
- package/dist/index.es408.js.map +1 -0
- package/dist/index.es409.js +11 -0
- package/dist/index.es409.js.map +1 -0
- package/dist/index.es410.js +44 -0
- package/dist/index.es410.js.map +1 -0
- package/dist/index.es411.js +80 -0
- package/dist/index.es411.js.map +1 -0
- package/dist/index.es412.js +108 -0
- package/dist/index.es412.js.map +1 -0
- package/dist/index.es413.js +34 -0
- package/dist/index.es413.js.map +1 -0
- package/dist/index.es414.js +25 -0
- package/dist/index.es414.js.map +1 -0
- package/dist/index.es415.js +14 -0
- package/dist/index.es415.js.map +1 -0
- package/dist/index.es416.js +721 -0
- package/dist/index.es416.js.map +1 -0
- package/dist/index.es417.js +206 -0
- package/dist/index.es417.js.map +1 -0
- package/dist/index.es418.js +45 -0
- package/dist/index.es418.js.map +1 -0
- package/dist/index.es419.js +18 -0
- package/dist/index.es419.js.map +1 -0
- package/dist/index.es42.js +2 -2
- package/dist/index.es420.js +11 -0
- package/dist/index.es420.js.map +1 -0
- package/dist/index.es421.js +64 -0
- package/dist/index.es421.js.map +1 -0
- package/dist/index.es422.js +50 -0
- package/dist/index.es422.js.map +1 -0
- package/dist/index.es423.js +45 -0
- package/dist/index.es423.js.map +1 -0
- package/dist/index.es424.js +92 -0
- package/dist/index.es424.js.map +1 -0
- package/dist/index.es425.js +89 -0
- package/dist/index.es425.js.map +1 -0
- package/dist/index.es426.js +57 -0
- package/dist/index.es426.js.map +1 -0
- package/dist/index.es427.js +61 -0
- package/dist/index.es427.js.map +1 -0
- package/dist/index.es428.js +58 -0
- package/dist/index.es428.js.map +1 -0
- package/dist/index.es429.js +147 -0
- package/dist/index.es429.js.map +1 -0
- package/dist/index.es43.js +2 -2
- package/dist/index.es430.js +58 -0
- package/dist/index.es430.js.map +1 -0
- package/dist/index.es431.js +85 -0
- package/dist/index.es431.js.map +1 -0
- package/dist/index.es432.js +9 -0
- package/dist/index.es432.js.map +1 -0
- package/dist/index.es433.js +56 -0
- package/dist/index.es433.js.map +1 -0
- package/dist/index.es434.js +55 -0
- package/dist/index.es434.js.map +1 -0
- package/dist/index.es435.js +8 -0
- package/dist/index.es435.js.map +1 -0
- package/dist/index.es436.js +8 -0
- package/dist/index.es436.js.map +1 -0
- package/dist/index.es437.js +23 -0
- package/dist/index.es437.js.map +1 -0
- package/dist/index.es438.js +7 -0
- package/dist/index.es438.js.map +1 -0
- package/dist/index.es439.js +11 -0
- package/dist/index.es439.js.map +1 -0
- package/dist/index.es44.js +2 -2
- package/dist/index.es440.js +10 -0
- package/dist/index.es440.js.map +1 -0
- package/dist/index.es441.js +7 -0
- package/dist/index.es441.js.map +1 -0
- package/dist/index.es442.js +5 -0
- package/dist/index.es442.js.map +1 -0
- package/dist/index.es443.js +9 -0
- package/dist/index.es443.js.map +1 -0
- package/dist/index.es444.js +13 -0
- package/dist/index.es444.js.map +1 -0
- package/dist/index.es445.js +8 -0
- package/dist/index.es445.js.map +1 -0
- package/dist/index.es446.js +7 -0
- package/dist/index.es446.js.map +1 -0
- package/dist/index.es447.js +6 -0
- package/dist/index.es447.js.map +1 -0
- package/dist/index.es448.js +7 -0
- package/dist/index.es448.js.map +1 -0
- package/dist/index.es449.js +9 -0
- package/dist/index.es449.js.map +1 -0
- package/dist/index.es450.js +11 -0
- package/dist/index.es450.js.map +1 -0
- package/dist/index.es451.js +8 -0
- package/dist/index.es451.js.map +1 -0
- package/dist/index.es452.js +10 -0
- package/dist/index.es452.js.map +1 -0
- package/dist/index.es453.js +9 -0
- package/dist/index.es453.js.map +1 -0
- package/dist/index.es454.js +12 -0
- package/dist/index.es454.js.map +1 -0
- package/dist/index.es455.js +8 -0
- package/dist/index.es455.js.map +1 -0
- package/dist/index.es456.js +10 -0
- package/dist/index.es456.js.map +1 -0
- package/dist/index.es457.js +10 -0
- package/dist/index.es457.js.map +1 -0
- package/dist/index.es458.js +8 -0
- package/dist/index.es458.js.map +1 -0
- package/dist/index.es459.js +13 -0
- package/dist/index.es459.js.map +1 -0
- package/dist/index.es46.js +1 -1
- package/dist/index.es460.js +10 -0
- package/dist/index.es460.js.map +1 -0
- package/dist/index.es461.js +21 -0
- package/dist/index.es461.js.map +1 -0
- package/dist/index.es462.js +15 -0
- package/dist/index.es462.js.map +1 -0
- package/dist/index.es463.js +7 -0
- package/dist/index.es463.js.map +1 -0
- package/dist/index.es464.js +9 -0
- package/dist/index.es464.js.map +1 -0
- package/dist/index.es465.js +261 -0
- package/dist/index.es465.js.map +1 -0
- package/dist/index.es466.js +108 -0
- package/dist/index.es466.js.map +1 -0
- package/dist/index.es467.js +7 -0
- package/dist/index.es467.js.map +1 -0
- package/dist/index.es468.js +28 -0
- package/dist/index.es468.js.map +1 -0
- package/dist/index.es469.js +158 -0
- package/dist/index.es469.js.map +1 -0
- package/dist/index.es47.js +2 -2
- package/dist/index.es470.js +160 -0
- package/dist/index.es470.js.map +1 -0
- package/dist/index.es471.js +50 -0
- package/dist/index.es471.js.map +1 -0
- package/dist/index.es472.js +20 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +227 -0
- package/dist/index.es473.js.map +1 -0
- package/dist/index.es474.js +42 -0
- package/dist/index.es474.js.map +1 -0
- package/dist/index.es475.js +18 -0
- package/dist/index.es475.js.map +1 -0
- package/dist/index.es476.js +26 -0
- package/dist/index.es476.js.map +1 -0
- package/dist/index.es477.js +12 -0
- package/dist/index.es477.js.map +1 -0
- package/dist/index.es478.js +8 -0
- package/dist/index.es478.js.map +1 -0
- package/dist/index.es479.js +118 -0
- package/dist/index.es479.js.map +1 -0
- package/dist/index.es48.js +2 -2
- package/dist/index.es480.js +90 -0
- package/dist/index.es480.js.map +1 -0
- package/dist/index.es481.js +78 -0
- package/dist/index.es481.js.map +1 -0
- package/dist/index.es482.js +13 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/index.es483.js +83 -0
- package/dist/index.es483.js.map +1 -0
- package/dist/index.es484.js +9 -0
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es485.js +19 -0
- package/dist/index.es485.js.map +1 -0
- package/dist/index.es486.js +8 -0
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es487.js +11 -0
- package/dist/index.es487.js.map +1 -0
- package/dist/index.es488.js +7 -0
- package/dist/index.es488.js.map +1 -0
- package/dist/index.es489.js +15 -0
- package/dist/index.es489.js.map +1 -0
- package/dist/index.es490.js +7 -0
- package/dist/index.es490.js.map +1 -0
- package/dist/index.es491.js +8 -0
- package/dist/index.es491.js.map +1 -0
- package/dist/index.es492.js +9 -0
- package/dist/index.es492.js.map +1 -0
- package/dist/index.es493.js +10 -0
- package/dist/index.es493.js.map +1 -0
- package/dist/index.es494.js +9 -0
- package/dist/index.es494.js.map +1 -0
- package/dist/index.es495.js +9 -0
- package/dist/index.es495.js.map +1 -0
- package/dist/index.es496.js +11 -0
- package/dist/index.es496.js.map +1 -0
- package/dist/index.es497.js +14 -0
- package/dist/index.es497.js.map +1 -0
- package/dist/index.es498.js +28 -0
- package/dist/index.es498.js.map +1 -0
- package/dist/index.es499.js +8 -0
- package/dist/index.es499.js.map +1 -0
- package/dist/index.es50.js +1 -1
- package/dist/index.es500.js +9 -0
- package/dist/index.es500.js.map +1 -0
- package/dist/index.es501.js +11 -0
- package/dist/index.es501.js.map +1 -0
- package/dist/index.es502.js +7 -0
- package/dist/index.es502.js.map +1 -0
- package/dist/index.es503.js +7 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es504.js +7 -0
- package/dist/index.es504.js.map +1 -0
- package/dist/index.es505.js +7 -0
- package/dist/index.es505.js.map +1 -0
- package/dist/index.es506.js +7 -0
- package/dist/index.es506.js.map +1 -0
- package/dist/index.es507.js +8 -0
- package/dist/index.es507.js.map +1 -0
- package/dist/index.es508.js +9 -0
- package/dist/index.es508.js.map +1 -0
- package/dist/index.es509.js +12 -0
- package/dist/index.es509.js.map +1 -0
- package/dist/index.es51.js +1 -1
- package/dist/index.es510.js +8 -0
- package/dist/index.es510.js.map +1 -0
- package/dist/index.es511.js +9 -0
- package/dist/index.es511.js.map +1 -0
- package/dist/index.es512.js +8 -0
- package/dist/index.es512.js.map +1 -0
- package/dist/index.es513.js +7 -0
- package/dist/index.es513.js.map +1 -0
- package/dist/index.es514.js +14 -0
- package/dist/index.es514.js.map +1 -0
- package/dist/index.es515.js +34 -0
- package/dist/index.es515.js.map +1 -0
- package/dist/index.es516.js +9 -0
- package/dist/index.es516.js.map +1 -0
- package/dist/index.es517.js +19 -0
- package/dist/index.es517.js.map +1 -0
- package/dist/index.es518.js +9 -0
- package/dist/index.es518.js.map +1 -0
- package/dist/index.es519.js +11 -0
- package/dist/index.es519.js.map +1 -0
- package/dist/index.es52.js +1 -1
- package/dist/index.es520.js +10 -0
- package/dist/index.es520.js.map +1 -0
- package/dist/index.es521.js +10 -0
- package/dist/index.es521.js.map +1 -0
- package/dist/index.es522.js +29 -0
- package/dist/index.es522.js.map +1 -0
- package/dist/index.es523.js +9 -0
- package/dist/index.es523.js.map +1 -0
- package/dist/index.es524.js +43 -0
- package/dist/index.es524.js.map +1 -0
- package/dist/index.es525.js +10 -0
- package/dist/index.es525.js.map +1 -0
- package/dist/index.es526.js +13 -0
- package/dist/index.es526.js.map +1 -0
- package/dist/index.es527.js +9 -0
- package/dist/index.es527.js.map +1 -0
- package/dist/index.es528.js +12 -0
- package/dist/index.es528.js.map +1 -0
- package/dist/index.es529.js +9 -0
- package/dist/index.es529.js.map +1 -0
- package/dist/index.es530.js +18 -0
- package/dist/index.es530.js.map +1 -0
- package/dist/index.es531.js +5 -0
- package/dist/index.es531.js.map +1 -0
- package/dist/index.es532.js +6 -0
- package/dist/index.es532.js.map +1 -0
- package/dist/index.es533.js +16 -0
- package/dist/index.es533.js.map +1 -0
- package/dist/index.es534.js +8 -0
- package/dist/index.es534.js.map +1 -0
- package/dist/index.es535.js +6 -0
- package/dist/index.es535.js.map +1 -0
- package/dist/index.es536.js +7 -0
- package/dist/index.es536.js.map +1 -0
- package/dist/index.es537.js +7 -0
- package/dist/index.es537.js.map +1 -0
- package/dist/index.es538.js +7 -0
- package/dist/index.es538.js.map +1 -0
- package/dist/index.es539.js +7 -0
- package/dist/index.es539.js.map +1 -0
- package/dist/index.es540.js +7 -0
- package/dist/index.es540.js.map +1 -0
- package/dist/index.es541.js +18 -0
- package/dist/index.es541.js.map +1 -0
- package/dist/index.es542.js +33 -0
- package/dist/index.es542.js.map +1 -0
- package/dist/index.es543.js +11 -0
- package/dist/index.es543.js.map +1 -0
- package/dist/index.es544.js +3029 -0
- package/dist/index.es544.js.map +1 -0
- package/dist/index.es545.js +5 -0
- package/dist/index.es545.js.map +1 -0
- package/dist/index.es546.js +17 -0
- package/dist/index.es546.js.map +1 -0
- package/dist/index.es547.js +12 -0
- package/dist/index.es547.js.map +1 -0
- package/dist/index.es548.js +9 -0
- package/dist/index.es548.js.map +1 -0
- package/dist/index.es549.js +9 -0
- package/dist/index.es549.js.map +1 -0
- package/dist/index.es550.js +6 -0
- package/dist/index.es550.js.map +1 -0
- package/dist/index.es551.js +9 -0
- package/dist/index.es551.js.map +1 -0
- package/dist/index.es552.js +21 -0
- package/dist/index.es552.js.map +1 -0
- package/dist/index.es553.js +14 -0
- package/dist/index.es553.js.map +1 -0
- package/dist/index.es554.js +9 -0
- package/dist/index.es554.js.map +1 -0
- package/dist/index.es555.js +8 -0
- package/dist/index.es555.js.map +1 -0
- package/dist/index.es556.js +8 -0
- package/dist/index.es556.js.map +1 -0
- package/dist/index.es557.js +9 -0
- package/dist/index.es557.js.map +1 -0
- package/dist/index.es558.js +10 -0
- package/dist/index.es558.js.map +1 -0
- package/dist/index.es559.js +10 -0
- package/dist/index.es559.js.map +1 -0
- package/dist/index.es56.js +2 -2
- package/dist/index.es560.js +10 -0
- package/dist/index.es560.js.map +1 -0
- package/dist/index.es561.js +10 -0
- package/dist/index.es561.js.map +1 -0
- package/dist/index.es562.js +24 -0
- package/dist/index.es562.js.map +1 -0
- package/dist/index.es563.js +178 -0
- package/dist/index.es563.js.map +1 -0
- package/dist/index.es564.js +24 -0
- package/dist/index.es564.js.map +1 -0
- package/dist/index.es565.js +241 -0
- package/dist/index.es565.js.map +1 -0
- package/dist/index.es566.js +11 -0
- package/dist/index.es566.js.map +1 -0
- package/dist/index.es567.js +9 -0
- package/dist/index.es567.js.map +1 -0
- package/dist/index.es568.js +10 -0
- package/dist/index.es568.js.map +1 -0
- package/dist/index.es569.js +21 -0
- package/dist/index.es569.js.map +1 -0
- package/dist/index.es57.js +3 -3
- package/dist/index.es570.js +7 -0
- package/dist/index.es570.js.map +1 -0
- package/dist/index.es571.js +8 -0
- package/dist/index.es571.js.map +1 -0
- package/dist/index.es572.js +8 -0
- package/dist/index.es572.js.map +1 -0
- package/dist/index.es573.js +10 -0
- package/dist/index.es573.js.map +1 -0
- package/dist/index.es574.js +14 -0
- package/dist/index.es574.js.map +1 -0
- package/dist/index.es575.js +8 -0
- package/dist/index.es575.js.map +1 -0
- package/dist/index.es576.js +7 -0
- package/dist/index.es576.js.map +1 -0
- package/dist/index.es577.js +7 -0
- package/dist/index.es577.js.map +1 -0
- package/dist/index.es578.js +21 -0
- package/dist/index.es578.js.map +1 -0
- package/dist/index.es579.js +8 -0
- package/dist/index.es579.js.map +1 -0
- package/dist/index.es58.js +1 -1
- package/dist/index.es580.js +8 -0
- package/dist/index.es580.js.map +1 -0
- package/dist/index.es581.js +7 -0
- package/dist/index.es581.js.map +1 -0
- package/dist/index.es582.js +7 -0
- package/dist/index.es582.js.map +1 -0
- package/dist/index.es583.js +18 -0
- package/dist/index.es583.js.map +1 -0
- package/dist/index.es584.js +10 -0
- package/dist/index.es584.js.map +1 -0
- package/dist/index.es585.js +11 -0
- package/dist/index.es585.js.map +1 -0
- package/dist/index.es586.js +9 -0
- package/dist/index.es586.js.map +1 -0
- package/dist/index.es587.js +9 -0
- package/dist/index.es587.js.map +1 -0
- package/dist/index.es588.js +9 -0
- package/dist/index.es588.js.map +1 -0
- package/dist/index.es589.js +9 -0
- package/dist/index.es589.js.map +1 -0
- package/dist/index.es590.js +9 -0
- package/dist/index.es590.js.map +1 -0
- package/dist/index.es591.js +6 -0
- package/dist/index.es591.js.map +1 -0
- package/dist/index.es592.js +41 -0
- package/dist/index.es592.js.map +1 -0
- package/dist/index.es593.js +46 -0
- package/dist/index.es593.js.map +1 -0
- package/dist/index.es594.js +37 -0
- package/dist/index.es594.js.map +1 -0
- package/dist/index.es595.js +25 -0
- package/dist/index.es595.js.map +1 -0
- package/dist/index.es596.js +37 -0
- package/dist/index.es596.js.map +1 -0
- package/dist/index.es597.js +47 -0
- package/dist/index.es597.js.map +1 -0
- package/dist/index.es598.js +7 -0
- package/dist/index.es598.js.map +1 -0
- package/dist/index.es599.js +21 -0
- package/dist/index.es599.js.map +1 -0
- package/dist/index.es60.js +1 -1
- package/dist/index.es600.js +9 -0
- package/dist/index.es600.js.map +1 -0
- package/dist/index.es601.js +8 -0
- package/dist/index.es601.js.map +1 -0
- package/dist/index.es602.js +8 -0
- package/dist/index.es602.js.map +1 -0
- package/dist/index.es603.js +8 -0
- package/dist/index.es603.js.map +1 -0
- package/dist/index.es604.js +14 -0
- package/dist/index.es604.js.map +1 -0
- package/dist/index.es605.js +10 -0
- package/dist/index.es605.js.map +1 -0
- package/dist/index.es606.js +10 -0
- package/dist/index.es606.js.map +1 -0
- package/dist/index.es607.js +7 -0
- package/dist/index.es607.js.map +1 -0
- package/dist/index.es608.js +13 -0
- package/dist/index.es608.js.map +1 -0
- package/dist/index.es609.js +9 -0
- package/dist/index.es609.js.map +1 -0
- package/dist/index.es61.js +1 -1
- package/dist/index.es610.js +8 -0
- package/dist/index.es610.js.map +1 -0
- package/dist/index.es611.js +9 -0
- package/dist/index.es611.js.map +1 -0
- package/dist/index.es612.js +215 -0
- package/dist/index.es612.js.map +1 -0
- package/dist/index.es613.js +246 -0
- package/dist/index.es613.js.map +1 -0
- package/dist/index.es614.js +39 -0
- package/dist/index.es614.js.map +1 -0
- package/dist/index.es615.js +18 -0
- package/dist/index.es615.js.map +1 -0
- package/dist/index.es616.js +567 -0
- package/dist/index.es616.js.map +1 -0
- package/dist/index.es617.js +59 -0
- package/dist/index.es617.js.map +1 -0
- package/dist/index.es618.js +338 -0
- package/dist/index.es618.js.map +1 -0
- package/dist/index.es619.js +1103 -0
- package/dist/index.es619.js.map +1 -0
- package/dist/index.es620.js +41 -0
- package/dist/index.es620.js.map +1 -0
- package/dist/index.es621.js +39 -0
- package/dist/index.es621.js.map +1 -0
- package/dist/index.es622.js +51 -0
- package/dist/index.es622.js.map +1 -0
- package/dist/index.es623.js +65 -0
- package/dist/index.es623.js.map +1 -0
- package/dist/index.es624.js +6 -0
- package/dist/index.es624.js.map +1 -0
- package/dist/index.es625.js +11 -0
- package/dist/index.es625.js.map +1 -0
- package/dist/index.es626.js +174 -0
- package/dist/index.es626.js.map +1 -0
- package/dist/index.es627.js +6 -0
- package/dist/index.es627.js.map +1 -0
- package/dist/index.es628.js +298 -0
- package/dist/index.es628.js.map +1 -0
- package/dist/index.es629.js +27 -0
- package/dist/index.es629.js.map +1 -0
- package/dist/index.es63.js +1 -1
- package/dist/index.es630.js +53 -0
- package/dist/index.es630.js.map +1 -0
- package/dist/index.es631.js +9 -0
- package/dist/index.es631.js.map +1 -0
- package/dist/index.es632.js +31 -0
- package/dist/index.es632.js.map +1 -0
- package/dist/index.es67.js +10 -6
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +163 -13731
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +1 -1
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +15 -15
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +4 -4
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +10 -10
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +21314 -1955
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +2 -6
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +8 -2
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +2 -8
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +26 -2
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +580 -17
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +105 -588
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +10 -21352
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +1993 -2
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +5 -105
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +2 -10
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es93.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs277.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("./index.cjs279.js");function w(d,h){var f,i,g=0,s,t,r,v,a,e,u,m=d[0],x=d[1],P=h.length;for(f=0;f<P;f++){i=0;var n=h[f],l=n.length-1;if(e=n[0],e[0]!==n[l][0]&&e[1]!==n[l][1])throw new Error("First and last coordinates in a ring must be the same");for(t=e[0]-m,r=e[1]-x,i;i<l;i++){if(u=n[i+1],v=u[0]-m,a=u[1]-x,r===0&&a===0){if(v<=0&&t>=0||t<=0&&v>=0)return 0}else if(a>=0&&r<=0||a<=0&&r>=0){if(s=o.orient2d(t,v,r,a,0,0),s===0)return 0;(s>0&&a>0&&r<=0||s<0&&a<=0&&r>0)&&g++}e=u,r=a,t=v}}return g%2!==0}module.exports=w;
|
|
2
|
+
//# sourceMappingURL=index.cjs278.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs278.js","sources":["../../../node_modules/point-in-polygon-hao/dist/esm/index.js"],"sourcesContent":["import { orient2d } from 'robust-predicates';\n\nfunction pointInPolygon(p, polygon) {\n var i;\n var ii;\n var k = 0;\n var f;\n var u1;\n var v1;\n var u2;\n var v2;\n var currentP;\n var nextP;\n\n var x = p[0];\n var y = p[1];\n\n var numContours = polygon.length;\n for (i = 0; i < numContours; i++) {\n ii = 0;\n var contour = polygon[i];\n var contourLen = contour.length - 1;\n\n currentP = contour[0];\n if (currentP[0] !== contour[contourLen][0] &&\n currentP[1] !== contour[contourLen][1]) {\n throw new Error('First and last coordinates in a ring must be the same')\n }\n\n u1 = currentP[0] - x;\n v1 = currentP[1] - y;\n\n for (ii; ii < contourLen; ii++) {\n nextP = contour[ii + 1];\n\n u2 = nextP[0] - x;\n v2 = nextP[1] - y;\n\n if (v1 === 0 && v2 === 0) {\n if ((u2 <= 0 && u1 >= 0) || (u1 <= 0 && u2 >= 0)) { return 0 }\n } else if ((v2 >= 0 && v1 <= 0) || (v2 <= 0 && v1 >= 0)) {\n f = orient2d(u1, u2, v1, v2, 0, 0);\n if (f === 0) { return 0 }\n if ((f > 0 && v2 > 0 && v1 <= 0) || (f < 0 && v2 <= 0 && v1 > 0)) { k++; }\n }\n currentP = nextP;\n v1 = v2;\n u1 = u2;\n }\n }\n\n if (k % 2 === 0) { return false }\n return true\n}\n\nexport { pointInPolygon as default };\n"],"names":["pointInPolygon","p","polygon","i","ii","k","f","u1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1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs355.js"),K=(3+16*n.epsilon)*n.epsilon,L=(2+12*n.epsilon)*n.epsilon,N=(9+64*n.epsilon)*n.epsilon*n.epsilon,T=n.vec(4),E=n.vec(8),F=n.vec(12),G=n.vec(16),f=n.vec(4);function Q(q,A,O,P,D,S,k){let v,h,m,M,t,e,r,o,i,l,s,c,u,p,a,d,C,b;const g=q-D,w=O-D,_=A-S,j=P-S;p=g*j,e=n.splitter*g,r=e-(e-g),o=g-r,e=n.splitter*j,i=e-(e-j),l=j-i,a=o*l-(p-r*i-o*i-r*l),d=_*w,e=n.splitter*_,r=e-(e-_),o=_-r,e=n.splitter*w,i=e-(e-w),l=w-i,C=o*l-(d-r*i-o*i-r*l),s=a-C,t=a-s,T[0]=a-(s+t)+(t-C),c=p+s,t=c-p,u=p-(c-t)+(s-t),s=u-d,t=u-s,T[1]=u-(s+t)+(t-d),b=c+s,t=b-c,T[2]=c-(b-t)+(s-t),T[3]=b;let B=n.estimate(4,T),z=L*k;if(B>=z||-B>=z||(t=q-g,v=q-(g+t)+(t-D),t=O-w,m=O-(w+t)+(t-D),t=A-_,h=A-(_+t)+(t-S),t=P-j,M=P-(j+t)+(t-S),v===0&&h===0&&m===0&&M===0)||(z=N*k+n.resulterrbound*Math.abs(B),B+=g*M+j*v-(_*m+w*h),B>=z||-B>=z))return B;p=v*j,e=n.splitter*v,r=e-(e-v),o=v-r,e=n.splitter*j,i=e-(e-j),l=j-i,a=o*l-(p-r*i-o*i-r*l),d=h*w,e=n.splitter*h,r=e-(e-h),o=h-r,e=n.splitter*w,i=e-(e-w),l=w-i,C=o*l-(d-r*i-o*i-r*l),s=a-C,t=a-s,f[0]=a-(s+t)+(t-C),c=p+s,t=c-p,u=p-(c-t)+(s-t),s=u-d,t=u-s,f[1]=u-(s+t)+(t-d),b=c+s,t=b-c,f[2]=c-(b-t)+(s-t),f[3]=b;const H=n.sum(4,T,4,f,E);p=g*M,e=n.splitter*g,r=e-(e-g),o=g-r,e=n.splitter*M,i=e-(e-M),l=M-i,a=o*l-(p-r*i-o*i-r*l),d=_*m,e=n.splitter*_,r=e-(e-_),o=_-r,e=n.splitter*m,i=e-(e-m),l=m-i,C=o*l-(d-r*i-o*i-r*l),s=a-C,t=a-s,f[0]=a-(s+t)+(t-C),c=p+s,t=c-p,u=p-(c-t)+(s-t),s=u-d,t=u-s,f[1]=u-(s+t)+(t-d),b=c+s,t=b-c,f[2]=c-(b-t)+(s-t),f[3]=b;const I=n.sum(H,E,4,f,F);p=v*M,e=n.splitter*v,r=e-(e-v),o=v-r,e=n.splitter*M,i=e-(e-M),l=M-i,a=o*l-(p-r*i-o*i-r*l),d=h*m,e=n.splitter*h,r=e-(e-h),o=h-r,e=n.splitter*m,i=e-(e-m),l=m-i,C=o*l-(d-r*i-o*i-r*l),s=a-C,t=a-s,f[0]=a-(s+t)+(t-C),c=p+s,t=c-p,u=p-(c-t)+(s-t),s=u-d,t=u-s,f[1]=u-(s+t)+(t-d),b=c+s,t=b-c,f[2]=c-(b-t)+(s-t),f[3]=b;const J=n.sum(I,F,4,f,G);return G[J-1]}function R(q,A,O,P,D,S){const k=(A-S)*(O-D),v=(q-D)*(P-S),h=k-v,m=Math.abs(k+v);return Math.abs(h)>=K*m?h:-Q(q,A,O,P,D,S,m)}exports.orient2d=R;
|
|
2
|
+
//# sourceMappingURL=index.cjs279.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs279.js","sources":["../../../node_modules/robust-predicates/esm/orient2d.js"],"sourcesContent":["import {epsilon, splitter, resulterrbound, estimate, vec, sum} from './util.js';\n\nconst ccwerrboundA = (3 + 16 * epsilon) * epsilon;\nconst ccwerrboundB = (2 + 12 * epsilon) * epsilon;\nconst ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon;\n\nconst B = vec(4);\nconst C1 = vec(8);\nconst C2 = vec(12);\nconst D = vec(16);\nconst u = vec(4);\n\nfunction orient2dadapt(ax, ay, bx, by, cx, cy, detsum) {\n let acxtail, acytail, bcxtail, bcytail;\n let bvirt, c, ahi, alo, bhi, blo, _i, _j, _0, s1, s0, t1, t0, u3;\n\n const acx = ax - cx;\n const bcx = bx - cx;\n const acy = ay - cy;\n const bcy = by - cy;\n\n s1 = acx * bcy;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcx;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n B[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n B[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n B[2] = _j - (u3 - bvirt) + (_i - bvirt);\n B[3] = u3;\n\n let det = estimate(4, B);\n let errbound = ccwerrboundB * detsum;\n if (det >= errbound || -det >= errbound) {\n return det;\n }\n\n bvirt = ax - acx;\n acxtail = ax - (acx + bvirt) + (bvirt - cx);\n bvirt = bx - bcx;\n bcxtail = bx - (bcx + bvirt) + (bvirt - cx);\n bvirt = ay - acy;\n acytail = ay - (acy + bvirt) + (bvirt - cy);\n bvirt = by - bcy;\n bcytail = by - (bcy + bvirt) + (bvirt - cy);\n\n if (acxtail === 0 && acytail === 0 && bcxtail === 0 && bcytail === 0) {\n return det;\n }\n\n errbound = ccwerrboundC * detsum + resulterrbound * Math.abs(det);\n det += (acx * bcytail + bcy * acxtail) - (acy * bcxtail + bcx * acytail);\n if (det >= errbound || -det >= errbound) return det;\n\n s1 = acxtail * bcy;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcx;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C1len = sum(4, B, 4, u, C1);\n\n s1 = acx * bcytail;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcxtail;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C2len = sum(C1len, C1, 4, u, C2);\n\n s1 = acxtail * bcytail;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcxtail;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const Dlen = sum(C2len, C2, 4, u, D);\n\n return D[Dlen - 1];\n}\n\nexport function orient2d(ax, ay, bx, by, cx, cy) {\n const detleft = (ay - cy) * (bx - cx);\n const detright = (ax - cx) * (by - cy);\n const det = detleft - detright;\n\n const detsum = Math.abs(detleft + detright);\n if (Math.abs(det) >= ccwerrboundA * detsum) return det;\n\n return -orient2dadapt(ax, ay, bx, by, cx, cy, detsum);\n}\n\nexport function orient2dfast(ax, ay, bx, by, cx, cy) {\n return (ay - cy) * (bx - cx) - (ax - cx) * (by - cy);\n}\n"],"names":["ccwerrboundA","epsilon","ccwerrboundB","ccwerrboundC","B","vec","C1","C2","D","u","orient2dadapt","ax","ay","bx","by","cx","cy","detsum","acxtail","acytail","bcxtail","bcytail","bvirt","c","ahi","alo","bhi","blo","_i","_j","_0","s1","s0","t1","t0","u3","acx","bcx","acy","bcy","splitter","det","estimate","errbound","resul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AAE,CAAC,EAAIqB,GAAMF,EAAKN,IAAUA,EAAQW,GACpCE,EAAKN,EAAKD,EACVN,EAAQa,EAAKN,EACbpB,EAAE,CAAC,EAAIoB,GAAMM,EAAKb,IAAUM,EAAKN,GACjCb,EAAE,CAAC,EAAI0B,EACP,MAAMa,EAAOF,EAAAA,IAAIC,EAAOxC,EAAI,EAAGE,EAAGD,CAAC,EAEnC,OAAOA,EAAEwC,EAAO,CAAC,CACrB,CAEO,SAASC,EAAStC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAI,CAC7C,MAAMkC,GAAWtC,EAAKI,IAAOH,EAAKE,GAC5BoC,GAAYxC,EAAKI,IAAOD,EAAKE,GAC7ByB,EAAMS,EAAUC,EAEhBlC,EAAS,KAAK,IAAIiC,EAAUC,CAAQ,EAC1C,OAAI,KAAK,IAAIV,CAAG,GAAKzC,EAAeiB,EAAewB,EAE5C,CAAC/B,EAAcC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,CAAM,CACxD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(t,n){const c=n[0],i=n[1];return[t[0]*c+t[2]*i+t[4],t[1]*c+t[3]*i+t[5]]}function f(){return[1,0,0,1,0,0]}function o(t,n){const c=t[0],i=t[1],H=t[2],p=t[3],e=t[4],l=t[5],b=n[0],u=n[1],M=n[2],r=n[3],s=n[4],a=n[5];return[c*b+H*u,i*b+p*u,c*M+H*r,i*M+p*r,c*s+H*a+e,i*s+p*a+l]}function v(t,n,c,i,H,p,e){const l=Math.sin(H),b=Math.cos(H);return[c*b,i*l,-c*l,i*b,p*c*b-e*c*l+t,p*i*l+e*i*b+n]}function y(t){const n=S(t),c=t[0],i=t[1],H=t[2],p=t[3],e=t[4],l=t[5];return[p/n,-i/n,-H/n,c/n,(H*l-p*e)/n,-(c*l-i*e)/n]}function S(t){return t[0]*t[3]-t[1]*t[2]}function j(t){const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return n[0]=t[0],n[1]=t[1],n[4]=t[2],n[5]=t[3],n[12]=t[4],n[13]=t[5],n}exports.applyHomogeneousTransform=d;exports.composeHomogeneousTransform=v;exports.createHomogeneousTransform=f;exports.homogeneousTransformToMatrix4=j;exports.invertHomogeneousTransform=y;exports.multiplyHomogeneousTransform=o;
|
|
2
|
+
//# sourceMappingURL=index.cjs280.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs280.js","sources":["../../../node_modules/@allmaps/render/dist/shared/homogeneous-transform.js"],"sourcesContent":["//#region src/shared/homogeneous-transform.ts\nfunction applyHomogeneousTransform(homogeneousTransform, coordinate) {\n\tconst x = coordinate[0];\n\tconst y = coordinate[1];\n\treturn [homogeneousTransform[0] * x + homogeneousTransform[2] * y + homogeneousTransform[4], homogeneousTransform[1] * x + homogeneousTransform[3] * y + homogeneousTransform[5]];\n}\nfunction createHomogeneousTransform() {\n\treturn [\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0\n\t];\n}\nfunction multiplyHomogeneousTransform(homogeneousTransform1, homogeneousTransform2) {\n\tconst a1 = homogeneousTransform1[0];\n\tconst b1 = homogeneousTransform1[1];\n\tconst c1 = homogeneousTransform1[2];\n\tconst d1 = homogeneousTransform1[3];\n\tconst e1 = homogeneousTransform1[4];\n\tconst f1 = homogeneousTransform1[5];\n\tconst a2 = homogeneousTransform2[0];\n\tconst b2 = homogeneousTransform2[1];\n\tconst c2 = homogeneousTransform2[2];\n\tconst d2 = homogeneousTransform2[3];\n\tconst e2 = homogeneousTransform2[4];\n\tconst f2 = homogeneousTransform2[5];\n\treturn [\n\t\ta1 * a2 + c1 * b2,\n\t\tb1 * a2 + d1 * b2,\n\t\ta1 * c2 + c1 * d2,\n\t\tb1 * c2 + d1 * d2,\n\t\ta1 * e2 + c1 * f2 + e1,\n\t\tb1 * e2 + d1 * f2 + f1\n\t];\n}\nfunction composeHomogeneousTransform(dx1, dy1, sx, sy, angle, dx2, dy2) {\n\tconst sin = Math.sin(angle);\n\tconst cos = Math.cos(angle);\n\treturn [\n\t\tsx * cos,\n\t\tsy * sin,\n\t\t-sx * sin,\n\t\tsy * cos,\n\t\tdx2 * sx * cos - dy2 * sx * sin + dx1,\n\t\tdx2 * sy * sin + dy2 * sy * cos + dy1\n\t];\n}\nfunction invertHomogeneousTransform(source) {\n\tconst determinant = getDeterminant(source);\n\tconst a = source[0];\n\tconst b = source[1];\n\tconst c = source[2];\n\tconst d = source[3];\n\tconst e = source[4];\n\tconst f = source[5];\n\treturn [\n\t\td / determinant,\n\t\t-b / determinant,\n\t\t-c / determinant,\n\t\ta / determinant,\n\t\t(c * f - d * e) / determinant,\n\t\t-(a * f - b * e) / determinant\n\t];\n}\nfunction getDeterminant(mat) {\n\treturn mat[0] * mat[3] - mat[1] * mat[2];\n}\nfunction homogeneousTransformToMatrix4(homogeneousTransform) {\n\tconst matrix4 = [\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1\n\t];\n\tmatrix4[0] = homogeneousTransform[0];\n\tmatrix4[1] = homogeneousTransform[1];\n\tmatrix4[4] = homogeneousTransform[2];\n\tmatrix4[5] = homogeneousTransform[3];\n\tmatrix4[12] = homogeneousTransform[4];\n\tmatrix4[13] = homogeneousTransform[5];\n\treturn matrix4;\n}\n//#endregion\nexport { applyHomogeneousTransform, composeHomogeneousTransform, createHomogeneousTransform, homogeneousTransformToMatrix4, invertHomogeneousTransform, multiplyHomogeneousTransform };\n\n//# sourceMappingURL=homogeneous-transform.js.map"],"names":["applyHomogeneousTransform","homogeneousTransform","coordinate","x","y","createHomogeneousTransform","multiplyHomogeneousTransform","homogeneousTransform1","homogeneousTransform2","a1","b1","c1","d1","e1","f1","a2","b2","c2","d2","e2","f2","composeHomogeneousTransform","dx1","dy1","sx","sy","angle","dx2","dy2","sin","cos","invertHomogeneousTransform","source","determinant","getDeterminant","a","b","c","d","f","mat","homogeneousTransformToMatrix4","matrix4"],"mappings":"gFACA,SAASA,EAA0BC,EAAsBC,EAAY,CACpE,MAAMC,EAAID,EAAW,CAAC,EAChBE,EAAIF,EAAW,CAAC,EACtB,MAAO,CAACD,EAAqB,CAAC,EAAIE,EAAIF,EAAqB,CAAC,EAAIG,EAAIH,EAAqB,CAAC,EAAGA,EAAqB,CAAC,EAAIE,EAAIF,EAAqB,CAAC,EAAIG,EAAIH,EAAqB,CAAC,CAAC,CACjL,CACA,SAASI,GAA6B,CACrC,MAAO,CACN,EACA,EACA,EACA,EACA,EACA,CAAA,CAEF,CACA,SAASC,EAA6BC,EAAuBC,EAAuB,CACnF,MAAMC,EAAKF,EAAsB,CAAC,EAC5BG,EAAKH,EAAsB,CAAC,EAC5BI,EAAKJ,EAAsB,CAAC,EAC5BK,EAAKL,EAAsB,CAAC,EAC5BM,EAAKN,EAAsB,CAAC,EAC5BO,EAAKP,EAAsB,CAAC,EAC5BQ,EAAKP,EAAsB,CAAC,EAC5BQ,EAAKR,EAAsB,CAAC,EAC5BS,EAAKT,EAAsB,CAAC,EAC5BU,EAAKV,EAAsB,CAAC,EAC5BW,EAAKX,EAAsB,CAAC,EAC5BY,EAAKZ,EAAsB,CAAC,EAClC,MAAO,CACNC,EAAKM,EAAKJ,EAAKK,EACfN,EAAKK,EAAKH,EAAKI,EACfP,EAAKQ,EAAKN,EAAKO,EACfR,EAAKO,EAAKL,EAAKM,EACfT,EAAKU,EAAKR,EAAKS,EAAKP,EACpBH,EAAKS,EAAKP,EAAKQ,EAAKN,CAAA,CAEtB,CACA,SAASO,EAA4BC,EAAKC,EAAKC,EAAIC,EAAIC,EAAOC,EAAKC,EAAK,CACvE,MAAMC,EAAM,KAAK,IAAIH,CAAK,EACpBI,EAAM,KAAK,IAAIJ,CAAK,EAC1B,MAAO,CACNF,EAAKM,EACLL,EAAKI,EACL,CAACL,EAAKK,EACNJ,EAAKK,EACLH,EAAMH,EAAKM,EAAMF,EAAMJ,EAAKK,EAAMP,EAClCK,EAAMF,EAAKI,EAAMD,EAAMH,EAAKK,EAAMP,CAAA,CAEpC,CACA,SAASQ,EAA2BC,EAAQ,CAC3C,MAAMC,EAAcC,EAAeF,CAAM,EACnCG,EAAIH,EAAO,CAAC,EACZI,EAAIJ,EAAO,CAAC,EACZK,EAAIL,EAAO,CAAC,EACZM,EAAIN,EAAO,CAAC,EACZ,EAAIA,EAAO,CAAC,EACZO,EAAIP,EAAO,CAAC,EAClB,MAAO,CACNM,EAAIL,EACJ,CAACG,EAAIH,EACL,CAACI,EAAIJ,EACLE,EAAIF,GACHI,EAAIE,EAAID,EAAI,GAAKL,EAClB,EAAEE,EAAII,EAAIH,EAAI,GAAKH,CAAA,CAErB,CACA,SAASC,EAAeM,EAAK,CAC5B,OAAOA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,CACxC,CACA,SAASC,EAA8BxC,EAAsB,CAC5D,MAAMyC,EAAU,CACf,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,CAAA,EAED,OAAAA,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,EAAE,EAAIzC,EAAqB,CAAC,EACpCyC,EAAQ,EAAE,EAAIzC,EAAqB,CAAC,EAC7ByC,CACR","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function n(r,t,o){let e;if(typeof o=="function"?e=await o(r,t):e=await fetch(r,t),!e.ok){const s=await e.json();throw s&&s.error?new Error(s.error):e.statusText?new Error(e.statusText):e.status===404?new Error(`Not found: ${r} (404)`):e.status===500?new Error("Internal server error (500)"):new Error(`Failed to fetch: ${r} (${e.status})`)}return e}async function a(r,t,o){return await(await n(r,t,o)).json()}async function f(r,t,o){return await a(`${r}/info.json`,t,o)}exports.fetchImageInfo=f;exports.fetchJson=a;exports.fetchUrl=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs281.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs281.js","sources":["../../../node_modules/@allmaps/stdlib/dist/fetch.js"],"sourcesContent":["export async function fetchUrl(input, init, fetchFn) {\n let response;\n if (typeof fetchFn === 'function') {\n response = await fetchFn(input, init);\n }\n else {\n response = await fetch(input, init);\n }\n if (!response.ok) {\n const json = await response.json();\n if (json && json.error) {\n throw new Error(json.error);\n }\n else if (response.statusText) {\n throw new Error(response.statusText);\n }\n else if (response.status === 404) {\n throw new Error(`Not found: ${input} (404)`);\n }\n else if (response.status === 500) {\n throw new Error('Internal server error (500)');\n }\n else {\n throw new Error(`Failed to fetch: ${input} (${response.status})`);\n }\n }\n return response;\n}\nexport async function fetchJson(input, init, fetchFn) {\n const response = await fetchUrl(input, init, fetchFn);\n return await response.json();\n}\nexport async function fetchImageInfo(imageUri, init, fetchFn) {\n return await fetchJson(`${imageUri}/info.json`, init, fetchFn);\n}\nexport async function fetchImageBitmap(input, init, fetchFn) {\n const response = await fetchUrl(input, init, fetchFn);\n const blob = await response.blob();\n return await createImageBitmap(blob);\n}\n"],"names":["fetchUrl","input","init","fetchFn","response","json","fetchJson","fetchImageInfo","imageUri"],"mappings":"gFAAA,eAAsBA,EAASC,EAAOC,EAAMC,EAAS,CACjD,IAAIC,EAOJ,GANI,OAAOD,GAAY,WACnBC,EAAW,MAAMD,EAAQF,EAAOC,CAAI,EAGpCE,EAAW,MAAM,MAAMH,EAAOC,CAAI,EAElC,CAACE,EAAS,GAAI,CACd,MAAMC,EAAO,MAAMD,EAAS,KAAA,EAC5B,MAAIC,GAAQA,EAAK,MACP,IAAI,MAAMA,EAAK,KAAK,EAErBD,EAAS,WACR,IAAI,MAAMA,EAAS,UAAU,EAE9BA,EAAS,SAAW,IACnB,IAAI,MAAM,cAAcH,CAAK,QAAQ,EAEtCG,EAAS,SAAW,IACnB,IAAI,MAAM,6BAA6B,EAGvC,IAAI,MAAM,oBAAoBH,CAAK,KAAKG,EAAS,MAAM,GAAG,CAExE,CACA,OAAOA,CACX,CACA,eAAsBE,EAAUL,EAAOC,EAAMC,EAAS,CAElD,OAAO,MADU,MAAMH,EAASC,EAAOC,EAAMC,CAAO,GAC9B,KAAA,CAC1B,CACA,eAAsBI,EAAeC,EAAUN,EAAMC,EAAS,CAC1D,OAAO,MAAMG,EAAU,GAAGE,CAAQ,aAAcN,EAAMC,CAAO,CACjE","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(t,g,r,e=()=>!0,o=()=>!0){if(t.has(g)&&e(t.get(g)))return t.get(g);{const u=r();return o(u)&&t.set(g,u),u}}function l(t,g,r,e,o=()=>!0,u=()=>!0){if(t.get(g)?.has(r)&&o(t.get(g)?.get(r)))return t.get(g)?.get(r);{const n=e();return u(n)&&(t.get(g)||t.set(g,new Map),t.get(g)?.set(r,n)),n}}function m(t,g,r,e,o,u,n,s=()=>!0,p=()=>!0){if(t.get(g)?.get(r)?.get(e)?.get(o)?.has(u)&&s(t.get(g)?.get(r)?.get(e)?.get(o)?.get(u)))return t.get(g)?.get(r)?.get(e)?.get(o)?.get(u);{const i=n();return p(i)&&(t.get(g)||t.set(g,new Map),t.get(g)?.get(r)||t.get(g)?.set(r,new Map),t.get(g)?.get(r)?.get(e)||t.get(g)?.get(r)?.set(e,new Map),t.get(g)?.get(r)?.get(e)?.get(o)||t.get(g)?.get(r)?.get(e)?.set(o,new Map),t.get(g)?.get(r)?.get(e)?.get(o)?.set(u,i)),i}}exports.getPropertyFromCacheOrComputation=f;exports.getPropertyFromDoubleCacheOrComputation=l;exports.getPropertyFromQuintupleCacheOrComputation=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs282.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs282.js","sources":["../../../node_modules/@allmaps/stdlib/dist/cache.js"],"sourcesContent":["export function getPropertyFromCacheOrComputation(cache, key, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.has(key) && checkUse(cache.get(key))) {\n return cache.get(key);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n cache.set(key, result);\n }\n return result;\n }\n}\nexport function getPropertyFromDoubleCacheOrComputation(cache, key0, key1, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.has(key1) && checkUse(cache.get(key0)?.get(key1))) {\n return cache.get(key0)?.get(key1);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n cache.get(key0)?.set(key1, result);\n }\n return result;\n }\n}\nexport function getPropertyFromTripleCacheOrComputation(cache, key0, key1, key2, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.has(key2) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2))) {\n return cache.get(key0)?.get(key1)?.get(key2);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n cache.get(key0)?.get(key1)?.set(key2, result);\n }\n return result;\n }\n}\nexport function getPropertyFromQuadrupleCacheOrComputation(cache, key0, key1, key2, key3, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.get(key2)?.has(key3) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2)?.get(key3))) {\n return cache.get(key0)?.get(key1)?.get(key2)?.get(key3);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)) {\n cache.get(key0)?.get(key1)?.set(key2, new Map());\n }\n cache.get(key0)?.get(key1)?.get(key2)?.set(key3, result);\n }\n return result;\n }\n}\nexport function getPropertyFromQuintupleCacheOrComputation(cache, key0, key1, key2, key3, key4, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.has(key4) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.get(key4))) {\n return cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.get(key4);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)) {\n cache.get(key0)?.get(key1)?.set(key2, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)?.get(key3)) {\n cache.get(key0)?.get(key1)?.get(key2)?.set(key3, new Map());\n }\n cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.set(key4, result);\n }\n return result;\n }\n}\n"],"names":["getPropertyFromCacheOrComputation","cache","key","computation","checkUse","checkStore","result","getPropertyFromDoubleCacheOrComputation","key0","key1","getPropertyFromQuintupleCacheOrComputation","key2","key3","key4"],"mappings":"gFAAO,SAASA,EAAkCC,EAAOC,EAAKC,EAAaC,EAAW,IAAM,GAAMC,EAAa,IAAM,GAAM,CACvH,GAAIJ,EAAM,IAAIC,CAAG,GAAKE,EAASH,EAAM,IAAIC,CAAG,CAAC,EACzC,OAAOD,EAAM,IAAIC,CAAG,EAEnB,CACD,MAAMI,EAASH,EAAA,EACf,OAAIE,EAAWC,CAAM,G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CV,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,GAAG,IAAIE,EAAM,IAAI,GAAK,EAE9CV,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,GAAG,IAAIE,CAAI,GAAG,IAAIC,CAAI,GAChDX,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,GAAG,IAAIE,CAAI,GAAG,IAAIC,EAAM,IAAI,GAAK,EAE9DX,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,GAAG,IAAIE,CAAI,GAAG,IAAIC,CAAI,GAAG,IAAIC,EAAMP,CAAM,GAE/DA,CACX,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index.cjs204.js"),l=require("./index.cjs198.js"),m=require("./index.cjs310.js"),G=require("./index.cjs205.js"),e=require("./index.cjs206.js");class u extends m.GcpTransformer{internalProjection;projection;internalProjectionToProjection;projectionToInternalProjection;lonLatToProjection;projectionToLonLat;constructor(o,n="polynomial",t){const r=l.mergeOptionsUnlessUndefined(e.defaultProjectedGcpTransformerOptions,t),i=T(r.internalProjection.definition,r.projection.definition),s=i.forward,a=i.inverse,p=T(e.lonLatProjection.definition,r.projection.definition),j=p.forward,P=p.inverse,f={...t,postToGeo:s,preToResource:a};o=o.filter(c=>c.geo&&c.resource).map(c=>({resource:c.resource,geo:j(c.geo)})),super(o,n,f),this.internalProjection=r.internalProjection,this.projection=r.projection,this.internalProjectionToProjection=s,this.projectionToInternalProjection=a,this.lonLatToProjection=j,this.projectionToLonLat=P}get gcps(){return super.gcps}get lonlatGcps(){return this.projectedGcps.map(({resource:o,geo:n})=>({resource:o,geo:this.projectionToLonLat(n)}))}get interalProjectedGcps(){return this.projectedGcps.map(({resource:o,geo:n})=>({resource:o,geo:this.projectionToInternalProjection(n)}))}get projectedGcps(){return this.gcps}transformToProjectedGeo(o,n,t){const r=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.transformToGeo(o,r,t)}transformToGeo(o,n,t){return this.transformToProjectedGeo(o,l.mergePartialOptions(n,{projection:e.lonLatProjection}),t)}transformToResource(o,n,t){const r=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.transformToResource(o,r,t)}isNonWarping(){return e.isEqualProjection(this.projection,this.internalProjection)===!0&&G.nonWarpingTransformationTypes.includes(this.type)}getToProjectedGeoTransformationResolution(o,n){const t=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.getToGeoTransformationResolution(o,t)}getToGeoTransformationResolution(o,n){return this.getToProjectedGeoTransformationResolution(o,l.mergePartialOptions(n,{projection:e.lonLatProjection}))}getToResourceTransformationResolution(o,n){const t=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.getToResourceTransformationResolution(o,t)}static fromGeoreferencedMap(o,n){const t={transformationType:o.transformation?.type,internalProjection:o.resourceCrs};return n=l.mergeOptions(t,n),new u(o.gcps,n.transformationType,n)}static setProjection(o,n){if(e.isEqualProjection(n,o.projection))return o;const t=T(o.internalProjection.definition,n.definition),r=t.forward,i=t.inverse,s=T(e.lonLatProjection.definition,n.definition),a=s.forward,p=s.inverse,j={postToGeo:r,preToResource:i};return o.setTransformerOptions(j),o.projection=n,o.internalProjectionToProjection=r,o.projectionToInternalProjection=i,o.lonLatToProjection=a,o.projectionToLonLat=p,o}}exports.ProjectedGcpTransformer=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs283.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs283.js","sources":["../../../node_modules/@allmaps/project/dist/projected-transformers/ProjectedGcpTransformer.js"],"sourcesContent":["import proj4 from 'proj4';\nimport { mergeOptions, mergeOptionsUnlessUndefined, mergePartialOptions } from '@allmaps/stdlib';\nimport { GcpTransformer, nonWarpingTransformationTypes } from '@allmaps/transform';\nimport { defaultProjectedGcpTransformerOptions, isEqualProjection, lonLatProjection, projectedGcpTransformOptionsToGcpTransformOptions } from '../shared/project-functions.js';\n/**\n * Class for Projected Ground Control Point Transformers.\n *\n * A Projected GCP Transformer can transform input geometries between 'resource' and 'projected geo' spaces.\n *\n * It does this using a transformation (of a certain type) built from\n * a set of Ground Control Points (with coordinates in\n * resource and geo space), a transformation type,\n * and an internal projection and projection.\n *\n * GCPs are expected in lon-lat 'EPSG:4326' (and are projected to the internal projection).\n * The default projection for the internal projection and projection is WebMercator 'EPSG:3857'.\n *\n * A postToGeo function is built from the internal projection to the projection (by default an identity projection).\n * A preToResource function is built from the projection to the internal projection (by default an identity projection).\n *\n * Like the GCP Transformer class it extends,\n * it has a method to transform 'toGeo' (from resource to projected geo space)\n * and 'toResource' (from projected geo to resource space),\n *\n * Like the GCP Transformer class it extends,\n * the `differentHandedness` setting is `true` by default,\n * since we expect the resource coordinates to identify pixels on an image,\n * with origin in the top left and the y-axis pointing down.\n *\n * @param internalProjection - the internal projection to which the GCPs (supplied in lon-lat 'EPSG:4326') are projected before building the transformation functions.\n * @param projection - the projection of the 'projected geo' space, in which the 'toProjectedGeo()' methods results its results.\n * @param internalProjectionToProjection - the postToGeo used to go from the internal projection to the projection.\n * @param projectionToInternalProjection - the preToResource function used to go from the projection to the internal projection.\n */\nexport class ProjectedGcpTransformer extends GcpTransformer {\n internalProjection;\n projection;\n internalProjectionToProjection;\n projectionToInternalProjection;\n lonLatToProjection;\n projectionToLonLat;\n /**\n * Create a ProjectedGcpTransformer\n *\n * @param gcps - An array of Ground Control Points (GCPs) in lon-lat 'EPSG:4326'\n * @param type - The transformation type\n * @param partialProjectedGcpTransformerOptions - Projected GCP Transformer options\n */ constructor(gcps, type = 'polynomial', partialProjectedGcpTransformerOptions) {\n const projectedGcpTransformerOptions = mergeOptionsUnlessUndefined(defaultProjectedGcpTransformerOptions, partialProjectedGcpTransformerOptions);\n const internalProjectionToProjectionConverter = proj4(projectedGcpTransformerOptions.internalProjection.definition, projectedGcpTransformerOptions.projection.definition);\n const postToGeo = internalProjectionToProjectionConverter.forward;\n const preToResource = internalProjectionToProjectionConverter.inverse;\n const lonLatToProjectionConverter = proj4(lonLatProjection.definition, projectedGcpTransformerOptions.projection.definition);\n const lonLatToProjection = lonLatToProjectionConverter.forward;\n const projectionToLonlat = lonLatToProjectionConverter.inverse;\n const partialGcpTransformerOptions = {\n ...partialProjectedGcpTransformerOptions,\n postToGeo,\n preToResource\n };\n gcps = gcps\n // Allow incomplete GCPs, but filter them out\n .filter((gcp) => gcp.geo && gcp.resource)\n .map((gcp) => ({\n resource: gcp.resource,\n geo: lonLatToProjection(gcp.geo)\n }));\n super(gcps, type, partialGcpTransformerOptions);\n this.internalProjection = projectedGcpTransformerOptions.internalProjection;\n this.projection = projectedGcpTransformerOptions.projection;\n this.internalProjectionToProjection = postToGeo;\n this.projectionToInternalProjection = preToResource;\n this.lonLatToProjection = lonLatToProjection;\n this.projectionToLonLat = projectionToLonlat;\n }\n /**\n * Get GCPs as they were inputed to the GCP Transformer.\n *\n * For a Projected GCP Transformer, these are the GCPs in projected coordinates.\n */\n get gcps() {\n return super.gcps;\n }\n /**\n * Get GCPs in interal projected coordinates.\n */\n get lonlatGcps() {\n return this.projectedGcps.map(({ resource, geo }) => ({\n resource,\n geo: this.projectionToLonLat(geo)\n }));\n }\n /**\n * Get GCPs in interal projected coordinates.\n */\n get interalProjectedGcps() {\n return this.projectedGcps.map(({ resource, geo }) => ({\n resource,\n geo: this.projectionToInternalProjection(geo)\n }));\n }\n /**\n * Get GCPs in projected coordinates.\n */\n get projectedGcps() {\n return this.gcps;\n }\n /**\n * Transform a geometry from resource space to projected geo space\n *\n * @param resourceGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to projected geo space\n */\n transformToProjectedGeo(resourceGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.transformToGeo(resourceGeometry, partialGcpTransformOptions, gcpToP);\n }\n /**\n * Transform a geometry from resource space to geo space\n *\n * @param resourceGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to projected geo space\n */\n transformToGeo(resourceGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n return this.transformToProjectedGeo(resourceGeometry, mergePartialOptions(partialProjectedGcpTransformOptions, {\n projection: lonLatProjection\n }), gcpToP);\n }\n /**\n * Transform a geometry from projected geo space to resource space\n *\n * @param projectedGeoGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to resource space\n */\n transformToResource(projectedGeoGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.transformToResource(projectedGeoGeometry, partialGcpTransformOptions, gcpToP);\n }\n isNonWarping() {\n return (isEqualProjection(this.projection, this.internalProjection) === true &&\n nonWarpingTransformationTypes.includes(this.type));\n }\n /**\n * Get the resolution of the toProjectedGeo transformation in resource space, within a given bbox.\n *\n * This informs you in how fine the warping is, in resource space.\n * It can be useful e.g. to create a triangulation in resource space\n * that is fine enough for this warping or set the minSourceDistance options.\n *\n * It is obtained by transforming toProjectedGeo two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toProjectedGeo transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in resource coordinates,\n * or undefined if no refinements were needed.\n *\n * @param resourceBbox - BBox in resource space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toProjectedGeo transformation in resource space\n */\n getToProjectedGeoTransformationResolution(resourceBbox, partialProjectedGcpTransformOptions) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.getToGeoTransformationResolution(resourceBbox, partialGcpTransformOptions);\n }\n /**\n * Get the resolution of the toGeo transformation in resource space, within a given bbox.\n *\n * This informs you in how fine the warping is, in resource space.\n * It can be useful e.g. to create a triangulation in resource space\n * that is fine enough for this warping or set the minSourceDistance options.\n *\n * It is obtained by transforming toGeo two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toGeo transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in resource coordinates,\n * or undefined if no refinements were needed.\n *\n * @param resourceBbox - BBox in resource space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toGeo transformation in resource space\n */\n getToGeoTransformationResolution(resourceBbox, partialProjectedGcpTransformOptions) {\n return this.getToProjectedGeoTransformationResolution(resourceBbox, mergePartialOptions(partialProjectedGcpTransformOptions, {\n projection: lonLatProjection\n }));\n }\n /**\n * Get the resolution of the toResource transformation in projected geo space, within a given bbox.\n *\n * This informs you in how fine the warping is, in projected geo space.\n * It can be useful e.g. to create a triangulation in projected geo space\n * that is fine enough for this warping or set the minDestionationDistance options.\n *\n * It is obtained by transforming toResource two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toResource transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in internal projected geo coordinates,\n * or undefined if no refinements were needed.\n *\n * @param projectedGeoBbox - BBox in projected geo space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toResource transformation in internal projected geo space\n */\n getToResourceTransformationResolution(projectedGeoBbox, partialProjectedGcpTransformOptions) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.getToResourceTransformationResolution(projectedGeoBbox, partialGcpTransformOptions);\n }\n /**\n * Create a Projected GCP Transformer from a Georeferenced Map\n *\n * @param georeferencedMap - A Georeferenced Map\n * @param options - Options, including Projected GCP Transformer Options, and a transformation type to overrule the type defined in the Georeferenced Map\n * @returns A Projected GCP Transformer\n */\n static fromGeoreferencedMap(georeferencedMap, options) {\n const georeferencedMapInput = {\n transformationType: georeferencedMap.transformation?.type,\n internalProjection: georeferencedMap.resourceCrs\n };\n options = mergeOptions(georeferencedMapInput, options);\n return new ProjectedGcpTransformer(georeferencedMap.gcps, options.transformationType, options);\n }\n /**\n * Set the projection.\n *\n * To transform 'toGeo' or 'toResource' to or from a different projection\n * than set on a transformer's construction (but using the same internal projection)\n * it's possible to specify the requested projection in the transform options.\n *\n * This way we circumvent a possibly expensive recomputation\n * of the toGeo and/or toResource transformations.\n *\n * To do this more systematically, it's possible to set\n * a projected gcp transformer's projection using this method.\n *\n * Combine this with a deep clone of the transformer instance\n * to keep the original transformer as well.\n *\n * @returns this\n */\n static setProjection(projectedTransformer, projection) {\n if (isEqualProjection(projection, projectedTransformer.projection)) {\n return projectedTransformer;\n }\n const internalProjectionToProjectionConverter = proj4(projectedTransformer.internalProjection.definition, projection.definition);\n const postToGeo = internalProjectionToProjectionConverter.forward;\n const preToResource = internalProjectionToProjectionConverter.inverse;\n const lonLatToProjectionConverter = proj4(lonLatProjection.definition, projection.definition);\n const lonLatToProjection = lonLatToProjectionConverter.forward;\n const projectionToLonLat = lonLatToProjectionConverter.inverse;\n const partialGcpTransformerOptions = {\n postToGeo,\n preToResource\n };\n // Note: no need to change the GCPs!\n // They have already been converted to the internal projection\n // in the GCP Transformer constructor\n projectedTransformer.setTransformerOptions(partialGcpTransformerOptions);\n projectedTransformer.projection = projection;\n projectedTransformer.internalProjectionToProjection = postToGeo;\n projectedTransformer.projectionToInternalProjection = preToResource;\n projectedTransformer.lonLatToProjection = lonLatToProjection;\n projectedTransformer.projectionToLonLat = projectionToLonLat;\n return projectedTransformer;\n }\n}\n"],"names":["ProjectedGcpTransformer","GcpTransformer","gcps","type","partialProjectedGcpTransformerOptions","projectedGcpTransformerOptions","mergeOptionsUnlessUndefined","defaultProjectedGcpTransformerOptions","internalProjectionToProjectionConverter","proj4","postToGeo","preToResource","lonLatToProjectionConverter","lonLatProjection","lonLatToProjection","projectionToLonlat","partialGcpTransformerOptions","gcp","resource","geo","resourceGeometry","partialProjectedGcpTransformOptions","gcpToP","partialGcpTransformOptions","projectedGcpTransformOptionsToGcpTransformOptions","mergePartialOptions","projectedGeoGeometry","isEqualProjection","nonWarpingTransformationTypes","resourceBbox","projectedGeoBbox","georeferencedMap","options","georeferencedMapInput","mergeOptions","projectedTransformer","projection","projectionToLonLat"],"mappings":"iPAkCO,MAAMA,UAAgCC,EAAAA,cAAe,CACxD,mBACA,WACA,+BACA,+BACA,mBACA,mBAOI,YAAYC,EAAMC,EAAO,aAAcC,EAAuC,CAC9E,MAAMC,EAAiCC,EAAAA,4BAA4BC,EAAAA,sCAAuCH,CAAqC,EACzII,EAA0CC,EAAMJ,EAA+B,mBAAmB,WAAYA,EAA+B,WAAW,UAAU,EAClKK,EAAYF,EAAwC,QACpDG,EAAgBH,EAAwC,QACxDI,EAA8BH,EAAMI,EAAAA,iBAAiB,WAAYR,EAA+B,WAAW,UAAU,EACrHS,EAAqBF,EAA4B,QACjDG,EAAqBH,EAA4B,QACjDI,EAA+B,CACjC,GAAGZ,EACH,UAAAM,EACA,cAAAC,CAAA,EAEJT,EAAOA,EAEF,OAAQe,GAAQA,EAAI,KAAOA,EAAI,QAAQ,EACvC,IAAKA,IAAS,CACf,SAAUA,EAAI,SACd,IAAKH,EAAmBG,EAAI,GAAG,CAAA,EACjC,EACF,MAAMf,EAAMC,EAAMa,CAA4B,EAC9C,KAAK,mBAAqBX,EAA+B,mBACzD,KAAK,WAAaA,EAA+B,WACjD,KAAK,+BAAiCK,EACtC,KAAK,+BAAiCC,EACtC,KAAK,mBAAqBG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AAYR,EAAAA,gBAAA,CACf,CAAC,CACN,CAoBA,sCAAsCiB,EAAkBT,EAAqC,CACzF,MAAME,EAA6BC,EAAAA,kDAAkD,KAAK,mBAAoBH,CAAmC,EACjJ,OAAO,MAAM,sCAAsCS,EAAkBP,CAA0B,CACnG,CAQA,OAAO,qBAAqBQ,EAAkBC,EAAS,CACnD,MAAMC,EAAwB,CAC1B,mBAAoBF,EAAiB,gBAAgB,KACrD,mBAAoBA,EAAiB,WAAA,EAEzCC,OAAAA,EAAUE,EAAAA,aAAaD,EAAuBD,CAAO,EAC9C,IAAIhC,EAAwB+B,EAAiB,KAAMC,EAAQ,mBAAoBA,CAAO,CACjG,CAmBA,OAAO,cAAcG,EAAsBC,EAAY,CACnD,GAAIT,oBAAkBS,EAAYD,EAAqB,UAAU,EAC7D,OAAOA,EAEX,MAAM3B,EAA0CC,EAAM0B,EAAqB,mBAAmB,WAAYC,EAAW,UAAU,EACzH1B,EAAYF,EAAwC,QACpDG,EAAgBH,EAAwC,QACxDI,EAA8BH,EAAMI,EAAAA,iBAAiB,WAAYuB,EAAW,UAAU,EACtFtB,EAAqBF,EAA4B,QACjDyB,EAAqBzB,EAA4B,QACjDI,EAA+B,CACjC,UAAAN,EACA,cAAAC,CAAA,EAKJ,OAAAwB,EAAqB,sBAAsBnB,CAA4B,EACvEmB,EAAqB,WAAaC,EAClCD,EAAqB,+BAAiCzB,EACtDyB,EAAqB,+BAAiCxB,EACtDwB,EAAqB,mBAAqBrB,EAC1CqB,EAAqB,mBAAqBE,EACnCF,CACX,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./index.cjs210.js"),l=require("./index.cjs211.js"),d=require("./index.cjs212.js"),w=require("./index.cjs356.js"),S=require("./index.cjs357.js"),m=require("./index.cjs358.js"),j=require("./index.cjs359.js"),z="image";function q(p,e){if(e?.preferredFormats){const n=new Set(p),i=e.preferredFormats.find(o=>n.has(o.toLowerCase()));if(i)return i.toLowerCase()}return"jpg"}class A{embedded=!0;uri;type=z;maxWidth;maxHeight;maxArea;supportsAnyRegionAndSize;supportedFormats;preferredFormats;width;height;majorVersion;constructor(e,n){const{parsedCanvas:i}=n||{};let o,r;if(i&&"service"in e){const s=e;let t,a;if(Array.isArray(s.service)?s.service.forEach(h=>{try{const g=m.getMajorIiifVersionFromImageService(h);(!a||g>a)&&(a=g,t=h)}catch{}}):t=s.service,!t)throw new Error("Unsupported IIIF Image Service");if("@id"in t)this.uri=t["@id"];else if("id"in t)this.uri=t.id;else throw new Error("Unsupported IIIF Image Service");if("type"in t&&t.type==="ImageService3")this.majorVersion=3;else if("type"in t&&t.type==="ImageService2"||"@type"in t&&t["@type"]==="ImageService2"||"@context"in t&&t["@context"]===d.Image2ContextString)this.majorVersion=2;else if("@context"in t&&(t["@context"]===l.Image1ContextString||t["@context"]===l.Image1ContextStringIncorrect))this.majorVersion=1;else if("profile"in t){let h;if(Array.isArray(t.profile)&&t.profile.length>0)h=t.profile[0];else if(typeof t.profile=="string")h=t.profile;else throw new Error("Unsupported IIIF Image Service");h.match(l.image1ProfileUriRegex)?this.majorVersion=1:h.match(d.image2ProfileUriRegex)?this.majorVersion=2:this.majorVersion=3}else throw new Error("Unsupported IIIF Image Service");if("profile"in t){const h=m.getProfileProperties(t);this.supportsAnyRegionAndSize=h.supportsAnyRegionAndSize,this.maxWidth=h.maxWidth,this.maxHeight=h.maxHeight,this.maxArea=h.maxArea,this.supportedFormats=m.getSupportedFormats(t)}else this.supportsAnyRegionAndSize=!1,this.supportedFormats=["jpg"];t.width&&(o=t.width),t.height&&(r=t.height)}else{if("@id"in e)this.uri=e["@id"];else if("id"in e)this.uri=e.id;else throw new Error("Unsupported IIIF Image");if("type"in e&&e.type==="ImageService3")this.majorVersion=3;else if("@type"in e&&e["@type"]==="iiif:Image"||"@context"in e&&e["@context"]===d.Image2ContextString)this.majorVersion=2;else if("@context"in e&&e["@context"]===l.Image1ContextString)this.majorVersion=1;else throw new Error("Unsupported IIIF Image");if("profile"in e){const s=m.getProfileProperties(e);this.supportsAnyRegionAndSize=s.supportsAnyRegionAndSize,this.maxWidth=s.maxWidth,this.maxHeight=s.maxHeight,this.maxArea=s.maxArea,this.supportedFormats=m.getSupportedFormats(e)}else this.supportsAnyRegionAndSize=!1,this.supportedFormats=["jpg"];"preferredFormats"in e&&(this.preferredFormats=e.preferredFormats)}if(!o)if(i)o=i.width;else if(e.width!==void 0)o=e.width;else throw new Error("Width not present on either Canvas or Image Resource");if(!r)if(i)r=i.height;else if(e.height!==void 0)r=e.height;else throw new Error("Height not present on either Canvas or Image Resource");this.width=o,this.height=r}getImageUrl(e,n){const{region:i,size:o}=e;let r,s,t,a,h;i?(h=`${i.x},${i.y},${i.width},${i.height}`,t=i.height,a=i.width):(h="full",t=this.height,a=this.width);let g;if(o){r=Math.round(o.width),s=Math.round(o.height);const R=String(r);let u=String(s);const x=a/t,I=s*x/x;this.majorVersion<=2&&s===Math.round(I)&&(u=""),g=`${R},${u}`}else r=this.width,s=this.height,g=this.majorVersion===2?"full":"max";const c=r*s;if(this.maxWidth!==void 0&&r>this.maxWidth)throw new Error(`Width of requested image is too large: ${r} > ${this.maxWidth}`);if(this.maxHeight!==void 0&&s>this.maxHeight)throw new Error(`Height of requested image is too large: ${s} > ${this.maxHeight}`);if(this.maxArea!==void 0&&c>this.maxArea)throw new Error(`Area of requested image is too large: ${c} > ${this.maxArea}`);const y=this.majorVersion===1?"native":"default",v=q(this.supportedFormats,n);return`${this.uri}/${h}/${g}/0/${y}.${v}`}getImageRequest(e,n="cover"){return S.getImageRequest({width:this.width,height:this.height},e,n,{supportsAnyRegionAndSize:this.supportsAnyRegionAndSize,maxWidth:this.maxWidth,maxHeight:this.maxHeight,maxArea:this.maxArea})}}class f extends A{source;tileZoomLevels;sizes;embedded=!1;constructor(e,n){super(e),this.source=n?.source;const i=m.getProfileProperties(e);let o;"tiles"in e&&(o=e.tiles),this.tileZoomLevels=w.getTileZoomLevels({width:this.width,height:this.height},o,i.supportsAnyRegionAndSize),"sizes"in e&&(this.sizes=e.sizes)}static parse(e,n){const{majorVersion:i,keepSource:o}=n||{};let r;return i===1?r=l.Image1Schema.parse(e):i===2?r=d.Image2Schema.parse(e):i===3?r=j.Image3Schema.parse(e):r=F.ImageSchema.parse(e),new f(r,o?{source:e}:{})}getTileImageRequest(e,n,i){return w.getTileImageRequest({width:this.width,height:this.height},e,n,i)}getImageRequest(e,n="cover"){return S.getImageRequest({width:this.width,height:this.height},e,n,{supportsAnyRegionAndSize:this.supportsAnyRegionAndSize,sizes:this.sizes,tileZoomLevels:this.tileZoomLevels,maxWidth:this.maxWidth,maxHeight:this.maxHeight,maxArea:this.maxArea})}}exports.EmbeddedImage=A;exports.Image=f;
|
|
2
|
+
//# sourceMappingURL=index.cjs284.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs284.js","sources":["../../../node_modules/@allmaps/iiif-parser/dist/classes/image.js"],"sourcesContent":["import { Image1Schema, Image2Schema, Image3Schema, ImageSchema } from '../schemas/iiif.js';\nimport { Image1ContextString, Image1ContextStringIncorrect, image1ProfileUriRegex } from '../schemas/image.1.js';\nimport { Image2ContextString, image2ProfileUriRegex } from '../schemas/image.2.js';\nimport { getTileZoomLevels, getTileImageRequest } from '../lib/tiles.js';\nimport { getImageRequest } from '../lib/image-requests.js';\nimport { getProfileProperties, getMajorIiifVersionFromImageService, getSupportedFormats } from '../lib/profile.js';\nconst ImageTypeString = 'image';\nfunction getImageUrlFormat(supportedFormats, options) {\n if (options?.preferredFormats) {\n const supportedFormatSet = new Set(supportedFormats);\n const preferredFormat = options.preferredFormats.find((format) => supportedFormatSet.has(format.toLowerCase()));\n if (preferredFormat) {\n return preferredFormat.toLowerCase();\n }\n }\n return 'jpg';\n}\n/**\n * Parsed IIIF Image, embedded in a Canvas\n *\n * @property embedded - Whether the Image is embedded in a Canvas\n * @property type - Resource type, equals 'image'\n * @property uri - URI of Image\n * @property majorVersion - IIIF API version of Image\n * @property supportsAnyRegionAndSize - Whether the associated Image Service supports any region and size\n * @property supportedFormats - Array of supported image formats of the associated Image Service\n * @property maxWidth - Maximum width of the associated Image Service\n * @property maxHeight - Maximum height of the associated Image Service\n * @property maxArea - Maximum area of the associated Image Service\n * @property width - Width of Image\n * @property height - Height of Image\n */\nexport class EmbeddedImage {\n embedded = true;\n uri;\n type = ImageTypeString;\n maxWidth;\n maxHeight;\n maxArea;\n supportsAnyRegionAndSize;\n supportedFormats;\n preferredFormats;\n width;\n height;\n majorVersion;\n constructor(parsedImage, options) {\n const { parsedCanvas } = options || {};\n let width;\n let height;\n if (parsedCanvas && 'service' in parsedImage) {\n const parsedEmbeddedImage = parsedImage;\n let imageService;\n let majorVersion;\n if (Array.isArray(parsedEmbeddedImage.service)) {\n parsedEmbeddedImage.service.forEach((currentImageService) => {\n try {\n const currentMajorVersion = getMajorIiifVersionFromImageService(currentImageService);\n if (!majorVersion || currentMajorVersion > majorVersion) {\n majorVersion = currentMajorVersion;\n imageService = currentImageService;\n }\n }\n catch {\n // Ignore this error, throw error later if no valid image service is found\n }\n });\n }\n else {\n imageService = parsedEmbeddedImage.service;\n }\n if (!imageService) {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('@id' in imageService) {\n this.uri = imageService['@id'];\n }\n else if ('id' in imageService) {\n this.uri = imageService.id;\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('type' in imageService && imageService.type === 'ImageService3') {\n this.majorVersion = 3;\n }\n else if (('type' in imageService && imageService.type === 'ImageService2') ||\n ('@type' in imageService &&\n imageService['@type'] === 'ImageService2') ||\n ('@context' in imageService &&\n imageService['@context'] === Image2ContextString)) {\n this.majorVersion = 2;\n }\n else if ('@context' in imageService &&\n (imageService['@context'] === Image1ContextString ||\n imageService['@context'] === Image1ContextStringIncorrect)) {\n this.majorVersion = 1;\n }\n else if ('profile' in imageService) {\n let profile;\n if (Array.isArray(imageService.profile) &&\n imageService.profile.length > 0) {\n profile = imageService.profile[0];\n }\n else if (typeof imageService.profile === 'string') {\n profile = imageService.profile;\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if (profile.match(image1ProfileUriRegex)) {\n this.majorVersion = 1;\n }\n else if (profile.match(image2ProfileUriRegex)) {\n this.majorVersion = 2;\n }\n else {\n this.majorVersion = 3;\n }\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('profile' in imageService) {\n const profileProperties = getProfileProperties(imageService);\n this.supportsAnyRegionAndSize =\n profileProperties.supportsAnyRegionAndSize;\n this.maxWidth = profileProperties.maxWidth;\n this.maxHeight = profileProperties.maxHeight;\n this.maxArea = profileProperties.maxArea;\n this.supportedFormats = getSupportedFormats(imageService);\n }\n else {\n this.supportsAnyRegionAndSize = false;\n this.supportedFormats = ['jpg'];\n }\n if (imageService.width) {\n width = imageService.width;\n }\n if (imageService.height) {\n height = imageService.height;\n }\n }\n else {\n if ('@id' in parsedImage) {\n this.uri = parsedImage['@id'];\n }\n else if ('id' in parsedImage) {\n this.uri = parsedImage.id;\n }\n else {\n throw new Error('Unsupported IIIF Image');\n }\n if ('type' in parsedImage && parsedImage.type === 'ImageService3') {\n this.majorVersion = 3;\n }\n else if (('@type' in parsedImage && parsedImage['@type'] === 'iiif:Image') ||\n ('@context' in parsedImage &&\n parsedImage['@context'] === Image2ContextString)) {\n this.majorVersion = 2;\n }\n else if ('@context' in parsedImage &&\n parsedImage['@context'] === Image1ContextString) {\n this.majorVersion = 1;\n }\n else {\n throw new Error('Unsupported IIIF Image');\n }\n if ('profile' in parsedImage) {\n const profileProperties = getProfileProperties(parsedImage);\n this.supportsAnyRegionAndSize =\n profileProperties.supportsAnyRegionAndSize;\n this.maxWidth = profileProperties.maxWidth;\n this.maxHeight = profileProperties.maxHeight;\n this.maxArea = profileProperties.maxArea;\n this.supportedFormats = getSupportedFormats(parsedImage);\n }\n else {\n this.supportsAnyRegionAndSize = false;\n this.supportedFormats = ['jpg'];\n }\n if ('preferredFormats' in parsedImage) {\n this.preferredFormats = parsedImage.preferredFormats;\n }\n }\n if (!width) {\n if (parsedCanvas) {\n width = parsedCanvas.width;\n }\n else if (parsedImage.width !== undefined) {\n width = parsedImage.width;\n }\n else {\n throw new Error('Width not present on either Canvas or Image Resource');\n }\n }\n if (!height) {\n if (parsedCanvas) {\n height = parsedCanvas.height;\n }\n else if (parsedImage.height !== undefined) {\n height = parsedImage.height;\n }\n else {\n throw new Error('Height not present on either Canvas or Image Resource');\n }\n }\n this.width = width;\n this.height = height;\n }\n /**\n * Generates a IIIF Image API URL for the requested region and size\n * @param imageRequest - Image request object containing the desired region and size of the requested image\n * @param options - Options for generating the requested image URL\n * @returns Image API URL that can be used to fetch the requested image\n */\n getImageUrl(imageRequest, options) {\n const { region, size } = imageRequest;\n let width;\n let height;\n let regionHeight;\n let regionWidth;\n let urlRegion;\n if (region) {\n urlRegion = `${region.x},${region.y},${region.width},${region.height}`;\n regionHeight = region.height;\n regionWidth = region.width;\n }\n else {\n urlRegion = 'full';\n regionHeight = this.height;\n regionWidth = this.width;\n }\n let urlSize;\n if (size) {\n width = Math.round(size.width);\n height = Math.round(size.height);\n const widthStr = String(width);\n let heightStr = String(height);\n const aspectRatio = regionWidth / regionHeight;\n const aspectRatioWidth = height * aspectRatio;\n const aspectRatioHeight = aspectRatioWidth / aspectRatio;\n if (this.majorVersion <= 2) {\n // In IIIF Image API 2.1 and below, use\n // \"the w, syntax for images that should be scaled maintaining the aspect ratio\"\n // In version 3, use \"w,h if the size requested does not require upscaling\"\n // See:\n // - https://iiif.io/api/image/2.1/#canonical-uri-syntax\n // - https://iiif.io/api/image/3.0/#48-canonical-uri-syntax\n // And see also:\n // - https://www.jack-reed.com/2016/10/14/rounding-strategies-used-in-iiif.html\n if (height === Math.round(aspectRatioHeight)) {\n heightStr = '';\n }\n }\n urlSize = `${widthStr},${heightStr}`;\n }\n else {\n width = this.width;\n height = this.height;\n urlSize = this.majorVersion === 2 ? 'full' : 'max';\n }\n const area = width * height;\n if (this.maxWidth !== undefined) {\n if (width > this.maxWidth) {\n throw new Error(`Width of requested image is too large: ${width} > ${this.maxWidth}`);\n }\n }\n if (this.maxHeight !== undefined) {\n if (height > this.maxHeight) {\n throw new Error(`Height of requested image is too large: ${height} > ${this.maxHeight}`);\n }\n }\n if (this.maxArea !== undefined) {\n if (area > this.maxArea) {\n throw new Error(`Area of requested image is too large: ${area} > ${this.maxArea}`);\n }\n }\n const quality = this.majorVersion === 1 ? 'native' : 'default';\n const format = getImageUrlFormat(this.supportedFormats, options);\n return `${this.uri}/${urlRegion}/${urlSize}/0/${quality}.${format}`;\n }\n getImageRequest(size, mode = 'cover') {\n return getImageRequest({ width: this.width, height: this.height }, size, mode, {\n supportsAnyRegionAndSize: this.supportsAnyRegionAndSize,\n maxWidth: this.maxWidth,\n maxHeight: this.maxHeight,\n maxArea: this.maxArea\n });\n }\n}\n/**\n * Parsed IIIF Image\n * @property tileZoomLevels - Array of parsed tile zoom levels\n * @property sizes - Array of parsed sizes\n */\nexport class Image extends EmbeddedImage {\n source;\n tileZoomLevels;\n sizes;\n embedded = false;\n constructor(parsedImage, options) {\n super(parsedImage);\n this.source = options?.source;\n const profileProperties = getProfileProperties(parsedImage);\n let tilesets;\n if ('tiles' in parsedImage) {\n tilesets = parsedImage.tiles;\n }\n this.tileZoomLevels = getTileZoomLevels({ width: this.width, height: this.height }, tilesets, profileProperties.supportsAnyRegionAndSize);\n if ('sizes' in parsedImage) {\n this.sizes = parsedImage.sizes;\n }\n }\n /**\n * Parses a IIIF image and returns a [Image](#image) containing the parsed version\n * @param iiifImage - Source data of IIIF Image\n * @param majorVersion - IIIF API version of Image. If not provided, it will be determined automatically\n * @returns Parsed IIIF Image\n * @static\n */\n static parse(iiifImage, parseOptions) {\n const { majorVersion, keepSource } = parseOptions || {};\n let parsedImage;\n if (majorVersion === 1) {\n parsedImage = Image1Schema.parse(iiifImage);\n }\n else if (majorVersion === 2) {\n parsedImage = Image2Schema.parse(iiifImage);\n }\n else if (majorVersion === 3) {\n parsedImage = Image3Schema.parse(iiifImage);\n }\n else {\n parsedImage = ImageSchema.parse(iiifImage);\n }\n return new Image(parsedImage, keepSource ? { source: iiifImage } : {});\n }\n // TODO: rename this to getImageRequest\n /**\n * Returns a Image request object for a tile with the requested zoom level, column, and row\n * @param zoomLevel - Desired zoom level of the requested tile\n * @param column - Column of the requested tile\n * @param row - Row of the requested tile\n * @returns Image request object that can be used to fetch the requested tile\n */\n getTileImageRequest(zoomLevel, column, row) {\n return getTileImageRequest({ width: this.width, height: this.height }, zoomLevel, column, row);\n }\n /**\n * Returns a Image request object for the requested region and size\n * @param size - Size of the requested thumbnail\n * @param mode - Desired fit mode of the requested thumbnail\n * @returns Image request object that can be used to fetch the requested thumbnail\n */\n getImageRequest(size, mode = 'cover') {\n return getImageRequest({ width: this.width, height: this.height }, size, mode, {\n supportsAnyRegionAndSize: this.supportsAnyRegionAndSize,\n sizes: this.sizes,\n tileZoomLevels: this.tileZoomLevels,\n maxWidth: this.maxWidth,\n maxHeight: this.maxHeight,\n maxArea: this.maxArea\n });\n }\n}\n"],"names":["ImageTypeString","getImageUrlFormat","supportedFormats","options","supportedFormatSet","preferredFormat","format","EmbeddedImage","parsedImage","parsedCanvas","width","height","parsedEmbeddedImage","imageService","majorVersion","currentImageService","currentMajorVersion","getMajorIiifVersionFromImageService","Image2ContextString","Image1ContextString","Image1ContextStringIncorrect","profile","image1ProfileUriRegex","image2ProfileUriRegex","profileProperties","getProfileProperties","getSupportedFormats","imageRequest","region","size","regionHeight","regionWidth","urlRegion","urlSize","widthStr","heightStr","aspectRatio","aspectRatioHeight","area","quality","mode","getImageRequest","Image","tilesets","getTileZoomLevels","iiifImage","parseOptions","keepSource","Image1Schema","Image2Schema","Image3Schema","ImageSchema","zoomLevel","column","row","getTileImageRequest"],"mappings":"+SAMMA,EAAkB,QACxB,SAASC,EAAkBC,EAAkBC,EAAS,CAClD,GAAIA,GAAS,i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EACJ,OAAIM,IAAiB,EACjBN,EAAcwC,EAAAA,aAAa,MAAMH,CAAS,EAErC/B,IAAiB,EACtBN,EAAcyC,EAAAA,aAAa,MAAMJ,CAAS,EAErC/B,IAAiB,EACtBN,EAAc0C,EAAAA,aAAa,MAAML,CAAS,EAG1CrC,EAAc2C,EAAAA,YAAY,MAAMN,CAAS,EAEtC,IAAIH,EAAMlC,EAAauC,EAAa,CAAE,OAAQF,CAAA,EAAc,EAAE,CACzE,CASA,oBAAoBO,EAAWC,EAAQC,EAAK,CACxC,OAAOC,sBAAoB,CAAE,MAAO,KAAK,MAAO,OAAQ,KAAK,MAAA,EAAUH,EAAWC,EAAQC,CAAG,CACjG,CAOA,gBAAgBzB,EAAMW,EAAO,QAAS,CAClC,OAAOC,kBAAgB,CAAE,MAAO,KAAK,MAAO,OAAQ,KAAK,MAAA,EAAUZ,EAAMW,EAAM,CAC3E,yBAA0B,KAAK,yBAC/B,MAAO,KAAK,MACZ,eAAgB,KAAK,eACrB,SAAU,KAAK,SACf,UAAW,KAAK,UAChB,QAAS,KAAK,OAAA,CACjB,CACL,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs285.js","sources":["../../../node_modules/lodash-es/cloneDeep.js"],"sourcesContent":["import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nexport default cloneDeep;\n"],"names":["CLONE_DEEP_FLAG","CLONE_SYMBOLS_FLAG","cloneDeep","value","baseClone"],"mappings":"kDAGA,IAAIA,EAAkB,EAClBC,EAAqB,EAoBzB,SAASC,EAAUC,EAAO,CACxB,OAAOC,EAAUD,EAAOH,EAAkBC,CAAkB,CAC9D","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index.cjs195.js"),s=require("./index.cjs196.js"),u=require("./index.cjs282.js"),a=require("./index.cjs275.js"),p=require("./index.cjs198.js"),j=require("./index.cjs287.js");var c={distortionMeasures:[]},G=class l extends T.WarpedMap{previousResourceResolution;resourceResolution;triangulateErrorCount=0;projectedGcpPreviousTriangulation;projectedGcpTriangulation;resourceTriangulationCache;projectedGcpTriangulationCache;resourceTrianglePoints=[];projectedGeoPreviousTrianglePoints=[];projectedGeoTrianglePoints=[];previousTrianglePointsDistortion=[];trianglePointsDistortion=[];previousTrianglePointsInside=[];trianglePointsInside=[];projectedGeoPreviousTriangulationFullMask=[];projectedGeoTriangulationFullMask=[];projectedGeoPreviousTriangulationMask=[];projectedGeoTriangulationMask=[];projectedGeoPreviousTriangulationAppliedMask=[];projectedGeoTriangulationAppliedMask=[];constructor(e,t,i,o){super(e,t,i,o),this.resourceTriangulationCache=new Map,this.projectedGcpTriangulationCache=new Map,this.updateTriangulation()}static getDefaultOptions(){return p.mergeOptions(c,super.getDefaultOptions())}static getDefaultWithoutGeoreferencedMapOptions(){return p.mergeOptions(c,super.getDefaultWithoutGeoreferencedMapOptions())}setDefaultOptions(){this.defaultOptions=l.getDefaultOptions()}setListOptions(e,t){return super.setListOptions(e,t)}setMapOptions(e,t){return super.setMapOptions(e,t)}setMapAndListOptions(e,t,i){return super.setMapAndListOptions(e,t,i)}setGcps(e){super.setGcps(e),this.clearResourceTriangulationCaches(),this.updateTriangulation()}setResourceMask(){super.setResourceMask(),this.updateTriangulation()}setDistortionMeasure(e){super.setDistortionMeasure(e),e&&!this.options.distortionMeasures.includes(e)&&this.options.distortionMeasures.push(e),this.updateTriangulation()}setInternalProjection(e){super.setInternalProjection(e),this.updateTriangulation()}setProjection(e){super.setProjection(e),this.clearProjectedTriangulationCaches(),this.updateTriangulation()}resetPrevious(){super.resetPrevious(),this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation=this.projectedGcpTriangulation,this.projectedGeoPreviousTrianglePoints=this.projectedGeoTrianglePoints,this.previousTrianglePointsDistortion=this.trianglePointsDistortion,this.previousTrianglePointsInside=this.trianglePointsInside,this.projectedGeoPreviousTriangulationFullMask=this.projectedGeoTriangulationFullMask,this.projectedGeoPreviousTriangulationMask=this.projectedGeoTriangulationMask,this.projectedGeoPreviousTriangulationAppliedMask=this.projectedGeoTriangulationAppliedMask}mixPreviousAndNew(e){if(super.mixPreviousAndNew(e),this.projectedGcpPreviousTriangulation&&this.projectedGcpTriangulation){const t=this.projectedGcpPreviousTriangulation,i=this.projectedGcpTriangulation;this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation={resourceResolution:t.resourceResolution,gcpUniquePoints:t.gcpUniquePoints.map((o,n)=>({resource:o.resource,geo:a.mixPoints(i.gcpUniquePoints[n].geo,o.geo,e),distortions:i.gcpUniquePoints[n].distortions,distortion:a.mixNumbers(i.gcpUniquePoints[n].distortion||0,o.distortion||0,e)})),uniquePointIndices:t.uniquePointIndices,uniquePointIndexInterpolatedPolygon:t.uniquePointIndexInterpolatedPolygon,uniquePointIndexInterpolatedSteinerPolygons:t.uniquePointIndexInterpolatedSteinerPolygons,insideSteinerPolygonsTriangles:t.insideSteinerPolygonsTriangles},this.projectedGeoPreviousTrianglePoints=t.uniquePointIndices.map(o=>t.gcpUniquePoints[o].geo),this.previousTrianglePointsDistortion=t.uniquePointIndices.map(o=>t.gcpUniquePoints[o].distortion)}this.projectedGeoPreviousTriangulationFullMask=a.mixLineStrings(this.projectedGeoTriangulationFullMask,this.projectedGeoPreviousTriangulationFullMask,e),this.projectedGeoPreviousTriangulationMask=a.mixLineStrings(this.projectedGeoTriangulationMask,this.projectedGeoPreviousTriangulationMask,e),this.projectedGeoPreviousTriangulationAppliedMask=a.mixLineStrings(this.projectedGeoTriangulationAppliedMask,this.projectedGeoPreviousTriangulationAppliedMask,e)}updateTriangulation(){if(!this.resourceTriangulationCache||!this.projectedGcpTriangulationCache)return;const e=this.options.resourceResolution||this.projectedTransformer.getToGeoTransformationResolution(this.resourceMaskBbox);let t=!1;e&&this.previousResourceResolution&&(t=this.previousResourceResolution<e,this.resourceResolution=Math.min(e,this.previousResourceResolution)),e&&!this.previousResourceResolution&&(t=!0,this.resourceResolution=e),!e&&this.previousResourceResolution?this.resourceResolution=this.previousResourceResolution:!e&&!this.previousResourceResolution&&(this.resourceResolution=void 0),this.projectedGcpTriangulation=u.getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache,this.resourceResolution,String(this.resourceMask),this.transformationType,this.internalProjection.definition,String(this.options.distortionMeasures),()=>{const{uniquePoints:i,uniquePointIndexTriangles:o,uniquePointIndexInterpolatedPolygon:n,uniquePointIndexInterpolatedSteinerPolygons:g,insideSteinerPolygonsTriangles:d}=u.getPropertyFromDoubleCacheOrComputation(this.resourceTriangulationCache,this.resourceResolution,String(this.resourceMask),()=>{try{return j.triangulateToUnique(s.bboxToPolygon(s.combineBboxes(s.computeBbox(this.resourceFullMask),s.bufferBbox(s.computeBbox(this.resourceMask),1))),this.resourceResolution,{steinerPoints:this.gcps.map(r=>r.resource),steinerPolygons:[[this.resourceMask]],computeInsideSteinerPolygons:!0})}catch(r){throw r instanceof Error?(r.message=`Failed to triangulate map ${this.mapId}: `+r.message,r):new Error(`Failed to triangulate map ${this.mapId}`)}}),h=this.resourceResolution,P=i;return{resourceResolution:h,gcpUniquePoints:this.projectedTransformer.transformToProjectedGeo(P,{distortionMeasures:this.options.distortionMeasures,referenceScale:this.getReferenceScale(),isMultiGeometry:!0},r=>r),uniquePointIndices:o.flat(),uniquePointIndexInterpolatedPolygon:n,uniquePointIndexInterpolatedSteinerPolygons:g,insideSteinerPolygonsTriangles:d}}),this.projectedGcpPreviousTriangulation||(this.projectedGcpPreviousTriangulation=this.projectedGcpTriangulation),t&&(this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation=u.getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache,this.previousResourceResolution,String(this.resourceMask),this.previousTransformationType,this.previousInternalProjection.definition,String(this.options.distortionMeasures),()=>{if(!this.projectedGcpTriangulation)throw new Error("No projectedGcpTriangulation");const i=this.projectedGcpTriangulation;return{resourceResolution:this.projectedGcpTriangulation.resourceResolution,gcpUniquePoints:this.projectedPreviousTransformer.transformToProjectedGeo(this.projectedGcpTriangulation.gcpUniquePoints.map(o=>o.resource),{distortionMeasures:this.options.distortionMeasures,referenceScale:this.getReferenceScale(),isMultiGeometry:!0},o=>o),uniquePointIndices:this.projectedGcpTriangulation.uniquePointIndices,uniquePointIndexInterpolatedPolygon:i.uniquePointIndexInterpolatedPolygon,uniquePointIndexInterpolatedSteinerPolygons:i.uniquePointIndexInterpolatedSteinerPolygons,insideSteinerPolygonsTriangles:i.insideSteinerPolygonsTriangles}},()=>!this.mixed,()=>!this.mixed)),this.updateTrianglePoints()}updateTrianglePoints(){if(!this.projectedGcpPreviousTriangulation||!this.projectedGcpTriangulation)return;const e=this.projectedGcpPreviousTriangulation,t=this.projectedGcpTriangulation;this.trianglePointsInside=t.insideSteinerPolygonsTriangles.map(i=>[i,i,i]).flat(),this.resourceTrianglePoints=this.projectedGcpTriangulation.uniquePointIndices.map(i=>t.gcpUniquePoints[i].resource),this.projectedGeoPreviousTrianglePoints=this.projectedGcpPreviousTriangulation.uniquePointIndices.map(i=>e.gcpUniquePoints[i].geo),this.projectedGeoTrianglePoints=this.projectedGcpTriangulation.uniquePointIndices.map(i=>t.gcpUniquePoints[i].geo),this.projectedGeoPreviousTriangulationFullMask=this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon.map(i=>i.map(o=>e.gcpUniquePoints[o].geo)).flat(),this.projectedGeoTriangulationFullMask=this.projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon.map(i=>i.map(o=>t.gcpUniquePoints[o].geo)).flat(),this.projectedGeoPreviousTriangulationMask=this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map(i=>i.map(o=>e.gcpUniquePoints[o].geo)).flat(),this.projectedGeoTriangulationMask=this.projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map(i=>i.map(o=>t.gcpUniquePoints[o].geo)).flat(),this.projectedGeoPreviousTriangulationAppliedMask=this.applyMask?this.projectedGeoPreviousTriangulationMask:this.projectedGeoPreviousTriangulationFullMask,this.projectedGeoTriangulationAppliedMask=this.applyMask?this.projectedGeoTriangulationMask:this.projectedGeoTriangulationFullMask,this.updateTrianglePointsDistortion()}updateTrianglePointsDistortion(){if(!this.projectedGcpPreviousTriangulation||!this.projectedGcpTriangulation)return;const e=this.projectedGcpPreviousTriangulation,t=this.projectedGcpTriangulation;this.previousTrianglePointsDistortion=e.uniquePointIndices.map(i=>{const o=e.gcpUniquePoints[i].distortions;return!this.previousDistortionMeasure||!o?0:o.get(this.previousDistortionMeasure)}),this.trianglePointsDistortion=t.uniquePointIndices.map(i=>{const o=t.gcpUniquePoints[i].distortions;return!this.distortionMeasure||!o?0:o.get(this.distortionMeasure)})}updateProjectedTransformerProperties(){super.updateProjectedTransformerProperties(),this.updateTriangulation()}clearProjectedTransformerCaches(){super.clearProjectedTransformerCaches(),this.clearResourceTriangulationCaches()}clearResourceTriangulationCaches(){this.resourceTriangulationCache=new Map,this.clearProjectedTriangulationCaches()}clearProjectedTriangulationCaches(){this.projectedGcpTriangulationCache=new Map}};exports.TriangulatedWarpedMap=G;
|
|
2
|
+
//# sourceMappingURL=index.cjs286.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs286.js","sources":["../../../node_modules/@allmaps/render/dist/maps/TriangulatedWarpedMap.js"],"sourcesContent":["import { WarpedMap } from \"./WarpedMap.js\";\nimport { bboxToPolygon, bufferBbox, combineBboxes, computeBbox, getPropertyFromDoubleCacheOrComputation, getPropertyFromQuintupleCacheOrComputation, mergeOptions, mixLineStrings, mixNumbers, mixPoints } from \"@allmaps/stdlib\";\nimport { triangulateToUnique } from \"@allmaps/triangulate\";\n//#region src/maps/TriangulatedWarpedMap.ts\nvar DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS = { distortionMeasures: [] };\n/**\n* Class for triangulated WarpedMaps.\n*\n* @param resourcePreviousResolution - Resolution (or 'distance') used during the previous triangulation of the resource mask\n* @param resourceResolution - Resolution (or 'distance') used during the triangulation of the resource mask, computed as the finest resource segment resulting from a resource-to-geo transformation of the horizontal and vertical midline of the resource bbox using the current transformation type\n* @param triangulateErrorCount - Number of time the triangulation has resulted in an error\n* @param projectedGcpPreviousTriangulation - Previous triangulation of the resource mask\n* @param projectedGcpTriangulation - Triangulation of the resource mask of a specific resource resolution, with unique points in resource and projected geospatial coordinates with distortions, and indices pointing to the triangles points and indices pointing to the triangulation-refined resource mask\n* @param resourceTrianglePoints - Triangle points of the triangles the triangulated resourceMask\n* @param projectedGeoPreviousTrianglePoints - The projectedGeoTrianglePoints of the previous transformation type, used during transformation transitions\n* @param projectedGeoTrianglePoints - The resourceTrianglePoints in projected geospatial coordinates\n* @param previousTrianglePointsDistortion - The trianglePointsDistortion of the previous transformation type, used during transformation transitions\n* @param trianglePointsDistortion - Distortion amount of the distortionMeasure at the projectedGeoTrianglePoints\n* @param projectedGeoPreviousTriangulationFullMask - The resource full mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoPreviousTriangulationMask - The resource mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoTriangulationMask - The resource mask refined by the triangulation, in projected geospatial coordinates\n* @param projectedGeoPreviousTriangulationAppliedMask - The resource applied mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoTriangulationAppliedMask - The resource applied mask refined by the triangulation, in projected geospatial coordinates\n*/\nvar TriangulatedWarpedMap = class TriangulatedWarpedMap extends WarpedMap {\n\tpreviousResourceResolution;\n\tresourceResolution;\n\ttriangulateErrorCount = 0;\n\tprojectedGcpPreviousTriangulation;\n\tprojectedGcpTriangulation;\n\tresourceTriangulationCache;\n\tprojectedGcpTriangulationCache;\n\tresourceTrianglePoints = [];\n\tprojectedGeoPreviousTrianglePoints = [];\n\tprojectedGeoTrianglePoints = [];\n\tpreviousTrianglePointsDistortion = [];\n\ttrianglePointsDistortion = [];\n\tpreviousTrianglePointsInside = [];\n\ttrianglePointsInside = [];\n\tprojectedGeoPreviousTriangulationFullMask = [];\n\tprojectedGeoTriangulationFullMask = [];\n\tprojectedGeoPreviousTriangulationMask = [];\n\tprojectedGeoTriangulationMask = [];\n\tprojectedGeoPreviousTriangulationAppliedMask = [];\n\tprojectedGeoTriangulationAppliedMask = [];\n\t/**\n\t* Creates an instance of a TriangulatedWarpedMap.\n\t*\n\t* @param mapId - ID of the map\n\t* @param georeferencedMap - Georeferenced map used to construct the WarpedMap\n\t* @param options - Options\n\t*/\n\tconstructor(mapId, georeferencedMap, listOptions, mapOptions) {\n\t\tsuper(mapId, georeferencedMap, listOptions, mapOptions);\n\t\tthis.resourceTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.projectedGcpTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Get default options\n\t*/\n\tstatic getDefaultOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS, super.getDefaultOptions());\n\t}\n\t/**\n\t* Get default options without the options overwritten by the georeferenced map\n\t*/\n\tstatic getDefaultWithoutGeoreferencedMapOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS, super.getDefaultWithoutGeoreferencedMapOptions());\n\t}\n\t/**\n\t* Set the defaultOptions\n\t*/\n\tsetDefaultOptions() {\n\t\tthis.defaultOptions = TriangulatedWarpedMap.getDefaultOptions();\n\t}\n\t/**\n\t* Set the list options\n\t*\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetListOptions(listOptions, animationOptions) {\n\t\treturn super.setListOptions(listOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapOptions(mapOptions, animationOptions) {\n\t\treturn super.setMapOptions(mapOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options, and the list options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapAndListOptions(mapOptions, listOptions, animationOptions) {\n\t\treturn super.setMapAndListOptions(mapOptions, listOptions, animationOptions);\n\t}\n\t/**\n\t* Update the ground control points loaded from a georeferenced map to new ground control points.\n\t*\n\t* @param gcps - the new ground control points\n\t*/\n\tsetGcps(gcps) {\n\t\tsuper.setGcps(gcps);\n\t\tthis.clearResourceTriangulationCaches();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Update the resource mask loaded from a georeferenced map to a new mask.\n\t*\n\t* @param resourceMask - the new mask\n\t*/\n\tsetResourceMask() {\n\t\tsuper.setResourceMask();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the distortionMeasure\n\t*\n\t* @param distortionMeasure - the disortion measure\n\t*/\n\tsetDistortionMeasure(distortionMeasure) {\n\t\tsuper.setDistortionMeasure(distortionMeasure);\n\t\tif (distortionMeasure && !this.options.distortionMeasures.includes(distortionMeasure)) this.options.distortionMeasures.push(distortionMeasure);\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the internal projection\n\t*\n\t* @param projection - the internal projection\n\t*/\n\tsetInternalProjection(projection) {\n\t\tsuper.setInternalProjection(projection);\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the projection\n\t*\n\t* @param projection - the projection\n\t*/\n\tsetProjection(projection) {\n\t\tsuper.setProjection(projection);\n\t\tthis.clearProjectedTriangulationCaches();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Reset previous transform properties to new ones (when completing an animation).\n\t*/\n\tresetPrevious() {\n\t\tsuper.resetPrevious();\n\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\tthis.projectedGcpPreviousTriangulation = this.projectedGcpTriangulation;\n\t\tthis.projectedGeoPreviousTrianglePoints = this.projectedGeoTrianglePoints;\n\t\tthis.previousTrianglePointsDistortion = this.trianglePointsDistortion;\n\t\tthis.previousTrianglePointsInside = this.trianglePointsInside;\n\t\tthis.projectedGeoPreviousTriangulationFullMask = this.projectedGeoTriangulationFullMask;\n\t\tthis.projectedGeoPreviousTriangulationMask = this.projectedGeoTriangulationMask;\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = this.projectedGeoTriangulationAppliedMask;\n\t}\n\t/**\n\t* Mix previous transform properties with new ones (when changing an ongoing animation).\n\t*\n\t* @param t - animation progress\n\t*/\n\tmixPreviousAndNew(t) {\n\t\tsuper.mixPreviousAndNew(t);\n\t\tif (this.projectedGcpPreviousTriangulation && this.projectedGcpTriangulation) {\n\t\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\t\tthis.projectedGcpPreviousTriangulation = {\n\t\t\t\tresourceResolution: projectedGcpPreviousTriangulation.resourceResolution,\n\t\t\t\tgcpUniquePoints: projectedGcpPreviousTriangulation.gcpUniquePoints.map((projectedGcp, index) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresource: projectedGcp.resource,\n\t\t\t\t\t\tgeo: mixPoints(projectedGcpTriangulation.gcpUniquePoints[index].geo, projectedGcp.geo, t),\n\t\t\t\t\t\tdistortions: projectedGcpTriangulation.gcpUniquePoints[index].distortions,\n\t\t\t\t\t\tdistortion: mixNumbers(projectedGcpTriangulation.gcpUniquePoints[index].distortion || 0, projectedGcp.distortion || 0, t)\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t\tuniquePointIndices: projectedGcpPreviousTriangulation.uniquePointIndices,\n\t\t\t\tuniquePointIndexInterpolatedPolygon: projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon,\n\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons: projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\tinsideSteinerPolygonsTriangles: projectedGcpPreviousTriangulation.insideSteinerPolygonsTriangles\n\t\t\t};\n\t\t\tthis.projectedGeoPreviousTrianglePoints = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo);\n\t\t\tthis.previousTrianglePointsDistortion = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].distortion);\n\t\t}\n\t\tthis.projectedGeoPreviousTriangulationFullMask = mixLineStrings(this.projectedGeoTriangulationFullMask, this.projectedGeoPreviousTriangulationFullMask, t);\n\t\tthis.projectedGeoPreviousTriangulationMask = mixLineStrings(this.projectedGeoTriangulationMask, this.projectedGeoPreviousTriangulationMask, t);\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = mixLineStrings(this.projectedGeoTriangulationAppliedMask, this.projectedGeoPreviousTriangulationAppliedMask, t);\n\t}\n\t/**\n\t* Update the (previous and new) triangulation of the resourceMask. Use cache if available.\n\t*/\n\tupdateTriangulation() {\n\t\tif (!this.resourceTriangulationCache || !this.projectedGcpTriangulationCache) return;\n\t\tconst resourceResolution = this.options.resourceResolution || this.projectedTransformer.getToGeoTransformationResolution(this.resourceMaskBbox);\n\t\tlet refinePrevious = false;\n\t\tif (resourceResolution && this.previousResourceResolution) {\n\t\t\trefinePrevious = this.previousResourceResolution < resourceResolution;\n\t\t\tthis.resourceResolution = Math.min(resourceResolution, this.previousResourceResolution);\n\t\t}\n\t\tif (resourceResolution && !this.previousResourceResolution) {\n\t\t\trefinePrevious = true;\n\t\t\tthis.resourceResolution = resourceResolution;\n\t\t}\n\t\tif (!resourceResolution && this.previousResourceResolution) this.resourceResolution = this.previousResourceResolution;\n\t\telse if (!resourceResolution && !this.previousResourceResolution) this.resourceResolution = void 0;\n\t\tthis.projectedGcpTriangulation = getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache, this.resourceResolution, String(this.resourceMask), this.transformationType, this.internalProjection.definition, String(this.options.distortionMeasures), () => {\n\t\t\tconst { uniquePoints, uniquePointIndexTriangles, uniquePointIndexInterpolatedPolygon, uniquePointIndexInterpolatedSteinerPolygons, insideSteinerPolygonsTriangles } = getPropertyFromDoubleCacheOrComputation(this.resourceTriangulationCache, this.resourceResolution, String(this.resourceMask), () => {\n\t\t\t\ttry {\n\t\t\t\t\treturn triangulateToUnique(bboxToPolygon(combineBboxes(computeBbox(this.resourceFullMask), bufferBbox(computeBbox(this.resourceMask), 1))), this.resourceResolution, {\n\t\t\t\t\t\tsteinerPoints: this.gcps.map((gcp) => gcp.resource),\n\t\t\t\t\t\tsteinerPolygons: [[this.resourceMask]],\n\t\t\t\t\t\tcomputeInsideSteinerPolygons: true\n\t\t\t\t\t});\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof Error) {\n\t\t\t\t\t\terror.message = `Failed to triangulate map ${this.mapId}: ` + error.message;\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t} else throw new Error(`Failed to triangulate map ${this.mapId}`);\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst resourceResolution = this.resourceResolution;\n\t\t\tconst resourceUniquePoints = uniquePoints;\n\t\t\treturn {\n\t\t\t\tresourceResolution,\n\t\t\t\tgcpUniquePoints: this.projectedTransformer.transformToProjectedGeo(resourceUniquePoints, {\n\t\t\t\t\tdistortionMeasures: this.options.distortionMeasures,\n\t\t\t\t\treferenceScale: this.getReferenceScale(),\n\t\t\t\t\tisMultiGeometry: true\n\t\t\t\t}, (gcpPartialDistortion) => gcpPartialDistortion),\n\t\t\t\tuniquePointIndices: uniquePointIndexTriangles.flat(),\n\t\t\t\tuniquePointIndexInterpolatedPolygon,\n\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\tinsideSteinerPolygonsTriangles\n\t\t\t};\n\t\t});\n\t\tif (!this.projectedGcpPreviousTriangulation) this.projectedGcpPreviousTriangulation = this.projectedGcpTriangulation;\n\t\tif (refinePrevious) {\n\t\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\t\tthis.projectedGcpPreviousTriangulation = getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache, this.previousResourceResolution, String(this.resourceMask), this.previousTransformationType, this.previousInternalProjection.definition, String(this.options.distortionMeasures), () => {\n\t\t\t\tif (!this.projectedGcpTriangulation) throw new Error(\"No projectedGcpTriangulation\");\n\t\t\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\t\t\treturn {\n\t\t\t\t\tresourceResolution: this.projectedGcpTriangulation.resourceResolution,\n\t\t\t\t\tgcpUniquePoints: this.projectedPreviousTransformer.transformToProjectedGeo(this.projectedGcpTriangulation.gcpUniquePoints.map((projectedGcp) => projectedGcp.resource), {\n\t\t\t\t\t\tdistortionMeasures: this.options.distortionMeasures,\n\t\t\t\t\t\treferenceScale: this.getReferenceScale(),\n\t\t\t\t\t\tisMultiGeometry: true\n\t\t\t\t\t}, (gcpPartialDistortion) => gcpPartialDistortion),\n\t\t\t\t\tuniquePointIndices: this.projectedGcpTriangulation.uniquePointIndices,\n\t\t\t\t\tuniquePointIndexInterpolatedPolygon: projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon,\n\t\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons: projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\t\tinsideSteinerPolygonsTriangles: projectedGcpTriangulation.insideSteinerPolygonsTriangles\n\t\t\t\t};\n\t\t\t}, () => !this.mixed, () => !this.mixed);\n\t\t}\n\t\tthis.updateTrianglePoints();\n\t}\n\t/**\n\t* Derive the (previous and new) resource and projectedGeo points from their corresponding triangulations.\n\t*\n\t* Also derive the (previous and new) triangulation-refined resource and projectedGeo mask\n\t*/\n\tupdateTrianglePoints() {\n\t\tif (!this.projectedGcpPreviousTriangulation || !this.projectedGcpTriangulation) return;\n\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\tthis.trianglePointsInside = projectedGcpTriangulation.insideSteinerPolygonsTriangles.map((inside) => [\n\t\t\tinside,\n\t\t\tinside,\n\t\t\tinside\n\t\t]).flat();\n\t\tthis.resourceTrianglePoints = this.projectedGcpTriangulation.uniquePointIndices.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].resource);\n\t\tthis.projectedGeoPreviousTrianglePoints = this.projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo);\n\t\tthis.projectedGeoTrianglePoints = this.projectedGcpTriangulation.uniquePointIndices.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo);\n\t\tthis.projectedGeoPreviousTriangulationFullMask = this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon.map((typedRing) => typedRing.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoTriangulationFullMask = this.projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon.map((typedRing) => typedRing.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoPreviousTriangulationMask = this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map((typedRing) => typedRing.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoTriangulationMask = this.projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map((typedRing) => typedRing.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = this.applyMask ? this.projectedGeoPreviousTriangulationMask : this.projectedGeoPreviousTriangulationFullMask;\n\t\tthis.projectedGeoTriangulationAppliedMask = this.applyMask ? this.projectedGeoTriangulationMask : this.projectedGeoTriangulationFullMask;\n\t\tthis.updateTrianglePointsDistortion();\n\t}\n\t/**\n\t* Derive the (previous and new) distortions from their corresponding triangulations.\n\t*/\n\tupdateTrianglePointsDistortion() {\n\t\tif (!this.projectedGcpPreviousTriangulation || !this.projectedGcpTriangulation) return;\n\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\tthis.previousTrianglePointsDistortion = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => {\n\t\t\tconst distortions = projectedGcpPreviousTriangulation.gcpUniquePoints[i].distortions;\n\t\t\tif (!this.previousDistortionMeasure || !distortions) return 0;\n\t\t\telse return distortions.get(this.previousDistortionMeasure);\n\t\t});\n\t\tthis.trianglePointsDistortion = projectedGcpTriangulation.uniquePointIndices.map((i) => {\n\t\t\tconst distortions = projectedGcpTriangulation.gcpUniquePoints[i].distortions;\n\t\t\tif (!this.distortionMeasure || !distortions) return 0;\n\t\t\telse return distortions.get(this.distortionMeasure);\n\t\t});\n\t}\n\tupdateProjectedTransformerProperties() {\n\t\tsuper.updateProjectedTransformerProperties();\n\t\tthis.updateTriangulation();\n\t}\n\tclearProjectedTransformerCaches() {\n\t\tsuper.clearProjectedTransformerCaches();\n\t\tthis.clearResourceTriangulationCaches();\n\t}\n\tclearResourceTriangulationCaches() {\n\t\tthis.resourceTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.clearProjectedTriangulationCaches();\n\t}\n\tclearProjectedTriangulationCaches() {\n\t\tthis.projectedGcpTriangulationCache = /* @__PURE__ */ new Map();\n\t}\n};\n//#endregion\nexport { TriangulatedWarpedMap };\n\n//# sourceMappingURL=TriangulatedWarpedMap.js.map"],"names":["DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS","TriangulatedWarpedMap","WarpedMap","mapId","georeferencedMap","listOptions","mapOptions","mergeOptions","animationOptions","gcps","distortionMeasure","projection","t","projectedGcpPreviousTriangulation","projectedGcpTriangulation","projectedGcp","index","mixPoints","mixNumbers","i","mixLineStrings","resourceResolution","refinePrevious","getPropertyFromQuintupleCacheOrComputation","uniquePoints","uniquePointIndexTriangles","uniquePointIndexInterpolatedPolygon","uniquePointIndexInterpolatedSteinerPolygons","insideSteinerPolygonsTriangles","getPropertyFromDoubleCacheOrComputation","triangulateToUnique","bboxToPolygon","combineBboxes","computeBbox","bufferBbox","gcp","error","resourceUniquePoints","gcpPartialDistortion","inside","typedRing","distortions"],"mappings":"gRAIA,IAAIA,EAAmD,CAAE,mBAAoB,EAAC,EAoB1EC,EAAwB,MAAMA,UAA8BC,WAAU,CACzE,2BACA,mBACA,sBAAwB,EACxB,kCACA,0BACA,2BACA,+BACA,uBAAyB,CAAA,EACzB,mCAAqC,CAAA,EACrC,2BAA6B,CAAA,EAC7B,iCAAmC,CAAA,EACnC,yBAA2B,CAAA,EAC3B,6BAA+B,CAAA,EAC/B,qBAAuB,CAAA,EACvB,0CAA4C,CAAA,EAC5C,kCAAoC,CAAA,EACpC,sCAAwC,CAAA,EACxC,8BAAgC,CAAA,EAChC,6CAA+C,CAAA,EAC/C,qCAAuC,CAAA,EAQvC,YAAYC,EAAOC,EAAkBC,EAAaC,EAAY,CAC7D,MAAMH,EAAOC,EAAkBC,EAAaC,CAAU,EACtD,KAAK,+BAAiD,IACtD,KAAK,mCAAqD,IAC1D,KAAK,oBAAA,CACN,CAIA,OAAO,mBAAoB,CAC1B,OAAOC,eAAaP,EAA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uC,CACtC,MAAM,qCAAA,EACN,KAAK,oBAAA,CACN,CACA,iCAAkC,CACjC,MAAM,gCAAA,EACN,KAAK,iCAAA,CACN,CACA,kCAAmC,CAClC,KAAK,+BAAiD,IACtD,KAAK,kCAAA,CACN,CACA,mCAAoC,CACnC,KAAK,mCAAqD,GAC3D,CACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index.cjs465.js"),N=require("./index.cjs199.js"),w=require("./index.cjs196.js"),c=require("./index.cjs275.js"),O=require("./index.cjs198.js"),t=require("./index.cjs466.js"),U=1e-4,K={steinerPoints:[],steinerPolygons:[],minimumTriangleAngle:U,computeInsideSteinerPolygons:!1};function j(i,p,_){const l=O.mergeOptions(K,_);i=c.conformPolygon(i);const R=w.polygonIsBboxRectangle(i);let P=l.steinerPolygons.map(e=>c.conformPolygon(e));const b=t.buildKDBushPointIndex(l.steinerPoints);i=t.splitPolygonLines(i,l.steinerPoints,b),P=P.map(e=>t.splitPolygonLines(e,l.steinerPoints,b));const y=t.preprocessPolygonForInsideCheck(i),B=l.steinerPoints.filter(e=>t.coordsInPolygonForInsidenessCheck(e[0],e[1],y));let u=[],m=[],d=[],f=[],h=[],q=[];p?(u=t.interpolatePolygon(i,p),d=P.map(e=>t.interpolatePolygon(e,p)),h=t.bboxToGridPoints(w.computeBbox(i),p),q=h.filter(e=>t.coordsInPolygonForInsidenessCheck(e[0],e[1],y))):(u=i,d=P),m=u.flat(),f=d.flat(2);const E=[...m,...q,...f,...B],r=[],S=new Map;for(const e of E){const n=`${e[0]},${e[1]}`;S.has(n)||(S.set(n,r.length),r.push(e))}const k=([e,n])=>{const s=S.get(`${e},${n}`);if(s===void 0)throw new Error(`Point not found in uniquePoints: [${e}, ${n}]`);return s},x=u.map(e=>e.map(k)),C=new Set(x.flat()),F=d.map(e=>e.map(n=>n.map(k))),A=[...x,...F.flat()].flatMap(e=>e.map((n,s)=>[n,e[(s+1)%e.length]])),L=new G(r.flat()),o=new N(L);o.delaunify(!0),o.constrainAll(A);let I=[],a=[];const M=[];for(let e=0;e<o.del.triangles.length;e+=3)I.push([o.del.triangles[e],o.del.triangles[e+1],o.del.triangles[e+2]]),a.push([r[o.del.triangles[e]],r[o.del.triangles[e+1]],r[o.del.triangles[e+2]]]),M.push(C.has(o.del.triangles[e])||C.has(o.del.triangles[e+1])||C.has(o.del.triangles[e+2]));let g=a.map(e=>c.midPoint(...e));const T=a.map((e,n)=>M[n]?(R?!0:t.coordsInPolygonForInsidenessCheck(g[n][0],g[n][1],y))&&c.triangleAngles(e).every(s=>s>=l.minimumTriangleAngle):!0);I=I.filter((e,n)=>T[n]),a=a.filter((e,n)=>T[n]),g=g.filter((e,n)=>T[n]);let $=[];const v=P.map(e=>c.closePolygon(e));if(l.computeInsideSteinerPolygons){const e=v.map(n=>t.preprocessPolygonForInsideCheck(n));$=a.map((n,s)=>t.coordsInPolygonsForInsidenessCheck(g[s][0],g[s][1],e)===!0)}return{interpolatedPolygon:u,interpolatedPolygonPoints:m,gridPoints:h,gridPointsInPolygon:q,interpolatedSteinerPolygons:d,interpolatedSteinerPolygonsPoints:f,uniquePoints:r,triangles:a,uniquePointIndexTriangles:I,uniquePointIndexInterpolatedPolygon:x,uniquePointIndexEdges:A,uniquePointIndexInterpolatedSteinerPolygons:F,insideSteinerPolygonsTriangles:$}}exports.interpolatePolygon=t.interpolatePolygon;exports.interpolateRing=t.interpolateRing;exports.triangulateToUnique=j;
|
|
2
|
+
//# sourceMappingURL=index.cjs287.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs287.js","sources":["../../../node_modules/@allmaps/triangulate/dist/triangulate.js"],"sourcesContent":["import Delaunator from 'delaunator';\nimport Constrainautor from '@kninnug/constrainautor';\nimport { closePolygon, computeBbox, conformPolygon, mergeOptions, midPoint, polygonIsBboxRectangle, triangleAngles } from '@allmaps/stdlib';\nimport { bboxToGridPoints, interpolateRing, interpolatePolygon, coordsInPolygonForInsidenessCheck, preprocessPolygonForInsideCheck, coordsInPolygonsForInsidenessCheck, buildKDBushPointIndex, splitPolygonLines } from './shared.js';\nconst MINIMUM_TRIANGLE_ANGLE = 0.0001;\nconst defaultTriangulationOptions = {\n steinerPoints: [],\n steinerPolygons: [],\n minimumTriangleAngle: MINIMUM_TRIANGLE_ANGLE,\n computeInsideSteinerPolygons: false\n};\nexport { interpolateRing, interpolatePolygon };\n/**\n * Triangulate a polygon to triangles smaller then a distance\n *\n * Grid points are placed inside the polygon to obtain small, well conditioned triangles.\n *\n * @param polygon - Polygon\n * @param distance - Distance that conditions the triangles\n * @param triangulationOptions - Triangulation Options.\n * @returns Array of triangles partitioning the polygon\n */\nexport function triangulate(polygon, distance, triangulationOptions) {\n {\n const { triangles } = triangulateToUnique(polygon, distance, triangulationOptions);\n return triangles;\n }\n}\n/**\n * Triangulate a polygon to triangles smaller then a distance, and return them via unique points.\n *\n * Grid points are placed inside the polygon to obtain small, well conditioned triangles.\n *\n * This function returns the triangulation as an array of unique points, and triangles of indices refering to those unique points.\n *\n * @param polygon - Polygon\n * @param distance - Distance that conditions the triangles\n * @param partialOptions - Triangulation Options.\n * @returns Triangulation Object with uniquePointIndexTriangles and uniquePoints\n */\nexport function triangulateToUnique(polygon, distance, partialOptions) {\n const options = mergeOptions(defaultTriangulationOptions, partialOptions);\n // Conform polygon and Steiner polygons (this also checks if there are at least 3 points)\n polygon = conformPolygon(polygon);\n const polygonIsRectangle = polygonIsBboxRectangle(polygon);\n let steinerPolygons = options.steinerPolygons.map((steinerPolygon) => conformPolygon(steinerPolygon));\n // Split polygon and Steiner polygons using Steiner points\n const steinerPointIndex = buildKDBushPointIndex(options.steinerPoints);\n polygon = splitPolygonLines(polygon, options.steinerPoints, steinerPointIndex);\n steinerPolygons = steinerPolygons.map((steinerPolygon) => splitPolygonLines(steinerPolygon, options.steinerPoints, steinerPointIndex));\n // Preprocess polygon\n const polygonForInsidenessCheck = preprocessPolygonForInsideCheck(polygon);\n // Gather Steinerpoints\n const steinerPointsInPolygon = options.steinerPoints.filter((point) => coordsInPolygonForInsidenessCheck(point[0], point[1], polygonForInsidenessCheck));\n // Interpolate polygons and create grid based on distance\n let interpolatedPolygon = [];\n let interpolatedPolygonPoints = [];\n let interpolatedSteinerPolygons = [];\n let interpolatedSteinerPolygonsPoints = [];\n let gridPoints = [];\n let gridPointsInPolygon = [];\n if (distance) {\n // Interpolate polygon\n interpolatedPolygon = interpolatePolygon(polygon, distance);\n // Interpolate Steiner Polygons\n interpolatedSteinerPolygons = steinerPolygons.map((steinerPolygon) => interpolatePolygon(steinerPolygon, distance));\n // Add grid points inside the polygon\n gridPoints = bboxToGridPoints(computeBbox(polygon), distance);\n gridPointsInPolygon = gridPoints.filter((point) => coordsInPolygonForInsidenessCheck(point[0], point[1], polygonForInsidenessCheck));\n }\n else {\n interpolatedPolygon = polygon;\n interpolatedSteinerPolygons = steinerPolygons;\n }\n interpolatedPolygonPoints = interpolatedPolygon.flat();\n interpolatedSteinerPolygonsPoints = interpolatedSteinerPolygons.flat(2);\n // Gather all points and deduplicate to keep only unique points\n // with map from points to their index in uniquePoints, and index getter\n const allPoints = [\n ...interpolatedPolygonPoints,\n ...gridPointsInPolygon,\n ...interpolatedSteinerPolygonsPoints,\n ...steinerPointsInPolygon\n ];\n const uniquePoints = [];\n const uniquePointIndexByPointString = new Map();\n for (const point of allPoints) {\n const key = `${point[0]},${point[1]}`;\n if (!uniquePointIndexByPointString.has(key)) {\n uniquePointIndexByPointString.set(key, uniquePoints.length);\n uniquePoints.push(point);\n }\n }\n const getPointIndex = ([x, y]) => {\n const index = uniquePointIndexByPointString.get(`${x},${y}`);\n if (index === undefined)\n throw new Error(`Point not found in uniquePoints: [${x}, ${y}]`);\n return index;\n };\n // Lookup point indices for the edges of the interpolated polygon\n const uniquePointIndexInterpolatedPolygon = interpolatedPolygon.map((ring) => ring.map(getPointIndex));\n const uniquePointIndexSetInterpolatedPolygon = new Set(uniquePointIndexInterpolatedPolygon.flat());\n // Lookup point indices for the edges of the interpolated steiner polygons\n const uniquePointIndexInterpolatedSteinerPolygons = interpolatedSteinerPolygons.map((polygon) => polygon.map((ring) => ring.map(getPointIndex)));\n // Gather all constrained edges\n // TODO: consider to make unique, but this could be very expensive and low chance of non-uniquess\n const uniquePointIndexEdges = [\n ...uniquePointIndexInterpolatedPolygon,\n ...uniquePointIndexInterpolatedSteinerPolygons.flat()\n ].flatMap((ring) => ring.map((uniquePointIndex, i) => [\n uniquePointIndex,\n ring[(i + 1) % ring.length]\n ]));\n // Initialize Delaunay triangulation\n const delautator = new Delaunator(uniquePoints.flat());\n // Constrain triangulation\n // Note: instead of\n // const constrainautor = new Constrainautor(delautator, uniquePointIndexEdges)\n // which gives an error \"Constraining edge intersects point\" for small distances, e.g. maxDepth 7 on https://gist.githubusercontent.com/sammeltassen/fa3dbfaf4dfa800e00824478c4bd1928/raw/f182beac911e38b0a1d1eb420fbd54b4e6d2f2eb/nl-railway-map.json\n // we perform a delaunify check first as proposed by\n // https://github.com/kninnug/Constrainautor/issues/11#issuecomment-2571296247\n // Keep an eye on proposed solutions, sinche the delaunify check is expensive\n const constrainautor = new Constrainautor(delautator);\n constrainautor.delaunify(true);\n constrainautor.constrainAll(uniquePointIndexEdges);\n let uniquePointIndexTriangles = [];\n let triangles = [];\n const triangleIsAlongInterpolatedPolygon = [];\n for (let i = 0; i < constrainautor.del.triangles.length; i += 3) {\n uniquePointIndexTriangles.push([\n constrainautor.del.triangles[i],\n constrainautor.del.triangles[i + 1],\n constrainautor.del.triangles[i + 2]\n ]);\n triangles.push([\n uniquePoints[constrainautor.del.triangles[i]],\n uniquePoints[constrainautor.del.triangles[i + 1]],\n uniquePoints[constrainautor.del.triangles[i + 2]]\n ]);\n // Only classify triangles if they are along the border\n triangleIsAlongInterpolatedPolygon.push(uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i]) ||\n uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i + 1]) ||\n uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i + 2]));\n }\n // Triangle midPoints\n let triangleMidPoints = triangles.map((triangle) => midPoint(...triangle));\n // Only keep triangles inside polygon\n const triangleShouldKeep = triangles.map((triangle, index) => {\n // Only keep if inside (and can't be outside if polygon is bbox)\n // This check for every triangle is expensive!\n if (triangleIsAlongInterpolatedPolygon[index]) {\n return ((polygonIsRectangle\n ? true\n : coordsInPolygonForInsidenessCheck(triangleMidPoints[index][0], triangleMidPoints[index][1], polygonForInsidenessCheck)) &&\n triangleAngles(triangle).every((angle) => angle >= options.minimumTriangleAngle));\n }\n else {\n return true;\n }\n });\n uniquePointIndexTriangles = uniquePointIndexTriangles.filter((_triangle, index) => triangleShouldKeep[index]);\n triangles = triangles.filter((_triangle, index) => triangleShouldKeep[index]);\n triangleMidPoints = triangleMidPoints.filter((_triangle, index) => triangleShouldKeep[index]);\n // If requested, compute if triangles are inside steiner polygons\n // This check for every triangle is expensive!\n let insideSteinerPolygonsTriangles = [];\n const steinerClosedPolygons = steinerPolygons.map((steinerPolygon) => closePolygon(steinerPolygon));\n if (options.computeInsideSteinerPolygons) {\n const steinerClosedPolygonsForInsidenessCheck = steinerClosedPolygons.map((steinerPolygon) => preprocessPolygonForInsideCheck(steinerPolygon));\n insideSteinerPolygonsTriangles = triangles.map((_triangle, index) => coordsInPolygonsForInsidenessCheck(triangleMidPoints[index][0], triangleMidPoints[index][1], steinerClosedPolygonsForInsidenessCheck) === true);\n }\n return {\n interpolatedPolygon,\n interpolatedPolygonPoints,\n gridPoints,\n gridPointsInPolygon,\n interpolatedSteinerPolygons,\n interpolatedSteinerPolygonsPoints,\n uniquePoints,\n triangles,\n uniquePointIndexTriangles,\n uniquePointIndexInterpolatedPolygon,\n uniquePointIndexEdges,\n uniquePointIndexInterpolatedSteinerPolygons,\n insideSteinerPolygonsTriangles\n };\n}\n"],"names":["MINIMUM_TRIANGLE_ANGLE","defaultTriangulationOptions","triangulateToUnique","polygon","distance","partialOptions","options","mergeOptions","conformPolygon","polygonIsRectangle","polygonIsBboxRectangle","steinerPolygons","steinerPolygon","steinerPointIndex","buildKDBushPointIndex","splitPolygonLines","polygonForInsidenessCheck","preprocessPolygonForInsideCheck","steinerPointsInPolygon","point","coordsInPolygonForInsidenessCheck","interpolatedPolygon","interpolatedPolygonPoints","interpolatedSteinerPolygons","interpolatedSteinerPolygonsPoints","gridPoints","gridPointsInPolygon","interpolatePolygon","bboxToGridPoints","computeBbox","allPoints","uniquePoints","uniquePointIndexByPointString","key","getPointIndex","x","y","index","uniquePointIndexInterpolatedPolygon","ring","uniquePointIndexSetInterpolatedPolygon","uniquePointIndexInterpolatedSteinerPolygons","uniquePointIndexEdges","uniquePointIndex","i","delautator","Delaunator","constrainautor","Constrainautor","uniquePointIndexTriangles","triangles","triangleIsAlongInterpolatedPolygon","triangleMidPoints","triangle","midPoint","triangleShouldKeep","triangleAngles","angle","_triangle","insideSteinerPolygonsTriangles","steinerClosedPolygons","closePolygon","steinerClosedPolygonsForInsidenessCheck","coordsInPolygonsForInsidenessCheck"],"mappings":"gRAIMA,EAAyB,KACzBC,EAA8B,CAChC,cAAe,CAAA,EACf,gBAAiB,CAAA,EACjB,qBAAsBD,EACtB,6BAA8B,EAClC,EA8BO,SAASE,EAAoBC,EAASC,EAAUC,EAAgB,CACnE,MAAMC,EAAUC,EAAAA,aAAaN,EAA6BI,CAAc,EAExEF,EAAUK,EAAAA,eAAeL,CAAO,EAChC,MAAMM,EAAqBC,EAAAA,uBAAuBP,CAAO,EACzD,IAAIQ,EAAkBL,EAAQ,gBAAgB,IAAKM,GAAmBJ,EAAAA,eAAeI,CAAc,CAAC,EAEpG,MAAMC,EAAoBC,EAAAA,sBAAsBR,EAAQ,aAAa,EACrEH,EAAUY,EAAAA,kBAAkBZ,EAASG,EAAQ,cAAeO,CAAiB,EAC7EF,EAAkBA,EAAgB,IAAKC,GAAmBG,oBAAkBH,EAA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,GAAaC,EAAAA,SAAS,GAAGD,CAAQ,CAAC,EAEzE,MAAME,EAAqBL,EAAU,IAAI,CAACG,EAAUhB,IAG5Cc,EAAmCd,CAAK,GAC/B5B,EACH,GACAW,oCAAkCgC,EAAkBf,CAAK,EAAE,CAAC,EAAGe,EAAkBf,CAAK,EAAE,CAAC,EAAGrB,CAAyB,IACvHwC,EAAAA,eAAeH,CAAQ,EAAE,MAAOI,GAAUA,GAASnD,EAAQ,oBAAoB,EAG5E,EAEd,EACD2C,EAA4BA,EAA0B,OAAO,CAACS,EAAWrB,IAAUkB,EAAmBlB,CAAK,CAAC,EAC5Ga,EAAYA,EAAU,OAAO,CAACQ,EAAWrB,IAAUkB,EAAmBlB,CAAK,CAAC,EAC5Ee,EAAoBA,EAAkB,OAAO,CAACM,EAAWrB,IAAUkB,EAAmBlB,CAAK,CAAC,EAG5F,IAAIsB,EAAiC,CAAA,EACrC,MAAMC,EAAwBjD,EAAgB,IAAKC,GAAmBiD,EAAAA,aAAajD,CAAc,CAAC,EAClG,GAAIN,EAAQ,6BAA8B,CACtC,MAAMwD,EAA0CF,EAAsB,IAAKhD,GAAmBK,EAAAA,gCAAgCL,CAAc,CAAC,EAC7I+C,EAAiCT,EAAU,IAAI,CAACQ,EAAWrB,IAAU0B,EAAAA,mCAAmCX,EAAkBf,CAAK,EAAE,CAAC,EAAGe,EAAkBf,CAAK,EAAE,CAAC,EAAGyB,CAAuC,IAAM,EAAI,CACvN,CACA,MAAO,CACH,oBAAAzC,EACA,0BAAAC,EACA,WAAAG,EACA,oBAAAC,EACA,4BAAAH,EACA,kCAAAC,EACA,aAAAO,EACA,UAAAmB,EACA,0BAAAD,EACA,oCAAAX,EACA,sBAAAI,EACA,4CAAAD,EACA,+BAAAkB,CAAA,CAER","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index.cjs289.js"),r=require("./index.cjs194.js"),G=require("./index.cjs195.js"),l=require("./index.cjs290.js"),m=require("./index.cjs204.js"),c=require("./index.cjs196.js"),W=require("./index.cjs275.js"),n=require("./index.cjs198.js");require("./index.cjs205.js");const I=require("./index.cjs206.js"),k=require("./index.cjs278.js"),b=require("./index.cjs291.js"),y=require("./index.cjs292.js");require("./index.cjs208.js");const f=require("./index.cjs293.js");require("./index.cjs207.js");require("./index.cjs209.js");require("./index.cjs210.js");require("./index.cjs211.js");const w=require("./index.cjs284.js");require("./index.cjs213.js");var A={applyMask:!0},T={animate:!0,duration:300},j={stage:"pre"};function g(E){return E instanceof Error?E:new Error(String(E))}var P=class u extends EventTarget{DEFAULT_WARPED_MAP_LIST_OPTIONS;warpedMapsById;zIndices;imagesById;geoMaskRTree;geoFullMaskRTree;projectedGeoMaskRTree;projectedGeoFullMaskRTree;options;#s;constructor(e){super(),this.DEFAULT_WARPED_MAP_LIST_OPTIONS={createRTree:!0,rtreeUpdatedOptions:["gcps","resourceMask","transformationType","internalProjection","projection"],animatedOptions:["visible","applyMask","transformationType","internalProjection","distortionMeasure"],projection:I.webMercatorProjection,warpedMapFactory:G.createWarpedMapFactory()},this.warpedMapsById=new Map,this.zIndices=new Map,this.imagesById=new Map,this.#s=new Map,this.options=n.mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS,e),this.options.createRTree&&(this.geoMaskRTree=new h.RTree,this.geoFullMaskRTree=new h.RTree,this.projectedGeoMaskRTree=new h.RTree,this.projectedGeoFullMaskRTree=new h.RTree)}addGeoreferencedMap(e,t){const s=f.validateGeoreferencedMap(e);if(Array.isArray(s))throw new Error("Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.");const a=s,o=this.#i(a,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),o}addGeoreferencedMaps(e,t){const s=f.validateGeoreferencedMap(e),a=Array.isArray(s)?s:[s],o=this.#n(a,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),o}removeGeoreferencedMap(e){const t=f.validateGeoreferencedMap(e);if(Array.isArray(t))throw new Error("Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.");const s=t,a=this.#p(s);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferencedMaps(e){const t=f.validateGeoreferencedMap(e),s=Array.isArray(t)?t:[t],a=this.#c(s);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferencedMapById(e){const t=this.#d(e);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),t}addGeoreferenceAnnotation(e,t){const s=y.parseAnnotation(e),a=this.#n(s,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferenceAnnotation(e){const t=y.parseAnnotation(e),s=this.#c(t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),s}updateWarpedMapsUsingFactory(){for(const e of this.warpedMapsById.values()){const t=this.options.warpedMapFactory(e.mapId,e.georeferencedMap,this.options,e.mapOptions);this.warpedMapsById.set(e.mapId,t),this.#I(t),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPADDED,{mapIds:[e.mapId]}))}return this}addImageInfos(e){const t=[];for(const s of e){const a=w.Image.parse(s);this.imagesById.set(a.uri,a),t.push(a.uri)}return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMAGEINFOSADDED)),t}getMapIds(e){return this.getWarpedMaps(e).map(t=>t.mapId)}getWarpedMaps(e){const t=n.mergeOptions(n.mergeOptions(A,{projection:this.options.projection}),e);let s;if(t.mapIds===void 0)if(t.geoPoint)t.applyMask?s=this.geoMaskRTree?.searchFromPoint(t.geoPoint)??this.#o(t.geoPoint,o=>o.geoMaskBbox,o=>o.geoMask):s=this.geoFullMaskRTree?.searchFromPoint(t.geoPoint)??this.#o(t.geoPoint,o=>o.geoFullMaskBbox,o=>o.geoFullMask);else if(t.geoBbox)t.applyMask?s=this.geoMaskRTree?.searchFromBbox(t.geoBbox)??this.#a(t.geoBbox,o=>o.geoMaskBbox):s=this.geoFullMaskRTree?.searchFromBbox(t.geoBbox)??this.#a(t.geoBbox,o=>o.geoFullMaskBbox);else if(t.projectedGeoPoint){const o=u.projectPointIfNeeded(this.options.projection,t.projection,t.projectedGeoPoint);t.applyMask?s=this.projectedGeoMaskRTree?.searchFromPoint(o)??this.#o(o,i=>i.projectedGeoMaskBbox,i=>i.projectedGeoMask):s=this.projectedGeoFullMaskRTree?.searchFromPoint(o)??this.#o(o,i=>i.projectedGeoFullMaskBbox,i=>i.projectedGeoFullMask)}else if(t.projectedGeoBbox){const o=u.projectBboxIfNeeded(this.options.projection,t.projection,t.projectedGeoBbox);t.applyMask?s=this.projectedGeoMaskRTree?.searchFromBbox(o)??this.#a(o,i=>i.projectedGeoMaskBbox):s=this.projectedGeoFullMaskRTree?.searchFromBbox(o)??this.#a(o,i=>i.projectedGeoFullMaskBbox)}else s=Array.from(this.warpedMapsById.keys());else s=t.mapIds;const a=[];if(s===void 0)return a;for(const o of s){const i=this.warpedMapsById.get(o);i&&(!t.onlyVisible||i.options.visible)&&a.push(i)}return a.sort((o,i)=>this.orderMapIdsByZIndex(o.mapId,i.mapId)),a}getWarpedMap(e){return this.warpedMapsById.get(e)}getMapsCenter(e){const t=this.getMapsBbox(e);if(t)return c.bboxToCenter(t)}getMapsBbox(e){const t=this.#h(e);if(t.length!==0)return c.computeBbox(t)}getMapsConvexHull(e){return c.convexHull(this.#h(e))}getMapZIndex(e){return this.zIndices.get(e)}getDefaultOptions(){return n.mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS,l.WebGL2WarpedMap.getDefaultOptions())}getMapDefaultOptions(e){return this.getWarpedMap(e)?.getDefaultAndGeoreferencedMapOptions()}getOptions(){return this.getListOptions()}getListOptions(){return this.options}getMapMapOptions(e){return this.getWarpedMaps({mapIds:[e]})[0]?.mapOptions}getMapOptions(e){return this.getWarpedMaps({mapIds:[e]})[0]?.options}setOptions(e){if(this.options=n.mergeOptions(this.options,e),e&&"projection"in e)for(const t of this.getWarpedMaps())this.#r(t)}setListOptions(e,t){this.#e(void 0,e,t)}setMapsOptions(e,t,s){if(Array.isArray(e))this.#e(a=>e.includes(a)?t:void 0,void 0,s);else{if(e===void 0)throw new Error("mapsOptionsCallbackFn is undefined");this.#e(e,void 0,t)}}setMapsAndListOptions(e,t,s,a){if(Array.isArray(e))this.#e(o=>e.includes(o)?t:void 0,s,a);else{if(e===void 0)throw new Error("mapsOptionsCallbackFn is undefined");this.#e(e,t,s)}}resetListOptions(e,t){e===void 0&&(e=Object.keys(l.WebGL2WarpedMap.getDefaultOptions())),this.setListOptions(n.optionKeysToUndefinedOptions(e),t)}resetMapsOptions(e,t,s){const a=l.WebGL2WarpedMap.getDefaultOptions(),o=Object.keys(a);if(Array.isArray(e))t===void 0&&(t=o),this.setMapsOptions(e,n.optionKeysToUndefinedOptions(t),s);else{if(e===void 0)throw new Error("mapsOptionKeysCallbackFn is undefined");const i=e;this.setMapsOptions(d=>{let p=i(d);return p===void 0&&(p=o),n.optionKeysToUndefinedOptions(p)},t)}}resetMapsAndListOptions(e,t,s,a){const o=l.WebGL2WarpedMap.getDefaultOptions(),i=Object.keys(o);if(Array.isArray(e))t===void 0&&(t=i),s===void 0&&(s=i),this.setMapsAndListOptions(e,n.optionKeysToUndefinedOptions(t),n.optionKeysToUndefinedOptions(s),a);else{if(e===void 0)throw new Error("mapsOptionKeysCallbackFn is undefined");const d=e;t===void 0&&(t=i),this.setMapsAndListOptions(p=>{let M=d(p);return M===void 0&&(M=i),n.optionKeysToUndefinedOptions(M)},n.optionKeysToUndefinedOptions(t),s)}}bringMapsToFront(e){let t=this.warpedMapsById.size;for(const s of e)this.zIndices.has(s)&&(this.zIndices.set(s,t),t++);this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}sendMapsToBack(e){let t=-Array.from(e).length;for(const s of e)this.zIndices.has(s)&&(this.zIndices.set(s,t),t++);this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}bringMapsForward(e){for(const[t,s]of this.zIndices.entries())this.zIndices.set(t,s*2);for(const t of e){const s=this.zIndices.get(t);s!==void 0&&this.zIndices.set(t,s+3)}this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}sendMapsBackward(e){for(const[t,s]of this.zIndices.entries())this.zIndices.set(t,s*2);for(const t of e){const s=this.zIndices.get(t);s!==void 0&&this.zIndices.set(t,s-3)}this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}orderMapIdsByZIndex(e,t){const s=this.getMapZIndex(e),a=this.getMapZIndex(t);return s!==void 0&&a!==void 0?s-a:0}clear(){this.warpedMapsById=new Map,this.zIndices=new Map,this.geoMaskRTree?.clear(),this.geoFullMaskRTree?.clear(),this.projectedGeoMaskRTree?.clear(),this.projectedGeoFullMaskRTree?.clear(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CLEARED))}destroy(){for(const e of this.getWarpedMaps())this.#u(e),e.destroy();this.clear()}#i(e,t){const s=this.#M(e),a=this.options.warpedMapFactory(s,e,this.options,t);return this.warpedMapsById.set(s,a),this.zIndices.set(s,this.warpedMapsById.size-1),this.#r(a),this.#I(a),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPADDED,{mapIds:[s]})),s}#n(e,t){const s=[];for(const a of e)try{const o=this.#i(a,t);s.push(o)}catch(o){s.push(g(o))}return s}#p(e){const t=this.#M(e);return this.#d(t)}#d(e){const t=this.warpedMapsById.get(e);if(t)this.warpedMapsById.delete(e),this.zIndices.delete(e),this.#l(t),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPREMOVED,{mapIds:[e]})),this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),t.destroy();else throw new Error(`No map found with ID ${e}`);return e}#c(e){const t=[];for(const s of e)try{const a=this.#p(s);t.push(a)}catch(a){t.push(g(a))}return t}#M(e){return e.id||b.generateChecksum(e)}#h(e){const t=this.getWarpedMaps(e),s=[];for(const o of t)s.push(...o.getGeoAppliedMask(e?.applyMask));const a=e?.projection;return a?u.projectPointsIfNeeded(I.lonLatProjection,a,s):s}#e(e,t,s){if(this.setOptions(t),this.warpedMapsById.size===0)return;const a=n.mergeOptions(n.mergeOptions(T,j),s);(a.animate&&a.stage=="animate"||!a.animate)&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.PREPARECHANGE,{mapIds:this.getMapIds()}));let o=[];const i=[];for(const d of this.getWarpedMaps()){let p={};const M=e?e(d.mapId):void 0;a.animate&&a.stage=="pre"&&(p=d.setMapAndListOptions(M,t,n.mergePartialOptions(a,{optionKeysToOmit:a.animatedOptions??this.options.animatedOptions}))),(a.animate&&a.stage=="animate"||!a.animate)&&(p=d.setMapAndListOptions(M,t,a));const v=Object.keys(p);v.length>0&&(o.push(...v),i.push(d.mapId)),this.options.rtreeUpdatedOptions.some(O=>O in p)&&this.#r(d)}o=Array.from(new Set(o)),(a.animate&&a.stage=="pre"||!a.animate)&&(o.length>0&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMMEDIATECHANGE,{mapIds:i,optionKeys:o})),a.animate&&a.stage=="pre"&&this.#e(e,t,n.mergePartialOptions(a,{stage:"animate"}))),a.animate&&a.stage=="animate"&&o.length>0&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.ANIMATEDCHANGE,{mapIds:i,optionKeys:o,animationOptions:a}))}#r(e){this.#l(e),this.geoMaskRTree&&this.geoMaskRTree.addItem(e.mapId,[e.geoMask]),this.geoFullMaskRTree&&this.geoFullMaskRTree.addItem(e.mapId,[e.geoFullMask]),this.projectedGeoMaskRTree&&this.projectedGeoMaskRTree.addItem(e.mapId,[e.projectedGeoMask]),this.projectedGeoFullMaskRTree&&this.projectedGeoFullMaskRTree.addItem(e.mapId,[e.projectedGeoFullMask])}#a(e,t){return Array.from(this.warpedMapsById.values()).filter(s=>c.doBboxesIntersect(e,t(s))).map(s=>s.mapId)}#o(e,t,s){return Array.from(this.warpedMapsById.values()).filter(a=>c.pointInBbox(e,t(a))&&k(e,W.closePolygon([s(a)]))).map(a=>a.mapId)}#l(e){this.geoMaskRTree&&this.geoMaskRTree.removeItem(e.mapId),this.geoFullMaskRTree&&this.geoFullMaskRTree.removeItem(e.mapId),this.projectedGeoMaskRTree&&this.projectedGeoMaskRTree.removeItem(e.mapId),this.projectedGeoFullMaskRTree&&this.projectedGeoFullMaskRTree.removeItem(e.mapId)}#t(){const e=[...this.zIndices.entries()].sort((s,a)=>s[1]-a[1]);let t=0;for(const s of e){const a=s[0];this.zIndices.set(a,t),t++}}#f(e){this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMAGELOADED,{mapIds:[e]}))}#I(e){const t=this.#f.bind(this,e.mapId);this.#s.set(e.mapId,t),e.addEventListener(r.WarpedMapEventType.IMAGELOADED,t)}#u(e){const t=this.#s.get(e.mapId);t&&(e.removeEventListener(r.WarpedMapEventType.IMAGELOADED,t),this.#s.delete(e.mapId))}static projectPointIfNeeded(e,t,s){return I.isEqualProjection(e,t)?s:m(e?.definition,t?.definition,s)}static projectPointsIfNeeded(e,t,s){return I.isEqualProjection(e,t)?s:s.map(a=>m(e?.definition,t?.definition,a))}static projectBboxIfNeeded(e,t,s){return c.computeBbox(this.projectPointsIfNeeded(e,t,c.bboxToLine(s)))}};exports.DEFAULT_ANIMATION_OPTIONS=T;exports.WarpedMapList=P;
|
|
2
|
+
//# sourceMappingURL=index.cjs288.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs288.js","sources":["../../../node_modules/@allmaps/render/dist/maps/WarpedMapList.js"],"sourcesContent":["import { RTree } from \"./RTree.js\";\nimport { WarpedMapEvent, WarpedMapEventType } from \"../shared/events.js\";\nimport { createWarpedMapFactory } from \"./WarpedMap.js\";\nimport { WebGL2WarpedMap } from \"./WebGL2WarpedMap.js\";\nimport proj4 from \"proj4\";\nimport { bboxToCenter, bboxToLine, closePolygon, computeBbox, convexHull, doBboxesIntersect, mergeOptions, mergePartialOptions, optionKeysToUndefinedOptions, pointInBbox } from \"@allmaps/stdlib\";\nimport { isEqualProjection, lonLatProjection, webMercatorProjection } from \"@allmaps/project\";\nimport inside from \"point-in-polygon-hao\";\nimport { generateChecksum } from \"@allmaps/id/sync\";\nimport { parseAnnotation, validateGeoreferencedMap } from \"@allmaps/annotation\";\nimport { Image } from \"@allmaps/iiif-parser\";\n//#region src/maps/WarpedMapList.ts\nvar DEFAULT_SELECTION_OPTIONS = { applyMask: true };\nvar DEFAULT_ANIMATION_OPTIONS = {\n\tanimate: true,\n\tduration: 300\n};\nvar DEFAULT_ANIMATION_INTERNAL_OPTIONS = { stage: \"pre\" };\nfunction ensureError(error) {\n\treturn error instanceof Error ? error : new Error(String(error));\n}\n/**\n* An ordered list of WarpedMaps. This class contains an optional RTree\n* for quickly looking up maps using their Bbox\n* @template W - The type of WarpedMap objects in this list\n*/\nvar WarpedMapList = class WarpedMapList extends EventTarget {\n\t/**\n\t* Maps in this list, indexed by their ID\n\t*/\n\tDEFAULT_WARPED_MAP_LIST_OPTIONS;\n\twarpedMapsById;\n\tzIndices;\n\timagesById;\n\tgeoMaskRTree;\n\tgeoFullMaskRTree;\n\tprojectedGeoMaskRTree;\n\tprojectedGeoFullMaskRTree;\n\toptions;\n\t#boundImageLoadedByMapId;\n\t/**\n\t* Creates an instance of a WarpedMapList\n\t*\n\t* @constructor\n\t* @param warpedMapFactory - Factory function for creating WarpedMap objects\n\t* @param options - Options of this list, which will be set on newly added maps as their list options\n\t*/\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.DEFAULT_WARPED_MAP_LIST_OPTIONS = {\n\t\t\tcreateRTree: true,\n\t\t\trtreeUpdatedOptions: [\n\t\t\t\t\"gcps\",\n\t\t\t\t\"resourceMask\",\n\t\t\t\t\"transformationType\",\n\t\t\t\t\"internalProjection\",\n\t\t\t\t\"projection\"\n\t\t\t],\n\t\t\tanimatedOptions: [\n\t\t\t\t\"visible\",\n\t\t\t\t\"applyMask\",\n\t\t\t\t\"transformationType\",\n\t\t\t\t\"internalProjection\",\n\t\t\t\t\"distortionMeasure\"\n\t\t\t],\n\t\t\tprojection: webMercatorProjection,\n\t\t\twarpedMapFactory: createWarpedMapFactory()\n\t\t};\n\t\tthis.warpedMapsById = /* @__PURE__ */ new Map();\n\t\tthis.zIndices = /* @__PURE__ */ new Map();\n\t\tthis.imagesById = /* @__PURE__ */ new Map();\n\t\tthis.#boundImageLoadedByMapId = /* @__PURE__ */ new Map();\n\t\tthis.options = mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS, options);\n\t\tif (this.options.createRTree) {\n\t\t\tthis.geoMaskRTree = new RTree();\n\t\t\tthis.geoFullMaskRTree = new RTree();\n\t\t\tthis.projectedGeoMaskRTree = new RTree();\n\t\t\tthis.projectedGeoFullMaskRTree = new RTree();\n\t\t}\n\t}\n\t/**\n\t* Adds a georeferenced map to this list\n\t*\n\t* @param georeferencedMap - Georeferenced Map\n\t* @param mapOptions - Map options\n\t* @returns Map ID of the map that was added\n\t*/\n\taddGeoreferencedMap(georeferencedMap, mapOptions) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMap);\n\t\tif (Array.isArray(validatedGeoreferencedMapOrMaps)) throw new Error(\"Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.\");\n\t\tconst validatedGeoreferencedMap = validatedGeoreferencedMapOrMaps;\n\t\tconst results = this.#addGeoreferencedMapInternal(validatedGeoreferencedMap, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\taddGeoreferencedMaps(georeferencedMaps, mapOptions) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMaps);\n\t\tconst validatedGeoreferencedMaps = Array.isArray(validatedGeoreferencedMapOrMaps) ? validatedGeoreferencedMapOrMaps : [validatedGeoreferencedMapOrMaps];\n\t\tconst results = this.#addGeoreferencedMapsInternal(validatedGeoreferencedMaps, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Removes a georeferenced map from this list\n\t*\n\t* @param georeferencedMap\n\t* @returns Map ID of the removed map, or an error\n\t*/\n\tremoveGeoreferencedMap(georeferencedMap) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMap);\n\t\tif (Array.isArray(validatedGeoreferencedMapOrMaps)) throw new Error(\"Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.\");\n\t\tconst validatedGeoreferencedMap = validatedGeoreferencedMapOrMaps;\n\t\tconst results = this.#removeGeoreferencedMapInternal(validatedGeoreferencedMap);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\tremoveGeoreferencedMaps(georeferencedMaps) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMaps);\n\t\tconst validatedGeoreferencedMaps = Array.isArray(validatedGeoreferencedMapOrMaps) ? validatedGeoreferencedMapOrMaps : [validatedGeoreferencedMapOrMaps];\n\t\tconst results = this.#removeGeoreferencedMapsInternal(validatedGeoreferencedMaps);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Removes a georeferenced map from the list by its ID\n\t*\n\t* @param mapId - Map ID\n\t* @returns Map ID of the removed map, or an error\n\t*/\n\tremoveGeoreferencedMapById(mapId) {\n\t\tconst result = this.#removeGeoreferencedMapByIdInternal(mapId);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn result;\n\t}\n\t/**\n\t* Parses an annotation and adds its georeferenced map to this list\n\t*\n\t* @param annotation - Annotation\n\t* @param mapOptions - Map options\n\t* @returns Map IDs of the maps that were added, or an error per map\n\t*/\n\taddGeoreferenceAnnotation(annotation, mapOptions) {\n\t\tconst maps = parseAnnotation(annotation);\n\t\tconst results = this.#addGeoreferencedMapsInternal(maps, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Parses an annotation and removes its georeferenced map from this list\n\t*\n\t* @param annotation\n\t* @returns Map IDs of the maps that were removed, or an error per map\n\t*/\n\tremoveGeoreferenceAnnotation(annotation) {\n\t\tconst maps = parseAnnotation(annotation);\n\t\tconst results = this.#removeGeoreferencedMapsInternal(maps);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Update the maps in the list using the warpedMapFactory\n\t*\n\t* This function is used when creating a WarpedMapList from scratch\n\t* and later including it in a specific renderer (e.g. a WebGL2Renderer)\n\t* which has a specific warpedMapFactory (e.g. including the WebGL context)\n\t* which could not be applied in the initial WarpedMapList.\n\t* This function recreates the WarpedMaps using the factory.\n\t*\n\t* It is import to do this after the event listeners on the warpedmaplist\n\t* are added to the renderer, so the WARPEDMAPADDED event is passed.\n\t*/\n\tupdateWarpedMapsUsingFactory() {\n\t\tfor (const warpedMap of this.warpedMapsById.values()) {\n\t\t\tconst updatedWarpedMap = this.options.warpedMapFactory(warpedMap.mapId, warpedMap.georeferencedMap, this.options, warpedMap.mapOptions);\n\t\t\tthis.warpedMapsById.set(warpedMap.mapId, updatedWarpedMap);\n\t\t\tthis.#addEventListenersToWarpedMap(updatedWarpedMap);\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPADDED, { mapIds: [warpedMap.mapId] }));\n\t\t}\n\t\treturn this;\n\t}\n\t/**\n\t* Adds image informations, parses them to images and adds them to the image cache\n\t*\n\t* @param imageInfos - Image informations\n\t* @returns Image IDs of the image informations that were added\n\t*/\n\taddImageInfos(imageInfos) {\n\t\tconst result = [];\n\t\tfor (const imageInfo of imageInfos) {\n\t\t\tconst image = Image.parse(imageInfo);\n\t\t\tthis.imagesById.set(image.uri, image);\n\t\t\tresult.push(image.uri);\n\t\t}\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMAGEINFOSADDED));\n\t\treturn result;\n\t}\n\t/**\n\t* Get mapIds for selected maps\n\t*\n\t* The options allow a.o. to:\n\t* - filter for visible maps\n\t* - filter for specific mapIds\n\t* - filter for maps that overlap with a given point. Use geoPoint or projectedGeoPoint. Optionally specify projection for projectedGeoPoint. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t* - filter for maps whose bbox overlap with the specified bbox. Use geoBbox or projectedGeoBbox. Optionally specify projection for projectedGeoBbox. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t*\n\t* @param partialOptions - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns mapIds\n\t*/\n\tgetMapIds(partialOptions) {\n\t\treturn this.getWarpedMaps(partialOptions).map((warpedMap) => warpedMap.mapId);\n\t}\n\t/**\n\t* Get the WarpedMap instances for selected maps\n\t*\n\t* The options allow a.o. to:\n\t* - filter for visible maps\n\t* - filter for specific mapIds\n\t* - filter for maps that overlap with a given point. Use geoPoint or projectedGeoPoint. Optionally specify projection for projectedGeoPoint. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t* - filter for maps whose bbox overlap with the specified bbox. Use geoBbox or projectedGeoBbox. Optionally specify projection for projectedGeoBbox. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t*\n\t* @param partialOptions - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns WarpedMap instances\n\t*/\n\tgetWarpedMaps(partialOptions) {\n\t\tconst options = mergeOptions(mergeOptions(DEFAULT_SELECTION_OPTIONS, { projection: this.options.projection }), partialOptions);\n\t\tlet mapIds;\n\t\tif (options.mapIds === void 0) if (options.geoPoint) if (options.applyMask) mapIds = this.geoMaskRTree?.searchFromPoint(options.geoPoint) ?? this.#getMapIdsFromPoint(options.geoPoint, (warpedMap) => warpedMap.geoMaskBbox, (warpedMap) => warpedMap.geoMask);\n\t\telse mapIds = this.geoFullMaskRTree?.searchFromPoint(options.geoPoint) ?? this.#getMapIdsFromPoint(options.geoPoint, (warpedMap) => warpedMap.geoFullMaskBbox, (warpedMap) => warpedMap.geoFullMask);\n\t\telse if (options.geoBbox) if (options.applyMask) mapIds = this.geoMaskRTree?.searchFromBbox(options.geoBbox) ?? this.#getMapIdsFromBbox(options.geoBbox, (warpedMap) => warpedMap.geoMaskBbox);\n\t\telse mapIds = this.geoFullMaskRTree?.searchFromBbox(options.geoBbox) ?? this.#getMapIdsFromBbox(options.geoBbox, (warpedMap) => warpedMap.geoFullMaskBbox);\n\t\telse if (options.projectedGeoPoint) {\n\t\t\tconst projectedGeoPoint = WarpedMapList.projectPointIfNeeded(this.options.projection, options.projection, options.projectedGeoPoint);\n\t\t\tif (options.applyMask) mapIds = this.projectedGeoMaskRTree?.searchFromPoint(projectedGeoPoint) ?? this.#getMapIdsFromPoint(projectedGeoPoint, (warpedMap) => warpedMap.projectedGeoMaskBbox, (warpedMap) => warpedMap.projectedGeoMask);\n\t\t\telse mapIds = this.projectedGeoFullMaskRTree?.searchFromPoint(projectedGeoPoint) ?? this.#getMapIdsFromPoint(projectedGeoPoint, (warpedMap) => warpedMap.projectedGeoFullMaskBbox, (warpedMap) => warpedMap.projectedGeoFullMask);\n\t\t} else if (options.projectedGeoBbox) {\n\t\t\tconst projectedGeoBbox = WarpedMapList.projectBboxIfNeeded(this.options.projection, options.projection, options.projectedGeoBbox);\n\t\t\tif (options.applyMask) mapIds = this.projectedGeoMaskRTree?.searchFromBbox(projectedGeoBbox) ?? this.#getMapIdsFromBbox(projectedGeoBbox, (warpedMap) => warpedMap.projectedGeoMaskBbox);\n\t\t\telse mapIds = this.projectedGeoFullMaskRTree?.searchFromBbox(projectedGeoBbox) ?? this.#getMapIdsFromBbox(projectedGeoBbox, (warpedMap) => warpedMap.projectedGeoFullMaskBbox);\n\t\t} else mapIds = Array.from(this.warpedMapsById.keys());\n\t\telse mapIds = options.mapIds;\n\t\tconst warpedMaps = [];\n\t\tif (mapIds === void 0) return warpedMaps;\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst warpedMap = this.warpedMapsById.get(mapId);\n\t\t\tif (warpedMap && (options.onlyVisible ? warpedMap.options.visible : true)) warpedMaps.push(warpedMap);\n\t\t}\n\t\twarpedMaps.sort((map0, map1) => this.orderMapIdsByZIndex(map0.mapId, map1.mapId));\n\t\treturn warpedMaps;\n\t}\n\t/**\n\t* Get the WarpedMap instance for a map\n\t*\n\t* @param mapId - Map ID of the requested WarpedMap instance\n\t* @returns WarpedMap instance, or undefined\n\t*/\n\tgetWarpedMap(mapId) {\n\t\treturn this.warpedMapsById.get(mapId);\n\t}\n\t/**\n\t* Get the center of the bounding box of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The center of the bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsCenter(options) {\n\t\tconst bbox = this.getMapsBbox(options);\n\t\tif (bbox) return bboxToCenter(bbox);\n\t}\n\t/**\n\t* Get the bounding box of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsBbox(options) {\n\t\tconst projectedGeoMaskPoints = this.#getProjectedGeoMaskPoints(options);\n\t\tif (projectedGeoMaskPoints.length === 0) return;\n\t\treturn computeBbox(projectedGeoMaskPoints);\n\t}\n\t/**\n\t* Get the convex hull of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The convex hull of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsConvexHull(options) {\n\t\treturn convexHull(this.#getProjectedGeoMaskPoints(options));\n\t}\n\t/**\n\t* Get the z-index of a map\n\t*\n\t* @param mapId - Map ID for which to get the z-index\n\t*/\n\tgetMapZIndex(mapId) {\n\t\treturn this.zIndices.get(mapId);\n\t}\n\t/**\n\t* Get the default options of the list\n\t*/\n\tgetDefaultOptions() {\n\t\treturn mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS, WebGL2WarpedMap.getDefaultOptions());\n\t}\n\t/**\n\t* Get the default options of a map\n\t*\n\t* These come from the default option settings for WebGL2WarpedMaps and the map's georeferenced map proporties\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapDefaultOptions(mapId) {\n\t\treturn this.getWarpedMap(mapId)?.getDefaultAndGeoreferencedMapOptions();\n\t}\n\t/**\n\t* Get the options of this list\n\t*/\n\tgetOptions() {\n\t\treturn this.getListOptions();\n\t}\n\t/**\n\t* Get the options of this list\n\t*/\n\tgetListOptions() {\n\t\treturn this.options;\n\t}\n\t/**\n\t* Get the map-specific options of a map\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapMapOptions(mapId) {\n\t\treturn this.getWarpedMaps({ mapIds: [mapId] })[0]?.mapOptions;\n\t}\n\t/**\n\t* Get the options of a map\n\t*\n\t* These options are the result of merging the default, georeferenced map,\n\t* layer and map-specific options of that map.\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapOptions(mapId) {\n\t\treturn this.getWarpedMaps({ mapIds: [mapId] })[0]?.options;\n\t}\n\t/**\n\t* Set the options\n\t*\n\t* Note: Map-specific options set here will be passed to newly added maps.\n\t*\n\t* @param listOptions - List Options\n\t*/\n\tsetOptions(listOptions) {\n\t\tthis.options = mergeOptions(this.options, listOptions);\n\t\tif (listOptions && \"projection\" in listOptions) for (const warpedMap of this.getWarpedMaps()) this.#addToOrUpdateRtree(warpedMap);\n\t}\n\t/**\n\t* Set the options of this list\n\t*\n\t* Note: Map-specific options set here will be passed to newly added maps.\n\t*\n\t* @param listOptions - List Options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetListOptions(listOptions, animationOptions) {\n\t\tthis.#setMapsAndListOptionsInternal(void 0, listOptions, animationOptions);\n\t}\n\tsetMapsOptions(firstArgument, secondArgument, thirdArgument) {\n\t\tif (Array.isArray(firstArgument)) this.#setMapsAndListOptionsInternal((mapId) => firstArgument.includes(mapId) ? secondArgument : void 0, void 0, thirdArgument);\n\t\telse {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionsCallbackFn is undefined\");\n\t\t\tthis.#setMapsAndListOptionsInternal(firstArgument, void 0, secondArgument);\n\t\t}\n\t}\n\tsetMapsAndListOptions(firstArgument, secondArgument, thirdArgument, fourthArgument) {\n\t\tif (Array.isArray(firstArgument)) this.#setMapsAndListOptionsInternal((mapId) => firstArgument.includes(mapId) ? secondArgument : void 0, thirdArgument, fourthArgument);\n\t\telse {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionsCallbackFn is undefined\");\n\t\t\tthis.#setMapsAndListOptionsInternal(firstArgument, secondArgument, thirdArgument);\n\t\t}\n\t}\n\t/**\n\t* Reset the list options\n\t*\n\t* Undefined option keys reset all options\n\t*\n\t* @param listOptionKeys - Keys of the list options to reset\n\t* @param animationOptions - Animation options\n\t*/\n\tresetListOptions(listOptionKeys, animationOptions) {\n\t\tif (listOptionKeys === void 0) listOptionKeys = Object.keys(WebGL2WarpedMap.getDefaultOptions());\n\t\tthis.setListOptions(optionKeysToUndefinedOptions(listOptionKeys), animationOptions);\n\t}\n\tresetMapsOptions(firstArgument, secondArgument, thirdArgument) {\n\t\tconst defaultWebGL2WarpedMapOptions = WebGL2WarpedMap.getDefaultOptions();\n\t\tconst defaultWebGL2WarpedMapOptionKeys = Object.keys(defaultWebGL2WarpedMapOptions);\n\t\tif (Array.isArray(firstArgument)) {\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsOptions(firstArgument, optionKeysToUndefinedOptions(secondArgument), thirdArgument);\n\t\t} else {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionKeysCallbackFn is undefined\");\n\t\t\tconst mapOptionKeysCallbackFn = firstArgument;\n\t\t\tthis.setMapsOptions((mapId) => {\n\t\t\t\tlet mapOptionKeys = mapOptionKeysCallbackFn(mapId);\n\t\t\t\tif (mapOptionKeys === void 0) mapOptionKeys = defaultWebGL2WarpedMapOptionKeys;\n\t\t\t\treturn optionKeysToUndefinedOptions(mapOptionKeys);\n\t\t\t}, secondArgument);\n\t\t}\n\t}\n\tresetMapsAndListOptions(firstArgument, secondArgument, thirdArgument, fourthArgument) {\n\t\tconst defaultWebGL2WarpedMapOptions = WebGL2WarpedMap.getDefaultOptions();\n\t\tconst defaultWebGL2WarpedMapOptionKeys = Object.keys(defaultWebGL2WarpedMapOptions);\n\t\tif (Array.isArray(firstArgument)) {\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tif (thirdArgument === void 0) thirdArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsAndListOptions(firstArgument, optionKeysToUndefinedOptions(secondArgument), optionKeysToUndefinedOptions(thirdArgument), fourthArgument);\n\t\t} else {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionKeysCallbackFn is undefined\");\n\t\t\tconst mapOptionKeysCallbackFn = firstArgument;\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsAndListOptions((mapId) => {\n\t\t\t\tlet mapOptionKeys = mapOptionKeysCallbackFn(mapId);\n\t\t\t\tif (mapOptionKeys === void 0) mapOptionKeys = defaultWebGL2WarpedMapOptionKeys;\n\t\t\t\treturn optionKeysToUndefinedOptions(mapOptionKeys);\n\t\t\t}, optionKeysToUndefinedOptions(secondArgument), thirdArgument);\n\t\t}\n\t}\n\t/**\n\t* Change the z-index of the specified maps to bring them to front\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tbringMapsToFront(mapIds) {\n\t\tlet newZIndex = this.warpedMapsById.size;\n\t\tfor (const mapId of mapIds) if (this.zIndices.has(mapId)) {\n\t\t\tthis.zIndices.set(mapId, newZIndex);\n\t\t\tnewZIndex++;\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the z-index of the specified maps to send them to back\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tsendMapsToBack(mapIds) {\n\t\tlet newZIndex = -Array.from(mapIds).length;\n\t\tfor (const mapId of mapIds) if (this.zIndices.has(mapId)) {\n\t\t\tthis.zIndices.set(mapId, newZIndex);\n\t\t\tnewZIndex++;\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the z-index of the specified maps to bring them forward\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tbringMapsForward(mapIds) {\n\t\tfor (const [mapId, zIndex] of this.zIndices.entries()) this.zIndices.set(mapId, zIndex * 2);\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst zIndex = this.zIndices.get(mapId);\n\t\t\tif (zIndex !== void 0) this.zIndices.set(mapId, zIndex + 3);\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the zIndex of the specified maps to send them backward\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tsendMapsBackward(mapIds) {\n\t\tfor (const [mapId, zIndex] of this.zIndices.entries()) this.zIndices.set(mapId, zIndex * 2);\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst zIndex = this.zIndices.get(mapId);\n\t\t\tif (zIndex !== void 0) this.zIndices.set(mapId, zIndex - 3);\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Order mapIds\n\t*\n\t* Use this as anonymous sort function in Array.prototype.sort()\n\t*/\n\torderMapIdsByZIndex(mapId0, mapId1) {\n\t\tconst zIndex0 = this.getMapZIndex(mapId0);\n\t\tconst zIndex1 = this.getMapZIndex(mapId1);\n\t\tif (zIndex0 !== void 0 && zIndex1 !== void 0) return zIndex0 - zIndex1;\n\t\treturn 0;\n\t}\n\tclear() {\n\t\tthis.warpedMapsById = /* @__PURE__ */ new Map();\n\t\tthis.zIndices = /* @__PURE__ */ new Map();\n\t\tthis.geoMaskRTree?.clear();\n\t\tthis.geoFullMaskRTree?.clear();\n\t\tthis.projectedGeoMaskRTree?.clear();\n\t\tthis.projectedGeoFullMaskRTree?.clear();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CLEARED));\n\t}\n\tdestroy() {\n\t\tfor (const warpedMap of this.getWarpedMaps()) {\n\t\t\tthis.#removeEventListenersFromWarpedMap(warpedMap);\n\t\t\twarpedMap.destroy();\n\t\t}\n\t\tthis.clear();\n\t}\n\t#addGeoreferencedMapInternal(georeferencedMap, mapOptions) {\n\t\tconst mapId = this.#getOrComputeMapId(georeferencedMap);\n\t\tconst warpedMap = this.options.warpedMapFactory(mapId, georeferencedMap, this.options, mapOptions);\n\t\tthis.warpedMapsById.set(mapId, warpedMap);\n\t\tthis.zIndices.set(mapId, this.warpedMapsById.size - 1);\n\t\tthis.#addToOrUpdateRtree(warpedMap);\n\t\tthis.#addEventListenersToWarpedMap(warpedMap);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPADDED, { mapIds: [mapId] }));\n\t\treturn mapId;\n\t}\n\t#addGeoreferencedMapsInternal(georeferencedMaps, mapOptions) {\n\t\tconst results = [];\n\t\tfor (const georeferencedMap of georeferencedMaps) try {\n\t\t\tconst mapId = this.#addGeoreferencedMapInternal(georeferencedMap, mapOptions);\n\t\t\tresults.push(mapId);\n\t\t} catch (error) {\n\t\t\tresults.push(ensureError(error));\n\t\t}\n\t\treturn results;\n\t}\n\t#removeGeoreferencedMapInternal(georeferencedMap) {\n\t\tconst mapId = this.#getOrComputeMapId(georeferencedMap);\n\t\treturn this.#removeGeoreferencedMapByIdInternal(mapId);\n\t}\n\t#removeGeoreferencedMapByIdInternal(mapId) {\n\t\tconst warpedMap = this.warpedMapsById.get(mapId);\n\t\tif (warpedMap) {\n\t\t\tthis.warpedMapsById.delete(mapId);\n\t\t\tthis.zIndices.delete(mapId);\n\t\t\tthis.#removeFromRtree(warpedMap);\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPREMOVED, { mapIds: [mapId] }));\n\t\t\tthis.#removeZIndexHoles();\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\t\twarpedMap.destroy();\n\t\t} else throw new Error(`No map found with ID ${mapId}`);\n\t\treturn mapId;\n\t}\n\t#removeGeoreferencedMapsInternal(georeferencedMaps) {\n\t\tconst results = [];\n\t\tfor (const georeferencedMap of georeferencedMaps) try {\n\t\t\tconst mapId = this.#removeGeoreferencedMapInternal(georeferencedMap);\n\t\t\tresults.push(mapId);\n\t\t} catch (error) {\n\t\t\tresults.push(ensureError(error));\n\t\t}\n\t\treturn results;\n\t}\n\t#getOrComputeMapId(georeferencedMap) {\n\t\treturn georeferencedMap.id || generateChecksum(georeferencedMap);\n\t}\n\t#getProjectedGeoMaskPoints(options) {\n\t\tconst warpedMaps = this.getWarpedMaps(options);\n\t\tconst geoMaskPoints = [];\n\t\tfor (const warpedMap of warpedMaps) geoMaskPoints.push(...warpedMap.getGeoAppliedMask(options?.applyMask));\n\t\tconst projection = options?.projection;\n\t\treturn projection ? WarpedMapList.projectPointsIfNeeded(lonLatProjection, projection, geoMaskPoints) : geoMaskPoints;\n\t}\n\t/**\n\t* Internal set map options\n\t*/\n\t#setMapsAndListOptionsInternal(mapsOptionsCallbackFn, listOptions, partialAnimationOptions) {\n\t\tthis.setOptions(listOptions);\n\t\tif (this.warpedMapsById.size === 0) return;\n\t\tconst animationOptions = mergeOptions(mergeOptions(DEFAULT_ANIMATION_OPTIONS, DEFAULT_ANIMATION_INTERNAL_OPTIONS), partialAnimationOptions);\n\t\tif (animationOptions.animate && animationOptions.stage == \"animate\" || !animationOptions.animate) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.PREPARECHANGE, { mapIds: this.getMapIds() }));\n\t\tlet changedOptionKeys = [];\n\t\tconst changedMapIds = [];\n\t\tfor (const warpedMap of this.getWarpedMaps()) {\n\t\t\tlet warpedMapChangedOptions = {};\n\t\t\tconst mapOptions = mapsOptionsCallbackFn ? mapsOptionsCallbackFn(warpedMap.mapId) : void 0;\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"pre\") warpedMapChangedOptions = warpedMap.setMapAndListOptions(mapOptions, listOptions, mergePartialOptions(animationOptions, { optionKeysToOmit: animationOptions.animatedOptions ?? this.options.animatedOptions }));\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"animate\" || !animationOptions.animate) warpedMapChangedOptions = warpedMap.setMapAndListOptions(mapOptions, listOptions, animationOptions);\n\t\t\tconst warpedMapChangedOptionKeys = Object.keys(warpedMapChangedOptions);\n\t\t\tif (warpedMapChangedOptionKeys.length > 0) {\n\t\t\t\tchangedOptionKeys.push(...warpedMapChangedOptionKeys);\n\t\t\t\tchangedMapIds.push(warpedMap.mapId);\n\t\t\t}\n\t\t\tif (this.options.rtreeUpdatedOptions.some((option) => option in warpedMapChangedOptions)) this.#addToOrUpdateRtree(warpedMap);\n\t\t}\n\t\tchangedOptionKeys = Array.from(new Set(changedOptionKeys));\n\t\tif (animationOptions.animate && animationOptions.stage == \"pre\" || !animationOptions.animate) {\n\t\t\tif (changedOptionKeys.length > 0) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMMEDIATECHANGE, {\n\t\t\t\tmapIds: changedMapIds,\n\t\t\t\toptionKeys: changedOptionKeys\n\t\t\t}));\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"pre\") this.#setMapsAndListOptionsInternal(mapsOptionsCallbackFn, listOptions, mergePartialOptions(animationOptions, { stage: \"animate\" }));\n\t\t}\n\t\tif (animationOptions.animate && animationOptions.stage == \"animate\") {\n\t\t\tif (changedOptionKeys.length > 0) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.ANIMATEDCHANGE, {\n\t\t\t\tmapIds: changedMapIds,\n\t\t\t\toptionKeys: changedOptionKeys,\n\t\t\t\tanimationOptions\n\t\t\t}));\n\t\t}\n\t}\n\t#addToOrUpdateRtree(warpedMap) {\n\t\tthis.#removeFromRtree(warpedMap);\n\t\tif (this.geoMaskRTree) this.geoMaskRTree.addItem(warpedMap.mapId, [warpedMap.geoMask]);\n\t\tif (this.geoFullMaskRTree) this.geoFullMaskRTree.addItem(warpedMap.mapId, [warpedMap.geoFullMask]);\n\t\tif (this.projectedGeoMaskRTree) this.projectedGeoMaskRTree.addItem(warpedMap.mapId, [warpedMap.projectedGeoMask]);\n\t\tif (this.projectedGeoFullMaskRTree) this.projectedGeoFullMaskRTree.addItem(warpedMap.mapId, [warpedMap.projectedGeoFullMask]);\n\t}\n\t#getMapIdsFromBbox(bbox, getBbox) {\n\t\treturn Array.from(this.warpedMapsById.values()).filter((warpedMap) => doBboxesIntersect(bbox, getBbox(warpedMap))).map((warpedMap) => warpedMap.mapId);\n\t}\n\t#getMapIdsFromPoint(point, getBbox, getMask) {\n\t\treturn Array.from(this.warpedMapsById.values()).filter((warpedMap) => pointInBbox(point, getBbox(warpedMap)) && inside(point, closePolygon([getMask(warpedMap)]))).map((warpedMap) => warpedMap.mapId);\n\t}\n\t#removeFromRtree(warpedMap) {\n\t\tif (this.geoMaskRTree) this.geoMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.geoFullMaskRTree) this.geoFullMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.projectedGeoMaskRTree) this.projectedGeoMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.projectedGeoFullMaskRTree) this.projectedGeoFullMaskRTree.removeItem(warpedMap.mapId);\n\t}\n\t#removeZIndexHoles() {\n\t\tconst sortedZIndices = [...this.zIndices.entries()].sort((entryA, entryB) => entryA[1] - entryB[1]);\n\t\tlet zIndex = 0;\n\t\tfor (const entry of sortedZIndices) {\n\t\t\tconst mapId = entry[0];\n\t\t\tthis.zIndices.set(mapId, zIndex);\n\t\t\tzIndex++;\n\t\t}\n\t}\n\t#imageLoaded(mapId) {\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMAGELOADED, { mapIds: [mapId] }));\n\t}\n\t#addEventListenersToWarpedMap(warpedMap) {\n\t\tconst bound = this.#imageLoaded.bind(this, warpedMap.mapId);\n\t\tthis.#boundImageLoadedByMapId.set(warpedMap.mapId, bound);\n\t\twarpedMap.addEventListener(WarpedMapEventType.IMAGELOADED, bound);\n\t}\n\t#removeEventListenersFromWarpedMap(warpedMap) {\n\t\tconst bound = this.#boundImageLoadedByMapId.get(warpedMap.mapId);\n\t\tif (bound) {\n\t\t\twarpedMap.removeEventListener(WarpedMapEventType.IMAGELOADED, bound);\n\t\t\tthis.#boundImageLoadedByMapId.delete(warpedMap.mapId);\n\t\t}\n\t}\n\tstatic projectPointIfNeeded(projectionFrom, projectionTo, point) {\n\t\treturn isEqualProjection(projectionFrom, projectionTo) ? point : proj4(projectionFrom?.definition, projectionTo?.definition, point);\n\t}\n\tstatic projectPointsIfNeeded(projectionFrom, projectionTo, points) {\n\t\treturn isEqualProjection(projectionFrom, projectionTo) ? points : points.map((point) => proj4(projectionFrom?.definition, projectionTo?.definition, point));\n\t}\n\tstatic projectBboxIfNeeded(projectionFrom, projectionTo, bbox) {\n\t\treturn computeBbox(this.projectPointsIfNeeded(projectionFrom, projectionTo, bboxToLine(bbox)));\n\t}\n};\n//#endregion\nexport { DEFAULT_ANIMATION_OPTIONS, WarpedMapList };\n\n//# sourceMappingURL=WarpedMapList.js.map"],"names":["DEFAULT_SELECTION_OPTIONS","DEFAULT_ANIMATION_OPTIONS","DEFAULT_ANIMATION_INTERNAL_OPTIONS","ensureError","error","WarpedMapList","#boundImageLoadedByMapId","options","webMercatorProjection","createWarpedMapFactory","mergeOptions","RTree","georeferencedMap","mapOptions","validatedGeoreferencedMapOrMaps","validateGeoreferencedMap","validatedGeoreferencedMap","results","#addGeoreferencedMapInternal","WarpedMapEvent","WarpedMapEventType","georeferencedMaps","validatedGeoreferencedMaps","#addGeoreferencedMapsInternal","#removeGeoreferencedMapInternal","#removeGeoreferencedMapsInternal","mapId","result","#removeGeoreferencedMapByIdInternal","annotation","maps","parseAnnotation","warpedMap","updatedWarpedMap","#addEventListenersToWarpedMap","imageInfos","imageInfo","image","Image","partialOptions","mapIds","#getMapIdsFromPoint","#getMapIdsFromBbox","projectedGeoPoint","projectedGeoBbox","warpedMaps","map0","map1","bbox","bboxToCenter","projectedGeoMaskPoints","#getProjectedGeoMaskPoints","computeBbox","convexHull","WebGL2WarpedMap","listOptions","#addToOrUpdateRtree","animationOptions","#setMapsAndListOptionsInternal","firstArgument","secondArgument","thirdArgument","fourthArgument","listOptionKeys","optionKeysToUndefinedOptions","defaultWebGL2WarpedMapOptions","defaultWebGL2WarpedMapOptionKeys","mapOptionKeysCallbackFn","mapOptionKeys","newZIndex","#removeZIndexHoles","zIndex","mapId0","mapId1","zIndex0","zIndex1","#removeEventListenersFromWarpedMap","#getOrComputeMapId","#removeFromRtree","generateChecksum","geoMaskPoints","projection","lonLatProjection","mapsOptionsCallbackFn","partialAnimationOptions","changedOptionKeys","changedMapIds","warpedMapChangedOptions","mergePartialOptions","warpedMapChangedOptionKeys","option","getBbox","doBboxesIntersect","point","getMask","pointInBbox","inside","closePolygon","sortedZIndices","entryA","entryB","entry","#imageLoaded","bound","projectionFrom","projectionTo","isEqualProjection","proj4","points","bboxToLine"],"mappings":"quBAYA,IAAIA,EAA4B,CAAE,UAAW,EAAA,EACzCC,EAA4B,CAC/B,QAAS,GACT,SAAU,GACX,EACIC,EAAqC,CAAE,MAAO,KAAA,EAClD,SAASC,EAAYC,EAAO,CAC3B,OAAOA,aAAiB,MAAQA,EAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,CAChE,CAMA,IAAIC,EAAgB,MAAMA,UAAsB,WAAY,CAI3D,gCACA,eACA,SACA,WACA,aACA,iBACA,sBACA,0BACA,QACAC,GAQA,YAAYC,EAAS,CACpB,MAAA,EACA,KAAK,gCAAkC,CACtC,YAAa,GACb,oBAAqB,CACpB,OACA,eACA,qBACA,qBACA,YAAA,EAED,gBAAiB,CAChB,UACA,YACA,qBACA,qBACA,mBAAA,EAED,WAAYC,EAAAA,sBACZ,iBAAkBC,EAAAA,uBAAA,CAAuB,EAE1C,KAAK,mBAAqC,IAC1C,KAAK,aAA+B,IACpC,KAAK,eAAiC,IACtC,KAAKH,OAA+C,IACpD,KAAK,QAAUI,EAAAA,aAAa,KAAK,gCAAiCH,CAAO,EACrE,KAAK,QAAQ,cAChB,KAAK,aAAe,IAAII,QACxB,KAAK,iBAAmB,IAAIA,QAC5B,KAAK,sBAAwB,IAAIA,QACjC,KAAK,0BAA4B,IAAIA,QAEvC,CAQA,oBAAoBC,EAAkBC,EAAY,CACjD,MAAMC,EAAkCC,EAAAA,yBAAyBH,CAAgB,EACjF,GAAI,MAAM,QAAQE,CAA+B,EAAG,MAAM,IAAI,MAAM,4IAA4I,EAChN,MAAME,EAA4BF,EAC5BG,EAAU,KAAKC,GA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BF,EAAW,CACxC,MAAMuE,EAAQ,KAAKD,GAAa,KAAK,KAAMtE,EAAU,KAAK,EAC1D,KAAK1B,GAAyB,IAAI0B,EAAU,MAAOuE,CAAK,EACxDvE,EAAU,iBAAiBZ,qBAAmB,YAAamF,CAAK,CACjE,CACA3B,GAAmC5C,EAAW,CAC7C,MAAMuE,EAAQ,KAAKjG,GAAyB,IAAI0B,EAAU,KAAK,EAC3DuE,IACHvE,EAAU,oBAAoBZ,qBAAmB,YAAamF,CAAK,EACnE,KAAKjG,GAAyB,OAAO0B,EAAU,KAAK,EAEtD,CACA,OAAO,qBAAqBwE,EAAgBC,EAAcZ,EAAO,CAChE,OAAOa,oBAAkBF,EAAgBC,CAAY,EAAIZ,EAAQc,EAAMH,GAAgB,WAAYC,GAAc,WAAYZ,CAAK,CACnI,CACA,OAAO,sBAAsBW,EAAgBC,EAAcG,EAAQ,CAClE,OAAOF,EAAAA,kBAAkBF,EAAgBC,CAAY,EAAIG,EAASA,EAAO,IAAKf,GAAUc,EAAMH,GAAgB,WAAYC,GAAc,WAAYZ,CAAK,CAAC,CAC3J,CACA,OAAO,oBAAoBW,EAAgBC,EAAczD,EAAM,CAC9D,OAAOI,EAAAA,YAAY,KAAK,sBAAsBoD,EAAgBC,EAAcI,EAAAA,WAAW7D,CAAI,CAAC,CAAC,CAC9F,CACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs196.js"),y=require("./index.cjs275.js"),l=require("./index.cjs278.js"),c=require("./index.cjs336.js");var b=!0,u=class{rbush=new c;polygonsById=new Map;bboxesById=new Map;itemsById=new Map;addItem(e,t){this.removeItem(e);const s=a.computeBbox(t),r={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],id:e};this.polygonsById.set(e,t),this.bboxesById.set(e,s),this.itemsById.set(e,r),this.rbush.insert(r)}removeItem(e){const t=this.itemsById.get(e);t&&(this.rbush.remove(t),this.polygonsById.delete(e),this.bboxesById.delete(e),this.itemsById.delete(e))}clear(){this.polygonsById.clear(),this.bboxesById.clear(),this.itemsById.clear(),this.rbush.clear()}#e(e,t,s,r){return this.rbush.search({minX:e,minY:t,maxX:s,maxY:r})}getBbox(e){return this.bboxesById.get(e)}getPolygon(e){return this.polygonsById.get(e)}searchFromBbox(e){const[t,s,r,i]=e;return this.#e(t,s,r,i).map(n=>n.id)}searchFromPoint(e,t=b){const[s,r,i,n]=[e[0],e[1],e[0],e[1]],m=this.#e(s,r,i,n);return t?m.filter(o=>{const h=this.polygonsById.get(o.id);return h?l(e,y.closePolygon(h)):!1}).map(o=>o.id):m.map(o=>o.id)}};exports.RTree=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs289.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs289.js","sources":["../../../node_modules/@allmaps/render/dist/maps/RTree.js"],"sourcesContent":["import { closePolygon, computeBbox } from \"@allmaps/stdlib\";\nimport inside from \"point-in-polygon-hao\";\nimport RBush from \"rbush\";\n//#region src/maps/RTree.ts\nvar DEFAULT_FILTER_INSIDE_POLYGON = true;\n/**\n* 2D spatial index for polygons\n*/\nvar RTree = class {\n\trbush = new RBush();\n\tpolygonsById = /* @__PURE__ */ new Map();\n\tbboxesById = /* @__PURE__ */ new Map();\n\titemsById = /* @__PURE__ */ new Map();\n\taddItem(id, polygon) {\n\t\tthis.removeItem(id);\n\t\tconst bbox = computeBbox(polygon);\n\t\tconst item = {\n\t\t\tminX: bbox[0],\n\t\t\tminY: bbox[1],\n\t\t\tmaxX: bbox[2],\n\t\t\tmaxY: bbox[3],\n\t\t\tid\n\t\t};\n\t\tthis.polygonsById.set(id, polygon);\n\t\tthis.bboxesById.set(id, bbox);\n\t\tthis.itemsById.set(id, item);\n\t\tthis.rbush.insert(item);\n\t}\n\tremoveItem(id) {\n\t\tconst item = this.itemsById.get(id);\n\t\tif (item) {\n\t\t\tthis.rbush.remove(item);\n\t\t\tthis.polygonsById.delete(id);\n\t\t\tthis.bboxesById.delete(id);\n\t\t\tthis.itemsById.delete(id);\n\t\t}\n\t}\n\tclear() {\n\t\tthis.polygonsById.clear();\n\t\tthis.bboxesById.clear();\n\t\tthis.itemsById.clear();\n\t\tthis.rbush.clear();\n\t}\n\t#search(minX, minY, maxX, maxY) {\n\t\treturn this.rbush.search({\n\t\t\tminX,\n\t\t\tminY,\n\t\t\tmaxX,\n\t\t\tmaxY\n\t\t});\n\t}\n\tgetBbox(id) {\n\t\treturn this.bboxesById.get(id);\n\t}\n\tgetPolygon(id) {\n\t\treturn this.polygonsById.get(id);\n\t}\n\tsearchFromBbox(bbox) {\n\t\tconst [minX, minY, maxX, maxY] = bbox;\n\t\treturn this.#search(minX, minY, maxX, maxY).map((item) => item.id);\n\t}\n\tsearchFromPoint(point, filterInsidePolygon = DEFAULT_FILTER_INSIDE_POLYGON) {\n\t\tconst [minX, minY, maxX, maxY] = [\n\t\t\tpoint[0],\n\t\t\tpoint[1],\n\t\t\tpoint[0],\n\t\t\tpoint[1]\n\t\t];\n\t\tconst rtreeResults = this.#search(minX, minY, maxX, maxY);\n\t\tif (filterInsidePolygon) return rtreeResults.filter((item) => {\n\t\t\tconst polygon = this.polygonsById.get(item.id);\n\t\t\tif (polygon) return inside(point, closePolygon(polygon));\n\t\t\telse return false;\n\t\t}).map((item) => item.id);\n\t\telse return rtreeResults.map((item) => item.id);\n\t}\n};\n//#endregion\nexport { RTree };\n\n//# sourceMappingURL=RTree.js.map"],"names":["DEFAULT_FILTER_INSIDE_POLYGON","RTree","RBush","id","polygon","bbox","computeBbox","item","#search","minX","minY","maxX","maxY","point","filterInsidePolygon","rtreeResults","inside","closePolygon"],"mappings":"kNAIA,IAAIA,EAAgC,GAIhCC,EAAQ,KAAM,CACjB,MAAQ,IAAIC,EACZ,iBAAmC,IACnC,eAAiC,IACjC,cAAgC,IAChC,QAAQC,EAAIC,EAAS,CACpB,KAAK,WAAWD,C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,CAAA,EAEFE,EAAe,KAAKP,GAAQC,EAAMC,EAAMC,EAAMC,CAAI,EACxD,OAAIE,EAA4BC,EAAa,OAAQR,GAAS,CAC7D,MAAMH,EAAU,KAAK,aAAa,IAAIG,EAAK,EAAE,EAC7C,OAAIH,EAAgBY,EAAOH,EAAOI,EAAAA,aAAab,CAAO,CAAC,EAC3C,EACb,CAAC,EAAE,IAAKG,GAASA,EAAK,EAAE,EACZQ,EAAa,IAAKR,GAASA,EAAK,EAAE,CAC/C,CACD","x_google_ignoreList":[0]}
|
package/dist/index.cjs29.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs88.js"),e=require("./index.cjs87.js");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs29.js.map
|