@performant-software/visualize 2.3.4-beta.6 → 2.3.4-beta.7
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.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.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.cjs17.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs178.js +5 -1
- package/dist/index.cjs178.js.map +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs179.js.map +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs180.js.map +1 -1
- package/dist/index.cjs181.js +1 -5
- package/dist/index.cjs181.js.map +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs196.js +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.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.cjs230.js +2 -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 -2
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs25.js +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.cjs27.js +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 +1 -1
- package/dist/index.cjs276.js.map +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs277.js.map +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs278.js.map +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs279.js.map +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs280.js.map +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs283.js.map +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es100.js +2 -2
- package/dist/index.es101.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.es109.js +1 -1
- package/dist/index.es11.js +2 -2
- package/dist/index.es112.js +2 -2
- package/dist/index.es113.js +2 -2
- package/dist/index.es114.js +1 -1
- package/dist/index.es118.js +2 -2
- package/dist/index.es12.js +2 -2
- package/dist/index.es121.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es13.js +2 -2
- package/dist/index.es136.js +1 -1
- package/dist/index.es137.js +1 -1
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +2 -2
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es144.js +2 -2
- package/dist/index.es145.js +2 -2
- package/dist/index.es146.js +1 -1
- package/dist/index.es147.js +1 -1
- package/dist/index.es148.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +2 -2
- package/dist/index.es151.js +2 -2
- package/dist/index.es152.js +1 -1
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +2 -2
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +1 -1
- package/dist/index.es16.js +2 -2
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +1 -1
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +1 -1
- package/dist/index.es17.js +2 -2
- package/dist/index.es171.js +1 -1
- package/dist/index.es172.js +2 -2
- package/dist/index.es173.js +1 -1
- package/dist/index.es174.js +1 -1
- package/dist/index.es175.js +1 -1
- package/dist/index.es178.js +39 -54
- package/dist/index.es178.js.map +1 -1
- package/dist/index.es179.js +16 -29
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es180.js +52 -39
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es181.js +54 -39
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es182.js +53 -35
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +29 -23
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +39 -84
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es187.js +36 -15
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +23 -53
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +84 -54
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +2 -6
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +8 -5
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +4 -20
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +4 -8
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +3 -5
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +3 -4
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +9 -3
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +22 -3
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +21 -8
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +11 -19
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +14 -19
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +5 -13
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +8 -16
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +6 -5
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +20 -7
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +8 -5
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +9 -22
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +4 -10
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +11 -9
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +9 -4
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +21 -9
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +11 -8
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +18 -22
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +4 -12
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +16 -17
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +12 -4
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +3 -17
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +4 -11
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +6 -3
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +5 -4
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +5 -2
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +4 -6
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +12 -5
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +4 -4
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +5 -4
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +5 -13
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +20 -4
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es25.js +2 -2
- package/dist/index.es252.js +3 -29
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +6 -35
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +8 -10
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +4 -4
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +2 -8
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +4 -6
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +7 -5
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +14 -3
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +3 -3
- package/dist/index.es260.js +7 -3
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +3 -7
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +6 -7
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +7 -13
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +29 -7
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +35 -4
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +10 -2
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +4 -6
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +8 -8
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es271.js +31 -66
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +3 -18
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +7 -6
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +9 -2
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +5 -5
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +67 -12
- package/dist/index.es276.js.map +1 -1
- package/dist/index.es277.js +18 -2
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +6 -32
- package/dist/index.es278.js.map +1 -1
- package/dist/index.es279.js +2 -3
- package/dist/index.es279.js.map +1 -1
- package/dist/index.es280.js +5 -8
- package/dist/index.es280.js.map +1 -1
- package/dist/index.es281.js +13 -9
- package/dist/index.es281.js.map +1 -1
- package/dist/index.es282.js +2 -5
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es283.js +3 -12
- package/dist/index.es283.js.map +1 -1
- package/dist/index.es284.js +14 -7
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +6 -3
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +12 -14
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +7 -6
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +1 -1
- package/dist/index.es289.js +1 -1
- package/dist/index.es29.js +1 -1
- package/dist/index.es291.js +3 -3
- package/dist/index.es292.js +1 -1
- package/dist/index.es294.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es32.js +1 -1
- package/dist/index.es34.js +3 -3
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +4 -4
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +3 -3
- package/dist/index.es40.js +3 -3
- package/dist/index.es41.js +3 -3
- package/dist/index.es42.js +3 -3
- package/dist/index.es43.js +3 -3
- package/dist/index.es44.js +3 -3
- package/dist/index.es45.js +3 -3
- package/dist/index.es46.js +3 -3
- package/dist/index.es47.js +3 -3
- package/dist/index.es48.js +3 -3
- package/dist/index.es49.js +3 -3
- package/dist/index.es69.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es75.js +4 -4
- package/dist/index.es77.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es98.js +3 -3
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs182.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs182.js","sources":["../../../node_modules
|
1
|
+
{"version":3,"file":"index.cjs182.js","sources":["../../../node_modules/lodash/debounce.js"],"sourcesContent":["var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["isObject","require$$0","now","require$$1","toNumber","require$$2","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","tr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J,EAAOtB,IACP,GAAA+B,EAAaT,CAAI,EACnB,OAAOU,EAAaV,CAAI,EAG1BP,EAAU,WAAWW,EAAcC,EAAcL,CAAI,CAAC,CACxD,CAEA,SAASU,EAAaV,EAAM,CAK1B,OAJUP,EAAA,OAINK,GAAYT,EACPU,EAAWC,CAAI,GAExBX,EAAWC,EAAW,OACfE,EACT,CAEA,SAASmB,GAAS,CACZlB,IAAY,QACd,aAAaA,CAAO,EAELE,EAAA,EACNN,EAAAK,EAAeJ,EAAWG,EAAU,MACjD,CAEA,SAASmB,GAAQ,CACf,OAAOnB,IAAY,OAAYD,EAASkB,EAAahC,GAAK,CAC5D,CAEA,SAASmC,GAAY,CACnB,IAAIb,EAAOtB,EACP,EAAAoC,EAAaL,EAAaT,CAAI,EAMlC,GAJWX,EAAA,UACAC,EAAA,KACII,EAAAM,EAEXc,EAAY,CACd,GAAIrB,IAAY,OACd,OAAOU,EAAYT,CAAY,EAEjC,GAAIG,EAEF,oBAAaJ,CAAO,EACVA,EAAA,WAAWW,EAAcjB,CAAI,EAChCY,EAAWL,CAAY,CAElC,CACA,OAAID,IAAY,SACJA,EAAA,WAAWW,EAAcjB,CAAI,GAElCK,CACT,CACA,OAAAqB,EAAU,OAASF,EACnBE,EAAU,MAAQD,EACXC,CACT,CAEA,IAAAE,EAAiB9B","x_google_ignoreList":[0]}
|
package/dist/index.cjs183.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs264.js"),o=require("./index.cjs265.js");var s=function(){function r(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");t.ResizeObserverController.connect(this,e)}return r.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!o.isElement(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");t.ResizeObserverController.observe(this,e,n)},r.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!o.isElement(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");t.ResizeObserverController.unobserve(this,e)},r.prototype.disconnect=function(){t.ResizeObserverController.disconnect(this)},r.toString=function(){return"function ResizeObserver () { [polyfill code] }"},r}();exports.ResizeObserver=s;
|
2
2
|
//# sourceMappingURL=index.cjs183.js.map
|
package/dist/index.cjs183.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs183.js","sources":["../../../node_modules/@
|
1
|
+
{"version":3,"file":"index.cjs183.js","sources":["../../../node_modules/@juggle/resize-observer/lib/ResizeObserver.js"],"sourcesContent":["import { ResizeObserverController } from './ResizeObserverController';\nimport { isElement } from './utils/element';\nvar ResizeObserver = (function () {\n function ResizeObserver(callback) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (typeof callback !== 'function') {\n throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");\n }\n ResizeObserverController.connect(this, callback);\n }\n ResizeObserver.prototype.observe = function (target, options) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.observe(this, target, options);\n };\n ResizeObserver.prototype.unobserve = function (target) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.unobserve(this, target);\n };\n ResizeObserver.prototype.disconnect = function () {\n ResizeObserverController.disconnect(this);\n };\n ResizeObserver.toString = function () {\n return 'function ResizeObserver () { [polyfill code] }';\n };\n return ResizeObserver;\n}());\nexport { ResizeObserver };\n"],"names":["ResizeObserver","callback","ResizeObserverController","target","options","isElement"],"mappings":"oJAEA,IAAIA,EAAkB,UAAY,CAC9B,SAASA,EAAeC,EAAU,CAC1B,GAAA,UAAU,SAAW,EACf,MAAA,IAAI,UAAU,gFAAgF,EAEpG,GAAA,OAAOA,GAAa,WACd,MAAA,IAAI,UAAU,+FAA+F,EAE9FC,EAAAA,yBAAA,QAAQ,KAAMD,CAAQ,CACnD,CACAD,OAAAA,EAAe,UAAU,QAAU,SAAUG,EAAQC,EAAS,CACtD,GAAA,UAAU,SAAW,EACf,MAAA,IAAI,UAAU,2FAA2F,EAE/G,GAAA,CAACC,EAAAA,UAAUF,CAAM,EACX,MAAA,IAAI,UAAU,sFAAsF,EAErFD,EAAAA,yBAAA,QAAQ,KAAMC,EAAQC,CAAO,CAAA,EAE1DJ,EAAe,UAAU,UAAY,SAAUG,EAAQ,CAC/C,GAAA,UAAU,SAAW,EACf,MAAA,IAAI,UAAU,6FAA6F,EAEjH,GAAA,CAACE,EAAAA,UAAUF,CAAM,EACX,MAAA,IAAI,UAAU,wFAAwF,EAEvFD,EAAAA,yBAAA,UAAU,KAAMC,CAAM,CAAA,EAEnDH,EAAe,UAAU,WAAa,UAAY,CAC9CE,2BAAyB,WAAW,IAAI,CAAA,EAE5CF,EAAe,SAAW,UAAY,CAC3B,MAAA,gDAAA,EAEJA,CACX,EAAE","x_google_ignoreList":[0]}
|
package/dist/index.cjs184.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs280.js"),A=require("./index.cjs268.js"),w=require("./index.cjs281.js"),S=require("./index.cjs265.js"),T=require("./index.cjs267.js"),O=require("./index.cjs282.js");var l=new WeakMap,m=/auto|scroll/,I=/^tb|vertical/,G=/msie|trident/i.test(O.global.navigator&&O.global.navigator.userAgent),i=function(e){return parseFloat(e||"0")},n=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new A.ResizeObserverSize((r?t:e)||0,(r?e:t)||0)},P=T.freeze({devicePixelContentBoxSize:n(),borderBoxSize:n(),contentBoxSize:n(),contentRect:new w.DOMRectReadOnly(0,0,0,0)}),W=function(e,t){if(t===void 0&&(t=!1),l.has(e)&&!t)return l.get(e);if(S.isHidden(e))return l.set(e,P),P;var r=getComputedStyle(e),o=S.isSVG(e)&&e.ownerSVGElement&&e.getBBox(),d=!G&&r.boxSizing==="border-box",a=I.test(r.writingMode||""),s=!o&&m.test(r.overflowY||""),y=!o&&m.test(r.overflowX||""),B=o?0:i(r.paddingTop),M=o?0:i(r.paddingRight),C=o?0:i(r.paddingBottom),u=o?0:i(r.paddingLeft),E=o?0:i(r.borderTopWidth),q=o?0:i(r.borderRightWidth),D=o?0:i(r.borderBottomWidth),H=o?0:i(r.borderLeftWidth),b=u+M,g=B+C,x=H+q,h=E+D,f=y?e.offsetHeight-h-e.clientHeight:0,z=s?e.offsetWidth-x-e.clientWidth:0,L=d?b+x:0,_=d?g+h:0,v=o?o.width:i(r.width)-L-z,c=o?o.height:i(r.height)-_-f,V=v+b+z+x,X=c+g+f+h,R=T.freeze({devicePixelContentBoxSize:n(Math.round(v*devicePixelRatio),Math.round(c*devicePixelRatio),a),borderBoxSize:n(V,X,a),contentBoxSize:n(v,c,a),contentRect:new w.DOMRectReadOnly(u,B,v,c)});return l.set(e,R),R},N=function(e,t,r){var o=W(e,r),d=o.borderBoxSize,a=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case p.ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return s;case p.ResizeObserverBoxOptions.BORDER_BOX:return d;default:return a}};exports.calculateBoxSize=N;exports.calculateBoxSizes=W;
|
2
2
|
//# sourceMappingURL=index.cjs184.js.map
|
package/dist/index.cjs184.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs184.js","sources":["../../../node_modules/d3-hierarchy/src/tree.js"],"sourcesContent":["import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n"],"names":["defaultSeparation","a","b","nextLeft","v","children","nextRight","moveSubtree","wm","wp","shift","change","executeShifts","i","w","nextAncestor","vim","ancestor","TreeNode","node","Node","treeRoot","root","tree","nodes","child","n","d3tree","separation","dx","dy","nodeSize","t","firstWalk","secondWalk","sizeNode","left","right","bottom","s","tx","kx","ky","siblings","midpoint","apportion","vip","vop","vom","sip","sop","sim","som","x"],"mappings":"iDAEA,SAASA,EAAkBC,EAAGC,EAAG,CAC/B,OAAOD,EAAE,SAAWC,EAAE,OAAS,EAAI,CACrC,CAUA,SAASC,EAASC,EAAG,CACnB,IAAIC,EAAWD,EAAE,SACjB,OAAOC,EAAWA,EAAS,CAAC,EAAID,EAAE,CACpC,CAGA,SAASE,EAAUF,EAAG,CACpB,IAAIC,EAAWD,EAAE,SACjB,OAAOC,EAAWA,EAASA,EAAS,OAAS,CAAC,EAAID,EAAE,CACtD,CAIA,SAASG,EAAYC,EAAIC,EAAIC,EAAO,CAClC,IAAIC,EAASD,GAASD,EAAG,EAAID,EAAG,GAChCC,EAAG,GAAKE,EACRF,EAAG,GAAKC,EACRF,EAAG,GAAKG,EACRF,EAAG,GAAKC,EACRD,EAAG,GAAKC,CACV,CAKA,SAASE,EAAcR,EAAG,CAMjB,QALHM,EAAQ,EACRC,EAAS,EACTN,EAAWD,EAAE,SACbS,EAAIR,EAAS,OACbS,EACG,EAAED,GAAK,GACZC,EAAIT,EAASQ,CAAC,EACdC,EAAE,GAAKJ,EACPI,EAAE,GAAKJ,EACEA,GAAAI,EAAE,GAAKH,GAAUG,EAAE,EAEhC,CAIA,SAASC,EAAaC,EAAKZ,EAAGa,EAAU,CACtC,OAAOD,EAAI,EAAE,SAAWZ,EAAE,OAASY,EAAI,EAAIC,CAC7C,CA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CAAE,EAAI,IAAA,EAG9FP,CACT","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.cjs184.js","sources":["../../../node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js"],"sourcesContent":["import { ResizeObserverBoxOptions } from '../ResizeObserverBoxOptions';\nimport { ResizeObserverSize } from '../ResizeObserverSize';\nimport { DOMRectReadOnly } from '../DOMRectReadOnly';\nimport { isSVG, isHidden } from '../utils/element';\nimport { freeze } from '../utils/freeze';\nimport { global } from '../utils/global';\nvar cache = new WeakMap();\nvar scrollRegexp = /auto|scroll/;\nvar verticalRegexp = /^tb|vertical/;\nvar IE = (/msie|trident/i).test(global.navigator && global.navigator.userAgent);\nvar parseDimension = function (pixel) { return parseFloat(pixel || '0'); };\nvar size = function (inlineSize, blockSize, switchSizes) {\n if (inlineSize === void 0) { inlineSize = 0; }\n if (blockSize === void 0) { blockSize = 0; }\n if (switchSizes === void 0) { switchSizes = false; }\n return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);\n};\nvar zeroBoxes = freeze({\n devicePixelContentBoxSize: size(),\n borderBoxSize: size(),\n contentBoxSize: size(),\n contentRect: new DOMRectReadOnly(0, 0, 0, 0)\n});\nvar calculateBoxSizes = function (target, forceRecalculation) {\n if (forceRecalculation === void 0) { forceRecalculation = false; }\n if (cache.has(target) && !forceRecalculation) {\n return cache.get(target);\n }\n if (isHidden(target)) {\n cache.set(target, zeroBoxes);\n return zeroBoxes;\n }\n var cs = getComputedStyle(target);\n var svg = isSVG(target) && target.ownerSVGElement && target.getBBox();\n var removePadding = !IE && cs.boxSizing === 'border-box';\n var switchSizes = verticalRegexp.test(cs.writingMode || '');\n var canScrollVertically = !svg && scrollRegexp.test(cs.overflowY || '');\n var canScrollHorizontally = !svg && scrollRegexp.test(cs.overflowX || '');\n var paddingTop = svg ? 0 : parseDimension(cs.paddingTop);\n var paddingRight = svg ? 0 : parseDimension(cs.paddingRight);\n var paddingBottom = svg ? 0 : parseDimension(cs.paddingBottom);\n var paddingLeft = svg ? 0 : parseDimension(cs.paddingLeft);\n var borderTop = svg ? 0 : parseDimension(cs.borderTopWidth);\n var borderRight = svg ? 0 : parseDimension(cs.borderRightWidth);\n var borderBottom = svg ? 0 : parseDimension(cs.borderBottomWidth);\n var borderLeft = svg ? 0 : parseDimension(cs.borderLeftWidth);\n var horizontalPadding = paddingLeft + paddingRight;\n var verticalPadding = paddingTop + paddingBottom;\n var horizontalBorderArea = borderLeft + borderRight;\n var verticalBorderArea = borderTop + borderBottom;\n var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;\n var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;\n var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;\n var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;\n var contentWidth = svg ? svg.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;\n var contentHeight = svg ? svg.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;\n var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;\n var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;\n var boxes = freeze({\n devicePixelContentBoxSize: size(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),\n borderBoxSize: size(borderBoxWidth, borderBoxHeight, switchSizes),\n contentBoxSize: size(contentWidth, contentHeight, switchSizes),\n contentRect: new DOMRectReadOnly(paddingLeft, paddingTop, contentWidth, contentHeight)\n });\n cache.set(target, boxes);\n return boxes;\n};\nvar calculateBoxSize = function (target, observedBox, forceRecalculation) {\n var _a = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a.borderBoxSize, contentBoxSize = _a.contentBoxSize, devicePixelContentBoxSize = _a.devicePixelContentBoxSize;\n switch (observedBox) {\n case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:\n return devicePixelContentBoxSize;\n case ResizeObserverBoxOptions.BORDER_BOX:\n return borderBoxSize;\n default:\n return contentBoxSize;\n }\n};\nexport { calculateBoxSize, calculateBoxSizes };\n"],"names":["cache","scrollRegexp","verticalRegexp","IE","global","parseDimension","pixel","size","inlineSize","blockSize","switchSizes","ResizeObserverSize","zeroBoxes","freeze","DOMRectReadOnly","calculateBoxSizes","target","forceRecalculation","isHidden","cs","svg","isSVG","removePadding","canScrollVertically","canScrollHorizontally","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderRight","borderBottom","borderLeft","horizontalPadding","verticalPadding","horizontalBorderArea","verticalBorderArea","horizontalScrollbarThickness","verticalScrollbarThickness","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","calculateBoxSize","observedBox","_a","borderBoxSize","contentBoxSize","devicePixelContentBoxSize","ResizeObserverBoxOptions"],"mappings":"gRAMA,IAAIA,MAAY,QACZC,EAAe,cACfC,EAAiB,eACjBC,EAAM,gBAAiB,KAAKC,SAAO,WAAaA,SAAO,UAAU,SAAS,EAC1EC,EAAiB,SAAUC,EAAO,CAAS,OAAA,WAAWA,GAAS,GAAG,CAAG,EACrEC,EAAO,SAAUC,EAAYC,EAAWC,EAAa,CACrD,OAAIF,IAAe,SAAuBA,EAAA,GACtCC,IAAc,SAAsBA,EAAA,GACpCC,IAAgB,SAAwBA,EAAA,IACrC,IAAIC,sBAAoBD,EAAcD,EAAYD,IAAe,GAAIE,EAAcF,EAAaC,IAAc,CAAC,CAC1H,EACIG,EAAYC,EAAAA,OAAO,CACnB,0BAA2BN,EAAK,EAChC,cAAeA,EAAK,EACpB,eAAgBA,EAAK,EACrB,YAAa,IAAIO,EAAAA,gBAAgB,EAAG,EAAG,EAAG,CAAC,CAC/C,CAAC,EACGC,EAAoB,SAAUC,EAAQC,EAAoB,CAE1D,GADIA,IAAuB,SAA+BA,EAAA,IACtDjB,EA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A,EAAI,OAASf,EAAec,EAAG,MAAM,EAAIqB,EAAkBH,EACjFM,EAAiBF,EAAeR,EAAoBK,EAA6BH,EACjFS,EAAkBF,EAAgBR,EAAkBG,EAA+BD,EACnFS,EAAQhC,EAAAA,OAAO,CACf,0BAA2BN,EAAK,KAAK,MAAMkC,EAAe,gBAAgB,EAAG,KAAK,MAAMC,EAAgB,gBAAgB,EAAGhC,CAAW,EACtI,cAAeH,EAAKoC,EAAgBC,EAAiBlC,CAAW,EAChE,eAAgBH,EAAKkC,EAAcC,EAAehC,CAAW,EAC7D,YAAa,IAAII,EAAAA,gBAAgBc,EAAaH,EAAYgB,EAAcC,CAAa,CAAA,CACxF,EACK,OAAA1C,EAAA,IAAIgB,EAAQ6B,CAAK,EAChBA,CACX,EACIC,EAAmB,SAAU9B,EAAQ+B,EAAa9B,EAAoB,CACtE,IAAI+B,EAAKjC,EAAkBC,EAAQC,CAAkB,EAAGgC,EAAgBD,EAAG,cAAeE,EAAiBF,EAAG,eAAgBG,EAA4BH,EAAG,0BAC7J,OAAQD,EAAa,CACjB,KAAKK,EAAyB,yBAAA,yBACnB,OAAAD,EACX,KAAKC,EAAyB,yBAAA,WACnB,OAAAH,EACX,QACW,OAAAC,CACf,CACJ","x_google_ignoreList":[0]}
|
package/dist/index.cjs187.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const e=require("./index.cjs64.js"),u=require("react");var n={source:{x:0,y:0},target:{x:0,y:0}};function t(s){var i=s.link,r=i===void 0?n:i;return u.createElement("line",{x1:r.source.x,y1:r.source.y,x2:r.target.x,y2:r.target.y,strokeWidth:2,stroke:"#999",strokeOpacity:.6})}t.propTypes={link:e.shape({source:e.shape({x:e.number.isRequired,y:e.number.isRequired}).isRequired,target:e.shape({x:e.number.isRequired,y:e.number.isRequired}).isRequired})};module.exports=t;
|
2
2
|
//# sourceMappingURL=index.cjs187.js.map
|
package/dist/index.cjs187.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs187.js","sources":["../../../node_modules/@visx/
|
1
|
+
{"version":3,"file":"index.cjs187.js","sources":["../../../node_modules/@visx/hierarchy/esm/HierarchyDefaultLink.js"],"sourcesContent":["import _pt from \"prop-types\";\nimport React from 'react';\nvar DEFAULT_LINK = {\n source: {\n x: 0,\n y: 0\n },\n target: {\n x: 0,\n y: 0\n }\n};\nexport default function HierarchyDefaultLink(_ref) {\n var _ref$link = _ref.link,\n link = _ref$link === void 0 ? DEFAULT_LINK : _ref$link;\n return /*#__PURE__*/React.createElement(\"line\", {\n x1: link.source.x,\n y1: link.source.y,\n x2: link.target.x,\n y2: link.target.y,\n strokeWidth: 2,\n stroke: \"#999\",\n strokeOpacity: 0.6\n });\n}\nHierarchyDefaultLink.propTypes = {\n link: _pt.shape({\n source: _pt.shape({\n x: _pt.number.isRequired,\n y: _pt.number.isRequired\n }).isRequired,\n target: _pt.shape({\n x: _pt.number.isRequired,\n y: _pt.number.isRequired\n }).isRequired\n })\n};"],"names":["DEFAULT_LINK","HierarchyDefaultLink","_ref","_ref$link","link","React","_pt"],"mappings":"oEAEA,IAAIA,EAAe,CACjB,OAAQ,CACN,EAAG,EACH,EAAG,CACL,EACA,OAAQ,CACN,EAAG,EACH,EAAG,CACL,CACF,EACA,SAAwBC,EAAqBC,EAAM,CACjD,IAAIC,EAAYD,EAAK,KACnBE,EAAOD,IAAc,OAASH,EAAeG,EAC3B,OAAAE,EAAM,cAAc,OAAQ,CAC9C,GAAID,EAAK,OAAO,EAChB,GAAIA,EAAK,OAAO,EAChB,GAAIA,EAAK,OAAO,EAChB,GAAIA,EAAK,OAAO,EAChB,YAAa,EACb,OAAQ,OACR,cAAe,EAAA,CAChB,CACH,CACAH,EAAqB,UAAY,CAC/B,KAAMK,EAAI,MAAM,CACd,OAAQA,EAAI,MAAM,CAChB,EAAGA,EAAI,OAAO,WACd,EAAGA,EAAI,OAAO,UACf,CAAA,EAAE,WACH,OAAQA,EAAI,MAAM,CAChB,EAAGA,EAAI,OAAO,WACd,EAAGA,EAAI,OAAO,UACf,CAAA,EAAE,UAAA,CACJ,CACH","x_google_ignoreList":[0]}
|
package/dist/index.cjs188.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const e=require("./index.cjs64.js"),o=require("react");function i(c){var n=c.node,r=n===void 0?{x:0,y:0,r:15}:n;return o.createElement("circle",{cx:r.x,cy:r.y,r:r.r||15,fill:"#21D4FD"})}i.propTypes={node:e.shape({x:e.number.isRequired,y:e.number.isRequired,r:e.number})};module.exports=i;
|
2
2
|
//# sourceMappingURL=index.cjs188.js.map
|
package/dist/index.cjs188.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs188.js","sources":["../../../node_modules/
|
1
|
+
{"version":3,"file":"index.cjs188.js","sources":["../../../node_modules/@visx/hierarchy/esm/HierarchyDefaultNode.js"],"sourcesContent":["import _pt from \"prop-types\";\nimport React from 'react';\nexport default function HierarchyDefaultNode(_ref) {\n var _ref$node = _ref.node,\n node = _ref$node === void 0 ? {\n x: 0,\n y: 0,\n r: 15\n } : _ref$node;\n return /*#__PURE__*/React.createElement(\"circle\", {\n cx: node.x,\n cy: node.y,\n r: node.r || 15,\n fill: \"#21D4FD\"\n });\n}\nHierarchyDefaultNode.propTypes = {\n node: _pt.shape({\n x: _pt.number.isRequired,\n y: _pt.number.isRequired,\n r: _pt.number\n })\n};"],"names":["HierarchyDefaultNode","_ref","_ref$node","node","React","_pt"],"mappings":"oEAEA,SAAwBA,EAAqBC,EAAM,CACjD,IAAIC,EAAYD,EAAK,KACnBE,EAAOD,IAAc,OAAS,CAC5B,EAAG,EACH,EAAG,EACH,EAAG,EACD,EAAAA,EACc,OAAAE,EAAM,cAAc,SAAU,CAChD,GAAID,EAAK,EACT,GAAIA,EAAK,EACT,EAAGA,EAAK,GAAK,GACb,KAAM,SAAA,CACP,CACH,CACAH,EAAqB,UAAY,CAC/B,KAAMK,EAAI,MAAM,CACd,EAAGA,EAAI,OAAO,WACd,EAAGA,EAAI,OAAO,WACd,EAAGA,EAAI,MAAA,CACR,CACH","x_google_ignoreList":[0]}
|
package/dist/index.cjs189.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const k=require("./index.cjs37.js");function R(r,n){return r.parent===n.parent?1:2}function S(r){var n=r.children;return n?n[0]:r.t}function B(r){var n=r.children;return n?n[n.length-1]:r.t}function W(r,n,c){var l=c/(n.i-r.i);n.c-=l,n.s+=c,r.c+=l,n.z+=c,n.m+=c}function b(r){for(var n=0,c=0,l=r.children,u=l.length,s;--u>=0;)s=l[u],s.z+=n,s.m+=n,n+=s.s+(c+=s.c)}function j(r,n,c){return r.a.parent===n.parent?r.a:c}function A(r,n){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}A.prototype=Object.create(k.Node.prototype);function o(r){for(var n=new A(r,0),c,l=[n],u,s,x,y;c=l.pop();)if(s=c._.children)for(c.children=new Array(y=s.length),x=y-1;x>=0;--x)l.push(u=c.children[x]=new A(s[x],x)),u.parent=c;return(n.parent=new A(null,0)).children=[n],n}function q(){var r=R,n=1,c=1,l=null;function u(e){var f=o(e);if(f.eachAfter(s),f.parent.m=-f.z,f.eachBefore(x),l)e.eachBefore(N);else{var d=e,t=e,a=e;e.eachBefore(function(i){i.x<d.x&&(d=i),i.x>t.x&&(t=i),i.depth>a.depth&&(a=i)});var h=d===t?1:r(d,t)/2,z=h-d.x,g=n/(t.x+h+z),_=c/(a.depth||1);e.eachBefore(function(i){i.x=(i.x+z)*g,i.y=i.depth*_})}return e}function s(e){var f=e.children,d=e.parent.children,t=e.i?d[e.i-1]:null;if(f){b(e);var a=(f[0].z+f[f.length-1].z)/2;t?(e.z=t.z+r(e._,t._),e.m=e.z-a):e.z=a}else t&&(e.z=t.z+r(e._,t._));e.parent.A=y(e,t,e.parent.A||d[0])}function x(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function y(e,f,d){if(f){for(var t=e,a=e,h=f,z=t.parent.children[0],g=t.m,_=a.m,i=h.m,w=z.m,p;h=B(h),t=S(t),h&&t;)z=S(z),a=B(a),a.a=e,p=h.z+i-t.z-g+r(h._,t._),p>0&&(W(j(h,e,d),e,p),g+=p,_+=p),i+=h.m,g+=t.m,w+=z.m,_+=a.m;h&&!B(a)&&(a.t=h,a.m+=i-_),t&&!S(z)&&(z.t=t,z.m+=g-w,d=e)}return d}function N(e){e.x*=n,e.y=e.depth*c}return u.separation=function(e){return arguments.length?(r=e,u):r},u.size=function(e){return arguments.length?(l=!1,n=+e[0],c=+e[1],u):l?null:[n,c]},u.nodeSize=function(e){return arguments.length?(l=!0,n=+e[0],c=+e[1],u):l?[n,c]:null},u}module.exports=q;
|
2
2
|
//# sourceMappingURL=index.cjs189.js.map
|
package/dist/index.cjs189.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs189.js","sources":["../../../node_modules/d3-path/src/path.js"],"sourcesContent":["var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n"],"names":["pi","tau","epsilon","tauEpsilon","Path","path","x","y","x1","y1","x2","y2","r","x0","y0","x21","y21","x01","y01","l01_2","x20","y20","l21_2","l20_2","l21","l01","l","t01","t21","a0","a1","ccw","dx","dy","cw","da","w"],"mappings":"aAAA,IAAIA,EAAK,KAAK,GACVC,EAAM,EAA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AAI0B,EACTC,EAAK,EAAIH,EACTI,EAAKJ,EAAMF,EAAKC,EAAKA,EAAKD,EAG9B,GAAIjB,EAAI,EAAS,MAAA,IAAI,MAAM,oBAAsBA,CAAC,EAG9C,KAAK,MAAQ,KACV,KAAA,GAAK,IAAMC,EAAK,IAAMC,GAIpB,KAAK,IAAI,KAAK,IAAMD,CAAE,EAAIX,GAAW,KAAK,IAAI,KAAK,IAAMY,CAAE,EAAIZ,KACjE,KAAA,GAAK,IAAMW,EAAK,IAAMC,GAIxBF,IAGDuB,EAAK,IAAGA,EAAKA,EAAKlC,EAAMA,GAGxBkC,EAAKhC,EACF,KAAA,GAAK,IAAMS,EAAI,IAAMA,EAAI,QAAUsB,EAAK,KAAO5B,EAAI0B,GAAM,KAAOzB,EAAI0B,GAAM,IAAMrB,EAAI,IAAMA,EAAI,QAAUsB,EAAK,KAAO,KAAK,IAAMrB,GAAM,KAAO,KAAK,IAAMC,GAIrJqB,EAAKjC,IACP,KAAA,GAAK,IAAMU,EAAI,IAAMA,EAAI,OAAS,EAAEuB,GAAMnC,GAAO,IAAMkC,EAAK,KAAO,KAAK,IAAM5B,EAAIM,EAAI,KAAK,IAAIkB,CAAE,GAAK,KAAO,KAAK,IAAMvB,EAAIK,EAAI,KAAK,IAAIkB,CAAE,IAEpJ,EACA,KAAM,SAASxB,EAAGC,EAAG6B,EAAG,EAAG,CACpB,KAAA,GAAK,KAAO,KAAK,IAAM,KAAK,IAAM,CAAC9B,GAAK,KAAO,KAAK,IAAM,KAAK,IAAM,CAACC,GAAK,KAAO,CAAC6B,EAAK,KAAO,CAAC,EAAK,IAAO,CAACA,EAAK,GACzH,EACA,SAAU,UAAW,CACnB,OAAO,KAAK,CACd,CACF","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.cjs189.js","sources":["../../../node_modules/d3-hierarchy/src/tree.js"],"sourcesContent":["import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n"],"names":["defaultSeparation","a","b","nextLeft","v","children","nextRight","moveSubtree","wm","wp","shift","change","executeShifts","i","w","nextAncestor","vim","ancestor","TreeNode","node","Node","treeRoot","root","tree","nodes","child","n","d3tree","separation","dx","dy","nodeSize","t","firstWalk","secondWalk","sizeNode","left","right","bottom","s","tx","kx","ky","siblings","midpoint","apportion","vip","vop","vom","sip","sop","sim","som","x"],"mappings":"iDAEA,SAASA,EAAkBC,EAAGC,EAAG,CAC/B,OAAOD,EAAE,SAAWC,EAAE,OAAS,EAAI,CACrC,CAUA,SAASC,EAASC,EAAG,CACnB,IAAIC,EAAWD,EAAE,SACjB,OAAOC,EAAWA,EAAS,CAAC,EAAID,EAAE,CACpC,CAGA,SAASE,EAAUF,EAAG,CACpB,IAAIC,EAAWD,EAAE,SACjB,OAAOC,EAAWA,EAASA,EAAS,OAAS,CAAC,EAAID,EAAE,CACtD,CAIA,SAASG,EAAYC,EAAIC,EAAIC,EAAO,CAClC,IAAIC,EAASD,GAASD,EAAG,EAAID,EAAG,GAChCC,EAAG,GAAKE,EACRF,EAAG,GAAKC,EACRF,EAAG,GAAKG,EACRF,EAAG,GAAKC,EACRD,EAAG,GAAKC,CACV,CAKA,SAASE,EAAcR,EAAG,CAMjB,QALHM,EAAQ,EACRC,EAAS,EACTN,EAAWD,EAAE,SACbS,EAAIR,EAAS,OACbS,EACG,EAAED,GAAK,GACZC,EAAIT,EAASQ,CAAC,EACdC,EAAE,GAAKJ,EACPI,EAAE,GAAKJ,EACEA,GAAAI,EAAE,GAAKH,GAAUG,EAAE,EAEhC,CAIA,SAASC,EAAaC,EAAKZ,EAAGa,EAAU,CACtC,OAAOD,EAAI,EAAE,SAAWZ,EAAE,OAASY,EAAI,EAAIC,CAC7C,CAEA,SAASC,EAASC,EAAMN,EAAG,CACzB,KAAK,EAAIM,EACT,KAAK,OAAS,KACd,KAAK,SAAW,KAChB,KAAK,EAAI,KACT,KAAK,EAAI,KACT,KAAK,EAAI,EACT,KAAK,EAAI,EACT,KAAK,EAAI,EACT,KAAK,EAAI,EACT,KAAK,EAAI,KACT,KAAK,EAAIN,CACX,CAEAK,EAAS,UAAY,OAAO,OAAOE,EAAA,KAAK,SAAS,EAEjD,SAASC,E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AAC,EACvDpC,EAAQ,IACVH,EAAYQ,EAAaC,EAAKZ,EAAGa,CAAQ,EAAGb,EAAGM,CAAK,EAC7CuC,GAAAvC,EACAwC,GAAAxC,GAETyC,GAAOnC,EAAI,EACXiC,GAAOH,EAAI,EACXM,GAAOJ,EAAI,EACXE,GAAOH,EAAI,EAET/B,GAAO,CAACV,EAAUyC,CAAG,IACvBA,EAAI,EAAI/B,EACR+B,EAAI,GAAKI,EAAMD,GAEbJ,GAAO,CAAC3C,EAAS6C,CAAG,IACtBA,EAAI,EAAIF,EACRE,EAAI,GAAKC,EAAMG,EACJnC,EAAAb,EAEf,CACO,OAAAa,CACT,CAEA,SAASkB,EAAShB,EAAM,CACtBA,EAAK,GAAKU,EACLV,EAAA,EAAIA,EAAK,MAAQW,CACxB,CAEK,OAAAP,EAAA,WAAa,SAAS8B,EAAG,CAC5B,OAAO,UAAU,QAAUzB,EAAayB,EAAG9B,GAAQK,CAAA,EAGhDL,EAAA,KAAO,SAAS8B,EAAG,CACtB,OAAO,UAAU,QAAUtB,EAAW,GAAOF,EAAK,CAACwB,EAAE,CAAC,EAAGvB,EAAK,CAACuB,EAAE,CAAC,EAAG9B,GAASQ,EAAW,KAAO,CAACF,EAAIC,CAAE,CAAA,EAGpGP,EAAA,SAAW,SAAS8B,EAAG,CAC1B,OAAO,UAAU,QAAUtB,EAAW,GAAMF,EAAK,CAACwB,EAAE,CAAC,EAAGvB,EAAK,CAACuB,EAAE,CAAC,EAAG9B,GAASQ,EAAW,CAACF,EAAIC,CAAE,EAAI,IAAA,EAG9FP,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs19.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const l=require("./index.cjs78.js"),h=require("./index.
|
1
|
+
"use strict";const l=require("./index.cjs78.js"),h=require("./index.cjs216.js"),i=require("./index.cjs10.js");var a=l(function(o,e){var c=a.placeholder,s=function(){for(var t=0,u=e.length,n=Array(u),r=0;r<u;r++)n[r]=e[r]===c?arguments[t++]:e[r];for(;t<arguments.length;)n.push(arguments[t++]);return h(o,s,this,this,n)};return s});a.placeholder=i;module.exports=a;
|
2
2
|
//# sourceMappingURL=index.cjs19.js.map
|
package/dist/index.cjs196.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs278.js");function it(s,t){if(typeof s!="object"||s===null)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var i=e.call(s,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function ot(s){var t=it(s,"string");return typeof t=="symbol"?t:String(t)}function f(s,t,e){return t=ot(t),t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}function V(s,t){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),e.push.apply(e,i)}return e}function h(s){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?V(Object(e),!0).forEach(function(i){f(s,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):V(Object(e)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(e,i))})}return s}const j={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function P(s){return s?s[0].toUpperCase()+s.slice(1):""}const nt=["enter","leave"];function rt(s=!1,t){return s&&!nt.includes(t)}function at(s,t="",e=!1){const i=j[s],o=i&&i[t]||t;return"on"+P(s)+P(o)+(rt(e,o)?"Capture":"")}const ct=["gotpointercapture","lostpointercapture"];function ht(s){let t=s.substring(2).toLowerCase();const e=!!~t.indexOf("passive");e&&(t=t.replace("passive",""));const i=ct.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(i);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:e}}function ut(s,t=""){const e=j[s],i=e&&e[t]||t;return s+i}function S(s){return"touches"in s}function H(s){return S(s)?"touch":"pointerType"in s?s.pointerType:"mouse"}function lt(s){return Array.from(s.touches).filter(t=>{var e,i;return t.target===s.currentTarget||((e=s.currentTarget)===null||e===void 0||(i=e.contains)===null||i===void 0?void 0:i.call(e,t.target))})}function ft(s){return s.type==="touchend"||s.type==="touchcancel"?s.changedTouches:s.targetTouches}function X(s){return S(s)?ft(s)[0]:s}function C(s,t){try{const e=t.clientX-s.clientX,i=t.clientY-s.clientY,o=(t.clientX+s.clientX)/2,n=(t.clientY+s.clientY)/2,r=Math.hypot(e,i);return{angle:-(Math.atan2(e,i)*180)/Math.PI,distance:r,origin:[o,n]}}catch{}return null}function dt(s){return lt(s).map(t=>t.identifier)}function M(s,t){const[e,i]=Array.from(s.touches).filter(o=>t.includes(o.identifier));return C(e,i)}function x(s){const t=X(s);return S(s)?t.identifier:t.pointerId}function _(s){const t=X(s);return[t.clientX,t.clientY]}const L=40,N=800;function W(s){let{deltaX:t,deltaY:e,deltaMode:i}=s;return i===1?(t*=L,e*=L):i===2&&(t*=N,e*=N),[t,e]}function pt(s){var t,e;const{scrollX:i,scrollY:o,scrollLeft:n,scrollTop:r}=s.currentTarget;return[(t=i??n)!==null&&t!==void 0?t:0,(e=o??r)!==null&&e!==void 0?e:0]}function mt(s){const t={};if("buttons"in s&&(t.buttons=s.buttons),"shiftKey"in s){const{shiftKey:e,altKey:i,metaKey:o,ctrlKey:n}=s;Object.assign(t,{shiftKey:e,altKey:i,metaKey:o,ctrlKey:n})}return t}function I(s,...t){return typeof s=="function"?s(...t):s}function gt(){}function _t(...s){return s.length===0?gt:s.length===1?s[0]:function(){let t;for(const e of s)t=e.apply(this,arguments)||t;return t}}function K(s,t){return Object.assign({},t,s||{})}const vt=32;class z{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:o}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?I(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:o}=this;e.args=this.args;let n=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,mt(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,n=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const m=e._delta.map(Math.abs);a.V.addTo(e._distance,m)}this.axisIntent&&this.axisIntent(t);const[r,u]=e._movement,[p,v]=i.threshold,{_step:c,values:y}=e;if(i.hasCustomTransform?(c[0]===!1&&(c[0]=Math.abs(r)>=p&&y[0]),c[1]===!1&&(c[1]=Math.abs(u)>=v&&y[1])):(c[0]===!1&&(c[0]=Math.abs(r)>=p&&Math.sign(r)*p),c[1]===!1&&(c[1]=Math.abs(u)>=v&&Math.sign(u)*v)),e.intentional=c[0]!==!1||c[1]!==!1,!e.intentional)return;const d=[0,0];if(i.hasCustomTransform){const[m,st]=y;d[0]=c[0]!==!1?m-c[0]:0,d[1]=c[1]!==!1?st-c[1]:0}else d[0]=c[0]!==!1?r-c[0]:0,d[1]=c[1]!==!1?u-c[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(d);const w=e.offset,T=e._active&&!e._blocked||e.active;T&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=o[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=I(i.bounds,e)),this.setup&&this.setup()),e.movement=d,this.computeOffset()));const[D,A]=e.offset,[[k,Q],[Z,tt]]=e._bounds;e.overflow=[D<k?-1:D>Q?1:0,A<Z?-1:A>tt?1:0],e._movementBound[0]=e.overflow[0]?e._movementBound[0]===!1?e._movement[0]:e._movementBound[0]:!1,e._movementBound[1]=e.overflow[1]?e._movementBound[1]===!1?e._movement[1]:e._movementBound[1]:!1;const et=e._active?i.rubberband||[0,0]:[0,0];if(e.offset=a.c(e._bounds,e.offset,et),e.delta=a.V.sub(e.offset,w),this.computeMovement(),T&&(!e.last||n>vt)){e.delta=a.V.sub(e.offset,w);const m=e.delta.map(Math.abs);a.V.addTo(e.distance,m),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&n>0&&(e.velocity=[m[0]/n,m[1]/n],e.timeDelta=n)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const o=this.handler(h(h(h({},e),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function yt([s,t],e){const i=Math.abs(s),o=Math.abs(t);if(i>o&&i>e)return"x";if(o>i&&o>e)return"y"}class b extends z{constructor(...t){super(...t),f(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=a.V.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=a.V.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const o=typeof i.axisThreshold=="object"?i.axisThreshold[H(t)]:i.axisThreshold;e.axis=yt(e._movement,o)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const R=s=>s,U=.15,O={enabled(s=!0){return s},eventOptions(s,t,e){return h(h({},e.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[U,U];case!1:return[0,0];default:return a.V.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return a.V.toVector(s)},transform(s,t,e){const i=s||e.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const o=i||R;return n=>{const r=o(n);return(!isFinite(r[0])||!isFinite(r[1]))&&console.warn(`[@use-gesture]: config.transform() must produce a valid result, but it was: [${r[0]},${[1]}]`),r}}return i||R},threshold(s){return a.V.toVector(s,0)}};process.env.NODE_ENV==="development"&&Object.assign(O,{domTarget(s){if(s!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(s){if(s!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(s){if(s!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const bt=0,g=h(h({},O),{},{axis(s,t,{axis:e}){if(this.lockDirection=e==="lock",!this.lockDirection)return e},axisThreshold(s=bt){return s},bounds(s={}){if(typeof s=="function")return n=>g.bounds(s(n));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:t=-1/0,right:e=1/0,top:i=-1/0,bottom:o=1/0}=s;return[[t,e],[i,o]]}}),B={ArrowRight:(s,t=1)=>[s*t,0],ArrowLeft:(s,t=1)=>[-1*s*t,0],ArrowUp:(s,t=1)=>[0,-1*s*t],ArrowDown:(s,t=1)=>[0,s*t]};class Et extends b{constructor(...t){super(...t),f(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),o={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=g.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):e.pointerButtons!==-1&&e.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=x(t),i._pointerActive=!0,this.computeValues(_(t)),this.computeInitial(),e.preventScrollAxis&&H(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const o=x(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;const n=_(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=a.V.sub(n,e._values),this.computeValues(n)),a.V.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!e._preventScroll)if(e.axis)if(e.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){e._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{process.env.NODE_ENV==="development"&&console.warn("[@use-gesture]: If you see this message, it's likely that you're using an outdated version of `@react-three/fiber`. \n\nPlease upgrade to the latest version.")}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const o=x(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[n,r]=e._distance;if(e.tap=n<=i.tapsThreshold&&r<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[u,p]=e._delta,[v,c]=e._movement,[y,d]=i.swipe.velocity,[w,T]=i.swipe.distance,D=i.swipe.duration;if(e.elapsedTime<D){const A=Math.abs(u/e.timeDelta),k=Math.abs(p/e.timeDelta);A>y&&Math.abs(v)>w&&(e.swipe[0]=Math.sign(u)),k>d&&Math.abs(c)>T&&(e.swipe[1]=Math.sign(p))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&e.preventScrollDelay===void 0){const o="uv"in t?t.sourceEvent.currentTarget:t.currentTarget;window.getComputedStyle(o).touchAction==="auto"&&console.warn("[@use-gesture]: The drag target has its `touch-action` style property set to `auto`. It is recommended to add `touch-action: 'none'` so that the drag gesture behaves correctly on touch-enabled devices. For more information read this: https://use-gesture.netlify.app/docs/extras/#touch-action.\n\nThis message will only show in development mode. It won't appear in production. If this is intended, you can ignore it.",o)}}catch{}e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,wt(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=B[t.key];if(e){const i=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,o),i._keyboardActive=!0,a.V.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in B&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function wt(s){"persist"in s&&typeof s.persist=="function"&&s.persist()}const E=typeof window<"u"&&window.document&&window.document.createElement;function G(){return E&&"ontouchstart"in window}function Tt(){return G()||E&&window.navigator.maxTouchPoints>1}function Dt(){return E&&"onpointerdown"in window}function At(){return E&&"exitPointerLock"in window.document}function It(){try{return"constructor"in GestureEvent}catch{return!1}}const l={isBrowser:E,gesture:It(),touch:G(),touchscreen:Tt(),pointer:Dt(),pointerLock:At()},St=250,kt=180,xt=.5,Ct=50,Ot=250,Vt=10,Y={mouse:0,touch:0,pen:8},$=h(h({},g),{},{device(s,t,{pointer:{touch:e=!1,lock:i=!1,mouse:o=!1}={}}){return this.pointerLock=i&&l.pointerLock,l.touch&&e?"touch":this.pointerLock?"mouse":l.pointer&&!o?"pointer":l.touch?"touch":"mouse"},preventScrollAxis(s,t,{preventScroll:e}){if(this.preventScrollDelay=typeof e=="number"?e:e||e===void 0&&s?St:void 0,!(!l.touchscreen||e===!1))return s||(e!==void 0?"y":void 0)},pointerCapture(s,t,{pointer:{capture:e=!0,buttons:i=1,keys:o=!0}={}}){return this.pointerButtons=i,this.keys=o,!this.pointerLock&&this.device==="pointer"&&e},threshold(s,t,{filterTaps:e=!1,tapsThreshold:i=3,axis:o=void 0}){const n=a.V.toVector(s,e?i:o?1:0);return this.filterTaps=e,this.tapsThreshold=i,n},swipe({velocity:s=xt,distance:t=Ct,duration:e=Ot}={}){return{velocity:this.transform(a.V.toVector(s)),distance:this.transform(a.V.toVector(t)),duration:e}},delay(s=0){switch(s){case!0:return kt;case!1:return 0;default:return s}},axisThreshold(s){return s?h(h({},Y),s):Y},keyboardDisplacement(s=Vt){return s}});process.env.NODE_ENV==="development"&&Object.assign($,{useTouch(s){if(s!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(s){if(s!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}});function q(s){const[t,e]=s.overflow,[i,o]=s._delta,[n,r]=s._direction;(t<0&&i>0&&n<0||t>0&&i<0&&n>0)&&(s._movement[0]=s._movementBound[0]),(e<0&&o>0&&r<0||e>0&&o<0&&r>0)&&(s._movement[1]=s._movementBound[1])}const Pt=30,Mt=100;class Lt extends z{constructor(...t){super(...t),f(this,"ingKey","pinching"),f(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;t==="wheel"?this.state.offset=a.V.add(e,i):this.state.offset=[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const o=Math.abs(e)*Pt-Math.abs(i);o<0?t.axis="angle":o>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(n=>i.has(n))||i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const o=M(t,e._touchIds);o&&this.pinchStart(t,o)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,o=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(r=>o.has(r))||(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2))return;this.start(t);const n=C(...Array.from(i.values()));n&&this.pinchStart(t,n)}pinchStart(t,e){const i=this.state;i.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=M(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=C(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,o=i._values[1],n=e.angle-o;let r=0;Math.abs(n)>270&&(r+=Math.sign(n)),this.computeValues([e.distance,e.angle-360*r]),i.origin=e.origin,i.turns=r,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch{}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=a.V.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&(Array.isArray(e)?!e.find(i=>t[i]):!t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||(t.cancelable&&t.preventDefault(),process.env.NODE_ENV==="development"&&!t.defaultPrevented&&console.warn("[@use-gesture]: To properly support zoom on trackpads, try using the `target` option.\n\nThis message will only appear in development mode."));const i=this.state;i._delta=[-W(t)[1]/Mt*i.offset[0],0],a.V.addTo(i._movement,i._delta),q(i),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Nt=h(h({},O),{},{device(s,t,{shared:e,pointer:{touch:i=!1}={}}){if(e.target&&!l.touch&&l.gesture)return"gesture";if(l.touch&&i)return"touch";if(l.touchscreen){if(l.pointer)return"pointer";if(l.touch)return"touch"}},bounds(s,t,{scaleBounds:e={},angleBounds:i={}}){const o=r=>{const u=K(I(e,r),{min:-1/0,max:1/0});return[u.min,u.max]},n=r=>{const u=K(I(i,r),{min:-1/0,max:1/0});return[u.min,u.max]};return typeof e!="function"&&typeof i!="function"?[o(),n()]:r=>[o(r),n(r)]},threshold(s,t,e){return this.lockDirection=e.axis==="lock",a.V.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});class Kt extends b{constructor(...t){super(...t),f(this,"ingKey","moving")}move(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(_(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=_(t),i=this.state;i._delta=a.V.sub(e,i._values),a.V.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}}const Rt=h(h({},g),{},{mouseOnly:(s=!0)=>s});class Ut extends b{constructor(...t){super(...t),f(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=pt(t);e._delta=a.V.sub(i,e._values),a.V.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}}const Bt=g;class Yt extends b{constructor(...t){super(...t),f(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=W(t),a.V.addTo(e._movement,e._delta),q(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const jt=g;class Ht extends b{constructor(...t){super(...t),f(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.start(t),this.computeValues(_(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&&t.pointerType!=="mouse")return;const e=this.state;if(!e._active)return;e._active=!1;const i=_(t);e._movement=e._delta=a.V.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}}const Xt=h(h({},g),{},{mouseOnly:(s=!0)=>s}),F=new Map,J=new Map;function Wt(s){F.set(s.key,s.engine),J.set(s.key,s.resolver)}const zt={key:"drag",engine:Et,resolver:$},Gt={key:"hover",engine:Ht,resolver:Xt},$t={key:"move",engine:Kt,resolver:Rt},qt={key:"pinch",engine:Lt,resolver:Nt},Ft={key:"scroll",engine:Ut,resolver:Bt},Jt={key:"wheel",engine:Yt,resolver:jt};exports.C=J;exports.E=F;exports.S=l;exports._=h;exports.a=f;exports.b=dt;exports.c=_t;exports.d=at;exports.e=zt;exports.f=qt;exports.h=Gt;exports.i=S;exports.m=$t;exports.p=ht;exports.r=Wt;exports.s=Ft;exports.t=ut;exports.w=Jt;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs271.js");function it(s,t){if(typeof s!="object"||s===null)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var i=e.call(s,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function ot(s){var t=it(s,"string");return typeof t=="symbol"?t:String(t)}function f(s,t,e){return t=ot(t),t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}function V(s,t){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),e.push.apply(e,i)}return e}function h(s){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?V(Object(e),!0).forEach(function(i){f(s,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):V(Object(e)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(e,i))})}return s}const j={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function P(s){return s?s[0].toUpperCase()+s.slice(1):""}const nt=["enter","leave"];function rt(s=!1,t){return s&&!nt.includes(t)}function at(s,t="",e=!1){const i=j[s],o=i&&i[t]||t;return"on"+P(s)+P(o)+(rt(e,o)?"Capture":"")}const ct=["gotpointercapture","lostpointercapture"];function ht(s){let t=s.substring(2).toLowerCase();const e=!!~t.indexOf("passive");e&&(t=t.replace("passive",""));const i=ct.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(i);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:e}}function ut(s,t=""){const e=j[s],i=e&&e[t]||t;return s+i}function S(s){return"touches"in s}function H(s){return S(s)?"touch":"pointerType"in s?s.pointerType:"mouse"}function lt(s){return Array.from(s.touches).filter(t=>{var e,i;return t.target===s.currentTarget||((e=s.currentTarget)===null||e===void 0||(i=e.contains)===null||i===void 0?void 0:i.call(e,t.target))})}function ft(s){return s.type==="touchend"||s.type==="touchcancel"?s.changedTouches:s.targetTouches}function X(s){return S(s)?ft(s)[0]:s}function C(s,t){try{const e=t.clientX-s.clientX,i=t.clientY-s.clientY,o=(t.clientX+s.clientX)/2,n=(t.clientY+s.clientY)/2,r=Math.hypot(e,i);return{angle:-(Math.atan2(e,i)*180)/Math.PI,distance:r,origin:[o,n]}}catch{}return null}function dt(s){return lt(s).map(t=>t.identifier)}function M(s,t){const[e,i]=Array.from(s.touches).filter(o=>t.includes(o.identifier));return C(e,i)}function x(s){const t=X(s);return S(s)?t.identifier:t.pointerId}function _(s){const t=X(s);return[t.clientX,t.clientY]}const L=40,N=800;function W(s){let{deltaX:t,deltaY:e,deltaMode:i}=s;return i===1?(t*=L,e*=L):i===2&&(t*=N,e*=N),[t,e]}function pt(s){var t,e;const{scrollX:i,scrollY:o,scrollLeft:n,scrollTop:r}=s.currentTarget;return[(t=i??n)!==null&&t!==void 0?t:0,(e=o??r)!==null&&e!==void 0?e:0]}function mt(s){const t={};if("buttons"in s&&(t.buttons=s.buttons),"shiftKey"in s){const{shiftKey:e,altKey:i,metaKey:o,ctrlKey:n}=s;Object.assign(t,{shiftKey:e,altKey:i,metaKey:o,ctrlKey:n})}return t}function I(s,...t){return typeof s=="function"?s(...t):s}function gt(){}function _t(...s){return s.length===0?gt:s.length===1?s[0]:function(){let t;for(const e of s)t=e.apply(this,arguments)||t;return t}}function K(s,t){return Object.assign({},t,s||{})}const vt=32;class z{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:o}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?I(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:o}=this;e.args=this.args;let n=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,mt(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,n=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const m=e._delta.map(Math.abs);a.V.addTo(e._distance,m)}this.axisIntent&&this.axisIntent(t);const[r,u]=e._movement,[p,v]=i.threshold,{_step:c,values:y}=e;if(i.hasCustomTransform?(c[0]===!1&&(c[0]=Math.abs(r)>=p&&y[0]),c[1]===!1&&(c[1]=Math.abs(u)>=v&&y[1])):(c[0]===!1&&(c[0]=Math.abs(r)>=p&&Math.sign(r)*p),c[1]===!1&&(c[1]=Math.abs(u)>=v&&Math.sign(u)*v)),e.intentional=c[0]!==!1||c[1]!==!1,!e.intentional)return;const d=[0,0];if(i.hasCustomTransform){const[m,st]=y;d[0]=c[0]!==!1?m-c[0]:0,d[1]=c[1]!==!1?st-c[1]:0}else d[0]=c[0]!==!1?r-c[0]:0,d[1]=c[1]!==!1?u-c[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(d);const w=e.offset,T=e._active&&!e._blocked||e.active;T&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=o[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=I(i.bounds,e)),this.setup&&this.setup()),e.movement=d,this.computeOffset()));const[D,A]=e.offset,[[k,Q],[Z,tt]]=e._bounds;e.overflow=[D<k?-1:D>Q?1:0,A<Z?-1:A>tt?1:0],e._movementBound[0]=e.overflow[0]?e._movementBound[0]===!1?e._movement[0]:e._movementBound[0]:!1,e._movementBound[1]=e.overflow[1]?e._movementBound[1]===!1?e._movement[1]:e._movementBound[1]:!1;const et=e._active?i.rubberband||[0,0]:[0,0];if(e.offset=a.c(e._bounds,e.offset,et),e.delta=a.V.sub(e.offset,w),this.computeMovement(),T&&(!e.last||n>vt)){e.delta=a.V.sub(e.offset,w);const m=e.delta.map(Math.abs);a.V.addTo(e.distance,m),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&n>0&&(e.velocity=[m[0]/n,m[1]/n],e.timeDelta=n)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const o=this.handler(h(h(h({},e),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function yt([s,t],e){const i=Math.abs(s),o=Math.abs(t);if(i>o&&i>e)return"x";if(o>i&&o>e)return"y"}class b extends z{constructor(...t){super(...t),f(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=a.V.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=a.V.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const o=typeof i.axisThreshold=="object"?i.axisThreshold[H(t)]:i.axisThreshold;e.axis=yt(e._movement,o)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const R=s=>s,U=.15,O={enabled(s=!0){return s},eventOptions(s,t,e){return h(h({},e.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[U,U];case!1:return[0,0];default:return a.V.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return a.V.toVector(s)},transform(s,t,e){const i=s||e.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const o=i||R;return n=>{const r=o(n);return(!isFinite(r[0])||!isFinite(r[1]))&&console.warn(`[@use-gesture]: config.transform() must produce a valid result, but it was: [${r[0]},${[1]}]`),r}}return i||R},threshold(s){return a.V.toVector(s,0)}};process.env.NODE_ENV==="development"&&Object.assign(O,{domTarget(s){if(s!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(s){if(s!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(s){if(s!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const bt=0,g=h(h({},O),{},{axis(s,t,{axis:e}){if(this.lockDirection=e==="lock",!this.lockDirection)return e},axisThreshold(s=bt){return s},bounds(s={}){if(typeof s=="function")return n=>g.bounds(s(n));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:t=-1/0,right:e=1/0,top:i=-1/0,bottom:o=1/0}=s;return[[t,e],[i,o]]}}),B={ArrowRight:(s,t=1)=>[s*t,0],ArrowLeft:(s,t=1)=>[-1*s*t,0],ArrowUp:(s,t=1)=>[0,-1*s*t],ArrowDown:(s,t=1)=>[0,s*t]};class Et extends b{constructor(...t){super(...t),f(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),o={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=g.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):e.pointerButtons!==-1&&e.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=x(t),i._pointerActive=!0,this.computeValues(_(t)),this.computeInitial(),e.preventScrollAxis&&H(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const o=x(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;const n=_(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=a.V.sub(n,e._values),this.computeValues(n)),a.V.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!e._preventScroll)if(e.axis)if(e.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){e._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{process.env.NODE_ENV==="development"&&console.warn("[@use-gesture]: If you see this message, it's likely that you're using an outdated version of `@react-three/fiber`. \n\nPlease upgrade to the latest version.")}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const o=x(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[n,r]=e._distance;if(e.tap=n<=i.tapsThreshold&&r<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[u,p]=e._delta,[v,c]=e._movement,[y,d]=i.swipe.velocity,[w,T]=i.swipe.distance,D=i.swipe.duration;if(e.elapsedTime<D){const A=Math.abs(u/e.timeDelta),k=Math.abs(p/e.timeDelta);A>y&&Math.abs(v)>w&&(e.swipe[0]=Math.sign(u)),k>d&&Math.abs(c)>T&&(e.swipe[1]=Math.sign(p))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&e.preventScrollDelay===void 0){const o="uv"in t?t.sourceEvent.currentTarget:t.currentTarget;window.getComputedStyle(o).touchAction==="auto"&&console.warn("[@use-gesture]: The drag target has its `touch-action` style property set to `auto`. It is recommended to add `touch-action: 'none'` so that the drag gesture behaves correctly on touch-enabled devices. For more information read this: https://use-gesture.netlify.app/docs/extras/#touch-action.\n\nThis message will only show in development mode. It won't appear in production. If this is intended, you can ignore it.",o)}}catch{}e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,wt(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=B[t.key];if(e){const i=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,o),i._keyboardActive=!0,a.V.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in B&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function wt(s){"persist"in s&&typeof s.persist=="function"&&s.persist()}const E=typeof window<"u"&&window.document&&window.document.createElement;function G(){return E&&"ontouchstart"in window}function Tt(){return G()||E&&window.navigator.maxTouchPoints>1}function Dt(){return E&&"onpointerdown"in window}function At(){return E&&"exitPointerLock"in window.document}function It(){try{return"constructor"in GestureEvent}catch{return!1}}const l={isBrowser:E,gesture:It(),touch:G(),touchscreen:Tt(),pointer:Dt(),pointerLock:At()},St=250,kt=180,xt=.5,Ct=50,Ot=250,Vt=10,Y={mouse:0,touch:0,pen:8},$=h(h({},g),{},{device(s,t,{pointer:{touch:e=!1,lock:i=!1,mouse:o=!1}={}}){return this.pointerLock=i&&l.pointerLock,l.touch&&e?"touch":this.pointerLock?"mouse":l.pointer&&!o?"pointer":l.touch?"touch":"mouse"},preventScrollAxis(s,t,{preventScroll:e}){if(this.preventScrollDelay=typeof e=="number"?e:e||e===void 0&&s?St:void 0,!(!l.touchscreen||e===!1))return s||(e!==void 0?"y":void 0)},pointerCapture(s,t,{pointer:{capture:e=!0,buttons:i=1,keys:o=!0}={}}){return this.pointerButtons=i,this.keys=o,!this.pointerLock&&this.device==="pointer"&&e},threshold(s,t,{filterTaps:e=!1,tapsThreshold:i=3,axis:o=void 0}){const n=a.V.toVector(s,e?i:o?1:0);return this.filterTaps=e,this.tapsThreshold=i,n},swipe({velocity:s=xt,distance:t=Ct,duration:e=Ot}={}){return{velocity:this.transform(a.V.toVector(s)),distance:this.transform(a.V.toVector(t)),duration:e}},delay(s=0){switch(s){case!0:return kt;case!1:return 0;default:return s}},axisThreshold(s){return s?h(h({},Y),s):Y},keyboardDisplacement(s=Vt){return s}});process.env.NODE_ENV==="development"&&Object.assign($,{useTouch(s){if(s!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(s){if(s!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(s){if(s!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}});function q(s){const[t,e]=s.overflow,[i,o]=s._delta,[n,r]=s._direction;(t<0&&i>0&&n<0||t>0&&i<0&&n>0)&&(s._movement[0]=s._movementBound[0]),(e<0&&o>0&&r<0||e>0&&o<0&&r>0)&&(s._movement[1]=s._movementBound[1])}const Pt=30,Mt=100;class Lt extends z{constructor(...t){super(...t),f(this,"ingKey","pinching"),f(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;t==="wheel"?this.state.offset=a.V.add(e,i):this.state.offset=[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const o=Math.abs(e)*Pt-Math.abs(i);o<0?t.axis="angle":o>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(n=>i.has(n))||i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const o=M(t,e._touchIds);o&&this.pinchStart(t,o)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,o=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(r=>o.has(r))||(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2))return;this.start(t);const n=C(...Array.from(i.values()));n&&this.pinchStart(t,n)}pinchStart(t,e){const i=this.state;i.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=M(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=C(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,o=i._values[1],n=e.angle-o;let r=0;Math.abs(n)>270&&(r+=Math.sign(n)),this.computeValues([e.distance,e.angle-360*r]),i.origin=e.origin,i.turns=r,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch{}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=a.V.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&(Array.isArray(e)?!e.find(i=>t[i]):!t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||(t.cancelable&&t.preventDefault(),process.env.NODE_ENV==="development"&&!t.defaultPrevented&&console.warn("[@use-gesture]: To properly support zoom on trackpads, try using the `target` option.\n\nThis message will only appear in development mode."));const i=this.state;i._delta=[-W(t)[1]/Mt*i.offset[0],0],a.V.addTo(i._movement,i._delta),q(i),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Nt=h(h({},O),{},{device(s,t,{shared:e,pointer:{touch:i=!1}={}}){if(e.target&&!l.touch&&l.gesture)return"gesture";if(l.touch&&i)return"touch";if(l.touchscreen){if(l.pointer)return"pointer";if(l.touch)return"touch"}},bounds(s,t,{scaleBounds:e={},angleBounds:i={}}){const o=r=>{const u=K(I(e,r),{min:-1/0,max:1/0});return[u.min,u.max]},n=r=>{const u=K(I(i,r),{min:-1/0,max:1/0});return[u.min,u.max]};return typeof e!="function"&&typeof i!="function"?[o(),n()]:r=>[o(r),n(r)]},threshold(s,t,e){return this.lockDirection=e.axis==="lock",a.V.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});class Kt extends b{constructor(...t){super(...t),f(this,"ingKey","moving")}move(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(_(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=_(t),i=this.state;i._delta=a.V.sub(e,i._values),a.V.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}}const Rt=h(h({},g),{},{mouseOnly:(s=!0)=>s});class Ut extends b{constructor(...t){super(...t),f(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=pt(t);e._delta=a.V.sub(i,e._values),a.V.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}}const Bt=g;class Yt extends b{constructor(...t){super(...t),f(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=W(t),a.V.addTo(e._movement,e._delta),q(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const jt=g;class Ht extends b{constructor(...t){super(...t),f(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.start(t),this.computeValues(_(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&&t.pointerType!=="mouse")return;const e=this.state;if(!e._active)return;e._active=!1;const i=_(t);e._movement=e._delta=a.V.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}}const Xt=h(h({},g),{},{mouseOnly:(s=!0)=>s}),F=new Map,J=new Map;function Wt(s){F.set(s.key,s.engine),J.set(s.key,s.resolver)}const zt={key:"drag",engine:Et,resolver:$},Gt={key:"hover",engine:Ht,resolver:Xt},$t={key:"move",engine:Kt,resolver:Rt},qt={key:"pinch",engine:Lt,resolver:Nt},Ft={key:"scroll",engine:Ut,resolver:Bt},Jt={key:"wheel",engine:Yt,resolver:jt};exports.C=J;exports.E=F;exports.S=l;exports._=h;exports.a=f;exports.b=dt;exports.c=_t;exports.d=at;exports.e=zt;exports.f=qt;exports.h=Gt;exports.i=S;exports.m=$t;exports.p=ht;exports.r=Wt;exports.s=Ft;exports.t=ut;exports.w=Jt;
|
2
2
|
//# sourceMappingURL=index.cjs196.js.map
|
package/dist/index.cjs197.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
2
2
|
//# sourceMappingURL=index.cjs197.js.map
|
package/dist/index.cjs197.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs197.js","sources":[
|
1
|
+
{"version":3,"file":"index.cjs197.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs198.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const n=require("./index.cjs6.js");function u(t){var r="[object "+t+"]";return function(e){return n.toString.call(e)===r}}module.exports=u;
|
2
2
|
//# sourceMappingURL=index.cjs198.js.map
|
package/dist/index.cjs198.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs198.js","sources":["../../../node_modules/
|
1
|
+
{"version":3,"file":"index.cjs198.js","sources":["../../../node_modules/underscore/modules/_tagTester.js"],"sourcesContent":["import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n"],"names":["tagTester","name","tag","obj","toString"],"mappings":"gDAGA,SAAwBA,EAAUC,EAAM,CAClC,IAAAC,EAAM,WAAaD,EAAO,IAC9B,OAAO,SAASE,EAAK,CACZ,OAAAC,WAAS,KAAKD,CAAG,IAAMD,CAAA,CAElC","x_google_ignoreList":[0]}
|
package/dist/index.cjs199.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const e=require("./index.cjs6.js");function s(r,t){return r!=null&&e.hasOwnProperty.call(r,t)}module.exports=s;
|
2
2
|
//# sourceMappingURL=index.cjs199.js.map
|
package/dist/index.cjs199.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs199.js","sources":["../../../node_modules/
|
1
|
+
{"version":3,"file":"index.cjs199.js","sources":["../../../node_modules/underscore/modules/_has.js"],"sourcesContent":["import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n"],"names":["has","obj","key","hasOwnProperty"],"mappings":"gDAGwB,SAAAA,EAAIC,EAAKC,EAAK,CACpC,OAAOD,GAAO,MAAQE,EAAAA,eAAe,KAAKF,EAAKC,CAAG,CACpD","x_google_ignoreList":[0]}
|
package/dist/index.cjs20.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const e=require("./index.cjs78.js"),i=require("./index.cjs7.js"),c=require("./index.
|
1
|
+
"use strict";const e=require("./index.cjs78.js"),i=require("./index.cjs7.js"),c=require("./index.cjs216.js"),s=e(function(n,r,o){if(!i(n))throw new TypeError("Bind must be called on a function");var t=e(function(u){return c(n,t,r,this,o.concat(u))});return t});module.exports=s;
|
2
2
|
//# sourceMappingURL=index.cjs20.js.map
|
package/dist/index.cjs200.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const e=require("./index.cjs254.js"),t=require("./index.cjs202.js"),r=e(t);module.exports=r;
|
2
2
|
//# sourceMappingURL=index.cjs200.js.map
|
package/dist/index.cjs200.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs200.js","sources":["../../../node_modules/underscore/modules/
|
1
|
+
{"version":3,"file":"index.cjs200.js","sources":["../../../node_modules/underscore/modules/_isBufferLike.js"],"sourcesContent":["import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n"],"names":["createSizePropertyCheck","getByteLength"],"mappings":"iFAKeA,EAAAA,EAAwBC,CAAa","x_google_ignoreList":[0]}
|
package/dist/index.cjs201.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const t=require("./index.cjs253.js"),e=t("length");module.exports=e;
|
2
2
|
//# sourceMappingURL=index.cjs201.js.map
|
package/dist/index.cjs201.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/underscore/modules/
|
1
|
+
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/underscore/modules/_getLength.js"],"sourcesContent":["import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n"],"names":["shallowProperty"],"mappings":"kDAGeA,EAAAA,EAAgB,QAAQ","x_google_ignoreList":[0]}
|
package/dist/index.cjs202.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const t=require("./index.cjs253.js"),e=t("byteLength");module.exports=e;
|
2
2
|
//# sourceMappingURL=index.cjs202.js.map
|
package/dist/index.cjs202.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/underscore/modules/
|
1
|
+
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/underscore/modules/_getByteLength.js"],"sourcesContent":["import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n"],"names":["shallowProperty"],"mappings":"kDAGeA,EAAAA,EAAgB,YAAY","x_google_ignoreList":[0]}
|
package/dist/index.cjs203.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const e=require("./index.cjs202.js");function n(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,e(t))}module.exports=n;
|
2
2
|
//# sourceMappingURL=index.cjs203.js.map
|
package/dist/index.cjs203.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules/underscore/modules/
|
1
|
+
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules/underscore/modules/_toBufferView.js"],"sourcesContent":["import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n"],"names":["toBufferView","bufferSource","getByteLength"],"mappings":"kDAIA,SAAwBA,EAAaC,EAAc,CACjD,OAAO,IAAI,WACTA,EAAa,QAAUA,EACvBA,EAAa,YAAc,EAC3BC,EAAcD,CAAY,CAAA,CAE9B","x_google_ignoreList":[0]}
|
package/dist/index.cjs204.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs201.js"),i=require("./index.cjs7.js"),h=require("./index.cjs101.js");function d(t){var f=s(t);return function(e){if(e==null)return!1;var l=h(e);if(s(l))return!1;for(var r=0;r<f;r++)if(!i(e[t[r]]))return!1;return t!==u||!i(e[a])}}var a="forEach",o="has",n=["clear","delete"],c=["get",o,"set"],M=n.concat(a,c),u=n.concat(c),g=["add"].concat(n,a,o);exports.ie11fingerprint=d;exports.mapMethods=M;exports.setMethods=g;exports.weakMapMethods=u;
|
2
2
|
//# sourceMappingURL=index.cjs204.js.map
|
package/dist/index.cjs204.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules/underscore/modules/
|
1
|
+
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules/underscore/modules/_methodFingerprint.js"],"sourcesContent":["import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n"],"names":["ie11fingerprint","methods","length","getLength","obj","keys","allKeys","i","isFunction","weakMapMethods","forEachName","hasName","commonInit","mapTail","mapMethods","setMethods"],"mappings":"iLAQO,SAASA,EAAgBC,EAAS,CACnC,IAAAC,EAASC,EAAUF,CAAO,EAC9B,OAAO,SAASG,EAAK,CACnB,GAAIA,GAAO,KAAa,MAAA,GAEpB,IAAAC,EAAOC,EAAQF,CAAG,EACtB,GAAID,EAAUE,CAAI,EAAU,MAAA,GAC5B,QAASE,EAAI,EAAGA,EAAIL,EAAQK,IAC1B,GAAI,CAACC,EAAWJ,EAAIH,EAAQM,CAAC,CAAC,CAAC,EAAU,MAAA,GAK3C,OAAON,IAAYQ,GAAkB,CAACD,EAAWJ,EAAIM,CAAW,CAAC,CAAA,CAErE,CAIA,IAAIA,EAAc,UACdC,EAAU,MACVC,EAAa,CAAC,QAAS,QAAQ,EAC/BC,EAAU,CAAC,MAAOF,EAAS,KAAK,EAIzBG,EAAaF,EAAW,OAAOF,EAAaG,CAAO,EAC1DJ,EAAiBG,EAAW,OAAOC,CAAO,EAC1CE,EAAa,CAAC,KAAK,EAAE,OAAOH,EAAYF,EAAaC,CAAO","x_google_ignoreList":[0]}
|